cc-viewer 1.3.6 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,565 @@
1
+ var KE=Object.defineProperty;var XE=(e,t,n)=>t in e?KE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nt=(e,t,n)=>XE(e,typeof t!="symbol"?t+"":t,n);function JC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(r,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fm={exports:{}},vs={},Hm={exports:{}},Qt={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Oy;function QE(){if(Oy)return Qt;Oy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function h(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,S={};function C(M,H,Q){this.props=M,this.context=H,this.refs=S,this.updater=Q||y}C.prototype.isReactComponent={},C.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,H,"setState")},C.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function $(){}$.prototype=C.prototype;function w(M,H,Q){this.props=M,this.context=H,this.refs=S,this.updater=Q||y}var R=w.prototype=new $;R.constructor=w,b(R,C.prototype),R.isPureReactComponent=!0;var I=Array.isArray,_=Object.prototype.hasOwnProperty,O={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function N(M,H,Q){var ne,te={},re=null,fe=null;if(H!=null)for(ne in H.ref!==void 0&&(fe=H.ref),H.key!==void 0&&(re=""+H.key),H)_.call(H,ne)&&!j.hasOwnProperty(ne)&&(te[ne]=H[ne]);var me=arguments.length-2;if(me===1)te.children=Q;else if(1<me){for(var ue=Array(me),Se=0;Se<me;Se++)ue[Se]=arguments[Se+2];te.children=ue}if(M&&M.defaultProps)for(ne in me=M.defaultProps,me)te[ne]===void 0&&(te[ne]=me[ne]);return{$$typeof:e,type:M,key:re,ref:fe,props:te,_owner:O.current}}function T(M,H){return{$$typeof:e,type:M.type,key:H,ref:M.ref,props:M.props,_owner:M._owner}}function P(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function B(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Q){return H[Q]})}var z=/\/+/g;function D(M,H){return typeof M=="object"&&M!==null&&M.key!=null?B(""+M.key):H.toString(36)}function A(M,H,Q,ne,te){var re=typeof M;(re==="undefined"||re==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(re){case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case t:fe=!0}}if(fe)return fe=M,te=te(fe),M=ne===""?"."+D(fe,0):ne,I(te)?(Q="",M!=null&&(Q=M.replace(z,"$&/")+"/"),A(te,H,Q,"",function(Se){return Se})):te!=null&&(P(te)&&(te=T(te,Q+(!te.key||fe&&fe.key===te.key?"":(""+te.key).replace(z,"$&/")+"/")+M)),H.push(te)),1;if(fe=0,ne=ne===""?".":ne+":",I(M))for(var me=0;me<M.length;me++){re=M[me];var ue=ne+D(re,me);fe+=A(re,H,Q,ue,te)}else if(ue=h(M),typeof ue=="function")for(M=ue.call(M),me=0;!(re=M.next()).done;)re=re.value,ue=ne+D(re,me++),fe+=A(re,H,Q,ue,te);else if(re==="object")throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return fe}function W(M,H,Q){if(M==null)return M;var ne=[],te=0;return A(M,ne,"","",function(re){return H.call(Q,re,te++)}),ne}function q(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(Q){(M._status===0||M._status===-1)&&(M._status=1,M._result=Q)},function(Q){(M._status===0||M._status===-1)&&(M._status=2,M._result=Q)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var V={current:null},F={transition:null},Y={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:F,ReactCurrentOwner:O};function U(){throw Error("act(...) is not supported in production builds of React.")}return Qt.Children={map:W,forEach:function(M,H,Q){W(M,function(){H.apply(this,arguments)},Q)},count:function(M){var H=0;return W(M,function(){H++}),H},toArray:function(M){return W(M,function(H){return H})||[]},only:function(M){if(!P(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Qt.Component=C,Qt.Fragment=n,Qt.Profiler=o,Qt.PureComponent=w,Qt.StrictMode=r,Qt.Suspense=d,Qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,Qt.act=U,Qt.cloneElement=function(M,H,Q){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var ne=b({},M.props),te=M.key,re=M.ref,fe=M._owner;if(H!=null){if(H.ref!==void 0&&(re=H.ref,fe=O.current),H.key!==void 0&&(te=""+H.key),M.type&&M.type.defaultProps)var me=M.type.defaultProps;for(ue in H)_.call(H,ue)&&!j.hasOwnProperty(ue)&&(ne[ue]=H[ue]===void 0&&me!==void 0?me[ue]:H[ue])}var ue=arguments.length-2;if(ue===1)ne.children=Q;else if(1<ue){me=Array(ue);for(var Se=0;Se<ue;Se++)me[Se]=arguments[Se+2];ne.children=me}return{$$typeof:e,type:M.type,key:te,ref:re,props:ne,_owner:fe}},Qt.createContext=function(M){return M={$$typeof:s,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:l,_context:M},M.Consumer=M},Qt.createElement=N,Qt.createFactory=function(M){var H=N.bind(null,M);return H.type=M,H},Qt.createRef=function(){return{current:null}},Qt.forwardRef=function(M){return{$$typeof:c,render:M}},Qt.isValidElement=P,Qt.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:q}},Qt.memo=function(M,H){return{$$typeof:m,type:M,compare:H===void 0?null:H}},Qt.startTransition=function(M){var H=F.transition;F.transition={};try{M()}finally{F.transition=H}},Qt.unstable_act=U,Qt.useCallback=function(M,H){return V.current.useCallback(M,H)},Qt.useContext=function(M){return V.current.useContext(M)},Qt.useDebugValue=function(){},Qt.useDeferredValue=function(M){return V.current.useDeferredValue(M)},Qt.useEffect=function(M,H){return V.current.useEffect(M,H)},Qt.useId=function(){return V.current.useId()},Qt.useImperativeHandle=function(M,H,Q){return V.current.useImperativeHandle(M,H,Q)},Qt.useInsertionEffect=function(M,H){return V.current.useInsertionEffect(M,H)},Qt.useLayoutEffect=function(M,H){return V.current.useLayoutEffect(M,H)},Qt.useMemo=function(M,H){return V.current.useMemo(M,H)},Qt.useReducer=function(M,H,Q){return V.current.useReducer(M,H,Q)},Qt.useRef=function(M){return V.current.useRef(M)},Qt.useState=function(M){return V.current.useState(M)},Qt.useSyncExternalStore=function(M,H,Q){return V.current.useSyncExternalStore(M,H,Q)},Qt.useTransition=function(){return V.current.useTransition()},Qt.version="18.3.1",Qt}var Iy;function eh(){return Iy||(Iy=1,Hm.exports=QE()),Hm.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ty;function YE(){if(Ty)return vs;Ty=1;var e=eh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(c,d,m){var p,g={},h=null,y=null;m!==void 0&&(h=""+m),d.key!==void 0&&(h=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)r.call(d,p)&&!l.hasOwnProperty(p)&&(g[p]=d[p]);if(c&&c.defaultProps)for(p in d=c.defaultProps,d)g[p]===void 0&&(g[p]=d[p]);return{$$typeof:t,type:c,key:h,ref:y,props:g,_owner:o.current}}return vs.Fragment=n,vs.jsx=s,vs.jsxs=s,vs}var jy;function JE(){return jy||(jy=1,Fm.exports=YE()),Fm.exports}var k=JE(),u=eh();const J=nc(u),Ed=JC({__proto__:null,default:J},[u]);var yu={},Vm={exports:{}},Ur={},Wm={exports:{}},qm={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Ny;function ZE(){return Ny||(Ny=1,(function(e){function t(F,Y){var U=F.length;F.push(Y);e:for(;0<U;){var M=U-1>>>1,H=F[M];if(0<o(H,Y))F[M]=Y,F[U]=H,U=M;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var Y=F[0],U=F.pop();if(U!==Y){F[0]=U;e:for(var M=0,H=F.length,Q=H>>>1;M<Q;){var ne=2*(M+1)-1,te=F[ne],re=ne+1,fe=F[re];if(0>o(te,U))re<H&&0>o(fe,te)?(F[M]=fe,F[re]=U,M=re):(F[M]=te,F[ne]=U,M=ne);else if(re<H&&0>o(fe,U))F[M]=fe,F[re]=U,M=re;else break e}}return Y}function o(F,Y){var U=F.sortIndex-Y.sortIndex;return U!==0?U:F.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var d=[],m=[],p=1,g=null,h=3,y=!1,b=!1,S=!1,C=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(F){for(var Y=n(m);Y!==null;){if(Y.callback===null)r(m);else if(Y.startTime<=F)r(m),Y.sortIndex=Y.expirationTime,t(d,Y);else break;Y=n(m)}}function I(F){if(S=!1,R(F),!b)if(n(d)!==null)b=!0,q(_);else{var Y=n(m);Y!==null&&V(I,Y.startTime-F)}}function _(F,Y){b=!1,S&&(S=!1,$(N),N=-1),y=!0;var U=h;try{for(R(Y),g=n(d);g!==null&&(!(g.expirationTime>Y)||F&&!B());){var M=g.callback;if(typeof M=="function"){g.callback=null,h=g.priorityLevel;var H=M(g.expirationTime<=Y);Y=e.unstable_now(),typeof H=="function"?g.callback=H:g===n(d)&&r(d),R(Y)}else r(d);g=n(d)}if(g!==null)var Q=!0;else{var ne=n(m);ne!==null&&V(I,ne.startTime-Y),Q=!1}return Q}finally{g=null,h=U,y=!1}}var O=!1,j=null,N=-1,T=5,P=-1;function B(){return!(e.unstable_now()-P<T)}function z(){if(j!==null){var F=e.unstable_now();P=F;var Y=!0;try{Y=j(!0,F)}finally{Y?D():(O=!1,j=null)}}else O=!1}var D;if(typeof w=="function")D=function(){w(z)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,W=A.port2;A.port1.onmessage=z,D=function(){W.postMessage(null)}}else D=function(){C(z,0)};function q(F){j=F,O||(O=!0,D())}function V(F,Y){N=C(function(){F(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,q(_))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(F){switch(h){case 1:case 2:case 3:var Y=3;break;default:Y=h}var U=h;h=Y;try{return F()}finally{h=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,Y){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var U=h;h=F;try{return Y()}finally{h=U}},e.unstable_scheduleCallback=function(F,Y,U){var M=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?M+U:M):U=M,F){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=U+H,F={id:p++,callback:Y,priorityLevel:F,startTime:U,expirationTime:H,sortIndex:-1},U>M?(F.sortIndex=U,t(m,F),n(d)===null&&F===n(m)&&(S?($(N),N=-1):S=!0,V(I,U-M))):(F.sortIndex=H,t(d,F),b||y||(b=!0,q(_))),F},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(F){var Y=h;return function(){var U=h;h=Y;try{return F.apply(this,arguments)}finally{h=U}}}})(qm)),qm}var Py;function e4(){return Py||(Py=1,Wm.exports=ZE()),Wm.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var zy;function t4(){if(zy)return Ur;zy=1;var e=eh(),t=e4();function n(a){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+a,f=1;f<arguments.length;f++)i+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(a,i){s(a,i),s(a+"Capture",i)}function s(a,i){for(o[a]=i,a=0;a<i.length;a++)r.add(i[a])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,m=/^[: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]*$/,p={},g={};function h(a){return d.call(g,a)?!0:d.call(p,a)?!1:m.test(a)?g[a]=!0:(p[a]=!0,!1)}function y(a,i,f,v){if(f!==null&&f.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return v?!1:f!==null?!f.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function b(a,i,f,v){if(i===null||typeof i>"u"||y(a,i,f,v))return!0;if(v)return!1;if(f!==null)switch(f.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function S(a,i,f,v,x,E,L){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=v,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=a,this.type=i,this.sanitizeURL=E,this.removeEmptyString=L}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new S(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var i=a[0];C[i]=new S(i,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new S(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new S(a,2,!1,a,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(a){C[a]=new S(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){C[a]=new S(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){C[a]=new S(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){C[a]=new S(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){C[a]=new S(a,5,!1,a.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function w(a){return a[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(a){var i=a.replace($,w);C[i]=new S(i,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var i=a.replace($,w);C[i]=new S(i,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var i=a.replace($,w);C[i]=new S(i,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){C[a]=new S(a,1,!1,a.toLowerCase(),null,!1,!1)}),C.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){C[a]=new S(a,1,!1,a.toLowerCase(),null,!0,!0)});function R(a,i,f,v){var x=C.hasOwnProperty(i)?C[i]:null;(x!==null?x.type!==0:v||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(b(i,f,x,v)&&(f=null),v||x===null?h(i)&&(f===null?a.removeAttribute(i):a.setAttribute(i,""+f)):x.mustUseProperty?a[x.propertyName]=f===null?x.type===3?!1:"":f:(i=x.attributeName,v=x.attributeNamespace,f===null?a.removeAttribute(i):(x=x.type,f=x===3||x===4&&f===!0?"":""+f,v?a.setAttributeNS(v,i,f):a.setAttribute(i,f))))}var I=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),O=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),B=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),F=Symbol.iterator;function Y(a){return a===null||typeof a!="object"?null:(a=F&&a[F]||a["@@iterator"],typeof a=="function"?a:null)}var U=Object.assign,M;function H(a){if(M===void 0)try{throw Error()}catch(f){var i=f.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return`
34
+ `+M+a}var Q=!1;function ne(a,i){if(!a||Q)return"";Q=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(Ce){var v=Ce}Reflect.construct(a,[],i)}else{try{i.call()}catch(Ce){v=Ce}a.call(i.prototype)}else{try{throw Error()}catch(Ce){v=Ce}a()}}catch(Ce){if(Ce&&v&&typeof Ce.stack=="string"){for(var x=Ce.stack.split(`
35
+ `),E=v.stack.split(`
36
+ `),L=x.length-1,X=E.length-1;1<=L&&0<=X&&x[L]!==E[X];)X--;for(;1<=L&&0<=X;L--,X--)if(x[L]!==E[X]){if(L!==1||X!==1)do if(L--,X--,0>X||x[L]!==E[X]){var oe=`
37
+ `+x[L].replace(" at new "," at ");return a.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",a.displayName)),oe}while(1<=L&&0<=X);break}}}finally{Q=!1,Error.prepareStackTrace=f}return(a=a?a.displayName||a.name:"")?H(a):""}function te(a){switch(a.tag){case 5:return H(a.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return a=ne(a.type,!1),a;case 11:return a=ne(a.type.render,!1),a;case 1:return a=ne(a.type,!0),a;default:return""}}function re(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case O:return"Portal";case T:return"Profiler";case N:return"StrictMode";case D:return"Suspense";case A:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case B:return(a.displayName||"Context")+".Consumer";case P:return(a._context.displayName||"Context")+".Provider";case z:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case W:return i=a.displayName||null,i!==null?i:re(a.type)||"Memo";case q:i=a._payload,a=a._init;try{return re(a(i))}catch{}}return null}function fe(a){var i=a.type;switch(a.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(i);case 8:return i===N?"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 i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function me(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ue(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Se(a){var i=ue(a)?"checked":"value",f=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),v=""+a[i];if(!a.hasOwnProperty(i)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var x=f.get,E=f.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return x.call(this)},set:function(L){v=""+L,E.call(this,L)}}),Object.defineProperty(a,i,{enumerable:f.enumerable}),{getValue:function(){return v},setValue:function(L){v=""+L},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function le(a){a._valueTracker||(a._valueTracker=Se(a))}function ce(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var f=i.getValue(),v="";return a&&(v=ue(a)?a.checked?"true":"false":a.value),a=v,a!==f?(i.setValue(a),!0):!1}function ve(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function be(a,i){var f=i.checked;return U({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??a._wrapperState.initialChecked})}function de(a,i){var f=i.defaultValue==null?"":i.defaultValue,v=i.checked!=null?i.checked:i.defaultChecked;f=me(i.value!=null?i.value:f),a._wrapperState={initialChecked:v,initialValue:f,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function se(a,i){i=i.checked,i!=null&&R(a,"checked",i,!1)}function ye(a,i){se(a,i);var f=me(i.value),v=i.type;if(f!=null)v==="number"?(f===0&&a.value===""||a.value!=f)&&(a.value=""+f):a.value!==""+f&&(a.value=""+f);else if(v==="submit"||v==="reset"){a.removeAttribute("value");return}i.hasOwnProperty("value")?_e(a,i.type,f):i.hasOwnProperty("defaultValue")&&_e(a,i.type,me(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(a.defaultChecked=!!i.defaultChecked)}function xe(a,i,f){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var v=i.type;if(!(v!=="submit"&&v!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+a._wrapperState.initialValue,f||i===a.value||(a.value=i),a.defaultValue=i}f=a.name,f!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,f!==""&&(a.name=f)}function _e(a,i,f){(i!=="number"||ve(a.ownerDocument)!==a)&&(f==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+f&&(a.defaultValue=""+f))}var Pe=Array.isArray;function $e(a,i,f,v){if(a=a.options,i){i={};for(var x=0;x<f.length;x++)i["$"+f[x]]=!0;for(f=0;f<a.length;f++)x=i.hasOwnProperty("$"+a[f].value),a[f].selected!==x&&(a[f].selected=x),x&&v&&(a[f].defaultSelected=!0)}else{for(f=""+me(f),i=null,x=0;x<a.length;x++){if(a[x].value===f){a[x].selected=!0,v&&(a[x].defaultSelected=!0);return}i!==null||a[x].disabled||(i=a[x])}i!==null&&(i.selected=!0)}}function Ee(a,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return U({},i,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function ze(a,i){var f=i.value;if(f==null){if(f=i.children,i=i.defaultValue,f!=null){if(i!=null)throw Error(n(92));if(Pe(f)){if(1<f.length)throw Error(n(93));f=f[0]}i=f}i==null&&(i=""),f=i}a._wrapperState={initialValue:me(f)}}function Ie(a,i){var f=me(i.value),v=me(i.defaultValue);f!=null&&(f=""+f,f!==a.value&&(a.value=f),i.defaultValue==null&&a.defaultValue!==f&&(a.defaultValue=f)),v!=null&&(a.defaultValue=""+v)}function Qe(a){var i=a.textContent;i===a._wrapperState.initialValue&&i!==""&&i!==null&&(a.value=i)}function ot(a){switch(a){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 xt(a,i){return a==null||a==="http://www.w3.org/1999/xhtml"?ot(i):a==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var dt,Xe=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,f,v,x){MSApp.execUnsafeLocalFunction(function(){return a(i,f,v,x)})}:a})(function(a,i){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=i;else{for(dt=dt||document.createElement("div"),dt.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=dt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;i.firstChild;)a.appendChild(i.firstChild)}});function ct(a,i){if(i){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=i;return}}a.textContent=i}var Ge={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},pt=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(a){pt.forEach(function(i){i=i+a.charAt(0).toUpperCase()+a.substring(1),Ge[i]=Ge[a]})});function Ze(a,i,f){return i==null||typeof i=="boolean"||i===""?"":f||typeof i!="number"||i===0||Ge.hasOwnProperty(a)&&Ge[a]?(""+i).trim():i+"px"}function Le(a,i){a=a.style;for(var f in i)if(i.hasOwnProperty(f)){var v=f.indexOf("--")===0,x=Ze(f,i[f],v);f==="float"&&(f="cssFloat"),v?a.setProperty(f,x):a[f]=x}}var tt=U({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 Ne(a,i){if(i){if(tt[a]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,a));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Ve(a,i){if(a.indexOf("-")===-1)return typeof i.is=="string";switch(a){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 kt=null;function vt(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Xt=null,Ut=null,fn=null;function wn(a){if(a=ns(a)){if(typeof Xt!="function")throw Error(n(280));var i=a.stateNode;i&&(i=Nc(i),Xt(a.stateNode,a.type,i))}}function Yt(a){Ut?fn?fn.push(a):fn=[a]:Ut=a}function Lt(){if(Ut){var a=Ut,i=fn;if(fn=Ut=null,wn(a),i)for(a=0;a<i.length;a++)wn(i[a])}}function wt(a,i){return a(i)}function Jt(){}var Wt=!1;function nt(a,i,f){if(Wt)return a(i,f);Wt=!0;try{return wt(a,i,f)}finally{Wt=!1,(Ut!==null||fn!==null)&&(Jt(),Lt())}}function St(a,i){var f=a.stateNode;if(f===null)return null;var v=Nc(f);if(v===null)return null;f=v[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(a=a.type,v=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!v;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(n(231,i,typeof f));return f}var ut=!1;if(c)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){ut=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch{ut=!1}function Re(a,i,f,v,x,E,L,X,oe){var Ce=Array.prototype.slice.call(arguments,3);try{i.apply(f,Ce)}catch(Me){this.onError(Me)}}var we=!1,Be=null,Je=!1,et=null,Bt={onError:function(a){we=!0,Be=a}};function Ht(a,i,f,v,x,E,L,X,oe){we=!1,Be=null,Re.apply(Bt,arguments)}function jt(a,i,f,v,x,E,L,X,oe){if(Ht.apply(this,arguments),we){if(we){var Ce=Be;we=!1,Be=null}else throw Error(n(198));Je||(Je=!0,et=Ce)}}function zt(a){var i=a,f=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(f=i.return),a=i.return;while(a)}return i.tag===3?f:null}function Sn(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function vn(a){if(zt(a)!==a)throw Error(n(188))}function $n(a){var i=a.alternate;if(!i){if(i=zt(a),i===null)throw Error(n(188));return i!==a?null:a}for(var f=a,v=i;;){var x=f.return;if(x===null)break;var E=x.alternate;if(E===null){if(v=x.return,v!==null){f=v;continue}break}if(x.child===E.child){for(E=x.child;E;){if(E===f)return vn(x),a;if(E===v)return vn(x),i;E=E.sibling}throw Error(n(188))}if(f.return!==v.return)f=x,v=E;else{for(var L=!1,X=x.child;X;){if(X===f){L=!0,f=x,v=E;break}if(X===v){L=!0,v=x,f=E;break}X=X.sibling}if(!L){for(X=E.child;X;){if(X===f){L=!0,f=E,v=x;break}if(X===v){L=!0,v=E,f=x;break}X=X.sibling}if(!L)throw Error(n(189))}}if(f.alternate!==v)throw Error(n(190))}if(f.tag!==3)throw Error(n(188));return f.stateNode.current===f?a:i}function Tn(a){return a=$n(a),a!==null?en(a):null}function en(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var i=en(a);if(i!==null)return i;a=a.sibling}return null}var an=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,Et=t.unstable_requestPaint,ft=t.unstable_now,at=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,$t=t.unstable_UserBlockingPriority,Vt=t.unstable_NormalPriority,We=t.unstable_LowPriority,mt=t.unstable_IdlePriority,_t=null,sn=null;function Vn(a){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(_t,a,void 0,(a.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:Cr,br=Math.log,er=Math.LN2;function Cr(a){return a>>>=0,a===0?32:31-(br(a)/er|0)|0}var tr=64,mr=4194304;function Sr(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function nn(a,i){var f=a.pendingLanes;if(f===0)return 0;var v=0,x=a.suspendedLanes,E=a.pingedLanes,L=f&268435455;if(L!==0){var X=L&~x;X!==0?v=Sr(X):(E&=L,E!==0&&(v=Sr(E)))}else L=f&~x,L!==0?v=Sr(L):E!==0&&(v=Sr(E));if(v===0)return 0;if(i!==0&&i!==v&&(i&x)===0&&(x=v&-v,E=i&-i,x>=E||x===16&&(E&4194240)!==0))return i;if((v&4)!==0&&(v|=f&16),i=a.entangledLanes,i!==0)for(a=a.entanglements,i&=v;0<i;)f=31-_n(i),x=1<<f,v|=a[f],i&=~x;return v}function it(a,i){switch(a){case 1:case 2:case 4:return i+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 i+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 rt(a,i){for(var f=a.suspendedLanes,v=a.pingedLanes,x=a.expirationTimes,E=a.pendingLanes;0<E;){var L=31-_n(E),X=1<<L,oe=x[L];oe===-1?((X&f)===0||(X&v)!==0)&&(x[L]=it(X,i)):oe<=i&&(a.expiredLanes|=X),E&=~X}}function Zt(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function rn(){var a=tr;return tr<<=1,(tr&4194240)===0&&(tr=64),a}function mn(a){for(var i=[],f=0;31>f;f++)i.push(a);return i}function hn(a,i,f){a.pendingLanes|=i,i!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,i=31-_n(i),a[i]=f}function pr(a,i){var f=a.pendingLanes&~i;a.pendingLanes=i,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=i,a.mutableReadLanes&=i,a.entangledLanes&=i,i=a.entanglements;var v=a.eventTimes;for(a=a.expirationTimes;0<f;){var x=31-_n(f),E=1<<x;i[x]=0,v[x]=-1,a[x]=-1,f&=~E}}function Wn(a,i){var f=a.entangledLanes|=i;for(a=a.entanglements;f;){var v=31-_n(f),x=1<<v;x&i|a[v]&i&&(a[v]|=i),f&=~x}}var Dt=0;function nr(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var ir,Ar,lr,Sa,Ii,Ti=!1,aa=[],Mn=null,xr=null,Tr=null,Dr=new Map,co=new Map,Qr=[],ji="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 Ni(a,i){switch(a){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":xr=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":Dr.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":co.delete(i.pointerId)}}function lt(a,i,f,v,x,E){return a===null||a.nativeEvent!==E?(a={blockedOn:i,domEventName:f,eventSystemFlags:v,nativeEvent:E,targetContainers:[x]},i!==null&&(i=ns(i),i!==null&&Ar(i)),a):(a.eventSystemFlags|=v,i=a.targetContainers,x!==null&&i.indexOf(x)===-1&&i.push(x),a)}function Mt(a,i,f,v,x){switch(i){case"focusin":return Mn=lt(Mn,a,i,f,v,x),!0;case"dragenter":return xr=lt(xr,a,i,f,v,x),!0;case"mouseover":return Tr=lt(Tr,a,i,f,v,x),!0;case"pointerover":var E=x.pointerId;return Dr.set(E,lt(Dr.get(E)||null,a,i,f,v,x)),!0;case"gotpointercapture":return E=x.pointerId,co.set(E,lt(co.get(E)||null,a,i,f,v,x)),!0}return!1}function Rn(a){var i=Ja(a.target);if(i!==null){var f=zt(i);if(f!==null){if(i=f.tag,i===13){if(i=Sn(f),i!==null){a.blockedOn=i,Ii(a.priority,function(){lr(f)});return}}else if(i===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function On(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var f=pf(a.domEventName,a.eventSystemFlags,i[0],a.nativeEvent);if(f===null){f=a.nativeEvent;var v=new f.constructor(f.type,f);kt=v,f.target.dispatchEvent(v),kt=null}else return i=ns(f),i!==null&&Ar(i),a.blockedOn=f,!1;i.shift()}return!0}function kn(a,i,f){On(a)&&f.delete(i)}function Pi(){Ti=!1,Mn!==null&&On(Mn)&&(Mn=null),xr!==null&&On(xr)&&(xr=null),Tr!==null&&On(Tr)&&(Tr=null),Dr.forEach(kn),co.forEach(kn)}function ia(a,i){a.blockedOn===i&&(a.blockedOn=null,Ti||(Ti=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Pi)))}function xa(a){function i(x){return ia(x,a)}if(0<aa.length){ia(aa[0],a);for(var f=1;f<aa.length;f++){var v=aa[f];v.blockedOn===a&&(v.blockedOn=null)}}for(Mn!==null&&ia(Mn,a),xr!==null&&ia(xr,a),Tr!==null&&ia(Tr,a),Dr.forEach(i),co.forEach(i),f=0;f<Qr.length;f++)v=Qr[f],v.blockedOn===a&&(v.blockedOn=null);for(;0<Qr.length&&(f=Qr[0],f.blockedOn===null);)Rn(f),f.blockedOn===null&&Qr.shift()}var Ro=I.ReactCurrentBatchConfig,Cc=!0;function b$(a,i,f,v){var x=Dt,E=Ro.transition;Ro.transition=null;try{Dt=1,mf(a,i,f,v)}finally{Dt=x,Ro.transition=E}}function C$(a,i,f,v){var x=Dt,E=Ro.transition;Ro.transition=null;try{Dt=4,mf(a,i,f,v)}finally{Dt=x,Ro.transition=E}}function mf(a,i,f,v){if(Cc){var x=pf(a,i,f,v);if(x===null)Tf(a,i,v,Sc,f),Ni(a,v);else if(Mt(x,a,i,f,v))v.stopPropagation();else if(Ni(a,v),i&4&&-1<ji.indexOf(a)){for(;x!==null;){var E=ns(x);if(E!==null&&ir(E),E=pf(a,i,f,v),E===null&&Tf(a,i,v,Sc,f),E===x)break;x=E}x!==null&&v.stopPropagation()}else Tf(a,i,v,null,f)}}var Sc=null;function pf(a,i,f,v){if(Sc=null,a=vt(v),a=Ja(a),a!==null)if(i=zt(a),i===null)a=null;else if(f=i.tag,f===13){if(a=Sn(i),a!==null)return a;a=null}else if(f===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null);return Sc=a,null}function gv(a){switch(a){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(at()){case Ye:return 1;case $t:return 4;case Vt:case We:return 16;case mt:return 536870912;default:return 16}default:return 16}}var wa=null,gf=null,xc=null;function hv(){if(xc)return xc;var a,i=gf,f=i.length,v,x="value"in wa?wa.value:wa.textContent,E=x.length;for(a=0;a<f&&i[a]===x[a];a++);var L=f-a;for(v=1;v<=L&&i[f-v]===x[E-v];v++);return xc=x.slice(a,1<v?1-v:void 0)}function wc(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function $c(){return!0}function vv(){return!1}function Yr(a){function i(f,v,x,E,L){this._reactName=f,this._targetInst=x,this.type=v,this.nativeEvent=E,this.target=L,this.currentTarget=null;for(var X in a)a.hasOwnProperty(X)&&(f=a[X],this[X]=f?f(E):E[X]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?$c:vv,this.isPropagationStopped=vv,this}return U(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=$c)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=$c)},persist:function(){},isPersistent:$c}),i}var zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hf=Yr(zi),ql=U({},zi,{view:0,detail:0}),S$=Yr(ql),vf,yf,Ul,Ec=U({},ql,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cf,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ul&&(Ul&&a.type==="mousemove"?(vf=a.screenX-Ul.screenX,yf=a.screenY-Ul.screenY):yf=vf=0,Ul=a),vf)},movementY:function(a){return"movementY"in a?a.movementY:yf}}),yv=Yr(Ec),x$=U({},Ec,{dataTransfer:0}),w$=Yr(x$),$$=U({},ql,{relatedTarget:0}),bf=Yr($$),E$=U({},zi,{animationName:0,elapsedTime:0,pseudoElement:0}),R$=Yr(E$),k$=U({},zi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),_$=Yr(k$),O$=U({},zi,{data:0}),bv=Yr(O$),I$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T$={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},j$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N$(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=j$[a])?!!i[a]:!1}function Cf(){return N$}var P$=U({},ql,{key:function(a){if(a.key){var i=I$[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=wc(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?T$[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cf,charCode:function(a){return a.type==="keypress"?wc(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?wc(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),z$=Yr(P$),M$=U({},Ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cv=Yr(M$),L$=U({},ql,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cf}),B$=Yr(L$),A$=U({},zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),D$=Yr(A$),F$=U({},Ec,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),H$=Yr(F$),V$=[9,13,27,32],Sf=c&&"CompositionEvent"in window,Gl=null;c&&"documentMode"in document&&(Gl=document.documentMode);var W$=c&&"TextEvent"in window&&!Gl,Sv=c&&(!Sf||Gl&&8<Gl&&11>=Gl),xv=" ",wv=!1;function $v(a,i){switch(a){case"keyup":return V$.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ev(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Mi=!1;function q$(a,i){switch(a){case"compositionend":return Ev(i);case"keypress":return i.which!==32?null:(wv=!0,xv);case"textInput":return a=i.data,a===xv&&wv?null:a;default:return null}}function U$(a,i){if(Mi)return a==="compositionend"||!Sf&&$v(a,i)?(a=hv(),xc=gf=wa=null,Mi=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Sv&&i.locale!=="ko"?null:i.data;default:return null}}var G$={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 Rv(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!G$[a.type]:i==="textarea"}function kv(a,i,f,v){Yt(v),i=Ic(i,"onChange"),0<i.length&&(f=new hf("onChange","change",null,f,v),a.push({event:f,listeners:i}))}var Kl=null,Xl=null;function K$(a){qv(a,0)}function Rc(a){var i=Fi(a);if(ce(i))return a}function X$(a,i){if(a==="change")return i}var _v=!1;if(c){var xf;if(c){var wf="oninput"in document;if(!wf){var Ov=document.createElement("div");Ov.setAttribute("oninput","return;"),wf=typeof Ov.oninput=="function"}xf=wf}else xf=!1;_v=xf&&(!document.documentMode||9<document.documentMode)}function Iv(){Kl&&(Kl.detachEvent("onpropertychange",Tv),Xl=Kl=null)}function Tv(a){if(a.propertyName==="value"&&Rc(Xl)){var i=[];kv(i,Xl,a,vt(a)),nt(K$,i)}}function Q$(a,i,f){a==="focusin"?(Iv(),Kl=i,Xl=f,Kl.attachEvent("onpropertychange",Tv)):a==="focusout"&&Iv()}function Y$(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Rc(Xl)}function J$(a,i){if(a==="click")return Rc(i)}function Z$(a,i){if(a==="input"||a==="change")return Rc(i)}function eE(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var ko=typeof Object.is=="function"?Object.is:eE;function Ql(a,i){if(ko(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var f=Object.keys(a),v=Object.keys(i);if(f.length!==v.length)return!1;for(v=0;v<f.length;v++){var x=f[v];if(!d.call(i,x)||!ko(a[x],i[x]))return!1}return!0}function jv(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Nv(a,i){var f=jv(a);a=0;for(var v;f;){if(f.nodeType===3){if(v=a+f.textContent.length,a<=i&&v>=i)return{node:f,offset:i-a};a=v}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=jv(f)}}function Pv(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Pv(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function zv(){for(var a=window,i=ve();i instanceof a.HTMLIFrameElement;){try{var f=typeof i.contentWindow.location.href=="string"}catch{f=!1}if(f)a=i.contentWindow;else break;i=ve(a.document)}return i}function $f(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function tE(a){var i=zv(),f=a.focusedElem,v=a.selectionRange;if(i!==f&&f&&f.ownerDocument&&Pv(f.ownerDocument.documentElement,f)){if(v!==null&&$f(f)){if(i=v.start,a=v.end,a===void 0&&(a=i),"selectionStart"in f)f.selectionStart=i,f.selectionEnd=Math.min(a,f.value.length);else if(a=(i=f.ownerDocument||document)&&i.defaultView||window,a.getSelection){a=a.getSelection();var x=f.textContent.length,E=Math.min(v.start,x);v=v.end===void 0?E:Math.min(v.end,x),!a.extend&&E>v&&(x=v,v=E,E=x),x=Nv(f,E);var L=Nv(f,v);x&&L&&(a.rangeCount!==1||a.anchorNode!==x.node||a.anchorOffset!==x.offset||a.focusNode!==L.node||a.focusOffset!==L.offset)&&(i=i.createRange(),i.setStart(x.node,x.offset),a.removeAllRanges(),E>v?(a.addRange(i),a.extend(L.node,L.offset)):(i.setEnd(L.node,L.offset),a.addRange(i)))}}for(i=[],a=f;a=a.parentNode;)a.nodeType===1&&i.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<i.length;f++)a=i[f],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var nE=c&&"documentMode"in document&&11>=document.documentMode,Li=null,Ef=null,Yl=null,Rf=!1;function Mv(a,i,f){var v=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Rf||Li==null||Li!==ve(v)||(v=Li,"selectionStart"in v&&$f(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Yl&&Ql(Yl,v)||(Yl=v,v=Ic(Ef,"onSelect"),0<v.length&&(i=new hf("onSelect","select",null,i,f),a.push({event:i,listeners:v}),i.target=Li)))}function kc(a,i){var f={};return f[a.toLowerCase()]=i.toLowerCase(),f["Webkit"+a]="webkit"+i,f["Moz"+a]="moz"+i,f}var Bi={animationend:kc("Animation","AnimationEnd"),animationiteration:kc("Animation","AnimationIteration"),animationstart:kc("Animation","AnimationStart"),transitionend:kc("Transition","TransitionEnd")},kf={},Lv={};c&&(Lv=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function _c(a){if(kf[a])return kf[a];if(!Bi[a])return a;var i=Bi[a],f;for(f in i)if(i.hasOwnProperty(f)&&f in Lv)return kf[a]=i[f];return a}var Bv=_c("animationend"),Av=_c("animationiteration"),Dv=_c("animationstart"),Fv=_c("transitionend"),Hv=new Map,Vv="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 $a(a,i){Hv.set(a,i),l(i,[a])}for(var _f=0;_f<Vv.length;_f++){var Of=Vv[_f],rE=Of.toLowerCase(),oE=Of[0].toUpperCase()+Of.slice(1);$a(rE,"on"+oE)}$a(Bv,"onAnimationEnd"),$a(Av,"onAnimationIteration"),$a(Dv,"onAnimationStart"),$a("dblclick","onDoubleClick"),$a("focusin","onFocus"),$a("focusout","onBlur"),$a(Fv,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aE=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jl));function Wv(a,i,f){var v=a.type||"unknown-event";a.currentTarget=f,jt(v,i,void 0,a),a.currentTarget=null}function qv(a,i){i=(i&4)!==0;for(var f=0;f<a.length;f++){var v=a[f],x=v.event;v=v.listeners;e:{var E=void 0;if(i)for(var L=v.length-1;0<=L;L--){var X=v[L],oe=X.instance,Ce=X.currentTarget;if(X=X.listener,oe!==E&&x.isPropagationStopped())break e;Wv(x,X,Ce),E=oe}else for(L=0;L<v.length;L++){if(X=v[L],oe=X.instance,Ce=X.currentTarget,X=X.listener,oe!==E&&x.isPropagationStopped())break e;Wv(x,X,Ce),E=oe}}}if(Je)throw a=et,Je=!1,et=null,a}function jn(a,i){var f=i[Lf];f===void 0&&(f=i[Lf]=new Set);var v=a+"__bubble";f.has(v)||(Uv(i,a,2,!1),f.add(v))}function If(a,i,f){var v=0;i&&(v|=4),Uv(f,a,v,i)}var Oc="_reactListening"+Math.random().toString(36).slice(2);function Zl(a){if(!a[Oc]){a[Oc]=!0,r.forEach(function(f){f!=="selectionchange"&&(aE.has(f)||If(f,!1,a),If(f,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Oc]||(i[Oc]=!0,If("selectionchange",!1,i))}}function Uv(a,i,f,v){switch(gv(i)){case 1:var x=b$;break;case 4:x=C$;break;default:x=mf}f=x.bind(null,i,f,a),x=void 0,!ut||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(x=!0),v?x!==void 0?a.addEventListener(i,f,{capture:!0,passive:x}):a.addEventListener(i,f,!0):x!==void 0?a.addEventListener(i,f,{passive:x}):a.addEventListener(i,f,!1)}function Tf(a,i,f,v,x){var E=v;if((i&1)===0&&(i&2)===0&&v!==null)e:for(;;){if(v===null)return;var L=v.tag;if(L===3||L===4){var X=v.stateNode.containerInfo;if(X===x||X.nodeType===8&&X.parentNode===x)break;if(L===4)for(L=v.return;L!==null;){var oe=L.tag;if((oe===3||oe===4)&&(oe=L.stateNode.containerInfo,oe===x||oe.nodeType===8&&oe.parentNode===x))return;L=L.return}for(;X!==null;){if(L=Ja(X),L===null)return;if(oe=L.tag,oe===5||oe===6){v=E=L;continue e}X=X.parentNode}}v=v.return}nt(function(){var Ce=E,Me=vt(f),De=[];e:{var je=Hv.get(a);if(je!==void 0){var st=hf,yt=a;switch(a){case"keypress":if(wc(f)===0)break e;case"keydown":case"keyup":st=z$;break;case"focusin":yt="focus",st=bf;break;case"focusout":yt="blur",st=bf;break;case"beforeblur":case"afterblur":st=bf;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":st=yv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":st=w$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":st=B$;break;case Bv:case Av:case Dv:st=R$;break;case Fv:st=D$;break;case"scroll":st=S$;break;case"wheel":st=H$;break;case"copy":case"cut":case"paste":st=_$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":st=Cv}var bt=(i&4)!==0,qn=!bt&&a==="scroll",pe=bt?je!==null?je+"Capture":null:je;bt=[];for(var ae=Ce,he;ae!==null;){he=ae;var He=he.stateNode;if(he.tag===5&&He!==null&&(he=He,pe!==null&&(He=St(ae,pe),He!=null&&bt.push(es(ae,He,he)))),qn)break;ae=ae.return}0<bt.length&&(je=new st(je,yt,null,f,Me),De.push({event:je,listeners:bt}))}}if((i&7)===0){e:{if(je=a==="mouseover"||a==="pointerover",st=a==="mouseout"||a==="pointerout",je&&f!==kt&&(yt=f.relatedTarget||f.fromElement)&&(Ja(yt)||yt[la]))break e;if((st||je)&&(je=Me.window===Me?Me:(je=Me.ownerDocument)?je.defaultView||je.parentWindow:window,st?(yt=f.relatedTarget||f.toElement,st=Ce,yt=yt?Ja(yt):null,yt!==null&&(qn=zt(yt),yt!==qn||yt.tag!==5&&yt.tag!==6)&&(yt=null)):(st=null,yt=Ce),st!==yt)){if(bt=yv,He="onMouseLeave",pe="onMouseEnter",ae="mouse",(a==="pointerout"||a==="pointerover")&&(bt=Cv,He="onPointerLeave",pe="onPointerEnter",ae="pointer"),qn=st==null?je:Fi(st),he=yt==null?je:Fi(yt),je=new bt(He,ae+"leave",st,f,Me),je.target=qn,je.relatedTarget=he,He=null,Ja(Me)===Ce&&(bt=new bt(pe,ae+"enter",yt,f,Me),bt.target=he,bt.relatedTarget=qn,He=bt),qn=He,st&&yt)t:{for(bt=st,pe=yt,ae=0,he=bt;he;he=Ai(he))ae++;for(he=0,He=pe;He;He=Ai(He))he++;for(;0<ae-he;)bt=Ai(bt),ae--;for(;0<he-ae;)pe=Ai(pe),he--;for(;ae--;){if(bt===pe||pe!==null&&bt===pe.alternate)break t;bt=Ai(bt),pe=Ai(pe)}bt=null}else bt=null;st!==null&&Gv(De,je,st,bt,!1),yt!==null&&qn!==null&&Gv(De,qn,yt,bt,!0)}}e:{if(je=Ce?Fi(Ce):window,st=je.nodeName&&je.nodeName.toLowerCase(),st==="select"||st==="input"&&je.type==="file")var Ct=X$;else if(Rv(je))if(_v)Ct=Z$;else{Ct=Y$;var Ot=Q$}else(st=je.nodeName)&&st.toLowerCase()==="input"&&(je.type==="checkbox"||je.type==="radio")&&(Ct=J$);if(Ct&&(Ct=Ct(a,Ce))){kv(De,Ct,f,Me);break e}Ot&&Ot(a,je,Ce),a==="focusout"&&(Ot=je._wrapperState)&&Ot.controlled&&je.type==="number"&&_e(je,"number",je.value)}switch(Ot=Ce?Fi(Ce):window,a){case"focusin":(Rv(Ot)||Ot.contentEditable==="true")&&(Li=Ot,Ef=Ce,Yl=null);break;case"focusout":Yl=Ef=Li=null;break;case"mousedown":Rf=!0;break;case"contextmenu":case"mouseup":case"dragend":Rf=!1,Mv(De,f,Me);break;case"selectionchange":if(nE)break;case"keydown":case"keyup":Mv(De,f,Me)}var It;if(Sf)e:{switch(a){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else Mi?$v(a,f)&&(At="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(At="onCompositionStart");At&&(Sv&&f.locale!=="ko"&&(Mi||At!=="onCompositionStart"?At==="onCompositionEnd"&&Mi&&(It=hv()):(wa=Me,gf="value"in wa?wa.value:wa.textContent,Mi=!0)),Ot=Ic(Ce,At),0<Ot.length&&(At=new bv(At,a,null,f,Me),De.push({event:At,listeners:Ot}),It?At.data=It:(It=Ev(f),It!==null&&(At.data=It)))),(It=W$?q$(a,f):U$(a,f))&&(Ce=Ic(Ce,"onBeforeInput"),0<Ce.length&&(Me=new bv("onBeforeInput","beforeinput",null,f,Me),De.push({event:Me,listeners:Ce}),Me.data=It))}qv(De,i)})}function es(a,i,f){return{instance:a,listener:i,currentTarget:f}}function Ic(a,i){for(var f=i+"Capture",v=[];a!==null;){var x=a,E=x.stateNode;x.tag===5&&E!==null&&(x=E,E=St(a,f),E!=null&&v.unshift(es(a,E,x)),E=St(a,i),E!=null&&v.push(es(a,E,x))),a=a.return}return v}function Ai(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function Gv(a,i,f,v,x){for(var E=i._reactName,L=[];f!==null&&f!==v;){var X=f,oe=X.alternate,Ce=X.stateNode;if(oe!==null&&oe===v)break;X.tag===5&&Ce!==null&&(X=Ce,x?(oe=St(f,E),oe!=null&&L.unshift(es(f,oe,X))):x||(oe=St(f,E),oe!=null&&L.push(es(f,oe,X)))),f=f.return}L.length!==0&&a.push({event:i,listeners:L})}var iE=/\r\n?/g,lE=/\u0000|\uFFFD/g;function Kv(a){return(typeof a=="string"?a:""+a).replace(iE,`
38
+ `).replace(lE,"")}function Tc(a,i,f){if(i=Kv(i),Kv(a)!==i&&f)throw Error(n(425))}function jc(){}var jf=null,Nf=null;function Pf(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var zf=typeof setTimeout=="function"?setTimeout:void 0,sE=typeof clearTimeout=="function"?clearTimeout:void 0,Xv=typeof Promise=="function"?Promise:void 0,cE=typeof queueMicrotask=="function"?queueMicrotask:typeof Xv<"u"?function(a){return Xv.resolve(null).then(a).catch(uE)}:zf;function uE(a){setTimeout(function(){throw a})}function Mf(a,i){var f=i,v=0;do{var x=f.nextSibling;if(a.removeChild(f),x&&x.nodeType===8)if(f=x.data,f==="/$"){if(v===0){a.removeChild(x),xa(i);return}v--}else f!=="$"&&f!=="$?"&&f!=="$!"||v++;f=x}while(f);xa(i)}function Ea(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return a}function Qv(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"){if(i===0)return a;i--}else f==="/$"&&i++}a=a.previousSibling}return null}var Di=Math.random().toString(36).slice(2),Ho="__reactFiber$"+Di,ts="__reactProps$"+Di,la="__reactContainer$"+Di,Lf="__reactEvents$"+Di,dE="__reactListeners$"+Di,fE="__reactHandles$"+Di;function Ja(a){var i=a[Ho];if(i)return i;for(var f=a.parentNode;f;){if(i=f[la]||f[Ho]){if(f=i.alternate,i.child!==null||f!==null&&f.child!==null)for(a=Qv(a);a!==null;){if(f=a[Ho])return f;a=Qv(a)}return i}a=f,f=a.parentNode}return null}function ns(a){return a=a[Ho]||a[la],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function Fi(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(n(33))}function Nc(a){return a[ts]||null}var Bf=[],Hi=-1;function Ra(a){return{current:a}}function Nn(a){0>Hi||(a.current=Bf[Hi],Bf[Hi]=null,Hi--)}function In(a,i){Hi++,Bf[Hi]=a.current,a.current=i}var ka={},wr=Ra(ka),Fr=Ra(!1),Za=ka;function Vi(a,i){var f=a.type.contextTypes;if(!f)return ka;var v=a.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===i)return v.__reactInternalMemoizedMaskedChildContext;var x={},E;for(E in f)x[E]=i[E];return v&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=i,a.__reactInternalMemoizedMaskedChildContext=x),x}function Hr(a){return a=a.childContextTypes,a!=null}function Pc(){Nn(Fr),Nn(wr)}function Yv(a,i,f){if(wr.current!==ka)throw Error(n(168));In(wr,i),In(Fr,f)}function Jv(a,i,f){var v=a.stateNode;if(i=i.childContextTypes,typeof v.getChildContext!="function")return f;v=v.getChildContext();for(var x in v)if(!(x in i))throw Error(n(108,fe(a)||"Unknown",x));return U({},f,v)}function zc(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||ka,Za=wr.current,In(wr,a),In(Fr,Fr.current),!0}function Zv(a,i,f){var v=a.stateNode;if(!v)throw Error(n(169));f?(a=Jv(a,i,Za),v.__reactInternalMemoizedMergedChildContext=a,Nn(Fr),Nn(wr),In(wr,a)):Nn(Fr),In(Fr,f)}var sa=null,Mc=!1,Af=!1;function e0(a){sa===null?sa=[a]:sa.push(a)}function mE(a){Mc=!0,e0(a)}function _a(){if(!Af&&sa!==null){Af=!0;var a=0,i=Dt;try{var f=sa;for(Dt=1;a<f.length;a++){var v=f[a];do v=v(!0);while(v!==null)}sa=null,Mc=!1}catch(x){throw sa!==null&&(sa=sa.slice(a+1)),an(Ye,_a),x}finally{Dt=i,Af=!1}}return null}var Wi=[],qi=0,Lc=null,Bc=0,uo=[],fo=0,ei=null,ca=1,ua="";function ti(a,i){Wi[qi++]=Bc,Wi[qi++]=Lc,Lc=a,Bc=i}function t0(a,i,f){uo[fo++]=ca,uo[fo++]=ua,uo[fo++]=ei,ei=a;var v=ca;a=ua;var x=32-_n(v)-1;v&=~(1<<x),f+=1;var E=32-_n(i)+x;if(30<E){var L=x-x%5;E=(v&(1<<L)-1).toString(32),v>>=L,x-=L,ca=1<<32-_n(i)+x|f<<x|v,ua=E+a}else ca=1<<E|f<<x|v,ua=a}function Df(a){a.return!==null&&(ti(a,1),t0(a,1,0))}function Ff(a){for(;a===Lc;)Lc=Wi[--qi],Wi[qi]=null,Bc=Wi[--qi],Wi[qi]=null;for(;a===ei;)ei=uo[--fo],uo[fo]=null,ua=uo[--fo],uo[fo]=null,ca=uo[--fo],uo[fo]=null}var Jr=null,Zr=null,zn=!1,_o=null;function n0(a,i){var f=ho(5,null,null,0);f.elementType="DELETED",f.stateNode=i,f.return=a,i=a.deletions,i===null?(a.deletions=[f],a.flags|=16):i.push(f)}function r0(a,i){switch(a.tag){case 5:var f=a.type;return i=i.nodeType!==1||f.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(a.stateNode=i,Jr=a,Zr=Ea(i.firstChild),!0):!1;case 6:return i=a.pendingProps===""||i.nodeType!==3?null:i,i!==null?(a.stateNode=i,Jr=a,Zr=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(f=ei!==null?{id:ca,overflow:ua}:null,a.memoizedState={dehydrated:i,treeContext:f,retryLane:1073741824},f=ho(18,null,null,0),f.stateNode=i,f.return=a,a.child=f,Jr=a,Zr=null,!0):!1;default:return!1}}function Hf(a){return(a.mode&1)!==0&&(a.flags&128)===0}function Vf(a){if(zn){var i=Zr;if(i){var f=i;if(!r0(a,i)){if(Hf(a))throw Error(n(418));i=Ea(f.nextSibling);var v=Jr;i&&r0(a,i)?n0(v,f):(a.flags=a.flags&-4097|2,zn=!1,Jr=a)}}else{if(Hf(a))throw Error(n(418));a.flags=a.flags&-4097|2,zn=!1,Jr=a}}}function o0(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Jr=a}function Ac(a){if(a!==Jr)return!1;if(!zn)return o0(a),zn=!0,!1;var i;if((i=a.tag!==3)&&!(i=a.tag!==5)&&(i=a.type,i=i!=="head"&&i!=="body"&&!Pf(a.type,a.memoizedProps)),i&&(i=Zr)){if(Hf(a))throw a0(),Error(n(418));for(;i;)n0(a,i),i=Ea(i.nextSibling)}if(o0(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));e:{for(a=a.nextSibling,i=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"){if(i===0){Zr=Ea(a.nextSibling);break e}i--}else f!=="$"&&f!=="$!"&&f!=="$?"||i++}a=a.nextSibling}Zr=null}}else Zr=Jr?Ea(a.stateNode.nextSibling):null;return!0}function a0(){for(var a=Zr;a;)a=Ea(a.nextSibling)}function Ui(){Zr=Jr=null,zn=!1}function Wf(a){_o===null?_o=[a]:_o.push(a)}var pE=I.ReactCurrentBatchConfig;function rs(a,i,f){if(a=f.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(n(309));var v=f.stateNode}if(!v)throw Error(n(147,a));var x=v,E=""+a;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===E?i.ref:(i=function(L){var X=x.refs;L===null?delete X[E]:X[E]=L},i._stringRef=E,i)}if(typeof a!="string")throw Error(n(284));if(!f._owner)throw Error(n(290,a))}return a}function Dc(a,i){throw a=Object.prototype.toString.call(i),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a))}function i0(a){var i=a._init;return i(a._payload)}function l0(a){function i(pe,ae){if(a){var he=pe.deletions;he===null?(pe.deletions=[ae],pe.flags|=16):he.push(ae)}}function f(pe,ae){if(!a)return null;for(;ae!==null;)i(pe,ae),ae=ae.sibling;return null}function v(pe,ae){for(pe=new Map;ae!==null;)ae.key!==null?pe.set(ae.key,ae):pe.set(ae.index,ae),ae=ae.sibling;return pe}function x(pe,ae){return pe=Ma(pe,ae),pe.index=0,pe.sibling=null,pe}function E(pe,ae,he){return pe.index=he,a?(he=pe.alternate,he!==null?(he=he.index,he<ae?(pe.flags|=2,ae):he):(pe.flags|=2,ae)):(pe.flags|=1048576,ae)}function L(pe){return a&&pe.alternate===null&&(pe.flags|=2),pe}function X(pe,ae,he,He){return ae===null||ae.tag!==6?(ae=zm(he,pe.mode,He),ae.return=pe,ae):(ae=x(ae,he),ae.return=pe,ae)}function oe(pe,ae,he,He){var Ct=he.type;return Ct===j?Me(pe,ae,he.props.children,He,he.key):ae!==null&&(ae.elementType===Ct||typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===q&&i0(Ct)===ae.type)?(He=x(ae,he.props),He.ref=rs(pe,ae,he),He.return=pe,He):(He=uu(he.type,he.key,he.props,null,pe.mode,He),He.ref=rs(pe,ae,he),He.return=pe,He)}function Ce(pe,ae,he,He){return ae===null||ae.tag!==4||ae.stateNode.containerInfo!==he.containerInfo||ae.stateNode.implementation!==he.implementation?(ae=Mm(he,pe.mode,He),ae.return=pe,ae):(ae=x(ae,he.children||[]),ae.return=pe,ae)}function Me(pe,ae,he,He,Ct){return ae===null||ae.tag!==7?(ae=ci(he,pe.mode,He,Ct),ae.return=pe,ae):(ae=x(ae,he),ae.return=pe,ae)}function De(pe,ae,he){if(typeof ae=="string"&&ae!==""||typeof ae=="number")return ae=zm(""+ae,pe.mode,he),ae.return=pe,ae;if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case _:return he=uu(ae.type,ae.key,ae.props,null,pe.mode,he),he.ref=rs(pe,null,ae),he.return=pe,he;case O:return ae=Mm(ae,pe.mode,he),ae.return=pe,ae;case q:var He=ae._init;return De(pe,He(ae._payload),he)}if(Pe(ae)||Y(ae))return ae=ci(ae,pe.mode,he,null),ae.return=pe,ae;Dc(pe,ae)}return null}function je(pe,ae,he,He){var Ct=ae!==null?ae.key:null;if(typeof he=="string"&&he!==""||typeof he=="number")return Ct!==null?null:X(pe,ae,""+he,He);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case _:return he.key===Ct?oe(pe,ae,he,He):null;case O:return he.key===Ct?Ce(pe,ae,he,He):null;case q:return Ct=he._init,je(pe,ae,Ct(he._payload),He)}if(Pe(he)||Y(he))return Ct!==null?null:Me(pe,ae,he,He,null);Dc(pe,he)}return null}function st(pe,ae,he,He,Ct){if(typeof He=="string"&&He!==""||typeof He=="number")return pe=pe.get(he)||null,X(ae,pe,""+He,Ct);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case _:return pe=pe.get(He.key===null?he:He.key)||null,oe(ae,pe,He,Ct);case O:return pe=pe.get(He.key===null?he:He.key)||null,Ce(ae,pe,He,Ct);case q:var Ot=He._init;return st(pe,ae,he,Ot(He._payload),Ct)}if(Pe(He)||Y(He))return pe=pe.get(he)||null,Me(ae,pe,He,Ct,null);Dc(ae,He)}return null}function yt(pe,ae,he,He){for(var Ct=null,Ot=null,It=ae,At=ae=0,ur=null;It!==null&&At<he.length;At++){It.index>At?(ur=It,It=null):ur=It.sibling;var pn=je(pe,It,he[At],He);if(pn===null){It===null&&(It=ur);break}a&&It&&pn.alternate===null&&i(pe,It),ae=E(pn,ae,At),Ot===null?Ct=pn:Ot.sibling=pn,Ot=pn,It=ur}if(At===he.length)return f(pe,It),zn&&ti(pe,At),Ct;if(It===null){for(;At<he.length;At++)It=De(pe,he[At],He),It!==null&&(ae=E(It,ae,At),Ot===null?Ct=It:Ot.sibling=It,Ot=It);return zn&&ti(pe,At),Ct}for(It=v(pe,It);At<he.length;At++)ur=st(It,pe,At,he[At],He),ur!==null&&(a&&ur.alternate!==null&&It.delete(ur.key===null?At:ur.key),ae=E(ur,ae,At),Ot===null?Ct=ur:Ot.sibling=ur,Ot=ur);return a&&It.forEach(function(La){return i(pe,La)}),zn&&ti(pe,At),Ct}function bt(pe,ae,he,He){var Ct=Y(he);if(typeof Ct!="function")throw Error(n(150));if(he=Ct.call(he),he==null)throw Error(n(151));for(var Ot=Ct=null,It=ae,At=ae=0,ur=null,pn=he.next();It!==null&&!pn.done;At++,pn=he.next()){It.index>At?(ur=It,It=null):ur=It.sibling;var La=je(pe,It,pn.value,He);if(La===null){It===null&&(It=ur);break}a&&It&&La.alternate===null&&i(pe,It),ae=E(La,ae,At),Ot===null?Ct=La:Ot.sibling=La,Ot=La,It=ur}if(pn.done)return f(pe,It),zn&&ti(pe,At),Ct;if(It===null){for(;!pn.done;At++,pn=he.next())pn=De(pe,pn.value,He),pn!==null&&(ae=E(pn,ae,At),Ot===null?Ct=pn:Ot.sibling=pn,Ot=pn);return zn&&ti(pe,At),Ct}for(It=v(pe,It);!pn.done;At++,pn=he.next())pn=st(It,pe,At,pn.value,He),pn!==null&&(a&&pn.alternate!==null&&It.delete(pn.key===null?At:pn.key),ae=E(pn,ae,At),Ot===null?Ct=pn:Ot.sibling=pn,Ot=pn);return a&&It.forEach(function(GE){return i(pe,GE)}),zn&&ti(pe,At),Ct}function qn(pe,ae,he,He){if(typeof he=="object"&&he!==null&&he.type===j&&he.key===null&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case _:e:{for(var Ct=he.key,Ot=ae;Ot!==null;){if(Ot.key===Ct){if(Ct=he.type,Ct===j){if(Ot.tag===7){f(pe,Ot.sibling),ae=x(Ot,he.props.children),ae.return=pe,pe=ae;break e}}else if(Ot.elementType===Ct||typeof Ct=="object"&&Ct!==null&&Ct.$$typeof===q&&i0(Ct)===Ot.type){f(pe,Ot.sibling),ae=x(Ot,he.props),ae.ref=rs(pe,Ot,he),ae.return=pe,pe=ae;break e}f(pe,Ot);break}else i(pe,Ot);Ot=Ot.sibling}he.type===j?(ae=ci(he.props.children,pe.mode,He,he.key),ae.return=pe,pe=ae):(He=uu(he.type,he.key,he.props,null,pe.mode,He),He.ref=rs(pe,ae,he),He.return=pe,pe=He)}return L(pe);case O:e:{for(Ot=he.key;ae!==null;){if(ae.key===Ot)if(ae.tag===4&&ae.stateNode.containerInfo===he.containerInfo&&ae.stateNode.implementation===he.implementation){f(pe,ae.sibling),ae=x(ae,he.children||[]),ae.return=pe,pe=ae;break e}else{f(pe,ae);break}else i(pe,ae);ae=ae.sibling}ae=Mm(he,pe.mode,He),ae.return=pe,pe=ae}return L(pe);case q:return Ot=he._init,qn(pe,ae,Ot(he._payload),He)}if(Pe(he))return yt(pe,ae,he,He);if(Y(he))return bt(pe,ae,he,He);Dc(pe,he)}return typeof he=="string"&&he!==""||typeof he=="number"?(he=""+he,ae!==null&&ae.tag===6?(f(pe,ae.sibling),ae=x(ae,he),ae.return=pe,pe=ae):(f(pe,ae),ae=zm(he,pe.mode,He),ae.return=pe,pe=ae),L(pe)):f(pe,ae)}return qn}var Gi=l0(!0),s0=l0(!1),Fc=Ra(null),Hc=null,Ki=null,qf=null;function Uf(){qf=Ki=Hc=null}function Gf(a){var i=Fc.current;Nn(Fc),a._currentValue=i}function Kf(a,i,f){for(;a!==null;){var v=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,v!==null&&(v.childLanes|=i)):v!==null&&(v.childLanes&i)!==i&&(v.childLanes|=i),a===f)break;a=a.return}}function Xi(a,i){Hc=a,qf=Ki=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&i)!==0&&(Vr=!0),a.firstContext=null)}function mo(a){var i=a._currentValue;if(qf!==a)if(a={context:a,memoizedValue:i,next:null},Ki===null){if(Hc===null)throw Error(n(308));Ki=a,Hc.dependencies={lanes:0,firstContext:a}}else Ki=Ki.next=a;return i}var ni=null;function Xf(a){ni===null?ni=[a]:ni.push(a)}function c0(a,i,f,v){var x=i.interleaved;return x===null?(f.next=f,Xf(i)):(f.next=x.next,x.next=f),i.interleaved=f,da(a,v)}function da(a,i){a.lanes|=i;var f=a.alternate;for(f!==null&&(f.lanes|=i),f=a,a=a.return;a!==null;)a.childLanes|=i,f=a.alternate,f!==null&&(f.childLanes|=i),f=a,a=a.return;return f.tag===3?f.stateNode:null}var Oa=!1;function Qf(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function u0(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function fa(a,i){return{eventTime:a,lane:i,tag:0,payload:null,callback:null,next:null}}function Ia(a,i,f){var v=a.updateQueue;if(v===null)return null;if(v=v.shared,(cn&2)!==0){var x=v.pending;return x===null?i.next=i:(i.next=x.next,x.next=i),v.pending=i,da(a,f)}return x=v.interleaved,x===null?(i.next=i,Xf(v)):(i.next=x.next,x.next=i),v.interleaved=i,da(a,f)}function Vc(a,i,f){if(i=i.updateQueue,i!==null&&(i=i.shared,(f&4194240)!==0)){var v=i.lanes;v&=a.pendingLanes,f|=v,i.lanes=f,Wn(a,f)}}function d0(a,i){var f=a.updateQueue,v=a.alternate;if(v!==null&&(v=v.updateQueue,f===v)){var x=null,E=null;if(f=f.firstBaseUpdate,f!==null){do{var L={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};E===null?x=E=L:E=E.next=L,f=f.next}while(f!==null);E===null?x=E=i:E=E.next=i}else x=E=i;f={baseState:v.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:v.shared,effects:v.effects},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=i:a.next=i,f.lastBaseUpdate=i}function Wc(a,i,f,v){var x=a.updateQueue;Oa=!1;var E=x.firstBaseUpdate,L=x.lastBaseUpdate,X=x.shared.pending;if(X!==null){x.shared.pending=null;var oe=X,Ce=oe.next;oe.next=null,L===null?E=Ce:L.next=Ce,L=oe;var Me=a.alternate;Me!==null&&(Me=Me.updateQueue,X=Me.lastBaseUpdate,X!==L&&(X===null?Me.firstBaseUpdate=Ce:X.next=Ce,Me.lastBaseUpdate=oe))}if(E!==null){var De=x.baseState;L=0,Me=Ce=oe=null,X=E;do{var je=X.lane,st=X.eventTime;if((v&je)===je){Me!==null&&(Me=Me.next={eventTime:st,lane:0,tag:X.tag,payload:X.payload,callback:X.callback,next:null});e:{var yt=a,bt=X;switch(je=i,st=f,bt.tag){case 1:if(yt=bt.payload,typeof yt=="function"){De=yt.call(st,De,je);break e}De=yt;break e;case 3:yt.flags=yt.flags&-65537|128;case 0:if(yt=bt.payload,je=typeof yt=="function"?yt.call(st,De,je):yt,je==null)break e;De=U({},De,je);break e;case 2:Oa=!0}}X.callback!==null&&X.lane!==0&&(a.flags|=64,je=x.effects,je===null?x.effects=[X]:je.push(X))}else st={eventTime:st,lane:je,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Me===null?(Ce=Me=st,oe=De):Me=Me.next=st,L|=je;if(X=X.next,X===null){if(X=x.shared.pending,X===null)break;je=X,X=je.next,je.next=null,x.lastBaseUpdate=je,x.shared.pending=null}}while(!0);if(Me===null&&(oe=De),x.baseState=oe,x.firstBaseUpdate=Ce,x.lastBaseUpdate=Me,i=x.shared.interleaved,i!==null){x=i;do L|=x.lane,x=x.next;while(x!==i)}else E===null&&(x.shared.lanes=0);ai|=L,a.lanes=L,a.memoizedState=De}}function f0(a,i,f){if(a=i.effects,i.effects=null,a!==null)for(i=0;i<a.length;i++){var v=a[i],x=v.callback;if(x!==null){if(v.callback=null,v=f,typeof x!="function")throw Error(n(191,x));x.call(v)}}}var os={},Vo=Ra(os),as=Ra(os),is=Ra(os);function ri(a){if(a===os)throw Error(n(174));return a}function Yf(a,i){switch(In(is,i),In(as,a),In(Vo,os),a=i.nodeType,a){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:xt(null,"");break;default:a=a===8?i.parentNode:i,i=a.namespaceURI||null,a=a.tagName,i=xt(i,a)}Nn(Vo),In(Vo,i)}function Qi(){Nn(Vo),Nn(as),Nn(is)}function m0(a){ri(is.current);var i=ri(Vo.current),f=xt(i,a.type);i!==f&&(In(as,a),In(Vo,f))}function Jf(a){as.current===a&&(Nn(Vo),Nn(as))}var Ln=Ra(0);function qc(a){for(var i=a;i!==null;){if(i.tag===13){var f=i.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Zf=[];function em(){for(var a=0;a<Zf.length;a++)Zf[a]._workInProgressVersionPrimary=null;Zf.length=0}var Uc=I.ReactCurrentDispatcher,tm=I.ReactCurrentBatchConfig,oi=0,Bn=null,rr=null,sr=null,Gc=!1,ls=!1,ss=0,gE=0;function $r(){throw Error(n(321))}function nm(a,i){if(i===null)return!1;for(var f=0;f<i.length&&f<a.length;f++)if(!ko(a[f],i[f]))return!1;return!0}function rm(a,i,f,v,x,E){if(oi=E,Bn=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Uc.current=a===null||a.memoizedState===null?bE:CE,a=f(v,x),ls){E=0;do{if(ls=!1,ss=0,25<=E)throw Error(n(301));E+=1,sr=rr=null,i.updateQueue=null,Uc.current=SE,a=f(v,x)}while(ls)}if(Uc.current=Qc,i=rr!==null&&rr.next!==null,oi=0,sr=rr=Bn=null,Gc=!1,i)throw Error(n(300));return a}function om(){var a=ss!==0;return ss=0,a}function Wo(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sr===null?Bn.memoizedState=sr=a:sr=sr.next=a,sr}function po(){if(rr===null){var a=Bn.alternate;a=a!==null?a.memoizedState:null}else a=rr.next;var i=sr===null?Bn.memoizedState:sr.next;if(i!==null)sr=i,rr=a;else{if(a===null)throw Error(n(310));rr=a,a={memoizedState:rr.memoizedState,baseState:rr.baseState,baseQueue:rr.baseQueue,queue:rr.queue,next:null},sr===null?Bn.memoizedState=sr=a:sr=sr.next=a}return sr}function cs(a,i){return typeof i=="function"?i(a):i}function am(a){var i=po(),f=i.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=a;var v=rr,x=v.baseQueue,E=f.pending;if(E!==null){if(x!==null){var L=x.next;x.next=E.next,E.next=L}v.baseQueue=x=E,f.pending=null}if(x!==null){E=x.next,v=v.baseState;var X=L=null,oe=null,Ce=E;do{var Me=Ce.lane;if((oi&Me)===Me)oe!==null&&(oe=oe.next={lane:0,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),v=Ce.hasEagerState?Ce.eagerState:a(v,Ce.action);else{var De={lane:Me,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};oe===null?(X=oe=De,L=v):oe=oe.next=De,Bn.lanes|=Me,ai|=Me}Ce=Ce.next}while(Ce!==null&&Ce!==E);oe===null?L=v:oe.next=X,ko(v,i.memoizedState)||(Vr=!0),i.memoizedState=v,i.baseState=L,i.baseQueue=oe,f.lastRenderedState=v}if(a=f.interleaved,a!==null){x=a;do E=x.lane,Bn.lanes|=E,ai|=E,x=x.next;while(x!==a)}else x===null&&(f.lanes=0);return[i.memoizedState,f.dispatch]}function im(a){var i=po(),f=i.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=a;var v=f.dispatch,x=f.pending,E=i.memoizedState;if(x!==null){f.pending=null;var L=x=x.next;do E=a(E,L.action),L=L.next;while(L!==x);ko(E,i.memoizedState)||(Vr=!0),i.memoizedState=E,i.baseQueue===null&&(i.baseState=E),f.lastRenderedState=E}return[E,v]}function p0(){}function g0(a,i){var f=Bn,v=po(),x=i(),E=!ko(v.memoizedState,x);if(E&&(v.memoizedState=x,Vr=!0),v=v.queue,lm(y0.bind(null,f,v,a),[a]),v.getSnapshot!==i||E||sr!==null&&sr.memoizedState.tag&1){if(f.flags|=2048,us(9,v0.bind(null,f,v,x,i),void 0,null),cr===null)throw Error(n(349));(oi&30)!==0||h0(f,i,x)}return x}function h0(a,i,f){a.flags|=16384,a={getSnapshot:i,value:f},i=Bn.updateQueue,i===null?(i={lastEffect:null,stores:null},Bn.updateQueue=i,i.stores=[a]):(f=i.stores,f===null?i.stores=[a]:f.push(a))}function v0(a,i,f,v){i.value=f,i.getSnapshot=v,b0(i)&&C0(a)}function y0(a,i,f){return f(function(){b0(i)&&C0(a)})}function b0(a){var i=a.getSnapshot;a=a.value;try{var f=i();return!ko(a,f)}catch{return!0}}function C0(a){var i=da(a,1);i!==null&&jo(i,a,1,-1)}function S0(a){var i=Wo();return typeof a=="function"&&(a=a()),i.memoizedState=i.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:a},i.queue=a,a=a.dispatch=yE.bind(null,Bn,a),[i.memoizedState,a]}function us(a,i,f,v){return a={tag:a,create:i,destroy:f,deps:v,next:null},i=Bn.updateQueue,i===null?(i={lastEffect:null,stores:null},Bn.updateQueue=i,i.lastEffect=a.next=a):(f=i.lastEffect,f===null?i.lastEffect=a.next=a:(v=f.next,f.next=a,a.next=v,i.lastEffect=a)),a}function x0(){return po().memoizedState}function Kc(a,i,f,v){var x=Wo();Bn.flags|=a,x.memoizedState=us(1|i,f,void 0,v===void 0?null:v)}function Xc(a,i,f,v){var x=po();v=v===void 0?null:v;var E=void 0;if(rr!==null){var L=rr.memoizedState;if(E=L.destroy,v!==null&&nm(v,L.deps)){x.memoizedState=us(i,f,E,v);return}}Bn.flags|=a,x.memoizedState=us(1|i,f,E,v)}function w0(a,i){return Kc(8390656,8,a,i)}function lm(a,i){return Xc(2048,8,a,i)}function $0(a,i){return Xc(4,2,a,i)}function E0(a,i){return Xc(4,4,a,i)}function R0(a,i){if(typeof i=="function")return a=a(),i(a),function(){i(null)};if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function k0(a,i,f){return f=f!=null?f.concat([a]):null,Xc(4,4,R0.bind(null,i,a),f)}function sm(){}function _0(a,i){var f=po();i=i===void 0?null:i;var v=f.memoizedState;return v!==null&&i!==null&&nm(i,v[1])?v[0]:(f.memoizedState=[a,i],a)}function O0(a,i){var f=po();i=i===void 0?null:i;var v=f.memoizedState;return v!==null&&i!==null&&nm(i,v[1])?v[0]:(a=a(),f.memoizedState=[a,i],a)}function I0(a,i,f){return(oi&21)===0?(a.baseState&&(a.baseState=!1,Vr=!0),a.memoizedState=f):(ko(f,i)||(f=rn(),Bn.lanes|=f,ai|=f,a.baseState=!0),i)}function hE(a,i){var f=Dt;Dt=f!==0&&4>f?f:4,a(!0);var v=tm.transition;tm.transition={};try{a(!1),i()}finally{Dt=f,tm.transition=v}}function T0(){return po().memoizedState}function vE(a,i,f){var v=Pa(a);if(f={lane:v,action:f,hasEagerState:!1,eagerState:null,next:null},j0(a))N0(i,f);else if(f=c0(a,i,f,v),f!==null){var x=Nr();jo(f,a,v,x),P0(f,i,v)}}function yE(a,i,f){var v=Pa(a),x={lane:v,action:f,hasEagerState:!1,eagerState:null,next:null};if(j0(a))N0(i,x);else{var E=a.alternate;if(a.lanes===0&&(E===null||E.lanes===0)&&(E=i.lastRenderedReducer,E!==null))try{var L=i.lastRenderedState,X=E(L,f);if(x.hasEagerState=!0,x.eagerState=X,ko(X,L)){var oe=i.interleaved;oe===null?(x.next=x,Xf(i)):(x.next=oe.next,oe.next=x),i.interleaved=x;return}}catch{}finally{}f=c0(a,i,x,v),f!==null&&(x=Nr(),jo(f,a,v,x),P0(f,i,v))}}function j0(a){var i=a.alternate;return a===Bn||i!==null&&i===Bn}function N0(a,i){ls=Gc=!0;var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}function P0(a,i,f){if((f&4194240)!==0){var v=i.lanes;v&=a.pendingLanes,f|=v,i.lanes=f,Wn(a,f)}}var Qc={readContext:mo,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useInsertionEffect:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useMutableSource:$r,useSyncExternalStore:$r,useId:$r,unstable_isNewReconciler:!1},bE={readContext:mo,useCallback:function(a,i){return Wo().memoizedState=[a,i===void 0?null:i],a},useContext:mo,useEffect:w0,useImperativeHandle:function(a,i,f){return f=f!=null?f.concat([a]):null,Kc(4194308,4,R0.bind(null,i,a),f)},useLayoutEffect:function(a,i){return Kc(4194308,4,a,i)},useInsertionEffect:function(a,i){return Kc(4,2,a,i)},useMemo:function(a,i){var f=Wo();return i=i===void 0?null:i,a=a(),f.memoizedState=[a,i],a},useReducer:function(a,i,f){var v=Wo();return i=f!==void 0?f(i):i,v.memoizedState=v.baseState=i,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:i},v.queue=a,a=a.dispatch=vE.bind(null,Bn,a),[v.memoizedState,a]},useRef:function(a){var i=Wo();return a={current:a},i.memoizedState=a},useState:S0,useDebugValue:sm,useDeferredValue:function(a){return Wo().memoizedState=a},useTransition:function(){var a=S0(!1),i=a[0];return a=hE.bind(null,a[1]),Wo().memoizedState=a,[i,a]},useMutableSource:function(){},useSyncExternalStore:function(a,i,f){var v=Bn,x=Wo();if(zn){if(f===void 0)throw Error(n(407));f=f()}else{if(f=i(),cr===null)throw Error(n(349));(oi&30)!==0||h0(v,i,f)}x.memoizedState=f;var E={value:f,getSnapshot:i};return x.queue=E,w0(y0.bind(null,v,E,a),[a]),v.flags|=2048,us(9,v0.bind(null,v,E,f,i),void 0,null),f},useId:function(){var a=Wo(),i=cr.identifierPrefix;if(zn){var f=ua,v=ca;f=(v&~(1<<32-_n(v)-1)).toString(32)+f,i=":"+i+"R"+f,f=ss++,0<f&&(i+="H"+f.toString(32)),i+=":"}else f=gE++,i=":"+i+"r"+f.toString(32)+":";return a.memoizedState=i},unstable_isNewReconciler:!1},CE={readContext:mo,useCallback:_0,useContext:mo,useEffect:lm,useImperativeHandle:k0,useInsertionEffect:$0,useLayoutEffect:E0,useMemo:O0,useReducer:am,useRef:x0,useState:function(){return am(cs)},useDebugValue:sm,useDeferredValue:function(a){var i=po();return I0(i,rr.memoizedState,a)},useTransition:function(){var a=am(cs)[0],i=po().memoizedState;return[a,i]},useMutableSource:p0,useSyncExternalStore:g0,useId:T0,unstable_isNewReconciler:!1},SE={readContext:mo,useCallback:_0,useContext:mo,useEffect:lm,useImperativeHandle:k0,useInsertionEffect:$0,useLayoutEffect:E0,useMemo:O0,useReducer:im,useRef:x0,useState:function(){return im(cs)},useDebugValue:sm,useDeferredValue:function(a){var i=po();return rr===null?i.memoizedState=a:I0(i,rr.memoizedState,a)},useTransition:function(){var a=im(cs)[0],i=po().memoizedState;return[a,i]},useMutableSource:p0,useSyncExternalStore:g0,useId:T0,unstable_isNewReconciler:!1};function Oo(a,i){if(a&&a.defaultProps){i=U({},i),a=a.defaultProps;for(var f in a)i[f]===void 0&&(i[f]=a[f]);return i}return i}function cm(a,i,f,v){i=a.memoizedState,f=f(v,i),f=f==null?i:U({},i,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var Yc={isMounted:function(a){return(a=a._reactInternals)?zt(a)===a:!1},enqueueSetState:function(a,i,f){a=a._reactInternals;var v=Nr(),x=Pa(a),E=fa(v,x);E.payload=i,f!=null&&(E.callback=f),i=Ia(a,E,x),i!==null&&(jo(i,a,x,v),Vc(i,a,x))},enqueueReplaceState:function(a,i,f){a=a._reactInternals;var v=Nr(),x=Pa(a),E=fa(v,x);E.tag=1,E.payload=i,f!=null&&(E.callback=f),i=Ia(a,E,x),i!==null&&(jo(i,a,x,v),Vc(i,a,x))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var f=Nr(),v=Pa(a),x=fa(f,v);x.tag=2,i!=null&&(x.callback=i),i=Ia(a,x,v),i!==null&&(jo(i,a,v,f),Vc(i,a,v))}};function z0(a,i,f,v,x,E,L){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(v,E,L):i.prototype&&i.prototype.isPureReactComponent?!Ql(f,v)||!Ql(x,E):!0}function M0(a,i,f){var v=!1,x=ka,E=i.contextType;return typeof E=="object"&&E!==null?E=mo(E):(x=Hr(i)?Za:wr.current,v=i.contextTypes,E=(v=v!=null)?Vi(a,x):ka),i=new i(f,E),a.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Yc,a.stateNode=i,i._reactInternals=a,v&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=x,a.__reactInternalMemoizedMaskedChildContext=E),i}function L0(a,i,f,v){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(f,v),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(f,v),i.state!==a&&Yc.enqueueReplaceState(i,i.state,null)}function um(a,i,f,v){var x=a.stateNode;x.props=f,x.state=a.memoizedState,x.refs={},Qf(a);var E=i.contextType;typeof E=="object"&&E!==null?x.context=mo(E):(E=Hr(i)?Za:wr.current,x.context=Vi(a,E)),x.state=a.memoizedState,E=i.getDerivedStateFromProps,typeof E=="function"&&(cm(a,i,E,f),x.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(i=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),i!==x.state&&Yc.enqueueReplaceState(x,x.state,null),Wc(a,f,x,v),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308)}function Yi(a,i){try{var f="",v=i;do f+=te(v),v=v.return;while(v);var x=f}catch(E){x=`
39
+ Error generating stack: `+E.message+`
40
+ `+E.stack}return{value:a,source:i,stack:x,digest:null}}function dm(a,i,f){return{value:a,source:null,stack:f??null,digest:i??null}}function fm(a,i){try{console.error(i.value)}catch(f){setTimeout(function(){throw f})}}var xE=typeof WeakMap=="function"?WeakMap:Map;function B0(a,i,f){f=fa(-1,f),f.tag=3,f.payload={element:null};var v=i.value;return f.callback=function(){ou||(ou=!0,km=v),fm(a,i)},f}function A0(a,i,f){f=fa(-1,f),f.tag=3;var v=a.type.getDerivedStateFromError;if(typeof v=="function"){var x=i.value;f.payload=function(){return v(x)},f.callback=function(){fm(a,i)}}var E=a.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(f.callback=function(){fm(a,i),typeof v!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var L=i.stack;this.componentDidCatch(i.value,{componentStack:L!==null?L:""})}),f}function D0(a,i,f){var v=a.pingCache;if(v===null){v=a.pingCache=new xE;var x=new Set;v.set(i,x)}else x=v.get(i),x===void 0&&(x=new Set,v.set(i,x));x.has(f)||(x.add(f),a=ME.bind(null,a,i,f),i.then(a,a))}function F0(a){do{var i;if((i=a.tag===13)&&(i=a.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return a;a=a.return}while(a!==null);return null}function H0(a,i,f,v,x){return(a.mode&1)===0?(a===i?a.flags|=65536:(a.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(i=fa(-1,1),i.tag=2,Ia(f,i,1))),f.lanes|=1),a):(a.flags|=65536,a.lanes=x,a)}var wE=I.ReactCurrentOwner,Vr=!1;function jr(a,i,f,v){i.child=a===null?s0(i,null,f,v):Gi(i,a.child,f,v)}function V0(a,i,f,v,x){f=f.render;var E=i.ref;return Xi(i,x),v=rm(a,i,f,v,E,x),f=om(),a!==null&&!Vr?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~x,ma(a,i,x)):(zn&&f&&Df(i),i.flags|=1,jr(a,i,v,x),i.child)}function W0(a,i,f,v,x){if(a===null){var E=f.type;return typeof E=="function"&&!Pm(E)&&E.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(i.tag=15,i.type=E,q0(a,i,E,v,x)):(a=uu(f.type,null,v,i,i.mode,x),a.ref=i.ref,a.return=i,i.child=a)}if(E=a.child,(a.lanes&x)===0){var L=E.memoizedProps;if(f=f.compare,f=f!==null?f:Ql,f(L,v)&&a.ref===i.ref)return ma(a,i,x)}return i.flags|=1,a=Ma(E,v),a.ref=i.ref,a.return=i,i.child=a}function q0(a,i,f,v,x){if(a!==null){var E=a.memoizedProps;if(Ql(E,v)&&a.ref===i.ref)if(Vr=!1,i.pendingProps=v=E,(a.lanes&x)!==0)(a.flags&131072)!==0&&(Vr=!0);else return i.lanes=a.lanes,ma(a,i,x)}return mm(a,i,f,v,x)}function U0(a,i,f){var v=i.pendingProps,x=v.children,E=a!==null?a.memoizedState:null;if(v.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},In(Zi,eo),eo|=f;else{if((f&1073741824)===0)return a=E!==null?E.baseLanes|f:f,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:a,cachePool:null,transitions:null},i.updateQueue=null,In(Zi,eo),eo|=a,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},v=E!==null?E.baseLanes:f,In(Zi,eo),eo|=v}else E!==null?(v=E.baseLanes|f,i.memoizedState=null):v=f,In(Zi,eo),eo|=v;return jr(a,i,x,f),i.child}function G0(a,i){var f=i.ref;(a===null&&f!==null||a!==null&&a.ref!==f)&&(i.flags|=512,i.flags|=2097152)}function mm(a,i,f,v,x){var E=Hr(f)?Za:wr.current;return E=Vi(i,E),Xi(i,x),f=rm(a,i,f,v,E,x),v=om(),a!==null&&!Vr?(i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~x,ma(a,i,x)):(zn&&v&&Df(i),i.flags|=1,jr(a,i,f,x),i.child)}function K0(a,i,f,v,x){if(Hr(f)){var E=!0;zc(i)}else E=!1;if(Xi(i,x),i.stateNode===null)Zc(a,i),M0(i,f,v),um(i,f,v,x),v=!0;else if(a===null){var L=i.stateNode,X=i.memoizedProps;L.props=X;var oe=L.context,Ce=f.contextType;typeof Ce=="object"&&Ce!==null?Ce=mo(Ce):(Ce=Hr(f)?Za:wr.current,Ce=Vi(i,Ce));var Me=f.getDerivedStateFromProps,De=typeof Me=="function"||typeof L.getSnapshotBeforeUpdate=="function";De||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(X!==v||oe!==Ce)&&L0(i,L,v,Ce),Oa=!1;var je=i.memoizedState;L.state=je,Wc(i,v,L,x),oe=i.memoizedState,X!==v||je!==oe||Fr.current||Oa?(typeof Me=="function"&&(cm(i,f,Me,v),oe=i.memoizedState),(X=Oa||z0(i,f,X,v,je,oe,Ce))?(De||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(i.flags|=4194308)):(typeof L.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=v,i.memoizedState=oe),L.props=v,L.state=oe,L.context=Ce,v=X):(typeof L.componentDidMount=="function"&&(i.flags|=4194308),v=!1)}else{L=i.stateNode,u0(a,i),X=i.memoizedProps,Ce=i.type===i.elementType?X:Oo(i.type,X),L.props=Ce,De=i.pendingProps,je=L.context,oe=f.contextType,typeof oe=="object"&&oe!==null?oe=mo(oe):(oe=Hr(f)?Za:wr.current,oe=Vi(i,oe));var st=f.getDerivedStateFromProps;(Me=typeof st=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(X!==De||je!==oe)&&L0(i,L,v,oe),Oa=!1,je=i.memoizedState,L.state=je,Wc(i,v,L,x);var yt=i.memoizedState;X!==De||je!==yt||Fr.current||Oa?(typeof st=="function"&&(cm(i,f,st,v),yt=i.memoizedState),(Ce=Oa||z0(i,f,Ce,v,je,yt,oe)||!1)?(Me||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(v,yt,oe),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(v,yt,oe)),typeof L.componentDidUpdate=="function"&&(i.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof L.componentDidUpdate!="function"||X===a.memoizedProps&&je===a.memoizedState||(i.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||X===a.memoizedProps&&je===a.memoizedState||(i.flags|=1024),i.memoizedProps=v,i.memoizedState=yt),L.props=v,L.state=yt,L.context=oe,v=Ce):(typeof L.componentDidUpdate!="function"||X===a.memoizedProps&&je===a.memoizedState||(i.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||X===a.memoizedProps&&je===a.memoizedState||(i.flags|=1024),v=!1)}return pm(a,i,f,v,E,x)}function pm(a,i,f,v,x,E){G0(a,i);var L=(i.flags&128)!==0;if(!v&&!L)return x&&Zv(i,f,!1),ma(a,i,E);v=i.stateNode,wE.current=i;var X=L&&typeof f.getDerivedStateFromError!="function"?null:v.render();return i.flags|=1,a!==null&&L?(i.child=Gi(i,a.child,null,E),i.child=Gi(i,null,X,E)):jr(a,i,X,E),i.memoizedState=v.state,x&&Zv(i,f,!0),i.child}function X0(a){var i=a.stateNode;i.pendingContext?Yv(a,i.pendingContext,i.pendingContext!==i.context):i.context&&Yv(a,i.context,!1),Yf(a,i.containerInfo)}function Q0(a,i,f,v,x){return Ui(),Wf(x),i.flags|=256,jr(a,i,f,v),i.child}var gm={dehydrated:null,treeContext:null,retryLane:0};function hm(a){return{baseLanes:a,cachePool:null,transitions:null}}function Y0(a,i,f){var v=i.pendingProps,x=Ln.current,E=!1,L=(i.flags&128)!==0,X;if((X=L)||(X=a!==null&&a.memoizedState===null?!1:(x&2)!==0),X?(E=!0,i.flags&=-129):(a===null||a.memoizedState!==null)&&(x|=1),In(Ln,x&1),a===null)return Vf(i),a=i.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((i.mode&1)===0?i.lanes=1:a.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(L=v.children,a=v.fallback,E?(v=i.mode,E=i.child,L={mode:"hidden",children:L},(v&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=L):E=du(L,v,0,null),a=ci(a,v,f,null),E.return=i,a.return=i,E.sibling=a,i.child=E,i.child.memoizedState=hm(f),i.memoizedState=gm,a):vm(i,L));if(x=a.memoizedState,x!==null&&(X=x.dehydrated,X!==null))return $E(a,i,L,v,X,x,f);if(E){E=v.fallback,L=i.mode,x=a.child,X=x.sibling;var oe={mode:"hidden",children:v.children};return(L&1)===0&&i.child!==x?(v=i.child,v.childLanes=0,v.pendingProps=oe,i.deletions=null):(v=Ma(x,oe),v.subtreeFlags=x.subtreeFlags&14680064),X!==null?E=Ma(X,E):(E=ci(E,L,f,null),E.flags|=2),E.return=i,v.return=i,v.sibling=E,i.child=v,v=E,E=i.child,L=a.child.memoizedState,L=L===null?hm(f):{baseLanes:L.baseLanes|f,cachePool:null,transitions:L.transitions},E.memoizedState=L,E.childLanes=a.childLanes&~f,i.memoizedState=gm,v}return E=a.child,a=E.sibling,v=Ma(E,{mode:"visible",children:v.children}),(i.mode&1)===0&&(v.lanes=f),v.return=i,v.sibling=null,a!==null&&(f=i.deletions,f===null?(i.deletions=[a],i.flags|=16):f.push(a)),i.child=v,i.memoizedState=null,v}function vm(a,i){return i=du({mode:"visible",children:i},a.mode,0,null),i.return=a,a.child=i}function Jc(a,i,f,v){return v!==null&&Wf(v),Gi(i,a.child,null,f),a=vm(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function $E(a,i,f,v,x,E,L){if(f)return i.flags&256?(i.flags&=-257,v=dm(Error(n(422))),Jc(a,i,L,v)):i.memoizedState!==null?(i.child=a.child,i.flags|=128,null):(E=v.fallback,x=i.mode,v=du({mode:"visible",children:v.children},x,0,null),E=ci(E,x,L,null),E.flags|=2,v.return=i,E.return=i,v.sibling=E,i.child=v,(i.mode&1)!==0&&Gi(i,a.child,null,L),i.child.memoizedState=hm(L),i.memoizedState=gm,E);if((i.mode&1)===0)return Jc(a,i,L,null);if(x.data==="$!"){if(v=x.nextSibling&&x.nextSibling.dataset,v)var X=v.dgst;return v=X,E=Error(n(419)),v=dm(E,v,void 0),Jc(a,i,L,v)}if(X=(L&a.childLanes)!==0,Vr||X){if(v=cr,v!==null){switch(L&-L){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(v.suspendedLanes|L))!==0?0:x,x!==0&&x!==E.retryLane&&(E.retryLane=x,da(a,x),jo(v,a,x,-1))}return Nm(),v=dm(Error(n(421))),Jc(a,i,L,v)}return x.data==="$?"?(i.flags|=128,i.child=a.child,i=LE.bind(null,a),x._reactRetry=i,null):(a=E.treeContext,Zr=Ea(x.nextSibling),Jr=i,zn=!0,_o=null,a!==null&&(uo[fo++]=ca,uo[fo++]=ua,uo[fo++]=ei,ca=a.id,ua=a.overflow,ei=i),i=vm(i,v.children),i.flags|=4096,i)}function J0(a,i,f){a.lanes|=i;var v=a.alternate;v!==null&&(v.lanes|=i),Kf(a.return,i,f)}function ym(a,i,f,v,x){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:v,tail:f,tailMode:x}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=v,E.tail=f,E.tailMode=x)}function Z0(a,i,f){var v=i.pendingProps,x=v.revealOrder,E=v.tail;if(jr(a,i,v.children,f),v=Ln.current,(v&2)!==0)v=v&1|2,i.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&J0(a,f,i);else if(a.tag===19)J0(a,f,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}v&=1}if(In(Ln,v),(i.mode&1)===0)i.memoizedState=null;else switch(x){case"forwards":for(f=i.child,x=null;f!==null;)a=f.alternate,a!==null&&qc(a)===null&&(x=f),f=f.sibling;f=x,f===null?(x=i.child,i.child=null):(x=f.sibling,f.sibling=null),ym(i,!1,x,f,E);break;case"backwards":for(f=null,x=i.child,i.child=null;x!==null;){if(a=x.alternate,a!==null&&qc(a)===null){i.child=x;break}a=x.sibling,x.sibling=f,f=x,x=a}ym(i,!0,f,null,E);break;case"together":ym(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Zc(a,i){(i.mode&1)===0&&a!==null&&(a.alternate=null,i.alternate=null,i.flags|=2)}function ma(a,i,f){if(a!==null&&(i.dependencies=a.dependencies),ai|=i.lanes,(f&i.childLanes)===0)return null;if(a!==null&&i.child!==a.child)throw Error(n(153));if(i.child!==null){for(a=i.child,f=Ma(a,a.pendingProps),i.child=f,f.return=i;a.sibling!==null;)a=a.sibling,f=f.sibling=Ma(a,a.pendingProps),f.return=i;f.sibling=null}return i.child}function EE(a,i,f){switch(i.tag){case 3:X0(i),Ui();break;case 5:m0(i);break;case 1:Hr(i.type)&&zc(i);break;case 4:Yf(i,i.stateNode.containerInfo);break;case 10:var v=i.type._context,x=i.memoizedProps.value;In(Fc,v._currentValue),v._currentValue=x;break;case 13:if(v=i.memoizedState,v!==null)return v.dehydrated!==null?(In(Ln,Ln.current&1),i.flags|=128,null):(f&i.child.childLanes)!==0?Y0(a,i,f):(In(Ln,Ln.current&1),a=ma(a,i,f),a!==null?a.sibling:null);In(Ln,Ln.current&1);break;case 19:if(v=(f&i.childLanes)!==0,(a.flags&128)!==0){if(v)return Z0(a,i,f);i.flags|=128}if(x=i.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),In(Ln,Ln.current),v)break;return null;case 22:case 23:return i.lanes=0,U0(a,i,f)}return ma(a,i,f)}var ey,bm,ty,ny;ey=function(a,i){for(var f=i.child;f!==null;){if(f.tag===5||f.tag===6)a.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===i)break;for(;f.sibling===null;){if(f.return===null||f.return===i)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},bm=function(){},ty=function(a,i,f,v){var x=a.memoizedProps;if(x!==v){a=i.stateNode,ri(Vo.current);var E=null;switch(f){case"input":x=be(a,x),v=be(a,v),E=[];break;case"select":x=U({},x,{value:void 0}),v=U({},v,{value:void 0}),E=[];break;case"textarea":x=Ee(a,x),v=Ee(a,v),E=[];break;default:typeof x.onClick!="function"&&typeof v.onClick=="function"&&(a.onclick=jc)}Ne(f,v);var L;f=null;for(Ce in x)if(!v.hasOwnProperty(Ce)&&x.hasOwnProperty(Ce)&&x[Ce]!=null)if(Ce==="style"){var X=x[Ce];for(L in X)X.hasOwnProperty(L)&&(f||(f={}),f[L]="")}else Ce!=="dangerouslySetInnerHTML"&&Ce!=="children"&&Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&Ce!=="autoFocus"&&(o.hasOwnProperty(Ce)?E||(E=[]):(E=E||[]).push(Ce,null));for(Ce in v){var oe=v[Ce];if(X=x!=null?x[Ce]:void 0,v.hasOwnProperty(Ce)&&oe!==X&&(oe!=null||X!=null))if(Ce==="style")if(X){for(L in X)!X.hasOwnProperty(L)||oe&&oe.hasOwnProperty(L)||(f||(f={}),f[L]="");for(L in oe)oe.hasOwnProperty(L)&&X[L]!==oe[L]&&(f||(f={}),f[L]=oe[L])}else f||(E||(E=[]),E.push(Ce,f)),f=oe;else Ce==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,X=X?X.__html:void 0,oe!=null&&X!==oe&&(E=E||[]).push(Ce,oe)):Ce==="children"?typeof oe!="string"&&typeof oe!="number"||(E=E||[]).push(Ce,""+oe):Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&(o.hasOwnProperty(Ce)?(oe!=null&&Ce==="onScroll"&&jn("scroll",a),E||X===oe||(E=[])):(E=E||[]).push(Ce,oe))}f&&(E=E||[]).push("style",f);var Ce=E;(i.updateQueue=Ce)&&(i.flags|=4)}},ny=function(a,i,f,v){f!==v&&(i.flags|=4)};function ds(a,i){if(!zn)switch(a.tailMode){case"hidden":i=a.tail;for(var f=null;i!==null;)i.alternate!==null&&(f=i),i=i.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var v=null;f!==null;)f.alternate!==null&&(v=f),f=f.sibling;v===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:v.sibling=null}}function Er(a){var i=a.alternate!==null&&a.alternate.child===a.child,f=0,v=0;if(i)for(var x=a.child;x!==null;)f|=x.lanes|x.childLanes,v|=x.subtreeFlags&14680064,v|=x.flags&14680064,x.return=a,x=x.sibling;else for(x=a.child;x!==null;)f|=x.lanes|x.childLanes,v|=x.subtreeFlags,v|=x.flags,x.return=a,x=x.sibling;return a.subtreeFlags|=v,a.childLanes=f,i}function RE(a,i,f){var v=i.pendingProps;switch(Ff(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Er(i),null;case 1:return Hr(i.type)&&Pc(),Er(i),null;case 3:return v=i.stateNode,Qi(),Nn(Fr),Nn(wr),em(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(a===null||a.child===null)&&(Ac(i)?i.flags|=4:a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,_o!==null&&(Im(_o),_o=null))),bm(a,i),Er(i),null;case 5:Jf(i);var x=ri(is.current);if(f=i.type,a!==null&&i.stateNode!=null)ty(a,i,f,v,x),a.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!v){if(i.stateNode===null)throw Error(n(166));return Er(i),null}if(a=ri(Vo.current),Ac(i)){v=i.stateNode,f=i.type;var E=i.memoizedProps;switch(v[Ho]=i,v[ts]=E,a=(i.mode&1)!==0,f){case"dialog":jn("cancel",v),jn("close",v);break;case"iframe":case"object":case"embed":jn("load",v);break;case"video":case"audio":for(x=0;x<Jl.length;x++)jn(Jl[x],v);break;case"source":jn("error",v);break;case"img":case"image":case"link":jn("error",v),jn("load",v);break;case"details":jn("toggle",v);break;case"input":de(v,E),jn("invalid",v);break;case"select":v._wrapperState={wasMultiple:!!E.multiple},jn("invalid",v);break;case"textarea":ze(v,E),jn("invalid",v)}Ne(f,E),x=null;for(var L in E)if(E.hasOwnProperty(L)){var X=E[L];L==="children"?typeof X=="string"?v.textContent!==X&&(E.suppressHydrationWarning!==!0&&Tc(v.textContent,X,a),x=["children",X]):typeof X=="number"&&v.textContent!==""+X&&(E.suppressHydrationWarning!==!0&&Tc(v.textContent,X,a),x=["children",""+X]):o.hasOwnProperty(L)&&X!=null&&L==="onScroll"&&jn("scroll",v)}switch(f){case"input":le(v),xe(v,E,!0);break;case"textarea":le(v),Qe(v);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(v.onclick=jc)}v=x,i.updateQueue=v,v!==null&&(i.flags|=4)}else{L=x.nodeType===9?x:x.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=ot(f)),a==="http://www.w3.org/1999/xhtml"?f==="script"?(a=L.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof v.is=="string"?a=L.createElement(f,{is:v.is}):(a=L.createElement(f),f==="select"&&(L=a,v.multiple?L.multiple=!0:v.size&&(L.size=v.size))):a=L.createElementNS(a,f),a[Ho]=i,a[ts]=v,ey(a,i,!1,!1),i.stateNode=a;e:{switch(L=Ve(f,v),f){case"dialog":jn("cancel",a),jn("close",a),x=v;break;case"iframe":case"object":case"embed":jn("load",a),x=v;break;case"video":case"audio":for(x=0;x<Jl.length;x++)jn(Jl[x],a);x=v;break;case"source":jn("error",a),x=v;break;case"img":case"image":case"link":jn("error",a),jn("load",a),x=v;break;case"details":jn("toggle",a),x=v;break;case"input":de(a,v),x=be(a,v),jn("invalid",a);break;case"option":x=v;break;case"select":a._wrapperState={wasMultiple:!!v.multiple},x=U({},v,{value:void 0}),jn("invalid",a);break;case"textarea":ze(a,v),x=Ee(a,v),jn("invalid",a);break;default:x=v}Ne(f,x),X=x;for(E in X)if(X.hasOwnProperty(E)){var oe=X[E];E==="style"?Le(a,oe):E==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,oe!=null&&Xe(a,oe)):E==="children"?typeof oe=="string"?(f!=="textarea"||oe!=="")&&ct(a,oe):typeof oe=="number"&&ct(a,""+oe):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?oe!=null&&E==="onScroll"&&jn("scroll",a):oe!=null&&R(a,E,oe,L))}switch(f){case"input":le(a),xe(a,v,!1);break;case"textarea":le(a),Qe(a);break;case"option":v.value!=null&&a.setAttribute("value",""+me(v.value));break;case"select":a.multiple=!!v.multiple,E=v.value,E!=null?$e(a,!!v.multiple,E,!1):v.defaultValue!=null&&$e(a,!!v.multiple,v.defaultValue,!0);break;default:typeof x.onClick=="function"&&(a.onclick=jc)}switch(f){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}}v&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Er(i),null;case 6:if(a&&i.stateNode!=null)ny(a,i,a.memoizedProps,v);else{if(typeof v!="string"&&i.stateNode===null)throw Error(n(166));if(f=ri(is.current),ri(Vo.current),Ac(i)){if(v=i.stateNode,f=i.memoizedProps,v[Ho]=i,(E=v.nodeValue!==f)&&(a=Jr,a!==null))switch(a.tag){case 3:Tc(v.nodeValue,f,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Tc(v.nodeValue,f,(a.mode&1)!==0)}E&&(i.flags|=4)}else v=(f.nodeType===9?f:f.ownerDocument).createTextNode(v),v[Ho]=i,i.stateNode=v}return Er(i),null;case 13:if(Nn(Ln),v=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(zn&&Zr!==null&&(i.mode&1)!==0&&(i.flags&128)===0)a0(),Ui(),i.flags|=98560,E=!1;else if(E=Ac(i),v!==null&&v.dehydrated!==null){if(a===null){if(!E)throw Error(n(318));if(E=i.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[Ho]=i}else Ui(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Er(i),E=!1}else _o!==null&&(Im(_o),_o=null),E=!0;if(!E)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=f,i):(v=v!==null,v!==(a!==null&&a.memoizedState!==null)&&v&&(i.child.flags|=8192,(i.mode&1)!==0&&(a===null||(Ln.current&1)!==0?or===0&&(or=3):Nm())),i.updateQueue!==null&&(i.flags|=4),Er(i),null);case 4:return Qi(),bm(a,i),a===null&&Zl(i.stateNode.containerInfo),Er(i),null;case 10:return Gf(i.type._context),Er(i),null;case 17:return Hr(i.type)&&Pc(),Er(i),null;case 19:if(Nn(Ln),E=i.memoizedState,E===null)return Er(i),null;if(v=(i.flags&128)!==0,L=E.rendering,L===null)if(v)ds(E,!1);else{if(or!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(L=qc(a),L!==null){for(i.flags|=128,ds(E,!1),v=L.updateQueue,v!==null&&(i.updateQueue=v,i.flags|=4),i.subtreeFlags=0,v=f,f=i.child;f!==null;)E=f,a=v,E.flags&=14680066,L=E.alternate,L===null?(E.childLanes=0,E.lanes=a,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=L.childLanes,E.lanes=L.lanes,E.child=L.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=L.memoizedProps,E.memoizedState=L.memoizedState,E.updateQueue=L.updateQueue,E.type=L.type,a=L.dependencies,E.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),f=f.sibling;return In(Ln,Ln.current&1|2),i.child}a=a.sibling}E.tail!==null&&ft()>el&&(i.flags|=128,v=!0,ds(E,!1),i.lanes=4194304)}else{if(!v)if(a=qc(L),a!==null){if(i.flags|=128,v=!0,f=a.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),ds(E,!0),E.tail===null&&E.tailMode==="hidden"&&!L.alternate&&!zn)return Er(i),null}else 2*ft()-E.renderingStartTime>el&&f!==1073741824&&(i.flags|=128,v=!0,ds(E,!1),i.lanes=4194304);E.isBackwards?(L.sibling=i.child,i.child=L):(f=E.last,f!==null?f.sibling=L:i.child=L,E.last=L)}return E.tail!==null?(i=E.tail,E.rendering=i,E.tail=i.sibling,E.renderingStartTime=ft(),i.sibling=null,f=Ln.current,In(Ln,v?f&1|2:f&1),i):(Er(i),null);case 22:case 23:return jm(),v=i.memoizedState!==null,a!==null&&a.memoizedState!==null!==v&&(i.flags|=8192),v&&(i.mode&1)!==0?(eo&1073741824)!==0&&(Er(i),i.subtreeFlags&6&&(i.flags|=8192)):Er(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function kE(a,i){switch(Ff(i),i.tag){case 1:return Hr(i.type)&&Pc(),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Qi(),Nn(Fr),Nn(wr),em(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 5:return Jf(i),null;case 13:if(Nn(Ln),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ui()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return Nn(Ln),null;case 4:return Qi(),null;case 10:return Gf(i.type._context),null;case 22:case 23:return jm(),null;case 24:return null;default:return null}}var eu=!1,Rr=!1,_E=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Ji(a,i){var f=a.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(v){Hn(a,i,v)}else f.current=null}function Cm(a,i,f){try{f()}catch(v){Hn(a,i,v)}}var ry=!1;function OE(a,i){if(jf=Cc,a=zv(),$f(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var v=f.getSelection&&f.getSelection();if(v&&v.rangeCount!==0){f=v.anchorNode;var x=v.anchorOffset,E=v.focusNode;v=v.focusOffset;try{f.nodeType,E.nodeType}catch{f=null;break e}var L=0,X=-1,oe=-1,Ce=0,Me=0,De=a,je=null;t:for(;;){for(var st;De!==f||x!==0&&De.nodeType!==3||(X=L+x),De!==E||v!==0&&De.nodeType!==3||(oe=L+v),De.nodeType===3&&(L+=De.nodeValue.length),(st=De.firstChild)!==null;)je=De,De=st;for(;;){if(De===a)break t;if(je===f&&++Ce===x&&(X=L),je===E&&++Me===v&&(oe=L),(st=De.nextSibling)!==null)break;De=je,je=De.parentNode}De=st}f=X===-1||oe===-1?null:{start:X,end:oe}}else f=null}f=f||{start:0,end:0}}else f=null;for(Nf={focusedElem:a,selectionRange:f},Cc=!1,gt=i;gt!==null;)if(i=gt,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,gt=a;else for(;gt!==null;){i=gt;try{var yt=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(yt!==null){var bt=yt.memoizedProps,qn=yt.memoizedState,pe=i.stateNode,ae=pe.getSnapshotBeforeUpdate(i.elementType===i.type?bt:Oo(i.type,bt),qn);pe.__reactInternalSnapshotBeforeUpdate=ae}break;case 3:var he=i.stateNode.containerInfo;he.nodeType===1?he.textContent="":he.nodeType===9&&he.documentElement&&he.removeChild(he.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(He){Hn(i,i.return,He)}if(a=i.sibling,a!==null){a.return=i.return,gt=a;break}gt=i.return}return yt=ry,ry=!1,yt}function fs(a,i,f){var v=i.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var x=v=v.next;do{if((x.tag&a)===a){var E=x.destroy;x.destroy=void 0,E!==void 0&&Cm(i,f,E)}x=x.next}while(x!==v)}}function tu(a,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var f=i=i.next;do{if((f.tag&a)===a){var v=f.create;f.destroy=v()}f=f.next}while(f!==i)}}function Sm(a){var i=a.ref;if(i!==null){var f=a.stateNode;switch(a.tag){case 5:a=f;break;default:a=f}typeof i=="function"?i(a):i.current=a}}function oy(a){var i=a.alternate;i!==null&&(a.alternate=null,oy(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&(delete i[Ho],delete i[ts],delete i[Lf],delete i[dE],delete i[fE])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function ay(a){return a.tag===5||a.tag===3||a.tag===4}function iy(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||ay(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function xm(a,i,f){var v=a.tag;if(v===5||v===6)a=a.stateNode,i?f.nodeType===8?f.parentNode.insertBefore(a,i):f.insertBefore(a,i):(f.nodeType===8?(i=f.parentNode,i.insertBefore(a,f)):(i=f,i.appendChild(a)),f=f._reactRootContainer,f!=null||i.onclick!==null||(i.onclick=jc));else if(v!==4&&(a=a.child,a!==null))for(xm(a,i,f),a=a.sibling;a!==null;)xm(a,i,f),a=a.sibling}function wm(a,i,f){var v=a.tag;if(v===5||v===6)a=a.stateNode,i?f.insertBefore(a,i):f.appendChild(a);else if(v!==4&&(a=a.child,a!==null))for(wm(a,i,f),a=a.sibling;a!==null;)wm(a,i,f),a=a.sibling}var gr=null,Io=!1;function Ta(a,i,f){for(f=f.child;f!==null;)ly(a,i,f),f=f.sibling}function ly(a,i,f){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(_t,f)}catch{}switch(f.tag){case 5:Rr||Ji(f,i);case 6:var v=gr,x=Io;gr=null,Ta(a,i,f),gr=v,Io=x,gr!==null&&(Io?(a=gr,f=f.stateNode,a.nodeType===8?a.parentNode.removeChild(f):a.removeChild(f)):gr.removeChild(f.stateNode));break;case 18:gr!==null&&(Io?(a=gr,f=f.stateNode,a.nodeType===8?Mf(a.parentNode,f):a.nodeType===1&&Mf(a,f),xa(a)):Mf(gr,f.stateNode));break;case 4:v=gr,x=Io,gr=f.stateNode.containerInfo,Io=!0,Ta(a,i,f),gr=v,Io=x;break;case 0:case 11:case 14:case 15:if(!Rr&&(v=f.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){x=v=v.next;do{var E=x,L=E.destroy;E=E.tag,L!==void 0&&((E&2)!==0||(E&4)!==0)&&Cm(f,i,L),x=x.next}while(x!==v)}Ta(a,i,f);break;case 1:if(!Rr&&(Ji(f,i),v=f.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=f.memoizedProps,v.state=f.memoizedState,v.componentWillUnmount()}catch(X){Hn(f,i,X)}Ta(a,i,f);break;case 21:Ta(a,i,f);break;case 22:f.mode&1?(Rr=(v=Rr)||f.memoizedState!==null,Ta(a,i,f),Rr=v):Ta(a,i,f);break;default:Ta(a,i,f)}}function sy(a){var i=a.updateQueue;if(i!==null){a.updateQueue=null;var f=a.stateNode;f===null&&(f=a.stateNode=new _E),i.forEach(function(v){var x=BE.bind(null,a,v);f.has(v)||(f.add(v),v.then(x,x))})}}function To(a,i){var f=i.deletions;if(f!==null)for(var v=0;v<f.length;v++){var x=f[v];try{var E=a,L=i,X=L;e:for(;X!==null;){switch(X.tag){case 5:gr=X.stateNode,Io=!1;break e;case 3:gr=X.stateNode.containerInfo,Io=!0;break e;case 4:gr=X.stateNode.containerInfo,Io=!0;break e}X=X.return}if(gr===null)throw Error(n(160));ly(E,L,x),gr=null,Io=!1;var oe=x.alternate;oe!==null&&(oe.return=null),x.return=null}catch(Ce){Hn(x,i,Ce)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)cy(i,a),i=i.sibling}function cy(a,i){var f=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(To(i,a),qo(a),v&4){try{fs(3,a,a.return),tu(3,a)}catch(bt){Hn(a,a.return,bt)}try{fs(5,a,a.return)}catch(bt){Hn(a,a.return,bt)}}break;case 1:To(i,a),qo(a),v&512&&f!==null&&Ji(f,f.return);break;case 5:if(To(i,a),qo(a),v&512&&f!==null&&Ji(f,f.return),a.flags&32){var x=a.stateNode;try{ct(x,"")}catch(bt){Hn(a,a.return,bt)}}if(v&4&&(x=a.stateNode,x!=null)){var E=a.memoizedProps,L=f!==null?f.memoizedProps:E,X=a.type,oe=a.updateQueue;if(a.updateQueue=null,oe!==null)try{X==="input"&&E.type==="radio"&&E.name!=null&&se(x,E),Ve(X,L);var Ce=Ve(X,E);for(L=0;L<oe.length;L+=2){var Me=oe[L],De=oe[L+1];Me==="style"?Le(x,De):Me==="dangerouslySetInnerHTML"?Xe(x,De):Me==="children"?ct(x,De):R(x,Me,De,Ce)}switch(X){case"input":ye(x,E);break;case"textarea":Ie(x,E);break;case"select":var je=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!E.multiple;var st=E.value;st!=null?$e(x,!!E.multiple,st,!1):je!==!!E.multiple&&(E.defaultValue!=null?$e(x,!!E.multiple,E.defaultValue,!0):$e(x,!!E.multiple,E.multiple?[]:"",!1))}x[ts]=E}catch(bt){Hn(a,a.return,bt)}}break;case 6:if(To(i,a),qo(a),v&4){if(a.stateNode===null)throw Error(n(162));x=a.stateNode,E=a.memoizedProps;try{x.nodeValue=E}catch(bt){Hn(a,a.return,bt)}}break;case 3:if(To(i,a),qo(a),v&4&&f!==null&&f.memoizedState.isDehydrated)try{xa(i.containerInfo)}catch(bt){Hn(a,a.return,bt)}break;case 4:To(i,a),qo(a);break;case 13:To(i,a),qo(a),x=a.child,x.flags&8192&&(E=x.memoizedState!==null,x.stateNode.isHidden=E,!E||x.alternate!==null&&x.alternate.memoizedState!==null||(Rm=ft())),v&4&&sy(a);break;case 22:if(Me=f!==null&&f.memoizedState!==null,a.mode&1?(Rr=(Ce=Rr)||Me,To(i,a),Rr=Ce):To(i,a),qo(a),v&8192){if(Ce=a.memoizedState!==null,(a.stateNode.isHidden=Ce)&&!Me&&(a.mode&1)!==0)for(gt=a,Me=a.child;Me!==null;){for(De=gt=Me;gt!==null;){switch(je=gt,st=je.child,je.tag){case 0:case 11:case 14:case 15:fs(4,je,je.return);break;case 1:Ji(je,je.return);var yt=je.stateNode;if(typeof yt.componentWillUnmount=="function"){v=je,f=je.return;try{i=v,yt.props=i.memoizedProps,yt.state=i.memoizedState,yt.componentWillUnmount()}catch(bt){Hn(v,f,bt)}}break;case 5:Ji(je,je.return);break;case 22:if(je.memoizedState!==null){fy(De);continue}}st!==null?(st.return=je,gt=st):fy(De)}Me=Me.sibling}e:for(Me=null,De=a;;){if(De.tag===5){if(Me===null){Me=De;try{x=De.stateNode,Ce?(E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(X=De.stateNode,oe=De.memoizedProps.style,L=oe!=null&&oe.hasOwnProperty("display")?oe.display:null,X.style.display=Ze("display",L))}catch(bt){Hn(a,a.return,bt)}}}else if(De.tag===6){if(Me===null)try{De.stateNode.nodeValue=Ce?"":De.memoizedProps}catch(bt){Hn(a,a.return,bt)}}else if((De.tag!==22&&De.tag!==23||De.memoizedState===null||De===a)&&De.child!==null){De.child.return=De,De=De.child;continue}if(De===a)break e;for(;De.sibling===null;){if(De.return===null||De.return===a)break e;Me===De&&(Me=null),De=De.return}Me===De&&(Me=null),De.sibling.return=De.return,De=De.sibling}}break;case 19:To(i,a),qo(a),v&4&&sy(a);break;case 21:break;default:To(i,a),qo(a)}}function qo(a){var i=a.flags;if(i&2){try{e:{for(var f=a.return;f!==null;){if(ay(f)){var v=f;break e}f=f.return}throw Error(n(160))}switch(v.tag){case 5:var x=v.stateNode;v.flags&32&&(ct(x,""),v.flags&=-33);var E=iy(a);wm(a,E,x);break;case 3:case 4:var L=v.stateNode.containerInfo,X=iy(a);xm(a,X,L);break;default:throw Error(n(161))}}catch(oe){Hn(a,a.return,oe)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function IE(a,i,f){gt=a,uy(a)}function uy(a,i,f){for(var v=(a.mode&1)!==0;gt!==null;){var x=gt,E=x.child;if(x.tag===22&&v){var L=x.memoizedState!==null||eu;if(!L){var X=x.alternate,oe=X!==null&&X.memoizedState!==null||Rr;X=eu;var Ce=Rr;if(eu=L,(Rr=oe)&&!Ce)for(gt=x;gt!==null;)L=gt,oe=L.child,L.tag===22&&L.memoizedState!==null?my(x):oe!==null?(oe.return=L,gt=oe):my(x);for(;E!==null;)gt=E,uy(E),E=E.sibling;gt=x,eu=X,Rr=Ce}dy(a)}else(x.subtreeFlags&8772)!==0&&E!==null?(E.return=x,gt=E):dy(a)}}function dy(a){for(;gt!==null;){var i=gt;if((i.flags&8772)!==0){var f=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Rr||tu(5,i);break;case 1:var v=i.stateNode;if(i.flags&4&&!Rr)if(f===null)v.componentDidMount();else{var x=i.elementType===i.type?f.memoizedProps:Oo(i.type,f.memoizedProps);v.componentDidUpdate(x,f.memoizedState,v.__reactInternalSnapshotBeforeUpdate)}var E=i.updateQueue;E!==null&&f0(i,E,v);break;case 3:var L=i.updateQueue;if(L!==null){if(f=null,i.child!==null)switch(i.child.tag){case 5:f=i.child.stateNode;break;case 1:f=i.child.stateNode}f0(i,L,f)}break;case 5:var X=i.stateNode;if(f===null&&i.flags&4){f=X;var oe=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":oe.autoFocus&&f.focus();break;case"img":oe.src&&(f.src=oe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var Ce=i.alternate;if(Ce!==null){var Me=Ce.memoizedState;if(Me!==null){var De=Me.dehydrated;De!==null&&xa(De)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Rr||i.flags&512&&Sm(i)}catch(je){Hn(i,i.return,je)}}if(i===a){gt=null;break}if(f=i.sibling,f!==null){f.return=i.return,gt=f;break}gt=i.return}}function fy(a){for(;gt!==null;){var i=gt;if(i===a){gt=null;break}var f=i.sibling;if(f!==null){f.return=i.return,gt=f;break}gt=i.return}}function my(a){for(;gt!==null;){var i=gt;try{switch(i.tag){case 0:case 11:case 15:var f=i.return;try{tu(4,i)}catch(oe){Hn(i,f,oe)}break;case 1:var v=i.stateNode;if(typeof v.componentDidMount=="function"){var x=i.return;try{v.componentDidMount()}catch(oe){Hn(i,x,oe)}}var E=i.return;try{Sm(i)}catch(oe){Hn(i,E,oe)}break;case 5:var L=i.return;try{Sm(i)}catch(oe){Hn(i,L,oe)}}}catch(oe){Hn(i,i.return,oe)}if(i===a){gt=null;break}var X=i.sibling;if(X!==null){X.return=i.return,gt=X;break}gt=i.return}}var TE=Math.ceil,nu=I.ReactCurrentDispatcher,$m=I.ReactCurrentOwner,go=I.ReactCurrentBatchConfig,cn=0,cr=null,Xn=null,hr=0,eo=0,Zi=Ra(0),or=0,ms=null,ai=0,ru=0,Em=0,ps=null,Wr=null,Rm=0,el=1/0,pa=null,ou=!1,km=null,ja=null,au=!1,Na=null,iu=0,gs=0,_m=null,lu=-1,su=0;function Nr(){return(cn&6)!==0?ft():lu!==-1?lu:lu=ft()}function Pa(a){return(a.mode&1)===0?1:(cn&2)!==0&&hr!==0?hr&-hr:pE.transition!==null?(su===0&&(su=rn()),su):(a=Dt,a!==0||(a=window.event,a=a===void 0?16:gv(a.type)),a)}function jo(a,i,f,v){if(50<gs)throw gs=0,_m=null,Error(n(185));hn(a,f,v),((cn&2)===0||a!==cr)&&(a===cr&&((cn&2)===0&&(ru|=f),or===4&&za(a,hr)),qr(a,v),f===1&&cn===0&&(i.mode&1)===0&&(el=ft()+500,Mc&&_a()))}function qr(a,i){var f=a.callbackNode;rt(a,i);var v=nn(a,a===cr?hr:0);if(v===0)f!==null&&Ae(f),a.callbackNode=null,a.callbackPriority=0;else if(i=v&-v,a.callbackPriority!==i){if(f!=null&&Ae(f),i===1)a.tag===0?mE(gy.bind(null,a)):e0(gy.bind(null,a)),cE(function(){(cn&6)===0&&_a()}),f=null;else{switch(nr(v)){case 1:f=Ye;break;case 4:f=$t;break;case 16:f=Vt;break;case 536870912:f=mt;break;default:f=Vt}f=wy(f,py.bind(null,a))}a.callbackPriority=i,a.callbackNode=f}}function py(a,i){if(lu=-1,su=0,(cn&6)!==0)throw Error(n(327));var f=a.callbackNode;if(tl()&&a.callbackNode!==f)return null;var v=nn(a,a===cr?hr:0);if(v===0)return null;if((v&30)!==0||(v&a.expiredLanes)!==0||i)i=cu(a,v);else{i=v;var x=cn;cn|=2;var E=vy();(cr!==a||hr!==i)&&(pa=null,el=ft()+500,li(a,i));do try{PE();break}catch(X){hy(a,X)}while(!0);Uf(),nu.current=E,cn=x,Xn!==null?i=0:(cr=null,hr=0,i=or)}if(i!==0){if(i===2&&(x=Zt(a),x!==0&&(v=x,i=Om(a,x))),i===1)throw f=ms,li(a,0),za(a,v),qr(a,ft()),f;if(i===6)za(a,v);else{if(x=a.current.alternate,(v&30)===0&&!jE(x)&&(i=cu(a,v),i===2&&(E=Zt(a),E!==0&&(v=E,i=Om(a,E))),i===1))throw f=ms,li(a,0),za(a,v),qr(a,ft()),f;switch(a.finishedWork=x,a.finishedLanes=v,i){case 0:case 1:throw Error(n(345));case 2:si(a,Wr,pa);break;case 3:if(za(a,v),(v&130023424)===v&&(i=Rm+500-ft(),10<i)){if(nn(a,0)!==0)break;if(x=a.suspendedLanes,(x&v)!==v){Nr(),a.pingedLanes|=a.suspendedLanes&x;break}a.timeoutHandle=zf(si.bind(null,a,Wr,pa),i);break}si(a,Wr,pa);break;case 4:if(za(a,v),(v&4194240)===v)break;for(i=a.eventTimes,x=-1;0<v;){var L=31-_n(v);E=1<<L,L=i[L],L>x&&(x=L),v&=~E}if(v=x,v=ft()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*TE(v/1960))-v,10<v){a.timeoutHandle=zf(si.bind(null,a,Wr,pa),v);break}si(a,Wr,pa);break;case 5:si(a,Wr,pa);break;default:throw Error(n(329))}}}return qr(a,ft()),a.callbackNode===f?py.bind(null,a):null}function Om(a,i){var f=ps;return a.current.memoizedState.isDehydrated&&(li(a,i).flags|=256),a=cu(a,i),a!==2&&(i=Wr,Wr=f,i!==null&&Im(i)),a}function Im(a){Wr===null?Wr=a:Wr.push.apply(Wr,a)}function jE(a){for(var i=a;;){if(i.flags&16384){var f=i.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var v=0;v<f.length;v++){var x=f[v],E=x.getSnapshot;x=x.value;try{if(!ko(E(),x))return!1}catch{return!1}}}if(f=i.child,i.subtreeFlags&16384&&f!==null)f.return=i,i=f;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function za(a,i){for(i&=~Em,i&=~ru,a.suspendedLanes|=i,a.pingedLanes&=~i,a=a.expirationTimes;0<i;){var f=31-_n(i),v=1<<f;a[f]=-1,i&=~v}}function gy(a){if((cn&6)!==0)throw Error(n(327));tl();var i=nn(a,0);if((i&1)===0)return qr(a,ft()),null;var f=cu(a,i);if(a.tag!==0&&f===2){var v=Zt(a);v!==0&&(i=v,f=Om(a,v))}if(f===1)throw f=ms,li(a,0),za(a,i),qr(a,ft()),f;if(f===6)throw Error(n(345));return a.finishedWork=a.current.alternate,a.finishedLanes=i,si(a,Wr,pa),qr(a,ft()),null}function Tm(a,i){var f=cn;cn|=1;try{return a(i)}finally{cn=f,cn===0&&(el=ft()+500,Mc&&_a())}}function ii(a){Na!==null&&Na.tag===0&&(cn&6)===0&&tl();var i=cn;cn|=1;var f=go.transition,v=Dt;try{if(go.transition=null,Dt=1,a)return a()}finally{Dt=v,go.transition=f,cn=i,(cn&6)===0&&_a()}}function jm(){eo=Zi.current,Nn(Zi)}function li(a,i){a.finishedWork=null,a.finishedLanes=0;var f=a.timeoutHandle;if(f!==-1&&(a.timeoutHandle=-1,sE(f)),Xn!==null)for(f=Xn.return;f!==null;){var v=f;switch(Ff(v),v.tag){case 1:v=v.type.childContextTypes,v!=null&&Pc();break;case 3:Qi(),Nn(Fr),Nn(wr),em();break;case 5:Jf(v);break;case 4:Qi();break;case 13:Nn(Ln);break;case 19:Nn(Ln);break;case 10:Gf(v.type._context);break;case 22:case 23:jm()}f=f.return}if(cr=a,Xn=a=Ma(a.current,null),hr=eo=i,or=0,ms=null,Em=ru=ai=0,Wr=ps=null,ni!==null){for(i=0;i<ni.length;i++)if(f=ni[i],v=f.interleaved,v!==null){f.interleaved=null;var x=v.next,E=f.pending;if(E!==null){var L=E.next;E.next=x,v.next=L}f.pending=v}ni=null}return a}function hy(a,i){do{var f=Xn;try{if(Uf(),Uc.current=Qc,Gc){for(var v=Bn.memoizedState;v!==null;){var x=v.queue;x!==null&&(x.pending=null),v=v.next}Gc=!1}if(oi=0,sr=rr=Bn=null,ls=!1,ss=0,$m.current=null,f===null||f.return===null){or=1,ms=i,Xn=null;break}e:{var E=a,L=f.return,X=f,oe=i;if(i=hr,X.flags|=32768,oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var Ce=oe,Me=X,De=Me.tag;if((Me.mode&1)===0&&(De===0||De===11||De===15)){var je=Me.alternate;je?(Me.updateQueue=je.updateQueue,Me.memoizedState=je.memoizedState,Me.lanes=je.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var st=F0(L);if(st!==null){st.flags&=-257,H0(st,L,X,E,i),st.mode&1&&D0(E,Ce,i),i=st,oe=Ce;var yt=i.updateQueue;if(yt===null){var bt=new Set;bt.add(oe),i.updateQueue=bt}else yt.add(oe);break e}else{if((i&1)===0){D0(E,Ce,i),Nm();break e}oe=Error(n(426))}}else if(zn&&X.mode&1){var qn=F0(L);if(qn!==null){(qn.flags&65536)===0&&(qn.flags|=256),H0(qn,L,X,E,i),Wf(Yi(oe,X));break e}}E=oe=Yi(oe,X),or!==4&&(or=2),ps===null?ps=[E]:ps.push(E),E=L;do{switch(E.tag){case 3:E.flags|=65536,i&=-i,E.lanes|=i;var pe=B0(E,oe,i);d0(E,pe);break e;case 1:X=oe;var ae=E.type,he=E.stateNode;if((E.flags&128)===0&&(typeof ae.getDerivedStateFromError=="function"||he!==null&&typeof he.componentDidCatch=="function"&&(ja===null||!ja.has(he)))){E.flags|=65536,i&=-i,E.lanes|=i;var He=A0(E,X,i);d0(E,He);break e}}E=E.return}while(E!==null)}by(f)}catch(Ct){i=Ct,Xn===f&&f!==null&&(Xn=f=f.return);continue}break}while(!0)}function vy(){var a=nu.current;return nu.current=Qc,a===null?Qc:a}function Nm(){(or===0||or===3||or===2)&&(or=4),cr===null||(ai&268435455)===0&&(ru&268435455)===0||za(cr,hr)}function cu(a,i){var f=cn;cn|=2;var v=vy();(cr!==a||hr!==i)&&(pa=null,li(a,i));do try{NE();break}catch(x){hy(a,x)}while(!0);if(Uf(),cn=f,nu.current=v,Xn!==null)throw Error(n(261));return cr=null,hr=0,or}function NE(){for(;Xn!==null;)yy(Xn)}function PE(){for(;Xn!==null&&!Ke();)yy(Xn)}function yy(a){var i=xy(a.alternate,a,eo);a.memoizedProps=a.pendingProps,i===null?by(a):Xn=i,$m.current=null}function by(a){var i=a;do{var f=i.alternate;if(a=i.return,(i.flags&32768)===0){if(f=RE(f,i,eo),f!==null){Xn=f;return}}else{if(f=kE(f,i),f!==null){f.flags&=32767,Xn=f;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{or=6,Xn=null;return}}if(i=i.sibling,i!==null){Xn=i;return}Xn=i=a}while(i!==null);or===0&&(or=5)}function si(a,i,f){var v=Dt,x=go.transition;try{go.transition=null,Dt=1,zE(a,i,f,v)}finally{go.transition=x,Dt=v}return null}function zE(a,i,f,v){do tl();while(Na!==null);if((cn&6)!==0)throw Error(n(327));f=a.finishedWork;var x=a.finishedLanes;if(f===null)return null;if(a.finishedWork=null,a.finishedLanes=0,f===a.current)throw Error(n(177));a.callbackNode=null,a.callbackPriority=0;var E=f.lanes|f.childLanes;if(pr(a,E),a===cr&&(Xn=cr=null,hr=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||au||(au=!0,wy(Vt,function(){return tl(),null})),E=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||E){E=go.transition,go.transition=null;var L=Dt;Dt=1;var X=cn;cn|=4,$m.current=null,OE(a,f),cy(f,a),tE(Nf),Cc=!!jf,Nf=jf=null,a.current=f,IE(f),Et(),cn=X,Dt=L,go.transition=E}else a.current=f;if(au&&(au=!1,Na=a,iu=x),E=a.pendingLanes,E===0&&(ja=null),Vn(f.stateNode),qr(a,ft()),i!==null)for(v=a.onRecoverableError,f=0;f<i.length;f++)x=i[f],v(x.value,{componentStack:x.stack,digest:x.digest});if(ou)throw ou=!1,a=km,km=null,a;return(iu&1)!==0&&a.tag!==0&&tl(),E=a.pendingLanes,(E&1)!==0?a===_m?gs++:(gs=0,_m=a):gs=0,_a(),null}function tl(){if(Na!==null){var a=nr(iu),i=go.transition,f=Dt;try{if(go.transition=null,Dt=16>a?16:a,Na===null)var v=!1;else{if(a=Na,Na=null,iu=0,(cn&6)!==0)throw Error(n(331));var x=cn;for(cn|=4,gt=a.current;gt!==null;){var E=gt,L=E.child;if((gt.flags&16)!==0){var X=E.deletions;if(X!==null){for(var oe=0;oe<X.length;oe++){var Ce=X[oe];for(gt=Ce;gt!==null;){var Me=gt;switch(Me.tag){case 0:case 11:case 15:fs(8,Me,E)}var De=Me.child;if(De!==null)De.return=Me,gt=De;else for(;gt!==null;){Me=gt;var je=Me.sibling,st=Me.return;if(oy(Me),Me===Ce){gt=null;break}if(je!==null){je.return=st,gt=je;break}gt=st}}}var yt=E.alternate;if(yt!==null){var bt=yt.child;if(bt!==null){yt.child=null;do{var qn=bt.sibling;bt.sibling=null,bt=qn}while(bt!==null)}}gt=E}}if((E.subtreeFlags&2064)!==0&&L!==null)L.return=E,gt=L;else e:for(;gt!==null;){if(E=gt,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:fs(9,E,E.return)}var pe=E.sibling;if(pe!==null){pe.return=E.return,gt=pe;break e}gt=E.return}}var ae=a.current;for(gt=ae;gt!==null;){L=gt;var he=L.child;if((L.subtreeFlags&2064)!==0&&he!==null)he.return=L,gt=he;else e:for(L=ae;gt!==null;){if(X=gt,(X.flags&2048)!==0)try{switch(X.tag){case 0:case 11:case 15:tu(9,X)}}catch(Ct){Hn(X,X.return,Ct)}if(X===L){gt=null;break e}var He=X.sibling;if(He!==null){He.return=X.return,gt=He;break e}gt=X.return}}if(cn=x,_a(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(_t,a)}catch{}v=!0}return v}finally{Dt=f,go.transition=i}}return!1}function Cy(a,i,f){i=Yi(f,i),i=B0(a,i,1),a=Ia(a,i,1),i=Nr(),a!==null&&(hn(a,1,i),qr(a,i))}function Hn(a,i,f){if(a.tag===3)Cy(a,a,f);else for(;i!==null;){if(i.tag===3){Cy(i,a,f);break}else if(i.tag===1){var v=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(ja===null||!ja.has(v))){a=Yi(f,a),a=A0(i,a,1),i=Ia(i,a,1),a=Nr(),i!==null&&(hn(i,1,a),qr(i,a));break}}i=i.return}}function ME(a,i,f){var v=a.pingCache;v!==null&&v.delete(i),i=Nr(),a.pingedLanes|=a.suspendedLanes&f,cr===a&&(hr&f)===f&&(or===4||or===3&&(hr&130023424)===hr&&500>ft()-Rm?li(a,0):Em|=f),qr(a,i)}function Sy(a,i){i===0&&((a.mode&1)===0?i=1:(i=mr,mr<<=1,(mr&130023424)===0&&(mr=4194304)));var f=Nr();a=da(a,i),a!==null&&(hn(a,i,f),qr(a,f))}function LE(a){var i=a.memoizedState,f=0;i!==null&&(f=i.retryLane),Sy(a,f)}function BE(a,i){var f=0;switch(a.tag){case 13:var v=a.stateNode,x=a.memoizedState;x!==null&&(f=x.retryLane);break;case 19:v=a.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(i),Sy(a,f)}var xy;xy=function(a,i,f){if(a!==null)if(a.memoizedProps!==i.pendingProps||Fr.current)Vr=!0;else{if((a.lanes&f)===0&&(i.flags&128)===0)return Vr=!1,EE(a,i,f);Vr=(a.flags&131072)!==0}else Vr=!1,zn&&(i.flags&1048576)!==0&&t0(i,Bc,i.index);switch(i.lanes=0,i.tag){case 2:var v=i.type;Zc(a,i),a=i.pendingProps;var x=Vi(i,wr.current);Xi(i,f),x=rm(null,i,v,a,x,f);var E=om();return i.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Hr(v)?(E=!0,zc(i)):E=!1,i.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Qf(i),x.updater=Yc,i.stateNode=x,x._reactInternals=i,um(i,v,a,f),i=pm(null,i,v,!0,E,f)):(i.tag=0,zn&&E&&Df(i),jr(null,i,x,f),i=i.child),i;case 16:v=i.elementType;e:{switch(Zc(a,i),a=i.pendingProps,x=v._init,v=x(v._payload),i.type=v,x=i.tag=DE(v),a=Oo(v,a),x){case 0:i=mm(null,i,v,a,f);break e;case 1:i=K0(null,i,v,a,f);break e;case 11:i=V0(null,i,v,a,f);break e;case 14:i=W0(null,i,v,Oo(v.type,a),f);break e}throw Error(n(306,v,""))}return i;case 0:return v=i.type,x=i.pendingProps,x=i.elementType===v?x:Oo(v,x),mm(a,i,v,x,f);case 1:return v=i.type,x=i.pendingProps,x=i.elementType===v?x:Oo(v,x),K0(a,i,v,x,f);case 3:e:{if(X0(i),a===null)throw Error(n(387));v=i.pendingProps,E=i.memoizedState,x=E.element,u0(a,i),Wc(i,v,null,f);var L=i.memoizedState;if(v=L.element,E.isDehydrated)if(E={element:v,isDehydrated:!1,cache:L.cache,pendingSuspenseBoundaries:L.pendingSuspenseBoundaries,transitions:L.transitions},i.updateQueue.baseState=E,i.memoizedState=E,i.flags&256){x=Yi(Error(n(423)),i),i=Q0(a,i,v,f,x);break e}else if(v!==x){x=Yi(Error(n(424)),i),i=Q0(a,i,v,f,x);break e}else for(Zr=Ea(i.stateNode.containerInfo.firstChild),Jr=i,zn=!0,_o=null,f=s0(i,null,v,f),i.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Ui(),v===x){i=ma(a,i,f);break e}jr(a,i,v,f)}i=i.child}return i;case 5:return m0(i),a===null&&Vf(i),v=i.type,x=i.pendingProps,E=a!==null?a.memoizedProps:null,L=x.children,Pf(v,x)?L=null:E!==null&&Pf(v,E)&&(i.flags|=32),G0(a,i),jr(a,i,L,f),i.child;case 6:return a===null&&Vf(i),null;case 13:return Y0(a,i,f);case 4:return Yf(i,i.stateNode.containerInfo),v=i.pendingProps,a===null?i.child=Gi(i,null,v,f):jr(a,i,v,f),i.child;case 11:return v=i.type,x=i.pendingProps,x=i.elementType===v?x:Oo(v,x),V0(a,i,v,x,f);case 7:return jr(a,i,i.pendingProps,f),i.child;case 8:return jr(a,i,i.pendingProps.children,f),i.child;case 12:return jr(a,i,i.pendingProps.children,f),i.child;case 10:e:{if(v=i.type._context,x=i.pendingProps,E=i.memoizedProps,L=x.value,In(Fc,v._currentValue),v._currentValue=L,E!==null)if(ko(E.value,L)){if(E.children===x.children&&!Fr.current){i=ma(a,i,f);break e}}else for(E=i.child,E!==null&&(E.return=i);E!==null;){var X=E.dependencies;if(X!==null){L=E.child;for(var oe=X.firstContext;oe!==null;){if(oe.context===v){if(E.tag===1){oe=fa(-1,f&-f),oe.tag=2;var Ce=E.updateQueue;if(Ce!==null){Ce=Ce.shared;var Me=Ce.pending;Me===null?oe.next=oe:(oe.next=Me.next,Me.next=oe),Ce.pending=oe}}E.lanes|=f,oe=E.alternate,oe!==null&&(oe.lanes|=f),Kf(E.return,f,i),X.lanes|=f;break}oe=oe.next}}else if(E.tag===10)L=E.type===i.type?null:E.child;else if(E.tag===18){if(L=E.return,L===null)throw Error(n(341));L.lanes|=f,X=L.alternate,X!==null&&(X.lanes|=f),Kf(L,f,i),L=E.sibling}else L=E.child;if(L!==null)L.return=E;else for(L=E;L!==null;){if(L===i){L=null;break}if(E=L.sibling,E!==null){E.return=L.return,L=E;break}L=L.return}E=L}jr(a,i,x.children,f),i=i.child}return i;case 9:return x=i.type,v=i.pendingProps.children,Xi(i,f),x=mo(x),v=v(x),i.flags|=1,jr(a,i,v,f),i.child;case 14:return v=i.type,x=Oo(v,i.pendingProps),x=Oo(v.type,x),W0(a,i,v,x,f);case 15:return q0(a,i,i.type,i.pendingProps,f);case 17:return v=i.type,x=i.pendingProps,x=i.elementType===v?x:Oo(v,x),Zc(a,i),i.tag=1,Hr(v)?(a=!0,zc(i)):a=!1,Xi(i,f),M0(i,v,x),um(i,v,x,f),pm(null,i,v,!0,a,f);case 19:return Z0(a,i,f);case 22:return U0(a,i,f)}throw Error(n(156,i.tag))};function wy(a,i){return an(a,i)}function AE(a,i,f,v){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(a,i,f,v){return new AE(a,i,f,v)}function Pm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function DE(a){if(typeof a=="function")return Pm(a)?1:0;if(a!=null){if(a=a.$$typeof,a===z)return 11;if(a===W)return 14}return 2}function Ma(a,i){var f=a.alternate;return f===null?(f=ho(a.tag,i,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=i,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&14680064,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,i=a.dependencies,f.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f}function uu(a,i,f,v,x,E){var L=2;if(v=a,typeof a=="function")Pm(a)&&(L=1);else if(typeof a=="string")L=5;else e:switch(a){case j:return ci(f.children,x,E,i);case N:L=8,x|=8;break;case T:return a=ho(12,f,i,x|2),a.elementType=T,a.lanes=E,a;case D:return a=ho(13,f,i,x),a.elementType=D,a.lanes=E,a;case A:return a=ho(19,f,i,x),a.elementType=A,a.lanes=E,a;case V:return du(f,x,E,i);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case P:L=10;break e;case B:L=9;break e;case z:L=11;break e;case W:L=14;break e;case q:L=16,v=null;break e}throw Error(n(130,a==null?a:typeof a,""))}return i=ho(L,f,i,x),i.elementType=a,i.type=v,i.lanes=E,i}function ci(a,i,f,v){return a=ho(7,a,v,i),a.lanes=f,a}function du(a,i,f,v){return a=ho(22,a,v,i),a.elementType=V,a.lanes=f,a.stateNode={isHidden:!1},a}function zm(a,i,f){return a=ho(6,a,null,i),a.lanes=f,a}function Mm(a,i,f){return i=ho(4,a.children!==null?a.children:[],a.key,i),i.lanes=f,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function FE(a,i,f,v,x){this.tag=i,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mn(0),this.expirationTimes=mn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mn(0),this.identifierPrefix=v,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Lm(a,i,f,v,x,E,L,X,oe){return a=new FE(a,i,f,X,oe),i===1?(i=1,E===!0&&(i|=8)):i=0,E=ho(3,null,null,i),a.current=E,E.stateNode=a,E.memoizedState={element:v,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qf(E),a}function HE(a,i,f){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:v==null?null:""+v,children:a,containerInfo:i,implementation:f}}function $y(a){if(!a)return ka;a=a._reactInternals;e:{if(zt(a)!==a||a.tag!==1)throw Error(n(170));var i=a;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Hr(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(a.tag===1){var f=a.type;if(Hr(f))return Jv(a,f,i)}return i}function Ey(a,i,f,v,x,E,L,X,oe){return a=Lm(f,v,!0,a,x,E,L,X,oe),a.context=$y(null),f=a.current,v=Nr(),x=Pa(f),E=fa(v,x),E.callback=i??null,Ia(f,E,x),a.current.lanes=x,hn(a,x,v),qr(a,v),a}function fu(a,i,f,v){var x=i.current,E=Nr(),L=Pa(x);return f=$y(f),i.context===null?i.context=f:i.pendingContext=f,i=fa(E,L),i.payload={element:a},v=v===void 0?null:v,v!==null&&(i.callback=v),a=Ia(x,i,L),a!==null&&(jo(a,x,L,E),Vc(a,x,L)),L}function mu(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function Ry(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<i?f:i}}function Bm(a,i){Ry(a,i),(a=a.alternate)&&Ry(a,i)}function VE(){return null}var ky=typeof reportError=="function"?reportError:function(a){console.error(a)};function Am(a){this._internalRoot=a}pu.prototype.render=Am.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(n(409));fu(a,i,null,null)},pu.prototype.unmount=Am.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;ii(function(){fu(null,a,null,null)}),i[la]=null}};function pu(a){this._internalRoot=a}pu.prototype.unstable_scheduleHydration=function(a){if(a){var i=Sa();a={blockedOn:null,target:a,priority:i};for(var f=0;f<Qr.length&&i!==0&&i<Qr[f].priority;f++);Qr.splice(f,0,a),f===0&&Rn(a)}};function Dm(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function gu(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function _y(){}function WE(a,i,f,v,x){if(x){if(typeof v=="function"){var E=v;v=function(){var Ce=mu(L);E.call(Ce)}}var L=Ey(i,v,a,0,null,!1,!1,"",_y);return a._reactRootContainer=L,a[la]=L.current,Zl(a.nodeType===8?a.parentNode:a),ii(),L}for(;x=a.lastChild;)a.removeChild(x);if(typeof v=="function"){var X=v;v=function(){var Ce=mu(oe);X.call(Ce)}}var oe=Lm(a,0,!1,null,null,!1,!1,"",_y);return a._reactRootContainer=oe,a[la]=oe.current,Zl(a.nodeType===8?a.parentNode:a),ii(function(){fu(i,oe,f,v)}),oe}function hu(a,i,f,v,x){var E=f._reactRootContainer;if(E){var L=E;if(typeof x=="function"){var X=x;x=function(){var oe=mu(L);X.call(oe)}}fu(i,L,a,x)}else L=WE(f,i,a,x,v);return mu(L)}ir=function(a){switch(a.tag){case 3:var i=a.stateNode;if(i.current.memoizedState.isDehydrated){var f=Sr(i.pendingLanes);f!==0&&(Wn(i,f|1),qr(i,ft()),(cn&6)===0&&(el=ft()+500,_a()))}break;case 13:ii(function(){var v=da(a,1);if(v!==null){var x=Nr();jo(v,a,1,x)}}),Bm(a,1)}},Ar=function(a){if(a.tag===13){var i=da(a,134217728);if(i!==null){var f=Nr();jo(i,a,134217728,f)}Bm(a,134217728)}},lr=function(a){if(a.tag===13){var i=Pa(a),f=da(a,i);if(f!==null){var v=Nr();jo(f,a,i,v)}Bm(a,i)}},Sa=function(){return Dt},Ii=function(a,i){var f=Dt;try{return Dt=a,i()}finally{Dt=f}},Xt=function(a,i,f){switch(i){case"input":if(ye(a,f),i=f.name,f.type==="radio"&&i!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<f.length;i++){var v=f[i];if(v!==a&&v.form===a.form){var x=Nc(v);if(!x)throw Error(n(90));ce(v),ye(v,x)}}}break;case"textarea":Ie(a,f);break;case"select":i=f.value,i!=null&&$e(a,!!f.multiple,i,!1)}},wt=Tm,Jt=ii;var qE={usingClientEntryPoint:!1,Events:[ns,Fi,Nc,Yt,Lt,Tm]},hs={findFiberByHostInstance:Ja,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},UE={bundleType:hs.bundleType,version:hs.version,rendererPackageName:hs.rendererPackageName,rendererConfig:hs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:I.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Tn(a),a===null?null:a.stateNode},findFiberByHostInstance:hs.findFiberByHostInstance||VE,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 vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vu.isDisabled&&vu.supportsFiber)try{_t=vu.inject(UE),sn=vu}catch{}}return Ur.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qE,Ur.createPortal=function(a,i){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dm(i))throw Error(n(200));return HE(a,i,null,f)},Ur.createRoot=function(a,i){if(!Dm(a))throw Error(n(299));var f=!1,v="",x=ky;return i!=null&&(i.unstable_strictMode===!0&&(f=!0),i.identifierPrefix!==void 0&&(v=i.identifierPrefix),i.onRecoverableError!==void 0&&(x=i.onRecoverableError)),i=Lm(a,1,!1,null,null,f,!1,v,x),a[la]=i.current,Zl(a.nodeType===8?a.parentNode:a),new Am(i)},Ur.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=Tn(i),a=a===null?null:a.stateNode,a},Ur.flushSync=function(a){return ii(a)},Ur.hydrate=function(a,i,f){if(!gu(i))throw Error(n(200));return hu(null,a,i,!0,f)},Ur.hydrateRoot=function(a,i,f){if(!Dm(a))throw Error(n(405));var v=f!=null&&f.hydratedSources||null,x=!1,E="",L=ky;if(f!=null&&(f.unstable_strictMode===!0&&(x=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onRecoverableError!==void 0&&(L=f.onRecoverableError)),i=Ey(i,null,a,1,f??null,x,!1,E,L),a[la]=i.current,Zl(a),v)for(a=0;a<v.length;a++)f=v[a],x=f._getVersion,x=x(f._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[f,x]:i.mutableSourceEagerHydrationData.push(f,x);return new pu(i)},Ur.render=function(a,i,f){if(!gu(i))throw Error(n(200));return hu(null,a,i,!1,f)},Ur.unmountComponentAtNode=function(a){if(!gu(a))throw Error(n(40));return a._reactRootContainer?(ii(function(){hu(null,null,a,!1,function(){a._reactRootContainer=null,a[la]=null})}),!0):!1},Ur.unstable_batchedUpdates=Tm,Ur.unstable_renderSubtreeIntoContainer=function(a,i,f,v){if(!gu(f))throw Error(n(200));if(a==null||a._reactInternals===void 0)throw Error(n(38));return hu(a,i,f,!1,v)},Ur.version="18.3.1-next-f1338f8080-20240426",Ur}var My;function ZC(){if(My)return Vm.exports;My=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(),Vm.exports=t4(),Vm.exports}var Ly;function n4(){if(Ly)return yu;Ly=1;var e=ZC();return yu.createRoot=e.createRoot,yu.hydrateRoot=e.hydrateRoot,yu}var r4=n4();const o4=nc(r4);var Um={exports:{}};/*!
41
+ Copyright (c) 2018 Jed Watson.
42
+ Licensed under the MIT License (MIT), see
43
+ http://jedwatson.github.io/classnames
44
+ */var By;function a4(){return By||(By=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var c=arguments[s];c&&(l=o(l,r(c)))}return l}function r(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var c in l)t.call(l,c)&&l[c]&&(s=o(s,c));return s}function o(l,s){return s?l?l+" "+s:l+s:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Um)),Um.exports}var i4=a4();const ee=nc(i4);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}var l4=Symbol.for("react.element"),s4=Symbol.for("react.transitional.element"),c4=Symbol.for("react.fragment");function eS(e){return e&&ht(e)==="object"&&(e.$$typeof===l4||e.$$typeof===s4)&&e.type===c4}function Mr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return J.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Mr(r)):eS(r)&&r.props?n=n.concat(Mr(r.props.children,t)):n.push(r))}),n}var Fp={},u4=function(t){};function d4(e,t){}function f4(e,t){}function m4(){Fp={}}function tS(e,t,n){!t&&!Fp[n]&&(e(!1,n),Fp[n]=!0)}function fr(e,t){tS(d4,e,t)}function p4(e,t){tS(f4,e,t)}fr.preMessage=u4;fr.resetWarned=m4;fr.noteOnce=p4;function g4(e,t){if(ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nS(e){var t=g4(e,"string");return ht(t)=="symbol"?t:t+""}function G(e,t,n){return(t=nS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ay(Object(n),!0).forEach(function(r){G(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ay(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qa=ZC();const Hp=nc(qa),h4=JC({__proto__:null,default:Hp},[qa]);function Bs(e){return e instanceof HTMLElement||e instanceof SVGElement}function v4(e){return e&&ht(e)==="object"&&Bs(e.nativeElement)?e.nativeElement:Bs(e)?e:null}function Mu(e){var t=v4(e);if(t)return t;if(e instanceof J.Component){var n;return(n=Hp.findDOMNode)===null||n===void 0?void 0:n.call(Hp,e)}return null}var Gm={exports:{}},yn={};/**
45
+ * @license React
46
+ * react-is.production.min.js
47
+ *
48
+ * Copyright (c) Facebook, Inc. and its affiliates.
49
+ *
50
+ * This source code is licensed under the MIT license found in the
51
+ * LICENSE file in the root directory of this source tree.
52
+ */var Dy;function y4(){if(Dy)return yn;Dy=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function S(C){if(typeof C=="object"&&C!==null){var $=C.$$typeof;switch($){case e:switch(C=C.type,C){case n:case o:case r:case m:case p:return C;default:switch(C=C&&C.$$typeof,C){case c:case s:case d:case h:case g:case l:return C;default:return $}}case t:return $}}}return yn.ContextConsumer=s,yn.ContextProvider=l,yn.Element=e,yn.ForwardRef=d,yn.Fragment=n,yn.Lazy=h,yn.Memo=g,yn.Portal=t,yn.Profiler=o,yn.StrictMode=r,yn.Suspense=m,yn.SuspenseList=p,yn.isAsyncMode=function(){return!1},yn.isConcurrentMode=function(){return!1},yn.isContextConsumer=function(C){return S(C)===s},yn.isContextProvider=function(C){return S(C)===l},yn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},yn.isForwardRef=function(C){return S(C)===d},yn.isFragment=function(C){return S(C)===n},yn.isLazy=function(C){return S(C)===h},yn.isMemo=function(C){return S(C)===g},yn.isPortal=function(C){return S(C)===t},yn.isProfiler=function(C){return S(C)===o},yn.isStrictMode=function(C){return S(C)===r},yn.isSuspense=function(C){return S(C)===m},yn.isSuspenseList=function(C){return S(C)===p},yn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===o||C===r||C===m||C===p||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===g||C.$$typeof===l||C.$$typeof===s||C.$$typeof===d||C.$$typeof===b||C.getModuleId!==void 0)},yn.typeOf=S,yn}var Fy;function b4(){return Fy||(Fy=1,Gm.exports=y4()),Gm.exports}var Km=b4();function rc(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var C4=Number(u.version.split(".")[0]),th=function(t,n){typeof t=="function"?t(n):ht(t)==="object"&&t&&"current"in t&&(t.current=n)},Eo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(l){n.forEach(function(s){th(s,l)})}},ta=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return rc(function(){return Eo.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,c){return s!==l[c]})})},Ya=function(t){var n,r;if(!t)return!1;if(nh(t)&&C4>=19)return!0;var o=Km.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Km.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Km.ForwardRef)};function nh(e){return u.isValidElement(e)&&!eS(e)}var S4=function(t){return nh(t)&&Ya(t)},Ei=function(t){if(t&&nh(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Vp=u.createContext(null);function x4(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),l=u.useContext(Vp),s=u.useCallback(function(c,d,m){r.current+=1;var p=r.current;o.current.push({size:c,element:d,data:m}),Promise.resolve().then(function(){p===r.current&&(n==null||n(o.current),o.current=[])}),l==null||l(c,d,m)},[n,l]);return u.createElement(Vp.Provider,{value:s},t)}var rS=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,l){return o[0]===n?(r=l,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,l=this.__entries__;o<l.length;o++){var s=l[o];n.call(r,s[1],s[0])}},t})()})(),Wp=typeof window<"u"&&typeof document<"u"&&window.document===document,Yu=(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")()})(),w4=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Yu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),$4=2;function E4(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&c()}function s(){w4(l)}function c(){var d=Date.now();if(n){if(d-o<$4)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=d}return c}var R4=20,k4=["top","right","bottom","left","width","height","size","weight"],_4=typeof MutationObserver<"u",O4=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=E4(this.refresh.bind(this),R4)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Wp||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_4?(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(){!Wp||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=k4.some(function(l){return!!~r.indexOf(l)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),oS=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),_l=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Yu}),aS=Rd(0,0,0,0);function Ju(e){return parseFloat(e)||0}function Hy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var l=e["border-"+o+"-width"];return r+Ju(l)},0)}function I4(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var l=o[r],s=e["padding-"+l];n[l]=Ju(s)}return n}function T4(e){var t=e.getBBox();return Rd(0,0,t.width,t.height)}function j4(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return aS;var r=_l(e).getComputedStyle(e),o=I4(r),l=o.left+o.right,s=o.top+o.bottom,c=Ju(r.width),d=Ju(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+l)!==t&&(c-=Hy(r,"left","right")+l),Math.round(d+s)!==n&&(d-=Hy(r,"top","bottom")+s)),!P4(e)){var m=Math.round(c+l)-t,p=Math.round(d+s)-n;Math.abs(m)!==1&&(c-=m),Math.abs(p)!==1&&(d-=p)}return Rd(o.left,o.top,c,d)}var N4=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _l(e).SVGGraphicsElement}:function(e){return e instanceof _l(e).SVGElement&&typeof e.getBBox=="function"}})();function P4(e){return e===_l(e).document.documentElement}function z4(e){return Wp?N4(e)?T4(e):j4(e):aS}function M4(e){var t=e.x,n=e.y,r=e.width,o=e.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(l.prototype);return oS(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function Rd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var L4=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Rd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=z4(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})(),B4=(function(){function e(t,n){var r=M4(n);oS(this,{target:t,contentRect:r})}return e})(),A4=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new rS,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof _l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new L4(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 _l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new B4(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),iS=typeof WeakMap<"u"?new WeakMap:new rS,lS=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=O4.getInstance(),r=new A4(t,n,this);iS.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){lS.prototype[e]=function(){var t;return(t=iS.get(this))[e].apply(t,arguments)}});var D4=(function(){return typeof Yu.ResizeObserver<"u"?Yu.ResizeObserver:lS})(),Fa=new Map;function F4(e){e.forEach(function(t){var n,r=t.target;(n=Fa.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var sS=new D4(F4);function H4(e,t){Fa.has(e)||(Fa.set(e,new Set),sS.observe(e)),Fa.get(e).add(t)}function V4(e,t){Fa.has(e)&&(Fa.get(e).delete(t),Fa.get(e).size||(sS.unobserve(e),Fa.delete(e)))}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nS(r.key),r)}}function Zn(e,t,n){return t&&Vy(e.prototype,t),n&&Vy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function As(e,t){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},As(e,t)}function ya(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&&As(e,t)}function Ds(e){return Ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ds(e)}function rh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rh=function(){return!!e})()}function Gt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W4(e,t){if(t&&(ht(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gt(e)}function ba(e){var t=rh();return function(){var n,r=Ds(e);if(t){var o=Ds(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return W4(this,n)}}var q4=(function(e){ya(n,e);var t=ba(n);function n(){return Jn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function U4(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),l=u.useRef(null),s=u.useContext(Vp),c=typeof n=="function",d=c?n(o):n,m=u.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!c&&u.isValidElement(d)&&Ya(d),g=p?Ei(d):null,h=ta(g,o),y=function(){var $;return Mu(o.current)||(o.current&&ht(o.current)==="object"?Mu(($=o.current)===null||$===void 0?void 0:$.nativeElement):null)||Mu(l.current)};u.useImperativeHandle(t,function(){return y()});var b=u.useRef(e);b.current=e;var S=u.useCallback(function(C){var $=b.current,w=$.onResize,R=$.data,I=C.getBoundingClientRect(),_=I.width,O=I.height,j=C.offsetWidth,N=C.offsetHeight,T=Math.floor(_),P=Math.floor(O);if(m.current.width!==T||m.current.height!==P||m.current.offsetWidth!==j||m.current.offsetHeight!==N){var B={width:T,height:P,offsetWidth:j,offsetHeight:N};m.current=B;var z=j===Math.round(_)?_:j,D=N===Math.round(O)?O:N,A=K(K({},B),{},{offsetWidth:z,offsetHeight:D});s==null||s(A,C,R),w&&Promise.resolve().then(function(){w(A,C)})}},[]);return u.useEffect(function(){var C=y();return C&&!r&&H4(C,S),function(){return V4(C,S)}},[o.current,r]),u.createElement(q4,{ref:l},p?u.cloneElement(d,{ref:h}):d)}var G4=u.forwardRef(U4),K4="rc-observer-key";function X4(e,t){var n=e.children,r=typeof n=="function"?[n]:Mr(n);return r.map(function(o,l){var s=(o==null?void 0:o.key)||"".concat(K4,"-").concat(l);return u.createElement(G4,ke({},e,{key:s,ref:l===0?t:void 0}),o)})}var xo=u.forwardRef(X4);xo.Collection=x4;function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Q4(e){if(Array.isArray(e))return qp(e)}function cS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oh(e,t){if(e){if(typeof e=="string")return qp(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qp(e,t):void 0}}function Y4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(e){return Q4(e)||cS(e)||oh(e)||Y4()}var uS=function(t){return+setTimeout(t,16)},dS=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(uS=function(t){return window.requestAnimationFrame(t)},dS=function(t){return window.cancelAnimationFrame(t)});var Wy=0,ah=new Map;function fS(e){ah.delete(e)}var Cn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Wy+=1;var r=Wy;function o(l){if(l===0)fS(r),t();else{var s=uS(function(){o(l-1)});ah.set(r,s)}}return o(n),r};Cn.cancel=function(e){var t=ah.get(e);return fS(e),dS(t)};function mS(e){if(Array.isArray(e))return e}function J4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,l,s,c=[],d=!0,m=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(p){m=!0,o=p}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(m)throw o}}return c}}function pS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(e,t){return mS(e)||J4(e,t)||oh(e,t)||pS()}function Fs(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Or(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Up(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var qy="data-rc-order",Uy="data-rc-priority",Z4="rc-util-key",Gp=new Map;function gS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Z4}function kd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function e3(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ih(e){return Array.from((Gp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function hS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Or())return null;var n=t.csp,r=t.prepend,o=t.priority,l=o===void 0?0:o,s=e3(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(qy,s),c&&l&&d.setAttribute(Uy,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var m=kd(t),p=m.firstChild;if(r){if(c){var g=(t.styles||ih(m)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(qy)))return!1;var y=Number(h.getAttribute(Uy)||0);return l>=y});if(g.length)return m.insertBefore(d,g[g.length-1].nextSibling),d}m.insertBefore(d,p)}else m.appendChild(d);return d}function vS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=kd(t);return(t.styles||ih(n)).find(function(r){return r.getAttribute(gS(t))===e})}function Hs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vS(e,t);if(n){var r=kd(t);r.removeChild(n)}}function t3(e,t){var n=Gp.get(e);if(!n||!Up(document,n)){var r=hS("",t),o=r.parentNode;Gp.set(e,o),e.removeChild(r)}}function va(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=kd(n),o=ih(r),l=K(K({},n),{},{styles:o});t3(r,l);var s=vS(t,l);if(s){var c,d;if((c=l.csp)!==null&&c!==void 0&&c.nonce&&s.nonce!==((d=l.csp)===null||d===void 0?void 0:d.nonce)){var m;s.nonce=(m=l.csp)===null||m===void 0?void 0:m.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var p=hS(e,l);return p.setAttribute(gS(l),t),p}function n3(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pt(e,t){if(e==null)return{};var n,r,o=n3(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(l);if(fr(!d,"Warning: There may be circular references"),d)return!1;if(l===s)return!0;if(n&&c>1)return!1;r.add(l);var m=c+1;if(Array.isArray(l)){if(!Array.isArray(s)||l.length!==s.length)return!1;for(var p=0;p<l.length;p++)if(!o(l[p],s[p],m))return!1;return!0}if(l&&s&&ht(l)==="object"&&ht(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(h){return o(l[h],s[h],m)})}return!1}return o(e,t)}var r3="%";function Kp(e){return e.join(r3)}var o3=(function(){function e(t){Jn(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=t}return Zn(e,[{key:"get",value:function(n){return this.opGet(Kp(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Kp(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),l=r(o);l===null?this.cache.delete(n):this.cache.set(n,l)}}]),e})(),Ol="data-token-hash",Bo="data-css-hash",Ha="__cssinjs_instance__";function a3(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Bo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ha]=o[Ha]||e,o[Ha]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Bo,"]"))).forEach(function(o){var l=o.getAttribute(Bo);if(r[l]){if(o[Ha]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new o3(e)}var oc=u.createContext({hashPriority:"low",cache:a3(),defaultCache:!0});function i3(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var lh=(function(){function e(){Jn(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Zn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return n.forEach(function(c){if(!s)s=void 0;else{var d;s=(d=s)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(c)}}),(r=s)!==null&&r!==void 0&&r.value&&l&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(m,p){var g=ie(m,2),h=g[1];return o.internalGet(p)[1]<h?[p,o.internalGet(p)[1]]:m},[this.keys[0],this.cacheCallTimes]),s=ie(l,1),c=s[0];this.delete(c)}this.keys.push(n)}var d=this.cache;n.forEach(function(m,p){if(p===n.length-1)d.set(m,{value:[r,o.cacheCallTimes++]});else{var g=d.get(m);g?g.map||(g.map=new Map):d.set(m,{map:new Map}),d=d.get(m).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var l;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)===null||l===void 0?void 0:l[0]}var s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!i3(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();G(lh,"MAX_CACHE_SIZE",20);G(lh,"MAX_CACHE_OFFSET",5);var Gy=0,yS=(function(){function e(t){Jn(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Gy,t.length===0&&(t.length>0,void 0),Gy+=1}return Zn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Xm=new lh;function Xp(e){var t=Array.isArray(e)?e:[e];return Xm.has(t)||Xm.set(t,new yS(t)),Xm.get(t)}var l3=new WeakMap,Qm={};function s3(e,t){for(var n=l3,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Qm)||n.set(Qm,e()),n.get(Qm)}var Ky=new WeakMap;function Ps(e){var t=Ky.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof yS?t+=r.id:r&&ht(r)==="object"?t+=Ps(r):t+=r}),t=Fs(t),Ky.set(e,t)),t}function Xy(e,t){return Fs("".concat(t,"_").concat(Ps(e)))}var Qp=Or();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function Zu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var l=K(K({},r),{},G(G({},Ol,t),Bo,n)),s=Object.keys(l).map(function(c){var d=l[c];return d?"".concat(c,'="').concat(d,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Lu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},c3=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var l=ie(o,2),s=l[0],c=l[1];return"".concat(s,":").concat(c,";")}).join(""),"}"):""},bS=function(t,n,r){var o={},l={};return Object.entries(t).forEach(function(s){var c,d,m=ie(s,2),p=m[0],g=m[1];if(r!=null&&(c=r.preserve)!==null&&c!==void 0&&c[p])l[p]=g;else if((typeof g=="string"||typeof g=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[p])){var h,y=Lu(p,r==null?void 0:r.prefix);o[y]=typeof g=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[p])?"".concat(g,"px"):String(g),l[p]="var(".concat(y,")")}}),[l,c3(o,n,{scope:r==null?void 0:r.scope})]},Qy=Or()?u.useLayoutEffect:u.useEffect,on=function(t,n){var r=u.useRef(!0);Qy(function(){return t(r.current)},n),Qy(function(){return r.current=!1,function(){r.current=!0}},[])},Yp=function(t,n){on(function(r){if(!r)return t()},n)},u3=K({},Ed),Yy=u3.useInsertionEffect,d3=function(t,n,r){u.useMemo(t,r),on(function(){return n(!0)},r)},f3=Yy?function(e,t,n){return Yy(function(){return e(),t()},n)}:d3,m3=K({},Ed),p3=m3.useInsertionEffect,g3=function(t){var n=[],r=!1;function o(l){r||n.push(l)}return u.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(l){return l()})}},t),o},h3=function(){return function(t){t()}},v3=typeof p3<"u"?g3:h3;function sh(e,t,n,r,o){var l=u.useContext(oc),s=l.cache,c=[e].concat(Fe(t)),d=Kp(c),m=v3([d]),p=function(b){s.opUpdate(d,function(S){var C=S||[void 0,void 0],$=ie(C,2),w=$[0],R=w===void 0?0:w,I=$[1],_=I,O=_||n(),j=[R,O];return b?b(j):j})};u.useMemo(function(){p()},[d]);var g=s.opGet(d),h=g[1];return f3(function(){o==null||o(h)},function(y){return p(function(b){var S=ie(b,2),C=S[0],$=S[1];return y&&C===0&&(o==null||o(h)),[C+1,$]}),function(){s.opUpdate(d,function(b){var S=b||[],C=ie(S,2),$=C[0],w=$===void 0?0:$,R=C[1],I=w-1;return I===0?(m(function(){(y||!s.opGet(d))&&(r==null||r(R,!1))}),null):[w-1,R]})}},[d]),h}var y3={},b3="css",fi=new Map;function C3(e){fi.set(e,(fi.get(e)||0)+1)}function S3(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ol,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ha]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var x3=0;function w3(e,t){fi.set(e,(fi.get(e)||0)-1);var n=new Set;fi.forEach(function(r,o){r<=0&&n.add(o)}),fi.size-n.size>x3&&n.forEach(function(r){S3(r,t),fi.delete(r)})}var $3=function(t,n,r,o){var l=r.getDerivativeToken(t),s=K(K({},l),n);return o&&(s=o(s)),s},CS="token";function E3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(oc),o=r.cache.instanceId,l=r.container,s=n.salt,c=s===void 0?"":s,d=n.override,m=d===void 0?y3:d,p=n.formatToken,g=n.getComputedToken,h=n.cssVar,y=s3(function(){return Object.assign.apply(Object,[{}].concat(Fe(t)))},t),b=Ps(y),S=Ps(m),C=h?Ps(h):"",$=sh(CS,[c,e.id,b,S,C],function(){var w,R=g?g(y,m,e):$3(y,m,e,p),I=K({},R),_="";if(h){var O=bS(R,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),j=ie(O,2);R=j[0],_=j[1]}var N=Xy(R,c);R._tokenKey=N,I._tokenKey=Xy(I,c);var T=(w=h==null?void 0:h.key)!==null&&w!==void 0?w:N;R._themeKey=T,C3(T);var P="".concat(b3,"-").concat(Fs(N));return R._hashId=P,[R,P,I,_,(h==null?void 0:h.key)||""]},function(w){w3(w[0]._themeKey,o)},function(w){var R=ie(w,4),I=R[0],_=R[3];if(h&&_){var O=va(_,Fs("css-variables-".concat(I._themeKey)),{mark:Bo,prepend:"queue",attachTo:l,priority:-999});O[Ha]=o,O.setAttribute(Ol,I._themeKey)}});return $}var R3=function(t,n,r){var o=ie(t,5),l=o[2],s=o[3],c=o[4],d=r||{},m=d.plain;if(!s)return null;var p=l._tokenKey,g=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=Zu(s,c,p,h,m);return[g,p,y]},k3={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},SS="comm",xS="rule",wS="decl",_3="@import",O3="@namespace",I3="@keyframes",T3="@layer",$S=Math.abs,ch=String.fromCharCode;function ES(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function j3(e,t,n){return e.indexOf(t,n)}function wl(e,t){return e.charCodeAt(t)|0}function Il(e,t,n){return e.slice(t,n)}function Ko(e){return e.length}function N3(e){return e.length}function bu(e,t){return t.push(e),e}var _d=1,Tl=1,RS=0,wo=0,Qn=0,Ll="";function uh(e,t,n,r,o,l,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:_d,column:Tl,length:s,return:"",siblings:c}}function P3(){return Qn}function z3(){return Qn=wo>0?wl(Ll,--wo):0,Tl--,Qn===10&&(Tl=1,_d--),Qn}function Ao(){return Qn=wo<RS?wl(Ll,wo++):0,Tl++,Qn===10&&(Tl=1,_d++),Qn}function Va(){return wl(Ll,wo)}function Au(){return wo}function Od(e,t){return Il(Ll,e,t)}function Ws(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 M3(e){return _d=Tl=1,RS=Ko(Ll=e),wo=0,[]}function L3(e){return Ll="",e}function Ym(e){return ES(Od(wo-1,Jp(e===91?e+2:e===40?e+1:e)))}function B3(e){for(;(Qn=Va())&&Qn<33;)Ao();return Ws(e)>2||Ws(Qn)>3?"":" "}function A3(e,t){for(;--t&&Ao()&&!(Qn<48||Qn>102||Qn>57&&Qn<65||Qn>70&&Qn<97););return Od(e,Au()+(t<6&&Va()==32&&Ao()==32))}function Jp(e){for(;Ao();)switch(Qn){case e:return wo;case 34:case 39:e!==34&&e!==39&&Jp(Qn);break;case 40:e===41&&Jp(e);break;case 92:Ao();break}return wo}function D3(e,t){for(;Ao()&&e+Qn!==57;)if(e+Qn===84&&Va()===47)break;return"/*"+Od(t,wo-1)+"*"+ch(e===47?e:Ao())}function F3(e){for(;!Ws(Va());)Ao();return Od(e,wo)}function H3(e){return L3(Du("",null,null,null,[""],e=M3(e),0,[0],e))}function Du(e,t,n,r,o,l,s,c,d){for(var m=0,p=0,g=s,h=0,y=0,b=0,S=1,C=1,$=1,w=0,R="",I=o,_=l,O=r,j=R;C;)switch(b=w,w=Ao()){case 40:if(b!=108&&wl(j,g-1)==58){j3(j+=Bu(Ym(w),"&","&\f"),"&\f",$S(m?c[m-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:j+=Ym(w);break;case 9:case 10:case 13:case 32:j+=B3(b);break;case 92:j+=A3(Au()-1,7);continue;case 47:switch(Va()){case 42:case 47:bu(V3(D3(Ao(),Au()),t,n,d),d),(Ws(b||1)==5||Ws(Va()||1)==5)&&Ko(j)&&Il(j,-1,void 0)!==" "&&(j+=" ");break;default:j+="/"}break;case 123*S:c[m++]=Ko(j)*$;case 125*S:case 59:case 0:switch(w){case 0:case 125:C=0;case 59+p:$==-1&&(j=Bu(j,/\f/g,"")),y>0&&(Ko(j)-g||S===0&&b===47)&&bu(y>32?Zy(j+";",r,n,g-1,d):Zy(Bu(j," ","")+";",r,n,g-2,d),d);break;case 59:j+=";";default:if(bu(O=Jy(j,t,n,m,p,o,c,R,I=[],_=[],g,l),l),w===123)if(p===0)Du(j,t,O,O,I,l,g,c,_);else{switch(h){case 99:if(wl(j,3)===110)break;case 108:if(wl(j,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Du(e,O,O,r&&bu(Jy(e,O,O,0,0,o,c,R,o,I=[],g,_),_),o,_,g,c,r?I:_):Du(j,O,O,O,[""],_,0,c,_)}}m=p=y=0,S=$=1,R=j="",g=s;break;case 58:g=1+Ko(j),y=b;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&z3()==125)continue}switch(j+=ch(w),w*S){case 38:$=p>0?1:(j+="\f",-1);break;case 44:c[m++]=(Ko(j)-1)*$,$=1;break;case 64:Va()===45&&(j+=Ym(Ao())),h=Va(),p=g=Ko(R=j+=F3(Au())),w++;break;case 45:b===45&&Ko(j)==2&&(S=0)}}return l}function Jy(e,t,n,r,o,l,s,c,d,m,p,g){for(var h=o-1,y=o===0?l:[""],b=N3(y),S=0,C=0,$=0;S<r;++S)for(var w=0,R=Il(e,h+1,h=$S(C=s[S])),I=e;w<b;++w)(I=ES(C>0?y[w]+" "+R:Bu(R,/&\f/g,y[w])))&&(d[$++]=I);return uh(e,t,n,o===0?xS:c,d,m,p,g)}function V3(e,t,n,r){return uh(e,t,n,SS,ch(P3()),Il(e,2,-2),0,r)}function Zy(e,t,n,r,o){return uh(e,t,n,wS,Il(e,0,r),Il(e,r+1,-1),r,o)}function Zp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function W3(e,t,n,r){switch(e.type){case T3:if(e.children.length)break;case _3:case O3:case wS:return e.return=e.return||e.value;case SS:return"";case I3:return e.return=e.value+"{"+Zp(e.children,r)+"}";case xS:if(!Ko(e.value=e.props.join(",")))return""}return Ko(n=Zp(e.children,r))?e.return=e.value+"{"+n+"}":""}var eb="data-ant-cssinjs-cache-path",kS="_FILE_STYLE__",yi,_S=!0;function q3(){if(!yi&&(yi={},Or())){var e=document.createElement("div");e.className=eb,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var l=o.split(":"),s=ie(l,2),c=s[0],d=s[1];yi[c]=d});var n=document.querySelector("style[".concat(eb,"]"));if(n){var r;_S=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function U3(e){return q3(),!!yi[e]}function G3(e){var t=yi[e],n=null;if(t&&Or())if(_S)n=kS;else{var r=document.querySelector("style[".concat(Bo,'="').concat(yi[e],'"]'));r?n=r.innerHTML:delete yi[e]}return[n,t]}var K3="_skip_check_",OS="_multi_value_";function Fu(e){var t=Zp(H3(e),W3);return t.replace(/\{%%%\:[^;];}/g,";")}function X3(e){return ht(e)==="object"&&e&&(K3 in e||OS in e)}function tb(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,l=e.split(",").map(function(s){var c,d=s.trim().split(/\s+/),m=d[0]||"",p=((c=m.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return m="".concat(p).concat(o).concat(m.slice(p.length)),[m].concat(Fe(d.slice(1))).join(" ")});return l.join(",")}var Q3=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,l=r.injectHash,s=r.parentSelectors,c=n.hashId,d=n.layer;n.path;var m=n.hashPriority,p=n.transformers,g=p===void 0?[]:p;n.linters;var h="",y={};function b($){var w=$.getName(c);if(!y[w]){var R=e($.style,n,{root:!1,parentSelectors:s}),I=ie(R,1),_=I[0];y[w]="@keyframes ".concat($.getName(c)).concat(_)}}function S($){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(R){Array.isArray(R)?S(R,w):R&&w.push(R)}),w}var C=S(Array.isArray(t)?t:[t]);return C.forEach(function($){var w=typeof $=="string"&&!o?{}:$;if(typeof w=="string")h+="".concat(w,`
55
+ `);else if(w._keyframe)b(w);else{var R=g.reduce(function(I,_){var O;return(_==null||(O=_.visit)===null||O===void 0?void 0:O.call(_,I))||I},w);Object.keys(R).forEach(function(I){var _=R[I];if(ht(_)==="object"&&_&&(I!=="animationName"||!_._keyframe)&&!X3(_)){var O=!1,j=I.trim(),N=!1;(o||l)&&c?j.startsWith("@")?O=!0:j==="&"?j=tb("",c,m):j=tb(I,c,m):o&&!c&&(j==="&"||j==="")&&(j="",N=!0);var T=e(_,n,{root:N,injectHash:O,parentSelectors:[].concat(Fe(s),[j])}),P=ie(T,2),B=P[0],z=P[1];y=K(K({},y),z),h+="".concat(j).concat(B)}else{let W=function(q,V){var F=q.replace(/[A-Z]/g,function(U){return"-".concat(U.toLowerCase())}),Y=V;!k3[q]&&typeof Y=="number"&&Y!==0&&(Y="".concat(Y,"px")),q==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(b(V),Y=V.getName(c)),h+="".concat(F,":").concat(Y,";")};var D,A=(D=_==null?void 0:_.value)!==null&&D!==void 0?D:_;ht(_)==="object"&&_!==null&&_!==void 0&&_[OS]&&Array.isArray(A)?A.forEach(function(q){W(I,q)}):W(I,A)}})}}),o?d&&(h&&(h="@layer ".concat(d.name," {").concat(h,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function($){return"@layer ".concat($,", ").concat(d.name,";")}).join(`
56
+ `))):h="{".concat(h,"}"),[h,y]};function IS(e,t){return Fs("".concat(e.join("%")).concat(t))}function Y3(){return null}var TS="style";function eg(e,t){var n=e.token,r=e.path,o=e.hashId,l=e.layer,s=e.nonce,c=e.clientOnly,d=e.order,m=d===void 0?0:d,p=u.useContext(oc),g=p.autoClear;p.mock;var h=p.defaultCache,y=p.hashPriority,b=p.container,S=p.ssrInline,C=p.transformers,$=p.linters,w=p.cache,R=p.layer,I=n._tokenKey,_=[I];R&&_.push("layer"),_.push.apply(_,Fe(r));var O=Qp,j=sh(TS,_,function(){var z=_.join("|");if(U3(z)){var D=G3(z),A=ie(D,2),W=A[0],q=A[1];if(W)return[W,I,q,{},c,m]}var V=t(),F=Q3(V,{hashId:o,hashPriority:y,layer:R?l:void 0,path:r.join("-"),transformers:C,linters:$}),Y=ie(F,2),U=Y[0],M=Y[1],H=Fu(U),Q=IS(_,H);return[H,I,Q,M,c,m]},function(z,D){var A=ie(z,3),W=A[2];(D||g)&&Qp&&Hs(W,{mark:Bo,attachTo:b})},function(z){var D=ie(z,4),A=D[0];D[1];var W=D[2],q=D[3];if(O&&A!==kS){var V={mark:Bo,prepend:R?!1:"queue",attachTo:b,priority:m},F=typeof s=="function"?s():s;F&&(V.csp={nonce:F});var Y=[],U=[];Object.keys(q).forEach(function(H){H.startsWith("@layer")?Y.push(H):U.push(H)}),Y.forEach(function(H){va(Fu(q[H]),"_layer-".concat(H),K(K({},V),{},{prepend:!0}))});var M=va(A,W,V);M[Ha]=w.instanceId,M.setAttribute(Ol,I),U.forEach(function(H){va(Fu(q[H]),"_effect-".concat(H),V)})}}),N=ie(j,3),T=N[0],P=N[1],B=N[2];return function(z){var D;return!S||O||!h?D=u.createElement(Y3,null):D=u.createElement("style",ke({},G(G({},Ol,P),Bo,B),{dangerouslySetInnerHTML:{__html:T}})),u.createElement(u.Fragment,null,D,z)}}var J3=function(t,n,r){var o=ie(t,6),l=o[0],s=o[1],c=o[2],d=o[3],m=o[4],p=o[5],g=r||{},h=g.plain;if(m)return null;var y=l,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return y=Zu(l,s,c,b,h),d&&Object.keys(d).forEach(function(S){if(!n[S]){n[S]=!0;var C=Fu(d[S]),$=Zu(C,s,"_effect-".concat(S),b,h);S.startsWith("@layer")?y=$+y:y+=$}}),[p,c,y]},jS="cssVar",Z3=function(t,n){var r=t.key,o=t.prefix,l=t.unitless,s=t.ignore,c=t.token,d=t.scope,m=d===void 0?"":d,p=u.useContext(oc),g=p.cache.instanceId,h=p.container,y=c._tokenKey,b=[].concat(Fe(t.path),[r,m,y]),S=sh(jS,b,function(){var C=n(),$=bS(C,r,{prefix:o,unitless:l,ignore:s,scope:m}),w=ie($,2),R=w[0],I=w[1],_=IS(b,I);return[R,I,_,r]},function(C){var $=ie(C,3),w=$[2];Qp&&Hs(w,{mark:Bo,attachTo:h})},function(C){var $=ie(C,3),w=$[1],R=$[2];if(w){var I=va(w,R,{mark:Bo,prepend:"queue",attachTo:h,priority:-999});I[Ha]=g,I.setAttribute(Ol,r)}});return S},eR=function(t,n,r){var o=ie(t,4),l=o[1],s=o[2],c=o[3],d=r||{},m=d.plain;if(!l)return null;var p=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},h=Zu(l,c,s,g,m);return[p,s,h]};G(G(G({},TS,J3),CS,R3),jS,eR);var qt=(function(){function e(t,n){Jn(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return Zn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function nl(e){return e.notSplit=!0,e}nl(["borderTop","borderBottom"]),nl(["borderTop"]),nl(["borderBottom"]),nl(["borderLeft","borderRight"]),nl(["borderLeft"]),nl(["borderRight"]);var dh=u.createContext({});function NS(e){return mS(e)||cS(e)||oh(e)||pS()}function Xo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function PS(e,t,n,r){if(!t.length)return n;var o=NS(t),l=o[0],s=o.slice(1),c;return!e&&typeof l=="number"?c=[]:Array.isArray(e)?c=Fe(e):c=K({},e),r&&n===void 0&&s.length===1?delete c[l][s[0]]:c[l]=PS(c[l],s,n,r),c}function No(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Xo(e,t.slice(0,-1))?e:PS(e,t,n,r)}function tR(e){return ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function nb(e){return Array.isArray(e)?[]:{}}var nR=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function vl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=nb(t[0]);return t.forEach(function(o){function l(s,c){var d=new Set(c),m=Xo(o,s),p=Array.isArray(m);if(p||tR(m)){if(!d.has(m)){d.add(m);var g=Xo(r,s);p?r=No(r,s,[]):(!g||ht(g)!=="object")&&(r=No(r,s,nb(m))),nR(m).forEach(function(h){l([].concat(Fe(s),[h]),d)})}}else r=No(r,s,m)}l([])}),r}function rR(){}const oR=u.createContext({}),Id=()=>{const e=()=>{};return e.deprecated=rR,e},aR=u.createContext(void 0);var zS={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"},iR={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},lR=K(K({},iR),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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 MS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},rb={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"]},lR),timePickerLocale:Object.assign({},MS)},to="${label} is not a valid ${type}",Ua={locale:"en",Pagination:zS,DatePicker:rb,TimePicker:MS,Calendar:rb,global:{placeholder:"Please select",close:"Close"},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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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"}};let Hu=Object.assign({},Ua.Modal),Vu=[];const ob=()=>Vu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ua.Modal);function sR(e){if(e){const t=Object.assign({},e);return Vu.push(t),Hu=ob(),()=>{Vu=Vu.filter(n=>n!==t),Hu=ob()}}Hu=Object.assign({},Ua.Modal)}function LS(){return Hu}const fh=u.createContext(void 0),Ca=(e,t)=>{const n=u.useContext(fh),r=u.useMemo(()=>{var l;const s=t||Ua[e],c=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),c||{})},[e,t,n]),o=u.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?Ua.locale:l},[n]);return[r,o]},cR="internalMark",uR=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>sR(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(fh.Provider,{value:o},n)},mh={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"},qs=Object.assign(Object.assign({},mh),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
57
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
58
+ '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}),dr=Math.round;function Jm(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const ab=(e,t,n)=>n===0?e:e/100;function ys(e,t){const n=t||255;return e>n?n:e<0?0:e}class un{constructor(t){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function n(o){return o[0]in t&&o[1]in t&&o[2]in t}if(t)if(typeof t=="string"){let l=function(s){return o.startsWith(s)};var r=l;const o=t.trim();/^#?[A-F\d]{3,8}$/i.test(o)?this.fromHexString(o):l("rgb")?this.fromRgbString(o):l("hsl")?this.fromHslString(o):(l("hsv")||l("hsb"))&&this.fromHsvString(o)}else if(t instanceof un)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(n("rgb"))this.r=ys(t.r),this.g=ys(t.g),this.b=ys(t.b),this.a=typeof t.a=="number"?ys(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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 n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(l){const s=l/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=dr(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 n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,l=c=>(r[c]-this[c])*o+this[c],s={r:dr(l("r")),g:dr(l("g")),b:dr(l("b")),a:dr(l("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=l=>dr((this[l]*this.a+n[l]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}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 n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=dr(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(),n=dr(this.getSaturation()*100),r=dr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}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,n,r){const o=this.clone();return o[t]=ys(n,r),o}_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 n=t.replace("#","");function r(o,l){return parseInt(n[o]+n[l||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=dr(r*255);this.r=h,this.g=h,this.b=h}let l=0,s=0,c=0;const d=t/60,m=(1-Math.abs(2*r-1))*n,p=m*(1-Math.abs(d%2-1));d>=0&&d<1?(l=m,s=p):d>=1&&d<2?(l=p,s=m):d>=2&&d<3?(s=m,c=p):d>=3&&d<4?(s=p,c=m):d>=4&&d<5?(l=p,c=m):d>=5&&d<6&&(l=m,c=p);const g=r-m/2;this.r=dr((l+g)*255),this.g=dr((s+g)*255),this.b=dr((c+g)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const l=dr(r*255);if(this.r=l,this.g=l,this.b=l,n<=0)return;const s=t/60,c=Math.floor(s),d=s-c,m=dr(r*(1-n)*255),p=dr(r*(1-n*d)*255),g=dr(r*(1-n*(1-d))*255);switch(c){case 0:this.g=g,this.b=m;break;case 1:this.r=p,this.b=m;break;case 2:this.r=m,this.b=g;break;case 3:this.r=m,this.g=p;break;case 4:this.r=g,this.g=m;break;case 5:default:this.g=m,this.b=p;break}}fromHsvString(t){const n=Jm(t,ab);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Jm(t,ab);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Jm(t,(r,o)=>o.includes("%")?dr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Cu=2,ib=.16,dR=.05,fR=.05,mR=.15,BS=5,AS=4,pR=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function lb(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Cu*t:Math.round(e.h)+Cu*t:r=n?Math.round(e.h)+Cu*t:Math.round(e.h)-Cu*t,r<0?r+=360:r>=360&&(r-=360),r}function sb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ib*t:t===AS?r=e.s+ib:r=e.s+dR*t,r>1&&(r=1),n&&t===BS&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function cb(e,t,n){var r;return n?r=e.v+fR*t:r=e.v-mR*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ci(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new un(e),o=r.toHsv(),l=BS;l>0;l-=1){var s=new un({h:lb(o,l,!0),s:sb(o,l,!0),v:cb(o,l,!0)});n.push(s)}n.push(r);for(var c=1;c<=AS;c+=1){var d=new un({h:lb(o,c),s:sb(o,c),v:cb(o,c)});n.push(d)}return t.theme==="dark"?pR.map(function(m){var p=m.index,g=m.amount;return new un(t.backgroundColor||"#141414").mix(n[p],g).toHexString()}):n.map(function(m){return m.toHexString()})}var Zm={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"},tg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];tg.primary=tg[5];var ng=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ng.primary=ng[5];var rg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];rg.primary=rg[5];var ed=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ed.primary=ed[5];var og=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];og.primary=og[5];var ag=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ag.primary=ag[5];var ig=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ig.primary=ig[5];var lg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];lg.primary=lg[5];var td=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];td.primary=td[5];var sg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];sg.primary=sg[5];var cg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];cg.primary=cg[5];var ug=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ug.primary=ug[5];var dg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];dg.primary=dg[5];var ep={red:tg,volcano:ng,orange:rg,gold:ed,yellow:og,lime:ag,green:ig,cyan:lg,blue:td,geekblue:sg,purple:cg,magenta:ug,grey:dg};function DS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:d,colorTextBase:m}=e,p=t(c),g=t(r),h=t(o),y=t(l),b=t(s),S=n(d,m),C=e.colorLink||e.colorInfo,$=t(C),w=new un(y[1]).mix(new un(y[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:w,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const gR=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function hR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},gR(r))}const vR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Wu(e){return(e+8)/e}function yR(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,l=e*Math.pow(Math.E,o/5),s=r>1?Math.floor(l):Math.ceil(l);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Wu(n)}))}const bR=e=>{const t=yR(e),n=t.map(p=>p.size),r=t.map(p=>p.lineHeight),o=n[1],l=n[0],s=n[2],c=r[1],d=r[0],m=r[2];return{fontSizeSM:l,fontSize:o,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:m,lineHeightSM:d,fontHeight:Math.round(c*o),fontHeightLG:Math.round(m*s),fontHeightSM:Math.round(d*l),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function CR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const vo=(e,t)=>new un(e).setA(t).toRgbString(),bs=(e,t)=>new un(e).darken(t).toHexString(),SR=e=>{const t=Ci(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]}},xR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:vo(r,.88),colorTextSecondary:vo(r,.65),colorTextTertiary:vo(r,.45),colorTextQuaternary:vo(r,.25),colorFill:vo(r,.15),colorFillSecondary:vo(r,.06),colorFillTertiary:vo(r,.04),colorFillQuaternary:vo(r,.02),colorBgSolid:vo(r,1),colorBgSolidHover:vo(r,.75),colorBgSolidActive:vo(r,.95),colorBgLayout:bs(n,4),colorBgContainer:bs(n,0),colorBgElevated:bs(n,0),colorBgSpotlight:vo(r,.85),colorBgBlur:"transparent",colorBorder:bs(n,15),colorBorderSecondary:bs(n,6)}};function FS(e){Zm.pink=Zm.magenta,ep.pink=ep.magenta;const t=Object.keys(mh).map(n=>{const r=e[n]===Zm[n]?ep[n]:Ci(e[n]);return Array.from({length:10},()=>1).reduce((o,l,s)=>(o[`${n}-${s+1}`]=r[s],o[`${n}${s+1}`]=r[s],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),DS(e,{generateColorPalettes:SR,generateNeutralColorPalettes:xR})),bR(e.fontSize)),CR(e)),vR(e)),hR(e))}const HS=Xp(FS),nd={token:qs,override:{override:qs},hashed:!0},VS=J.createContext(nd),Us="ant",Td="anticon",wR=["outlined","borderless","filled","underlined"],$R=(e,t)=>t||(e?`${Us}-${e}`:Us),Rt=u.createContext({getPrefixCls:$R,iconPrefixCls:Td}),{Consumer:vV}=Rt,ub={};function yr(e){const t=u.useContext(Rt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,l=t[e];return Object.assign(Object.assign({classNames:ub,styles:ub},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const ER=`-ant-${Date.now()}-${Math.random()}`;function RR(e,t){const n={},r=(s,c)=>{let d=s.clone();return d=(c==null?void 0:c(d))||d,d.toRgbString()},o=(s,c)=>{const d=new un(s),m=Ci(d.toRgbString());n[`${c}-color`]=r(d),n[`${c}-color-disabled`]=m[1],n[`${c}-color-hover`]=m[4],n[`${c}-color-active`]=m[6],n[`${c}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=m[0],n[`${c}-color-deprecated-border`]=m[2]};if(t.primaryColor){o(t.primaryColor,"primary");const s=new un(t.primaryColor),c=Ci(s.toRgbString());c.forEach((m,p)=>{n[`primary-${p+1}`]=m}),n["primary-color-deprecated-l-35"]=r(s,m=>m.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,m=>m.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,m=>m.tint(20)),n["primary-color-deprecated-t-50"]=r(s,m=>m.tint(50)),n["primary-color-deprecated-f-12"]=r(s,m=>m.setA(m.a*.12));const d=new un(c[0]);n["primary-color-active-deprecated-f-30"]=r(d,m=>m.setA(m.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,m=>m.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
59
+ :root {
60
+ ${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
61
+ `)}
62
+ }
63
+ `.trim()}function kR(e,t){const n=RR(e,t);Or()&&va(n,`${ER}-dynamic-theme`)}const Ga=u.createContext(!1),WS=({children:e,disabled:t})=>{const n=u.useContext(Ga);return u.createElement(Ga.Provider,{value:t??n},e)},jl=u.createContext(void 0),_R=({children:e,size:t})=>{const n=u.useContext(jl);return u.createElement(jl.Provider,{value:t||n},e)};function OR(){const e=u.useContext(Ga),t=u.useContext(jl);return{componentDisabled:e,componentSize:t}}var qS=Zn(function e(){Jn(this,e)}),US="CALC_UNIT",IR=new RegExp(US,"g");function tp(e){return typeof e=="number"?"".concat(e).concat(US):e}var TR=(function(e){ya(n,e);var t=ba(n);function n(r,o){var l;Jn(this,n),l=t.call(this),G(Gt(l),"result",""),G(Gt(l),"unitlessCssVar",void 0),G(Gt(l),"lowPriority",void 0);var s=ht(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=tp(r):s==="string"&&(l.result=r),l}return Zn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(tp(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(tp(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var l=this,s=o||{},c=s.unit,d=!0;return typeof c=="boolean"?d=c:Array.from(this.unitlessCssVar).some(function(m){return l.result.includes(m)})&&(d=!1),this.result=this.result.replace(IR,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(qS),jR=(function(e){ya(n,e);var t=ba(n);function n(r){var o;return Jn(this,n),o=t.call(this),G(Gt(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Zn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(qS),NR=function(t,n){var r=t==="css"?TR:jR;return function(o){return new r(o,n)}},db=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Dn(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return n}function Nl(e){var t=u.useRef(!1),n=u.useState(e),r=ie(n,2),o=r[0],l=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(c,d){d&&t.current||l(c)}return[o,s]}function np(e){return e!==void 0}function Fn(e,t){var n=t||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,c=Nl(function(){return np(o)?o:np(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=ie(c,2),m=d[0],p=d[1],g=o!==void 0?o:m,h=s?s(g):g,y=Dn(l),b=Nl([g]),S=ie(b,2),C=S[0],$=S[1];Yp(function(){var R=C[0];m!==R&&y(m,R)},[C]),Yp(function(){np(o)||p(o)},[o]);var w=Dn(function(R,I){p(R,I),$([g],I)});return[h,w]}function fb(e,t,n,r){var o=K({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(c){var d=ie(c,2),m=d[0],p=d[1];if(o!=null&&o[m]||o!=null&&o[p]){var g;(g=o[p])!==null&&g!==void 0||(o[p]=o==null?void 0:o[m])}})}var s=K(K({},n),o);return Object.keys(s).forEach(function(c){s[c]===t[c]&&delete s[c]}),s}var GS=typeof CSSINJS_STATISTIC<"u",fg=!0;function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!GS)return Object.assign.apply(Object,[{}].concat(t));fg=!1;var r={};return t.forEach(function(o){if(ht(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),fg=!0,r}var mb={};function PR(){}var zR=function(t){var n,r=t,o=PR;return GS&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,c){if(fg){var d;(d=n)===null||d===void 0||d.add(c)}return s[c]}}),o=function(s,c){var d;mb[s]={global:Array.from(n),component:K(K({},(d=mb[s])===null||d===void 0?void 0:d.component),c)}}),{token:r,keys:n,flush:o}};function pb(e,t,n){if(typeof n=="function"){var r;return n(Kt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function MR(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(l){return Z(l)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(l){return Z(l)}).join(","),")")}}}var LR=1e3*60*10,BR=(function(){function e(){Jn(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return Zn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(l){return l&&ht(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(ht(l),"_").concat(l)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,l){r-o>LR&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),gb=new BR;function AR(e,t){return J.useMemo(function(){var n=gb.get(t);if(n)return n;var r=e();return gb.set(t,r),r},t)}var DR=function(){return{}};function FR(e){var t=e.useCSP,n=t===void 0?DR:t,r=e.useToken,o=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,c=e.getCompUnitless;function d(h,y,b,S){var C=Array.isArray(h)?h[0]:h;function $(N){return"".concat(String(C)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var w=(S==null?void 0:S.unitless)||{},R=typeof c=="function"?c(h):{},I=K(K({},R),{},G({},$("zIndexPopup"),!0));Object.keys(w).forEach(function(N){I[$(N)]=w[N]});var _=K(K({},S),{},{unitless:I,prefixToken:$}),O=p(h,y,b,_),j=m(C,b,_);return function(N){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,P=O(N,T),B=ie(P,2),z=B[1],D=j(T),A=ie(D,2),W=A[0],q=A[1];return[W,z,q]}}function m(h,y,b){var S=b.unitless,C=b.injectStyle,$=C===void 0?!0:C,w=b.prefixToken,R=b.ignore,I=function(j){var N=j.rootCls,T=j.cssVar,P=T===void 0?{}:T,B=r(),z=B.realToken;return Z3({path:[h],prefix:P.prefix,key:P.key,unitless:S,ignore:R,token:z,scope:N},function(){var D=pb(h,z,y),A=fb(h,z,D,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(D).forEach(function(W){A[w(W)]=A[W],delete A[W]}),A}),null},_=function(j){var N=r(),T=N.cssVar;return[function(P){return $&&T?J.createElement(J.Fragment,null,J.createElement(I,{rootCls:j,cssVar:T,component:h}),P):P},T==null?void 0:T.key]};return _}function p(h,y,b){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(h)?h:[h,h],$=ie(C,1),w=$[0],R=C.join("-"),I=e.layer||{name:"antd"};return function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,j=r(),N=j.theme,T=j.realToken,P=j.hashId,B=j.token,z=j.cssVar,D=o(),A=D.rootPrefixCls,W=D.iconPrefixCls,q=n(),V=z?"css":"js",F=AR(function(){var ne=new Set;return z&&Object.keys(S.unitless||{}).forEach(function(te){ne.add(Lu(te,z.prefix)),ne.add(Lu(te,db(w,z.prefix)))}),NR(V,ne)},[V,w,z==null?void 0:z.prefix]),Y=MR(V),U=Y.max,M=Y.min,H={theme:N,token:B,hashId:P,nonce:function(){return q.nonce},clientOnly:S.clientOnly,layer:I,order:S.order||-999};typeof l=="function"&&eg(K(K({},H),{},{clientOnly:!1,path:["Shared",A]}),function(){return l(B,{prefix:{rootPrefixCls:A,iconPrefixCls:W},csp:q})});var Q=eg(K(K({},H),{},{path:[R,_,W]}),function(){if(S.injectStyle===!1)return[];var ne=zR(B),te=ne.token,re=ne.flush,fe=pb(w,T,b),me=".".concat(_),ue=fb(w,T,fe,{deprecatedTokens:S.deprecatedTokens});z&&fe&&ht(fe)==="object"&&Object.keys(fe).forEach(function(ve){fe[ve]="var(".concat(Lu(ve,db(w,z.prefix)),")")});var Se=Kt(te,{componentCls:me,prefixCls:_,iconCls:".".concat(W),antCls:".".concat(A),calc:F,max:U,min:M},z?fe:ue),le=y(Se,{hashId:P,prefixCls:_,rootPrefixCls:A,iconPrefixCls:W});re(w,ue);var ce=typeof s=="function"?s(Se,_,O,S.resetFont):null;return[S.resetStyle===!1?null:ce,le]});return[Q,P]}}function g(h,y,b){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=p(h,y,b,K({resetStyle:!1,order:-998},S)),$=function(R){var I=R.prefixCls,_=R.rootCls,O=_===void 0?I:_;return C(I,O),null};return $}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:p}}const Ka=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],HR="5.29.3";function rp(e){return e>=0&&e<=255}function _s(e,t){const{r:n,g:r,b:o,a:l}=new un(e).toRgb();if(l<1)return e;const{r:s,g:c,b:d}=new un(t).toRgb();for(let m=.01;m<=1;m+=.01){const p=Math.round((n-s*(1-m))/m),g=Math.round((r-c*(1-m))/m),h=Math.round((o-d*(1-m))/m);if(rp(p)&&rp(g)&&rp(h))return new un({r:p,g,b:h,a:Math.round(m*100)/100}).toRgbString()}return new un({r:n,g:r,b:o,a:1}).toRgbString()}var VR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function KS(e){const{override:t}=e,n=VR(e,["override"]),r=Object.assign({},t);Object.keys(qs).forEach(h=>{delete r[h]});const o=Object.assign(Object.assign({},n),r),l=480,s=576,c=768,d=992,m=1200,p=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:_s(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:_s(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_s(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:_s(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
64
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
65
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
66
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
67
+ `,boxShadowSecondary:`
68
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
69
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
70
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
71
+ `,boxShadowTertiary:`
72
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
73
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
74
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
75
+ `,screenXS:l,screenXSMin:l,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:m-1,screenXL:m,screenXLMin:m,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
76
+ 0 1px 2px -2px ${new un("rgba(0, 0, 0, 0.16)").toRgbString()},
77
+ 0 3px 6px 0 ${new un("rgba(0, 0, 0, 0.12)").toRgbString()},
78
+ 0 5px 12px 4px ${new un("rgba(0, 0, 0, 0.09)").toRgbString()}
79
+ `,boxShadowDrawerRight:`
80
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
81
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
82
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
83
+ `,boxShadowDrawerLeft:`
84
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
85
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
86
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
87
+ `,boxShadowDrawerUp:`
88
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
89
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
90
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
91
+ `,boxShadowDrawerDown:`
92
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
93
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
94
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
95
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var hb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XS={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},WR={motionBase:!0,motionUnit:!0},qR={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},QS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,l=hb(t,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=KS(s),l&&Object.entries(l).forEach(([c,d])=>{const{theme:m}=d,p=hb(d,["theme"]);let g=p;m&&(g=QS(Object.assign(Object.assign({},s),p),{override:p},m)),s[c]=g}),s};function Br(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=J.useContext(VS),l=`${HR}-${t||""}`,s=n||HS,[c,d,m]=E3(s,[qs,e],{salt:l,override:r,getComputedToken:QS,formatToken:KS,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:XS,ignore:WR,preserve:qR}});return[s,m,t?d:"",c,o]}const Gs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Pn=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Bl=()=>({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"}}),rd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),UR=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"}}}),GR=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,l=n?`.${n}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return r!==!1&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:Object.assign(Object.assign(Object.assign({},c),s),{[o]:s})}},Si=(e,t)=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),$o=(e,t)=>({"&:focus-visible":Si(e,t)}),YS=e=>({[`.${e}`]:Object.assign(Object.assign({},Bl()),{[`.${e} .${e}-icon`]:{display:"block"}})}),JS=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"},$o(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:dn,genComponentStyleHook:KR,genSubStyleComponent:ac}=FR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Br();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=u.useContext(Rt);return e??{}},getResetStyles:(e,t)=>{var n;const r=UR(e);return[r,{"&":r},YS((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Td)]},getCommonStyle:GR,getCompUnitless:()=>XS});function jd(e,t){return Ka.reduce((n,r)=>{const o=e[`${r}1`],l=e[`${r}3`],s=e[`${r}6`],c=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:l,darkColor:s,textColor:c}))},{})}const XR=(e,t)=>{const[n,r]=Br();return eg({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>YS(e))},QR=Object.assign({},Ed),{useId:vb}=QR,YR=()=>"",JR=typeof vb>"u"?YR:vb;function ZR(e,t,n){var r;Id();const o=e||{},l=o.inherit===!1||!t?Object.assign(Object.assign({},nd),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:nd.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=JR();return rc(()=>{var c,d;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{m[h]=Object.assign(Object.assign({},m[h]),e.components[h])});const p=`css-var-${s.replace(/:/g,"")}`,g=((c=o.cssVar)!==null&&c!==void 0?c:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((d=o.cssVar)===null||d===void 0?void 0:d.key)||p});return Object.assign(Object.assign(Object.assign({},l),o),{token:Object.assign(Object.assign({},l.token),o.token),components:m,cssVar:g})},[o,l],(c,d)=>c.some((m,p)=>{const g=d[p];return!Vs(m,g,!0)}))}var e5=["children"],ZS=u.createContext({});function t5(e){var t=e.children,n=Pt(e,e5);return u.createElement(ZS.Provider,{value:n},t)}var n5=(function(e){ya(n,e);var t=ba(n);function n(){return Jn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function r5(e){var t=u.useReducer(function(c){return c+1},0),n=ie(t,2),r=n[1],o=u.useRef(e),l=Dn(function(){return o.current}),s=Dn(function(c){o.current=typeof c=="function"?c(o.current):c,r()});return[l,s]}var Aa="none",Su="appear",xu="enter",wu="leave",yb="none",Po="prepare",yl="start",bl="active",ph="end",ex="prepared";function bb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function o5(e,t){var n={animationend:bb("Animation","AnimationEnd"),transitionend:bb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var a5=o5(Or(),typeof window<"u"?window:{}),tx={};if(Or()){var i5=document.createElement("div");tx=i5.style}var $u={};function nx(e){if($u[e])return $u[e];var t=a5[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var l=n[o];if(Object.prototype.hasOwnProperty.call(t,l)&&l in tx)return $u[e]=t[l],$u[e]}return""}var rx=nx("animationend"),ox=nx("transitionend"),ax=!!(rx&&ox),Cb=rx||"animationend",Sb=ox||"transitionend";function xb(e,t){if(!e)return null;if(ht(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const l5=(function(e){var t=u.useRef();function n(o){o&&(o.removeEventListener(Sb,e),o.removeEventListener(Cb,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Sb,e),o.addEventListener(Cb,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var ix=Or()?u.useLayoutEffect:u.useEffect;const s5=(function(){var e=u.useRef(null);function t(){Cn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=Cn(function(){o<=1?r({isCanceled:function(){return l!==e.current}}):n(r,o-1)});e.current=l}return u.useEffect(function(){return function(){t()}},[]),[n,t]});var c5=[Po,yl,bl,ph],u5=[Po,ex],lx=!1,d5=!0;function sx(e){return e===bl||e===ph}const f5=(function(e,t,n){var r=Nl(yb),o=ie(r,2),l=o[0],s=o[1],c=s5(),d=ie(c,2),m=d[0],p=d[1];function g(){s(Po,!0)}var h=t?u5:c5;return ix(function(){if(l!==yb&&l!==ph){var y=h.indexOf(l),b=h[y+1],S=n(l);S===lx?s(b,!0):b&&m(function(C){function $(){C.isCanceled()||s(b,!0)}S===!0?$():Promise.resolve(S).then($)})}},[e,l]),u.useEffect(function(){return function(){p()}},[]),[g,l]});function m5(e,t,n,r){var o=r.motionEnter,l=o===void 0?!0:o,s=r.motionAppear,c=s===void 0?!0:s,d=r.motionLeave,m=d===void 0?!0:d,p=r.motionDeadline,g=r.motionLeaveImmediately,h=r.onAppearPrepare,y=r.onEnterPrepare,b=r.onLeavePrepare,S=r.onAppearStart,C=r.onEnterStart,$=r.onLeaveStart,w=r.onAppearActive,R=r.onEnterActive,I=r.onLeaveActive,_=r.onAppearEnd,O=r.onEnterEnd,j=r.onLeaveEnd,N=r.onVisibleChanged,T=Nl(),P=ie(T,2),B=P[0],z=P[1],D=r5(Aa),A=ie(D,2),W=A[0],q=A[1],V=Nl(null),F=ie(V,2),Y=F[0],U=F[1],M=W(),H=u.useRef(!1),Q=u.useRef(null);function ne(){return n()}var te=u.useRef(!1);function re(){q(Aa),U(null,!0)}var fe=Dn(function($e){var Ee=W();if(Ee!==Aa){var ze=ne();if(!($e&&!$e.deadline&&$e.target!==ze)){var Ie=te.current,Qe;Ee===Su&&Ie?Qe=_==null?void 0:_(ze,$e):Ee===xu&&Ie?Qe=O==null?void 0:O(ze,$e):Ee===wu&&Ie&&(Qe=j==null?void 0:j(ze,$e)),Ie&&Qe!==!1&&re()}}}),me=l5(fe),ue=ie(me,1),Se=ue[0],le=function(Ee){switch(Ee){case Su:return G(G(G({},Po,h),yl,S),bl,w);case xu:return G(G(G({},Po,y),yl,C),bl,R);case wu:return G(G(G({},Po,b),yl,$),bl,I);default:return{}}},ce=u.useMemo(function(){return le(M)},[M]),ve=f5(M,!e,function($e){if($e===Po){var Ee=ce[Po];return Ee?Ee(ne()):lx}if(se in ce){var ze;U(((ze=ce[se])===null||ze===void 0?void 0:ze.call(ce,ne(),null))||null)}return se===bl&&M!==Aa&&(Se(ne()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){fe({deadline:!0})},p))),se===ex&&re(),d5}),be=ie(ve,2),de=be[0],se=be[1],ye=sx(se);te.current=ye;var xe=u.useRef(null);ix(function(){if(!(H.current&&xe.current===t)){z(t);var $e=H.current;H.current=!0;var Ee;!$e&&t&&c&&(Ee=Su),$e&&t&&l&&(Ee=xu),($e&&!t&&m||!$e&&g&&!t&&m)&&(Ee=wu);var ze=le(Ee);Ee&&(e||ze[Po])?(q(Ee),de()):q(Aa),xe.current=t}},[t]),u.useEffect(function(){(M===Su&&!c||M===xu&&!l||M===wu&&!m)&&q(Aa)},[c,l,m]),u.useEffect(function(){return function(){H.current=!1,clearTimeout(Q.current)}},[]);var _e=u.useRef(!1);u.useEffect(function(){B&&(_e.current=!0),B!==void 0&&M===Aa&&((_e.current||B)&&(N==null||N(B)),_e.current=!0)},[B,M]);var Pe=Y;return ce[Po]&&se===yl&&(Pe=K({transition:"none"},Pe)),[M,se,Pe,B??t]}function p5(e){var t=e;ht(e)==="object"&&(t=e.transitionSupport);function n(o,l){return!!(o.motionName&&t&&l!==!1)}var r=u.forwardRef(function(o,l){var s=o.visible,c=s===void 0?!0:s,d=o.removeOnLeave,m=d===void 0?!0:d,p=o.forceRender,g=o.children,h=o.motionName,y=o.leavedClassName,b=o.eventProps,S=u.useContext(ZS),C=S.motion,$=n(o,C),w=u.useRef(),R=u.useRef();function I(){try{return w.current instanceof HTMLElement?w.current:Mu(R.current)}catch{return null}}var _=m5($,c,I,o),O=ie(_,4),j=O[0],N=O[1],T=O[2],P=O[3],B=u.useRef(P);P&&(B.current=!0);var z=u.useCallback(function(F){w.current=F,th(l,F)},[l]),D,A=K(K({},b),{},{visible:c});if(!g)D=null;else if(j===Aa)P?D=g(K({},A),z):!m&&B.current&&y?D=g(K(K({},A),{},{className:y}),z):p||!m&&!y?D=g(K(K({},A),{},{style:{display:"none"}}),z):D=null;else{var W;N===Po?W="prepare":sx(N)?W="active":N===yl&&(W="start");var q=xb(h,"".concat(j,"-").concat(W));D=g(K(K({},A),{},{className:ee(xb(h,j),G(G({},q,q&&W),h,typeof h=="string")),style:T}),z)}if(u.isValidElement(D)&&Ya(D)){var V=Ei(D);V||(D=u.cloneElement(D,{ref:z}))}return u.createElement(n5,{ref:R},D)});return r.displayName="CSSMotion",r}const lo=p5(ax);var mg="add",pg="keep",gg="remove",op="removed";function g5(e){var t;return e&&ht(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function hg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(g5)}function h5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,l=hg(e),s=hg(t);l.forEach(function(m){for(var p=!1,g=r;g<o;g+=1){var h=s[g];if(h.key===m.key){r<g&&(n=n.concat(s.slice(r,g).map(function(y){return K(K({},y),{},{status:mg})})),r=g),n.push(K(K({},h),{},{status:pg})),r+=1,p=!0;break}}p||n.push(K(K({},m),{},{status:gg}))}),r<o&&(n=n.concat(s.slice(r).map(function(m){return K(K({},m),{},{status:mg})})));var c={};n.forEach(function(m){var p=m.key;c[p]=(c[p]||0)+1});var d=Object.keys(c).filter(function(m){return c[m]>1});return d.forEach(function(m){n=n.filter(function(p){var g=p.key,h=p.status;return g!==m||h!==gg}),n.forEach(function(p){p.key===m&&(p.status=pg)})}),n}var v5=["component","children","onVisibleChanged","onAllRemoved"],y5=["status"],b5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function C5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lo,n=(function(r){ya(l,r);var o=ba(l);function l(){var s;Jn(this,l);for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];return s=o.call.apply(o,[this].concat(d)),G(Gt(s),"state",{keyEntities:[]}),G(Gt(s),"removeKey",function(p){s.setState(function(g){var h=g.keyEntities.map(function(y){return y.key!==p?y:K(K({},y),{},{status:op})});return{keyEntities:h}},function(){var g=s.state.keyEntities,h=g.filter(function(y){var b=y.status;return b!==op}).length;h===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Zn(l,[{key:"render",value:function(){var c=this,d=this.state.keyEntities,m=this.props,p=m.component,g=m.children,h=m.onVisibleChanged;m.onAllRemoved;var y=Pt(m,v5),b=p||u.Fragment,S={};return b5.forEach(function(C){S[C]=y[C],delete y[C]}),delete y.keys,u.createElement(b,y,d.map(function(C,$){var w=C.status,R=Pt(C,y5),I=w===mg||w===pg;return u.createElement(t,ke({},S,{key:R.key,visible:I,eventProps:R,onVisibleChanged:function(O){h==null||h(O,{key:R.key}),O||c.removeKey(R.key)}}),function(_,O){return g(K(K({},_),{},{index:$}),O)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,d){var m=c.keys,p=d.keyEntities,g=hg(m),h=h5(p,g);return{keyEntities:h.filter(function(y){var b=p.find(function(S){var C=S.key;return y.key===C});return!(b&&b.status===op&&y.status===gg)})}}}]),l})(u.Component);return G(n,"defaultProps",{component:"div"}),n}const S5=C5(ax),wb=u.createContext(!0);function x5(e){const t=u.useContext(wb),{children:n}=e,[,r]=Br(),{motion:o}=r,l=u.useRef(!1);return l.current||(l.current=t!==o),l.current?u.createElement(wb.Provider,{value:o},u.createElement(t5,{motion:o},n)):n}const w5=()=>null;var $5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const E5=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let od,cx,ux,dx;function qu(){return od||Us}function R5(){return cx||Td}function k5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const _5=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(od=t),n!==void 0&&(cx=n),"holderRender"in e&&(dx=o),r&&(k5(r)?kR(qu(),r):ux=r)},fx=()=>({getPrefixCls:(e,t)=>t||(e?`${qu()}-${e}`:qu()),getIconPrefixCls:R5,getRootPrefixCls:()=>od||qu(),getTheme:()=>ux,holderRender:dx}),O5=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:l,form:s,locale:c,componentSize:d,direction:m,space:p,splitter:g,virtual:h,dropdownMatchSelectWidth:y,popupMatchSelectWidth:b,popupOverflow:S,legacyLocale:C,parentContext:$,iconPrefixCls:w,theme:R,componentDisabled:I,segmented:_,statistic:O,spin:j,calendar:N,carousel:T,cascader:P,collapse:B,typography:z,checkbox:D,descriptions:A,divider:W,drawer:q,skeleton:V,steps:F,image:Y,layout:U,list:M,mentions:H,modal:Q,progress:ne,result:te,slider:re,breadcrumb:fe,menu:me,pagination:ue,input:Se,textArea:le,empty:ce,badge:ve,radio:be,rate:de,switch:se,transfer:ye,avatar:xe,message:_e,tag:Pe,table:$e,card:Ee,tabs:ze,timeline:Ie,timePicker:Qe,upload:ot,notification:xt,tree:dt,colorPicker:Xe,datePicker:ct,rangePicker:Ge,flex:pt,wave:Ze,dropdown:Le,warning:tt,tour:Ne,tooltip:Ve,popover:kt,popconfirm:vt,floatButton:Xt,floatButtonGroup:Ut,variant:fn,inputNumber:wn,treeSelect:Yt}=e,Lt=u.useCallback((et,Bt)=>{const{prefixCls:Ht}=e;if(Bt)return Bt;const jt=Ht||$.getPrefixCls("");return et?`${jt}-${et}`:jt},[$.getPrefixCls,e.prefixCls]),wt=w||$.iconPrefixCls||Td,Jt=n||$.csp;XR(wt,Jt);const Wt=ZR(R,$.theme,{prefixCls:Lt("")}),nt={csp:Jt,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:c||C,direction:m,space:p,splitter:g,virtual:h,popupMatchSelectWidth:b??y,popupOverflow:S,getPrefixCls:Lt,iconPrefixCls:wt,theme:Wt,segmented:_,statistic:O,spin:j,calendar:N,carousel:T,cascader:P,collapse:B,typography:z,checkbox:D,descriptions:A,divider:W,drawer:q,skeleton:V,steps:F,image:Y,input:Se,textArea:le,layout:U,list:M,mentions:H,modal:Q,progress:ne,result:te,slider:re,breadcrumb:fe,menu:me,pagination:ue,empty:ce,badge:ve,radio:be,rate:de,switch:se,transfer:ye,avatar:xe,message:_e,tag:Pe,table:$e,card:Ee,tabs:ze,timeline:Ie,timePicker:Qe,upload:ot,notification:xt,tree:dt,colorPicker:Xe,datePicker:ct,rangePicker:Ge,flex:pt,wave:Ze,dropdown:Le,warning:tt,tour:Ne,tooltip:Ve,popover:kt,popconfirm:vt,floatButton:Xt,floatButtonGroup:Ut,variant:fn,inputNumber:wn,treeSelect:Yt},St=Object.assign({},$);Object.keys(nt).forEach(et=>{nt[et]!==void 0&&(St[et]=nt[et])}),E5.forEach(et=>{const Bt=e[et];Bt&&(St[et]=Bt)}),typeof r<"u"&&(St.button=Object.assign({autoInsertSpace:r},St.button));const ut=rc(()=>St,St,(et,Bt)=>{const Ht=Object.keys(et),jt=Object.keys(Bt);return Ht.length!==jt.length||Ht.some(zt=>et[zt]!==Bt[zt])}),{layer:Te}=u.useContext(oc),Re=u.useMemo(()=>({prefixCls:wt,csp:Jt,layer:Te?"antd":void 0}),[wt,Jt,Te]);let we=u.createElement(u.Fragment,null,u.createElement(w5,{dropdownMatchSelectWidth:y}),t);const Be=u.useMemo(()=>{var et,Bt,Ht,jt;return vl(((et=Ua.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((Ht=(Bt=ut.locale)===null||Bt===void 0?void 0:Bt.Form)===null||Ht===void 0?void 0:Ht.defaultValidateMessages)||{},((jt=ut.form)===null||jt===void 0?void 0:jt.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[ut,s==null?void 0:s.validateMessages]);Object.keys(Be).length>0&&(we=u.createElement(aR.Provider,{value:Be},we)),c&&(we=u.createElement(uR,{locale:c,_ANT_MARK__:cR},we)),we=u.createElement(dh.Provider,{value:Re},we),d&&(we=u.createElement(_R,{size:d},we)),we=u.createElement(x5,null,we);const Je=u.useMemo(()=>{const et=Wt||{},{algorithm:Bt,token:Ht,components:jt,cssVar:zt}=et,Sn=$5(et,["algorithm","token","components","cssVar"]),vn=Bt&&(!Array.isArray(Bt)||Bt.length>0)?Xp(Bt):HS,$n={};Object.entries(jt||{}).forEach(([en,an])=>{const Ae=Object.assign({},an);"algorithm"in Ae&&(Ae.algorithm===!0?Ae.theme=vn:(Array.isArray(Ae.algorithm)||typeof Ae.algorithm=="function")&&(Ae.theme=Xp(Ae.algorithm)),delete Ae.algorithm),$n[en]=Ae});const Tn=Object.assign(Object.assign({},qs),Ht);return Object.assign(Object.assign({},Sn),{theme:vn,token:Tn,components:$n,override:Object.assign({override:Tn},$n),cssVar:zt})},[Wt]);return R&&(we=u.createElement(VS.Provider,{value:Je},we)),ut.warning&&(we=u.createElement(oR.Provider,{value:ut.warning},we)),I!==void 0&&(we=u.createElement(WS,{disabled:I},we)),u.createElement(Rt.Provider,{value:ut},we)},na=e=>{const t=u.useContext(Rt),n=u.useContext(fh);return u.createElement(O5,Object.assign({parentContext:t,legacyLocale:n},e))};na.ConfigContext=Rt;na.SizeContext=jl;na.config=_5;na.useConfig=OR;Object.defineProperty(na,"SizeContext",{get:()=>jl});var I5={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 mx(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function T5(e){return mx(e)instanceof ShadowRoot}function ad(e){return T5(e)?mx(e):null}function j5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function N5(e,t){fr(e,"[@ant-design/icons] ".concat(t))}function $b(e){return ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ht(e.icon)==="object"||typeof e.icon=="function")}function Eb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[j5(n)]=r}return t},{})}function vg(e,t,n){return n?J.createElement(e.tag,K(K({key:t},Eb(e.attrs)),n),(e.children||[]).map(function(r,o){return vg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):J.createElement(e.tag,K({key:t},Eb(e.attrs)),(e.children||[]).map(function(r,o){return vg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function px(e){return Ci(e)[0]}function gx(e){return e?Array.isArray(e)?e:[e]:[]}var P5=`
96
+ .anticon {
97
+ display: inline-flex;
98
+ align-items: center;
99
+ color: inherit;
100
+ font-style: normal;
101
+ line-height: 0;
102
+ text-align: center;
103
+ text-transform: none;
104
+ vertical-align: -0.125em;
105
+ text-rendering: optimizeLegibility;
106
+ -webkit-font-smoothing: antialiased;
107
+ -moz-osx-font-smoothing: grayscale;
108
+ }
109
+
110
+ .anticon > * {
111
+ line-height: 1;
112
+ }
113
+
114
+ .anticon svg {
115
+ display: inline-block;
116
+ }
117
+
118
+ .anticon::before {
119
+ display: none;
120
+ }
121
+
122
+ .anticon .anticon-icon {
123
+ display: block;
124
+ }
125
+
126
+ .anticon[tabindex] {
127
+ cursor: pointer;
128
+ }
129
+
130
+ .anticon-spin::before,
131
+ .anticon-spin {
132
+ display: inline-block;
133
+ -webkit-animation: loadingCircle 1s infinite linear;
134
+ animation: loadingCircle 1s infinite linear;
135
+ }
136
+
137
+ @-webkit-keyframes loadingCircle {
138
+ 100% {
139
+ -webkit-transform: rotate(360deg);
140
+ transform: rotate(360deg);
141
+ }
142
+ }
143
+
144
+ @keyframes loadingCircle {
145
+ 100% {
146
+ -webkit-transform: rotate(360deg);
147
+ transform: rotate(360deg);
148
+ }
149
+ }
150
+ `,z5=function(t){var n=u.useContext(dh),r=n.csp,o=n.prefixCls,l=n.layer,s=P5;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
151
+ `).concat(s,`
152
+ }`)),u.useEffect(function(){var c=t.current,d=ad(c);va(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},M5=["icon","className","onClick","style","primaryColor","secondaryColor"],zs={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function L5(e){var t=e.primaryColor,n=e.secondaryColor;zs.primaryColor=t,zs.secondaryColor=n||px(t),zs.calculated=!!n}function B5(){return K({},zs)}var Al=function(t){var n=t.icon,r=t.className,o=t.onClick,l=t.style,s=t.primaryColor,c=t.secondaryColor,d=Pt(t,M5),m=u.useRef(),p=zs;if(s&&(p={primaryColor:s,secondaryColor:c||px(s)}),z5(m),N5($b(n),"icon should be icon definiton, but got ".concat(n)),!$b(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=K(K({},g),{},{icon:g.icon(p.primaryColor,p.secondaryColor)})),vg(g.icon,"svg-".concat(g.name),K(K({className:r,onClick:o,style:l,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:m}))};Al.displayName="IconReact";Al.getTwoToneColors=B5;Al.setTwoToneColors=L5;function hx(e){var t=gx(e),n=ie(t,2),r=n[0],o=n[1];return Al.setTwoToneColors({primaryColor:r,secondaryColor:o})}function A5(){var e=Al.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var D5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];hx(td.primary);var gn=u.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,l=e.rotate,s=e.tabIndex,c=e.onClick,d=e.twoToneColor,m=Pt(e,D5),p=u.useContext(dh),g=p.prefixCls,h=g===void 0?"anticon":g,y=p.rootClassName,b=ee(y,h,G(G({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),S=s;S===void 0&&c&&(S=-1);var C=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,$=gx(d),w=ie($,2),R=w[0],I=w[1];return u.createElement("span",ke({role:"img","aria-label":r.name},m,{ref:t,tabIndex:S,onClick:c,className:b}),u.createElement(Al,{icon:r,primaryColor:R,secondaryColor:I,style:C}))});gn.displayName="AntdIcon";gn.getTwoToneColor=A5;gn.setTwoToneColor=hx;var F5=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:I5}))},vx=u.forwardRef(F5),H5={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"},V5=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:H5}))},Nd=u.forwardRef(V5),W5={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"},q5=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:W5}))},Xa=u.forwardRef(q5),U5={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"},G5=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:U5}))},yx=u.forwardRef(G5),K5={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"},X5=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:K5}))},bx=u.forwardRef(X5),Q5=`accept acceptCharset accessKey action allowFullScreen allowTransparency
153
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
154
+ charSet checked classID className colSpan cols content contentEditable contextMenu
155
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
156
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
157
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
158
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
159
+ mediaGroup method min minLength multiple muted name noValidate nonce open
160
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
161
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
162
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
163
+ summary tabIndex target title type useMap value width wmode wrap`,Y5=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
164
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
165
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
166
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
167
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
168
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
169
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,J5="".concat(Q5," ").concat(Y5).split(/[\s\n]+/),Z5="aria-",ek="data-";function Rb(e,t){return e.indexOf(t)===0}function so(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=K({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Rb(o,Z5))||n.data&&Rb(o,ek)||n.attr&&J5.includes(o))&&(r[o]=e[o])}),r}function Cx(e){return e&&J.isValidElement(e)&&e.type===J.Fragment}const Sx=(e,t,n)=>J.isValidElement(e)?J.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Lr(e,t){return Sx(e,e,t)}const Fo=e=>{const[,,,,t]=Br();return t?`${e}-css-var`:""};var qe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},xx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,l=e.duration,s=l===void 0?4.5:l,c=e.showProgress,d=e.pauseOnHover,m=d===void 0?!0:d,p=e.eventKey,g=e.content,h=e.closable,y=e.closeIcon,b=y===void 0?"x":y,S=e.props,C=e.onClick,$=e.onNoticeClose,w=e.times,R=e.hovering,I=u.useState(!1),_=ie(I,2),O=_[0],j=_[1],N=u.useState(0),T=ie(N,2),P=T[0],B=T[1],z=u.useState(0),D=ie(z,2),A=D[0],W=D[1],q=R||O,V=s>0&&c,F=function(){$(p)},Y=function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===qe.ENTER)&&F()};u.useEffect(function(){if(!q&&s>0){var ne=Date.now()-A,te=setTimeout(function(){F()},s*1e3-A);return function(){m&&clearTimeout(te),W(Date.now()-ne)}}},[s,q,w]),u.useEffect(function(){if(!q&&V&&(m||A===0)){var ne=performance.now(),te,re=function fe(){cancelAnimationFrame(te),te=requestAnimationFrame(function(me){var ue=me+A-ne,Se=Math.min(ue/(s*1e3),1);B(Se*100),Se<1&&fe()})};return re(),function(){m&&cancelAnimationFrame(te)}}},[s,A,q,V,w]);var U=u.useMemo(function(){return ht(h)==="object"&&h!==null?h:h?{closeIcon:b}:{}},[h,b]),M=so(U,!0),H=100-(!P||P<0?0:P>100?100:P),Q="".concat(n,"-notice");return u.createElement("div",ke({},S,{ref:t,className:ee(Q,o,G({},"".concat(Q,"-closable"),h)),style:r,onMouseEnter:function(te){var re;j(!0),S==null||(re=S.onMouseEnter)===null||re===void 0||re.call(S,te)},onMouseLeave:function(te){var re;j(!1),S==null||(re=S.onMouseLeave)===null||re===void 0||re.call(S,te)},onClick:C}),u.createElement("div",{className:"".concat(Q,"-content")},g),h&&u.createElement("a",ke({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:Y,"aria-label":"Close"},M,{onClick:function(te){te.preventDefault(),te.stopPropagation(),F()}}),U.closeIcon),V&&u.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:H},H+"%"))}),wx=J.createContext({}),tk=function(t){var n=t.children,r=t.classNames;return J.createElement(wx.Provider,{value:{classNames:r}},n)},kb=8,_b=3,Ob=16,nk=function(t){var n={offset:kb,threshold:_b,gap:Ob};if(t&&ht(t)==="object"){var r,o,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:kb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:_b,n.gap=(l=t.gap)!==null&&l!==void 0?l:Ob}return[!!t,n]},rk=["className","style","classNames","styles"],ok=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,l=t.className,s=t.style,c=t.motion,d=t.onAllNoticeRemoved,m=t.onNoticeClose,p=t.stack,g=u.useContext(wx),h=g.classNames,y=u.useRef({}),b=u.useState(null),S=ie(b,2),C=S[0],$=S[1],w=u.useState([]),R=ie(w,2),I=R[0],_=R[1],O=n.map(function(q){return{config:q,key:String(q.key)}}),j=nk(p),N=ie(j,2),T=N[0],P=N[1],B=P.offset,z=P.threshold,D=P.gap,A=T&&(I.length>0||O.length<=z),W=typeof c=="function"?c(r):c;return u.useEffect(function(){T&&I.length>1&&_(function(q){return q.filter(function(V){return O.some(function(F){var Y=F.key;return V===Y})})})},[I,O,T]),u.useEffect(function(){var q;if(T&&y.current[(q=O[O.length-1])===null||q===void 0?void 0:q.key]){var V;$(y.current[(V=O[O.length-1])===null||V===void 0?void 0:V.key])}},[O,T]),J.createElement(S5,ke({key:r,className:ee(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,l,G(G({},"".concat(o,"-stack"),!!T),"".concat(o,"-stack-expanded"),A)),style:s,keys:O,motionAppear:!0},W,{onAllRemoved:function(){d(r)}}),function(q,V){var F=q.config,Y=q.className,U=q.style,M=q.index,H=F,Q=H.key,ne=H.times,te=String(Q),re=F,fe=re.className,me=re.style,ue=re.classNames,Se=re.styles,le=Pt(re,rk),ce=O.findIndex(function(Ie){return Ie.key===te}),ve={};if(T){var be=O.length-1-(ce>-1?ce:M-1),de=r==="top"||r==="bottom"?"-50%":"0";if(be>0){var se,ye,xe;ve.height=A?(se=y.current[te])===null||se===void 0?void 0:se.offsetHeight:C==null?void 0:C.offsetHeight;for(var _e=0,Pe=0;Pe<be;Pe++){var $e;_e+=(($e=y.current[O[O.length-1-Pe].key])===null||$e===void 0?void 0:$e.offsetHeight)+D}var Ee=(A?_e:be*B)*(r.startsWith("top")?1:-1),ze=!A&&C!==null&&C!==void 0&&C.offsetWidth&&(ye=y.current[te])!==null&&ye!==void 0&&ye.offsetWidth?((C==null?void 0:C.offsetWidth)-B*2*(be<3?be:3))/((xe=y.current[te])===null||xe===void 0?void 0:xe.offsetWidth):1;ve.transform="translate3d(".concat(de,", ").concat(Ee,"px, 0) scaleX(").concat(ze,")")}else ve.transform="translate3d(".concat(de,", 0, 0)")}return J.createElement("div",{ref:V,className:ee("".concat(o,"-notice-wrapper"),Y,ue==null?void 0:ue.wrapper),style:K(K(K({},U),ve),Se==null?void 0:Se.wrapper),onMouseEnter:function(){return _(function(Qe){return Qe.includes(te)?Qe:[].concat(Fe(Qe),[te])})},onMouseLeave:function(){return _(function(Qe){return Qe.filter(function(ot){return ot!==te})})}},J.createElement(xx,ke({},le,{ref:function(Qe){ce>-1?y.current[te]=Qe:delete y.current[te]},prefixCls:o,classNames:ue,styles:Se,className:ee(fe,h==null?void 0:h.notice),style:me,times:ne,key:Q,eventKey:Q,onNoticeClose:m,hovering:T&&I.length>0})))})},ak=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,l=e.motion,s=e.maxCount,c=e.className,d=e.style,m=e.onAllRemoved,p=e.stack,g=e.renderNotifications,h=u.useState([]),y=ie(h,2),b=y[0],S=y[1],C=function(T){var P,B=b.find(function(z){return z.key===T});B==null||(P=B.onClose)===null||P===void 0||P.call(B),S(function(z){return z.filter(function(D){return D.key!==T})})};u.useImperativeHandle(t,function(){return{open:function(T){S(function(P){var B=Fe(P),z=B.findIndex(function(W){return W.key===T.key}),D=K({},T);if(z>=0){var A;D.times=(((A=P[z])===null||A===void 0?void 0:A.times)||0)+1,B[z]=D}else D.times=0,B.push(D);return s>0&&B.length>s&&(B=B.slice(-s)),B})},close:function(T){C(T)},destroy:function(){S([])}}});var $=u.useState({}),w=ie($,2),R=w[0],I=w[1];u.useEffect(function(){var N={};b.forEach(function(T){var P=T.placement,B=P===void 0?"topRight":P;B&&(N[B]=N[B]||[],N[B].push(T))}),Object.keys(R).forEach(function(T){N[T]=N[T]||[]}),I(N)},[b]);var _=function(T){I(function(P){var B=K({},P),z=B[T]||[];return z.length||delete B[T],B})},O=u.useRef(!1);if(u.useEffect(function(){Object.keys(R).length>0?O.current=!0:O.current&&(m==null||m(),O.current=!1)},[R]),!o)return null;var j=Object.keys(R);return qa.createPortal(u.createElement(u.Fragment,null,j.map(function(N){var T=R[N],P=u.createElement(ok,{key:N,configList:T,placement:N,prefixCls:r,className:c==null?void 0:c(N),style:d==null?void 0:d(N),motion:l,onNoticeClose:C,onAllNoticeRemoved:_,stack:p});return g?g(P,{prefixCls:r,key:N}):P})),o)}),ik=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],lk=function(){return document.body},Ib=0;function sk(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(l){var s=o[l];s!==void 0&&(e[l]=s)})}),e}function ck(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?lk:t,r=e.motion,o=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,d=e.onAllRemoved,m=e.stack,p=e.renderNotifications,g=Pt(e,ik),h=u.useState(),y=ie(h,2),b=y[0],S=y[1],C=u.useRef(),$=u.createElement(ak,{container:b,ref:C,prefixCls:o,motion:r,maxCount:l,className:s,style:c,onAllRemoved:d,stack:m,renderNotifications:p}),w=u.useState([]),R=ie(w,2),I=R[0],_=R[1],O=Dn(function(N){var T=sk(g,N);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(Ib),Ib+=1),_(function(P){return[].concat(Fe(P),[{type:"open",config:T}])})}),j=u.useMemo(function(){return{open:O,close:function(T){_(function(P){return[].concat(Fe(P),[{type:"close",key:T}])})},destroy:function(){_(function(T){return[].concat(Fe(T),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){S(n())}),u.useEffect(function(){if(C.current&&I.length){I.forEach(function(P){switch(P.type){case"open":C.current.open(P.config);break;case"close":C.current.close(P.key);break;case"destroy":C.current.destroy();break}});var N,T;_(function(P){return(N!==P||!T)&&(N=P,T=P.filter(function(B){return!I.includes(B)})),T})}},[I]),[j,$]}var uk={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"},dk=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:uk}))},ic=u.forwardRef(dk);function yg(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Pl(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function Tb(e){const{closable:t,closeIcon:n}=e||{};return J.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const fk={},gh=(e,t,n=fk)=>{const r=Tb(e),o=Tb(t),[l]=Ca("global",Ua.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,c=J.useMemo(()=>Object.assign({closeIcon:J.createElement(Xa,null)},n),[n]),d=J.useMemo(()=>r===!1?!1:r?yg(c,o,r):o===!1?!1:o?yg(c,o):c.closable?c:!1,[r,o,c]);return J.useMemo(()=>{var m,p;if(d===!1)return[!1,null,s,{}];const{closeIconRender:g}=c,{closeIcon:h}=d;let y=h;const b=so(d,!0);return y!=null&&(g&&(y=g(h)),y=J.isValidElement(y)?J.cloneElement(y,Object.assign(Object.assign(Object.assign({},y.props),{"aria-label":(p=(m=y.props)===null||m===void 0?void 0:m["aria-label"])!==null&&p!==void 0?p:l.close}),b)):J.createElement("span",Object.assign({"aria-label":l.close},b),y)),[!0,y,s,b]},[s,l.close,d,c])},mk=()=>J.useReducer(e=>e+1,0),pk=()=>{const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(Fe(o),[r])),()=>{t(o=>o.filter(l=>l!==r))}),[]);return[e,n]},lc=J.createContext(void 0),Da=100,gk=10,$x=Da*gk,Ex={Modal:Da,Drawer:Da,Popover:Da,Popconfirm:Da,Tooltip:Da,Tour:Da,FloatButton:Da},hk={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function vk(e){return e in Ex}const Dl=(e,t)=>{const[,n]=Br(),r=J.useContext(lc),o=vk(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+Ex[e]:s+=hk[e],l=[r===void 0?t:s,s]}return l},yk=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:l,colorError:s,colorWarning:c,colorInfo:d,fontSizeLG:m,motionEaseInOutCirc:p,motionDurationSlow:g,marginXS:h,paddingXS:y,borderRadiusLG:b,zIndexPopup:S,contentPadding:C,contentBg:$}=e,w=`${t}-notice`,R=new qt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),I=new qt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:y,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:y,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:m},[`${w}-content`]:{display:"inline-block",padding:C,background:$,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:c},[`${t}-info > ${n},
170
+ ${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},Pn(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
171
+ ${t}-move-up-appear,
172
+ ${t}-move-up-enter
173
+ `]:{animationName:R,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`
174
+ ${t}-move-up-appear${t}-move-up-appear-active,
175
+ ${t}-move-up-enter${t}-move-up-enter-active
176
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:I,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},_)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},_),{padding:0,textAlign:"start"})}]},bk=e=>({zIndexPopup:e.zIndexPopupBase+$x+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Rx=dn("Message",e=>{const t=Kt(e,{height:150});return yk(t)},bk);var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Sk={info:u.createElement(bx,null),success:u.createElement(vx,null),error:u.createElement(Nd,null),warning:u.createElement(yx,null),loading:u.createElement(ic,null)},kx=({prefixCls:e,type:t,icon:n,children:r})=>u.createElement("div",{className:ee(`${e}-custom-content`,`${e}-${t}`)},n||Sk[t],u.createElement("span",null,r)),xk=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:l}=e,s=Ck(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=u.useContext(Rt),d=t||c("message"),m=Fo(d),[p,g,h]=Rx(d,m);return p(u.createElement(xx,Object.assign({},s,{prefixCls:d,className:ee(n,g,`${d}-notice-pure-panel`,h,m),eventKey:"pure",duration:null,content:u.createElement(kx,{prefixCls:d,type:r,icon:o},l)})))};function wk(e,t){return{motionName:t??`${e}-move-up`}}function hh(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,l)=>n.then(o,l),r.promise=n,r}var $k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ek=8,Rk=3,kk=({children:e,prefixCls:t})=>{const n=Fo(t),[r,o,l]=Rx(t,n);return r(u.createElement(tk,{classNames:{list:ee(o,l,n)}},e))},_k=(e,{prefixCls:t,key:n})=>u.createElement(kk,{prefixCls:t,key:n},e),Ok=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:l,duration:s=Rk,rtl:c,transitionName:d,onAllRemoved:m}=e,{getPrefixCls:p,getPopupContainer:g,message:h,direction:y}=u.useContext(Rt),b=r||p("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??Ek}),C=()=>ee({[`${b}-rtl`]:c??y==="rtl"}),$=()=>wk(b,d),w=u.createElement("span",{className:`${b}-close-x`},u.createElement(Xa,{className:`${b}-close-icon`})),[R,I]=ck({prefixCls:b,style:S,className:C,motion:$,closable:!1,closeIcon:w,duration:s,getContainer:()=>(o==null?void 0:o())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:_k});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},R),{prefixCls:b,message:h})),I});let jb=0;function _x(e){const t=u.useRef(null);return Id(),[u.useMemo(()=>{const r=d=>{var m;(m=t.current)===null||m===void 0||m.close(d)},o=d=>{if(!t.current){const O=()=>{};return O.then=()=>{},O}const{open:m,prefixCls:p,message:g}=t.current,h=`${p}-notice`,{content:y,icon:b,type:S,key:C,className:$,style:w,onClose:R}=d,I=$k(d,["content","icon","type","key","className","style","onClose"]);let _=C;return _==null&&(jb+=1,_=`antd-message-${jb}`),hh(O=>(m(Object.assign(Object.assign({},I),{key:_,content:u.createElement(kx,{prefixCls:p,type:S,icon:b},y),placement:"top",className:ee(S&&`${h}-${S}`,$,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),w),onClose:()=>{R==null||R(),O()}})),()=>{r(_)}))},s={open:o,destroy:d=>{var m;d!==void 0?r(d):(m=t.current)===null||m===void 0||m.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const m=(p,g,h)=>{let y;p&&typeof p=="object"&&"content"in p?y=p:y={content:p};let b,S;typeof g=="function"?S=g:(b=g,S=h);const C=Object.assign(Object.assign({onClose:S,duration:b},y),{type:d});return o(C)};s[d]=m}),s},[]),u.createElement(Ok,Object.assign({key:"message-holder"},e,{ref:t}))]}function Ik(e){return _x(e)}function Ox(e,t){this.v=e,this.k=t}function kr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}kr=function(s,c,d,m){function p(g,h){kr(s,g,function(y){return this._invoke(g,h,y)})}c?o?o(s,c,{value:d,enumerable:!m,configurable:!m,writable:!m}):s[c]=d:(p("next",0),p("throw",1),p("return",2))},kr(e,t,n,r)}function vh(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function l(y,b,S,C){var $=b&&b.prototype instanceof c?b:c,w=Object.create($.prototype);return kr(w,"_invoke",(function(R,I,_){var O,j,N,T=0,P=_||[],B=!1,z={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(W,q){return O=W,j=0,N=e,z.n=q,s}};function D(A,W){for(j=A,N=W,t=0;!B&&T&&!q&&t<P.length;t++){var q,V=P[t],F=z.p,Y=V[2];A>3?(q=Y===W)&&(N=V[(j=V[4])?5:(j=3,3)],V[4]=V[5]=e):V[0]<=F&&((q=A<2&&F<V[1])?(j=0,z.v=W,z.n=V[1]):F<Y&&(q=A<3||V[0]>W||W>Y)&&(V[4]=A,V[5]=W,z.n=Y,j=0))}if(q||A>1)return s;throw B=!0,W}return function(A,W,q){if(T>1)throw TypeError("Generator is already running");for(B&&W===1&&D(W,q),j=W,N=q;(t=j<2?e:N)||!B;){O||(j?j<3?(j>1&&(z.n=-1),D(j,N)):z.n=N:z.v=N);try{if(T=2,O){if(j||(A="next"),t=O[A]){if(!(t=t.call(O,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,j<2&&(j=0)}else j===1&&(t=O.return)&&t.call(O),j<2&&(N=TypeError("The iterator does not provide a '"+A+"' method"),j=1);O=e}else if((t=(B=z.n<0)?N:R.call(I,z))!==s)break}catch(V){O=e,j=1,N=V}finally{T=1}}return{value:t,done:B}}})(y,S,C),!0),w}var s={};function c(){}function d(){}function m(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):(kr(t={},r,function(){return this}),t),g=m.prototype=c.prototype=Object.create(p);function h(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,m):(y.__proto__=m,kr(y,o,"GeneratorFunction")),y.prototype=Object.create(g),y}return d.prototype=m,kr(g,"constructor",m),kr(m,"constructor",d),d.displayName="GeneratorFunction",kr(m,o,"GeneratorFunction"),kr(g),kr(g,o,"Generator"),kr(g,r,function(){return this}),kr(g,"toString",function(){return"[object Generator]"}),(vh=function(){return{w:l,m:h}})()}function id(e,t){function n(o,l,s,c){try{var d=e[o](l),m=d.value;return m instanceof Ox?t.resolve(m.v).then(function(p){n("next",p,s,c)},function(p){n("throw",p,s,c)}):t.resolve(m).then(function(p){d.value=p,s(d)},function(p){return n("throw",p,s,c)})}catch(p){c(p)}}var r;this.next||(kr(id.prototype),kr(id.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),kr(this,"_invoke",function(o,l,s){function c(){return new t(function(d,m){n(o,s,d,m)})}return r=r?r.then(c,c):c()},!0)}function Ix(e,t,n,r,o){return new id(vh().w(e,t,n,r),o||Promise)}function Tk(e,t,n,r,o){var l=Ix(e,t,n,r,o);return l.next().then(function(s){return s.done?s.value:l.next()})}function jk(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function Nb(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(ht(e)+" is not iterable")}function Ir(){var e=vh(),t=e.m(Ir),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(s){var c=typeof s=="function"&&s.constructor;return!!c&&(c===n||(c.displayName||c.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function l(s){var c,d;return function(m){c||(c={stop:function(){return d(m.a,2)},catch:function(){return m.v},abrupt:function(g,h){return d(m.a,o[g],h)},delegateYield:function(g,h,y){return c.resultName=h,d(m.d,Nb(g),y)},finish:function(g){return d(m.f,g)}},d=function(g,h,y){m.p=c.prev,m.n=c.next;try{return g(h,y)}finally{c.next=m.n}}),c.resultName&&(c[c.resultName]=m.v,c.resultName=void 0),c.sent=m.v,c.next=m.n;try{return s.call(this,c)}finally{m.p=c.prev,m.n=c.next}}}return(Ir=function(){return{wrap:function(d,m,p,g){return e.w(l(d),m,p,g&&g.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(d,m){return new Ox(d,m)},AsyncIterator:id,async:function(d,m,p,g,h){return(r(m)?Ix:Tk)(l(d),m,p,g,h)},keys:jk,values:Nb}})()}function Pb(e,t,n,r,o,l,s){try{var c=e[l](s),d=c.value}catch(m){return void n(m)}c.done?t(d):Promise.resolve(d).then(r,o)}function Ri(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function s(d){Pb(l,r,o,s,c,"next",d)}function c(d){Pb(l,r,o,s,c,"throw",d)}s(void 0)})}}var sc=K({},h4),Nk=sc.version,ap=sc.render,Pk=sc.unmountComponentAtNode,Pd;try{var zk=Number((Nk||"").split(".")[0]);zk>=18&&(Pd=sc.createRoot)}catch{}function zb(e){var t=sc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ht(t)==="object"&&(t.usingClientEntryPoint=e)}var ld="__rc_react_root__";function Mk(e,t){zb(!0);var n=t[ld]||Pd(t);zb(!1),n.render(e),t[ld]=n}function Lk(e,t){ap==null||ap(e,t)}function Bk(e,t){if(Pd){Mk(e,t);return}Lk(e,t)}function Ak(e){return bg.apply(this,arguments)}function bg(){return bg=Ri(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[ld])===null||o===void 0||o.unmount(),delete t[ld]}));case 1:case"end":return r.stop()}},e)})),bg.apply(this,arguments)}function Dk(e){Pk(e)}function Fk(e){return Cg.apply(this,arguments)}function Cg(){return Cg=Ri(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Pd===void 0){r.next=2;break}return r.abrupt("return",Ak(t));case 2:Dk(t);case 3:case"end":return r.stop()}},e)})),Cg.apply(this,arguments)}const Hk=(e,t)=>(Bk(e,t),()=>Fk(t));let Vk=Hk;function yh(e){return Vk}const ip=()=>({height:0,opacity:0}),Mb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Wk=e=>({height:e?e.offsetHeight:0}),lp=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Tx=(e=Us)=>({motionName:`${e}-motion-collapse`,onAppearStart:ip,onEnterStart:ip,onAppearActive:Mb,onEnterActive:Mb,onLeaveStart:Wk,onLeaveActive:ip,onAppearEnd:lp,onEnterEnd:lp,onLeaveEnd:lp,motionDeadline:500}),Jo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Kn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const bh=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),l=o.width,s=o.height;if(l||s)return!0}}return!1}),qk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Uk=KR("Wave",qk),Ch=`${Us}-wave-target`;function Gk(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"&&e!=="canvastext"}function Kk(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(Gk))!==null&&t!==void 0?t:null}function sp(e){return Number.isNaN(e)?0:e}const Xk=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,l=u.useRef(null),s=u.useRef(null);u.useEffect(()=>{s.current=o()},[]);const[c,d]=u.useState(null),[m,p]=u.useState([]),[g,h]=u.useState(0),[y,b]=u.useState(0),[S,C]=u.useState(0),[$,w]=u.useState(0),[R,I]=u.useState(!1),_={left:g,top:y,width:S,height:$,borderRadius:m.map(N=>`${N}px`).join(" ")};c&&(_["--wave-color"]=c);function O(){const N=getComputedStyle(n);d(Kk(n));const T=N.position==="static",{borderLeftWidth:P,borderTopWidth:B}=N;h(T?n.offsetLeft:sp(-Number.parseFloat(P))),b(T?n.offsetTop:sp(-Number.parseFloat(B))),C(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:z,borderTopRightRadius:D,borderBottomLeftRadius:A,borderBottomRightRadius:W}=N;p([z,D,W,A].map(q=>sp(Number.parseFloat(q))))}if(u.useEffect(()=>{if(n){const N=Cn(()=>{O(),I(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(O),T.observe(n)),()=>{Cn.cancel(N),T==null||T.disconnect()}}},[n]),!R)return null;const j=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Ch));return u.createElement(lo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,T)=>{var P,B;if(T.deadline||T.propertyName==="opacity"){const z=(P=l.current)===null||P===void 0?void 0:P.parentElement;(B=s.current)===null||B===void 0||B.call(s).then(()=>{z==null||z.remove()})}return!1}},({className:N},T)=>u.createElement("div",{ref:Eo(l,T),className:ee(t,N,{"wave-quick":j}),style:_}))},Qk=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const l=yh();let s=null;function c(){return s}s=l(u.createElement(Xk,Object.assign({},t,{target:e,registerUnmount:c})),o)},Yk=(e,t,n)=>{const{wave:r}=u.useContext(Rt),[,o,l]=Br(),s=Dn(m=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const g=p.querySelector(`.${Ch}`)||p,{showEffect:h}=r||{};(h||Qk)(g,{className:t,token:o,component:n,event:m,hashId:l})}),c=u.useRef(null);return m=>{Cn.cancel(c.current),c.current=Cn(()=>{s(m)})}},zd=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(Rt),l=u.useRef(null),s=o("wave"),[,c]=Uk(s),d=Yk(l,ee(s,c),r);if(J.useEffect(()=>{const p=l.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=h=>{!bh(h.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||d(h)};return p.addEventListener("click",g,!0),()=>{p.removeEventListener("click",g,!0)}},[n]),!J.isValidElement(t))return t??null;const m=Ya(t)?Eo(Ei(t),l):l;return Lr(t,{ref:m})},ra=e=>{const t=J.useContext(jl);return J.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Jk=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Zk=dn(["Space","Compact"],e=>[Jk(e)],()=>({}),{resetStyle:!1});var jx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Md=u.createContext(null),cc=(e,t)=>{const n=u.useContext(Md),r=u.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:l,isLastItem:s}=n,c=o==="vertical"?"-vertical-":"-";return ee(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:l,[`${e}-compact${c}last-item`]:s,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},e_=e=>{const{children:t}=e;return u.createElement(Md.Provider,{value:null},t)},t_=e=>{const{children:t}=e,n=jx(e,["children"]);return u.createElement(Md.Provider,{value:u.useMemo(()=>n,[n])},t)},n_=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Rt),{size:r,direction:o,block:l,prefixCls:s,className:c,rootClassName:d,children:m}=e,p=jx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=ra(R=>r??R),h=t("space-compact",s),[y,b]=Zk(h),S=ee(h,b,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:l,[`${h}-vertical`]:o==="vertical"},c,d),C=u.useContext(Md),$=Mr(m),w=u.useMemo(()=>$.map((R,I)=>{const _=(R==null?void 0:R.key)||`${h}-item-${I}`;return u.createElement(t_,{key:_,compactSize:g,compactDirection:o,isFirstItem:I===0&&(!C||(C==null?void 0:C.isFirstItem)),isLastItem:I===$.length-1&&(!C||(C==null?void 0:C.isLastItem))},R)}),[$,C,o,g,h]);return $.length===0?null:y(u.createElement("div",Object.assign({className:S},p),w))};var r_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nx=u.createContext(void 0),o_=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Rt),{prefixCls:r,size:o,className:l}=e,s=r_(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,d]=Br(),m=u.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),p=ee(c,{[`${c}-${m}`]:m,[`${c}-rtl`]:n==="rtl"},l,d);return u.createElement(Nx.Provider,{value:o},u.createElement("div",Object.assign({},s,{className:p})))},Lb=/^[\u4E00-\u9FA5]{2}$/,Sg=Lb.test.bind(Lb);function Px(e){return e==="danger"?{danger:!0}:{type:e}}function Bb(e){return typeof e=="string"}function cp(e){return e==="text"||e==="link"}function a_(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Bb(e.type)&&Sg(e.props.children)?Lr(e,{children:e.props.children.split("").join(n)}):Bb(e)?Sg(e)?J.createElement("span",null,e.split("").join(n)):J.createElement("span",null,e):Cx(e)?J.createElement("span",null,e):e}function i_(e,t){let n=!1;const r=[];return J.Children.forEach(e,o=>{const l=typeof o,s=l==="string"||l==="number";if(n&&s){const c=r.length-1,d=r[c];r[c]=`${d}${o}`}else r.push(o);n=s}),J.Children.map(r,o=>a_(o,t))}["default","primary","danger"].concat(Fe(Ka));const zx=u.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:l}=e,s=ee(`${l}-icon`,n);return J.createElement("span",{ref:t,className:s,style:r},o)}),Ab=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=e,s=ee(`${n}-loading-icon`,r);return J.createElement(zx,{prefixCls:n,className:s,style:o,ref:t},J.createElement(ic,{className:l}))}),up=()=>({width:0,opacity:0,transform:"scale(0)"}),dp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),l_=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:l,mount:s}=e,c=!!n;return r?J.createElement(Ab,{prefixCls:t,className:o,style:l}):J.createElement(lo,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:up,onAppearActive:dp,onEnterStart:up,onEnterActive:dp,onLeaveStart:dp,onLeaveActive:up},({className:d,style:m},p)=>{const g=Object.assign(Object.assign({},l),m);return J.createElement(Ab,{prefixCls:t,className:ee(o,d),style:g,ref:p})})},Db=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),s_=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,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(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Db(`${t}-primary`,o),Db(`${t}-danger`,l)]}};var c_=["b"],u_=["v"],fp=function(t){return Math.round(Number(t||0))},d_=function(t){if(t instanceof un)return t;if(t&&ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Pt(n,c_);return K(K({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Ks=(function(e){ya(n,e);var t=ba(n);function n(r){return Jn(this,n),t.call(this,d_(r))}return Zn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=fp(o.s*100),s=fp(o.b*100),c=fp(o.h),d=o.a,m="hsb(".concat(c,", ").concat(l,"%, ").concat(s,"%)"),p="hsba(".concat(c,", ").concat(l,"%, ").concat(s,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?m:p}},{key:"toHsb",value:function(){var o=this.toHsv(),l=o.v,s=Pt(o,u_);return K(K({},s),{},{b:l,a:this.a})}}]),n})(un),f_=function(t){return t instanceof Ks?t:new Ks(t)};f_("#1677ff");const m_=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",p_=(e,t)=>e?m_(e,t):"";let xg=(function(){function e(t){Jn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:l})=>({color:new e(o),percent:l})),this.metaColor=new Ks(this.colors[0].color.metaColor)):this.metaColor=new Ks(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Zn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return p_(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:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const l=n.colors[o];return r.percent===l.percent&&r.color.equals(l.color)}):this.toHexString()===n.toHexString()}}])})();var g_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},h_=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:g_}))},Qo=u.forwardRef(h_),Mx=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,l=e.style,s=e.children,c=e.isActive,d=e.role,m=e.classNames,p=e.styles,g=J.useState(c||r),h=ie(g,2),y=h[0],b=h[1];return J.useEffect(function(){(r||c)&&b(!0)},[r,c]),y?J.createElement("div",{ref:t,className:ee("".concat(n,"-content"),G(G({},"".concat(n,"-content-active"),c),"".concat(n,"-content-inactive"),!c),o),style:l,role:d},J.createElement("div",{className:ee("".concat(n,"-content-box"),m==null?void 0:m.body),style:p==null?void 0:p.body},s)):null});Mx.displayName="PanelContent";var v_=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Lx=J.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,l=e.isActive,s=e.onItemClick,c=e.forceRender,d=e.className,m=e.classNames,p=m===void 0?{}:m,g=e.styles,h=g===void 0?{}:g,y=e.prefixCls,b=e.collapsible,S=e.accordion,C=e.panelKey,$=e.extra,w=e.header,R=e.expandIcon,I=e.openMotion,_=e.destroyInactivePanel,O=e.children,j=Pt(e,v_),N=b==="disabled",T=$!=null&&typeof $!="boolean",P=G(G(G({onClick:function(){s==null||s(C)},onKeyDown:function(V){(V.key==="Enter"||V.keyCode===qe.ENTER||V.which===qe.ENTER)&&(s==null||s(C))},role:S?"tab":"button"},"aria-expanded",l),"aria-disabled",N),"tabIndex",N?-1:0),B=typeof R=="function"?R(e):J.createElement("i",{className:"arrow"}),z=B&&J.createElement("div",ke({className:"".concat(y,"-expand-icon")},["header","icon"].includes(b)?P:{}),B),D=ee("".concat(y,"-item"),G(G({},"".concat(y,"-item-active"),l),"".concat(y,"-item-disabled"),N),d),A=ee(o,"".concat(y,"-header"),G({},"".concat(y,"-collapsible-").concat(b),!!b),p.header),W=K({className:A,style:h.header},["header","icon"].includes(b)?{}:P);return J.createElement("div",ke({},j,{ref:t,className:D}),J.createElement("div",W,r&&z,J.createElement("span",ke({className:"".concat(y,"-header-text")},b==="header"?P:{}),w),T&&J.createElement("div",{className:"".concat(y,"-extra")},$)),J.createElement(lo,ke({visible:l,leavedClassName:"".concat(y,"-content-hidden")},I,{forceRender:c,removeOnLeave:_}),function(q,V){var F=q.className,Y=q.style;return J.createElement(Mx,{ref:V,prefixCls:y,className:F,classNames:p,style:Y,styles:h,isActive:l,forceRender:c,role:S?"tabpanel":void 0},O)}))}),y_=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],b_=function(t,n){var r=n.prefixCls,o=n.accordion,l=n.collapsible,s=n.destroyInactivePanel,c=n.onItemClick,d=n.activeKey,m=n.openMotion,p=n.expandIcon;return t.map(function(g,h){var y=g.children,b=g.label,S=g.key,C=g.collapsible,$=g.onItemClick,w=g.destroyInactivePanel,R=Pt(g,y_),I=String(S??h),_=C??l,O=w??s,j=function(P){_!=="disabled"&&(c(P),$==null||$(P))},N=!1;return o?N=d[0]===I:N=d.indexOf(I)>-1,J.createElement(Lx,ke({},R,{prefixCls:r,key:I,panelKey:I,isActive:N,accordion:o,openMotion:m,expandIcon:p,header:b,collapsible:_,onItemClick:j,destroyInactivePanel:O}),y)})},C_=function(t,n,r){if(!t)return null;var o=r.prefixCls,l=r.accordion,s=r.collapsible,c=r.destroyInactivePanel,d=r.onItemClick,m=r.activeKey,p=r.openMotion,g=r.expandIcon,h=t.key||String(n),y=t.props,b=y.header,S=y.headerClass,C=y.destroyInactivePanel,$=y.collapsible,w=y.onItemClick,R=!1;l?R=m[0]===h:R=m.indexOf(h)>-1;var I=$??s,_=function(N){I!=="disabled"&&(d(N),w==null||w(N))},O={key:h,panelKey:h,header:b,headerClass:S,isActive:R,prefixCls:o,destroyInactivePanel:C??c,openMotion:p,accordion:l,children:t.props.children,onItemClick:_,expandIcon:g,collapsible:I};return typeof t.type=="string"?t:(Object.keys(O).forEach(function(j){typeof O[j]>"u"&&delete O[j]}),J.cloneElement(t,O))};function S_(e,t,n){return Array.isArray(e)?b_(e,n):Mr(t).map(function(r,o){return C_(r,o,n)})}function x_(e){var t=e;if(!Array.isArray(t)){var n=ht(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var w_=J.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,l=o===void 0?!1:o,s=e.style,c=e.accordion,d=e.className,m=e.children,p=e.collapsible,g=e.openMotion,h=e.expandIcon,y=e.activeKey,b=e.defaultActiveKey,S=e.onChange,C=e.items,$=ee(r,d),w=Fn([],{value:y,onChange:function(T){return S==null?void 0:S(T)},defaultValue:b,postState:x_}),R=ie(w,2),I=R[0],_=R[1],O=function(T){return _(function(){if(c)return I[0]===T?[]:[T];var P=I.indexOf(T),B=P>-1;return B?I.filter(function(z){return z!==T}):[].concat(Fe(I),[T])})};fr(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var j=S_(C,m,{prefixCls:r,accordion:c,openMotion:g,expandIcon:h,collapsible:p,destroyInactivePanel:l,onItemClick:O,activeKey:I});return J.createElement("div",ke({ref:t,className:$,style:s,role:c?"tablist":void 0},so(e,{aria:!0,data:!0})),j)});const Sh=Object.assign(w_,{Panel:Lx});Sh.Panel;const $_=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(Rt),{prefixCls:r,className:o,showArrow:l=!0}=e,s=n("collapse",r),c=ee({[`${s}-no-arrow`]:!l},o);return u.createElement(Sh.Panel,Object.assign({ref:t},e,{prefixCls:s,className:c}))}),Bx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
177
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
178
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),E_=e=>({animationDuration:e,animationFillMode:"both"}),R_=e=>({animationDuration:e,animationFillMode:"both"}),Ld=(e,t,n,r,o=!1)=>{const l=o?"&":"";return{[`
179
+ ${l}${e}-enter,
180
+ ${l}${e}-appear
181
+ `]:Object.assign(Object.assign({},E_(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},R_(r)),{animationPlayState:"paused"}),[`
182
+ ${l}${e}-enter${e}-enter-active,
183
+ ${l}${e}-appear${e}-appear-active
184
+ `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},k_=new qt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),__=new qt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),O_=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Ld(r,k_,__,e.motionDurationMid,t),{[`
185
+ ${o}${r}-enter,
186
+ ${o}${r}-appear
187
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},I_=new qt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T_=new qt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),j_=new qt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N_=new qt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),P_=new qt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z_=new qt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),M_=new qt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L_=new qt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),B_={"move-up":{inKeyframes:M_,outKeyframes:L_},"move-down":{inKeyframes:I_,outKeyframes:T_},"move-left":{inKeyframes:j_,outKeyframes:N_},"move-right":{inKeyframes:P_,outKeyframes:z_}},sd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=B_[t];return[Ld(r,o,l,e.motionDurationMid),{[`
188
+ ${r}-enter,
189
+ ${r}-appear
190
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xh=new qt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),wh=new qt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$h=new qt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Eh=new qt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),A_=new qt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),D_=new qt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F_=new qt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),H_=new qt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),V_={"slide-up":{inKeyframes:xh,outKeyframes:wh},"slide-down":{inKeyframes:$h,outKeyframes:Eh},"slide-left":{inKeyframes:A_,outKeyframes:D_},"slide-right":{inKeyframes:F_,outKeyframes:H_}},Qa=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=V_[t];return[Ld(r,o,l,e.motionDurationMid),{[`
191
+ ${r}-enter,
192
+ ${r}-appear
193
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},W_=new qt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),q_=new qt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Fb=new qt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hb=new qt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),U_=new qt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),G_=new qt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),K_=new qt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),X_=new qt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Q_=new qt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Y_=new qt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),J_=new qt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Z_=new qt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),eO={zoom:{inKeyframes:W_,outKeyframes:q_},"zoom-big":{inKeyframes:Fb,outKeyframes:Hb},"zoom-big-fast":{inKeyframes:Fb,outKeyframes:Hb},"zoom-left":{inKeyframes:K_,outKeyframes:X_},"zoom-right":{inKeyframes:Q_,outKeyframes:Y_},"zoom-up":{inKeyframes:U_,outKeyframes:G_},"zoom-down":{inKeyframes:J_,outKeyframes:Z_}},uc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=eO[t];return[Ld(r,o,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
194
+ ${r}-enter,
195
+ ${r}-appear
196
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tO=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:l,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:c,collapsePanelBorderRadius:d,lineWidth:m,lineType:p,colorBorder:g,colorText:h,colorTextHeading:y,colorTextDisabled:b,fontSizeLG:S,lineHeight:C,lineHeightLG:$,marginSM:w,paddingSM:R,paddingLG:I,paddingXS:_,motionDurationSlow:O,fontSizeIcon:j,contentPadding:N,fontHeight:T,fontHeightLG:P}=e,B=`${Z(m)} ${p} ${g}`;return{[t]:Object.assign(Object.assign({},Pn(e)),{backgroundColor:o,border:B,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:B,"&:first-child":{[`
197
+ &,
198
+ & > ${t}-header`]:{borderRadius:`${Z(d)} ${Z(d)} 0 0`}},"&:last-child":{[`
199
+ &,
200
+ & > ${t}-header`]:{borderRadius:`0 0 ${Z(d)} ${Z(d)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:y,lineHeight:C,cursor:"pointer",transition:`all ${O}, visibility 0s`},$o(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},Bl()),{fontSize:j,transition:`transform ${O}`,svg:{transition:`transform ${O}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:B,[`& > ${t}-content-box`]:{padding:N},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,paddingInlineStart:_,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(R).sub(_).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:R}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:$,[`> ${t}-header`]:{padding:c,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(I).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:I}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Z(d)} ${Z(d)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:b,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},nO=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},rO=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:l}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${l}`},[`
201
+ > ${t}-item:last-child,
202
+ > ${t}-item:last-child ${t}-header
203
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},oO=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},aO=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),iO=dn("Collapse",e=>{const t=Kt(e,{collapseHeaderPaddingSM:`${Z(e.paddingXS)} ${Z(e.paddingSM)}`,collapseHeaderPaddingLG:`${Z(e.padding)} ${Z(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[tO(t),rO(t),oO(t),nO(t),Bx(t)]},aO),lO=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=yr("collapse"),{prefixCls:c,className:d,rootClassName:m,style:p,bordered:g=!0,ghost:h,size:y,expandIconPosition:b="start",children:S,destroyInactivePanel:C,destroyOnHidden:$,expandIcon:w}=e,R=ra(W=>{var q;return(q=y??W)!==null&&q!==void 0?q:"middle"}),I=n("collapse",c),_=n(),[O,j,N]=iO(I),T=u.useMemo(()=>b==="left"?"start":b==="right"?"end":b,[b]),P=w??o,B=u.useCallback((W={})=>{const q=typeof P=="function"?P(W):u.createElement(Qo,{rotate:W.isActive?r==="rtl"?-90:90:void 0,"aria-label":W.isActive?"expanded":"collapsed"});return Lr(q,()=>{var V;return{className:ee((V=q.props)===null||V===void 0?void 0:V.className,`${I}-arrow`)}})},[P,I,r]),z=ee(`${I}-icon-position-${T}`,{[`${I}-borderless`]:!g,[`${I}-rtl`]:r==="rtl",[`${I}-ghost`]:!!h,[`${I}-${R}`]:R!=="middle"},l,d,m,j,N),D=u.useMemo(()=>Object.assign(Object.assign({},Tx(_)),{motionAppear:!1,leavedClassName:`${I}-content-hidden`}),[_,I]),A=u.useMemo(()=>S?Mr(S).map((W,q)=>{var V,F;const Y=W.props;if(Y!=null&&Y.disabled){const U=(V=W.key)!==null&&V!==void 0?V:String(q),M=Object.assign(Object.assign({},Kn(W.props,["disabled"])),{key:U,collapsible:(F=Y.collapsible)!==null&&F!==void 0?F:"disabled"});return Lr(W,M)}return W}):null,[S]);return O(u.createElement(Sh,Object.assign({ref:t,openMotion:D},Kn(e,["rootClassName"]),{expandIcon:B,prefixCls:I,className:z,style:Object.assign(Object.assign({},s),p),destroyInactivePanel:$??C}),A))}),Os=Object.assign(lO,{Panel:$_}),sO=e=>e instanceof xg?e:new xg(e),cO=(e,t)=>{const{r:n,g:r,b:o,a:l}=e.toRgb(),s=new Ks(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},Ax=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Kt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Dx=e=>{var t,n,r,o,l,s;const c=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,m=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,p=(o=e.contentLineHeight)!==null&&o!==void 0?o:Wu(c),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:Wu(d),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:Wu(m),y=cO(new xg(e.colorBgSolid),"#fff")?"#000":"#fff",b=Ka.reduce((S,C)=>Object.assign(Object.assign({},S),{[`${C}ShadowColor`]:`0 ${Z(e.controlOutlineWidth)} 0 ${_s(e[`${C}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{fontWeight:400,iconGap:e.marginXS,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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",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:y,contentFontSize:c,contentFontSizeSM:d,contentFontSizeLG:m,contentLineHeight:p,contentLineHeightSM:g,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-c*p)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*g)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-m*h)/2-e.lineWidth,0)})},uO=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:l,motionEaseInOut:s,iconGap:c,calc:d}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:c,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Bl(),"> a":{color:"currentColor"},"&:not(:disabled)":$o(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(m=>`${m} ${l} ${s}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(c).mul(-1).equal()}}}}}},Fx=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),dO=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),fO=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Bd=(e,t,n,r,o,l,s,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Fx(e,Object.assign({background:t},s),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),mO=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},fO(e))}),pO=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ad=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?pO:mO;return Object.assign(Object.assign({},l(e)),Fx(e.componentCls,t,n))},Dd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ad(e,r,o))}),Fd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ad(e,r,o))}),Hd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Vd=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ad(e,n,r))}),Zo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ad(e,r,o,n))}),gO=e=>{const{componentCls:t}=e;return Ka.reduce((n,r)=>{const o=e[`${r}6`],l=e[`${r}1`],s=e[`${r}5`],c=e[`${r}2`],d=e[`${r}3`],m=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},Dd(e,e.colorTextLightSolid,o,{background:s},{background:m})),Fd(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),Hd(e)),Vd(e,l,{color:o,background:c},{color:o,background:d})),Zo(e,o,"link",{color:s},{color:m})),Zo(e,o,"text",{color:s,background:l},{color:m,background:d}))})},{})},hO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Dd(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Hd(e)),Vd(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Bd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Zo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),vO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Hd(e)),Vd(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Zo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Zo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Bd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),yO=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Dd(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Fd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hd(e)),Vd(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Zo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Zo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Bd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),bO=e=>Object.assign(Object.assign({},Zo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Bd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),CO=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:hO(e),[`${t}-color-primary`]:vO(e),[`${t}-color-dangerous`]:yO(e),[`${t}-color-link`]:bO(e)},gO(e))},SO=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Zo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Dd(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Zo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Rh=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:d,buttonIconOnlyFontSize:m}=e;return[{[t]:{fontSize:o,height:r,padding:`${Z(d)} ${Z(s)}`,borderRadius:l,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:m}}}},{[`${n}${n}-circle${t}`]:dO(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},xO=e=>{const t=Kt(e,{fontSize:e.contentFontSize});return Rh(t,e.componentCls)},wO=e=>{const t=Kt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Rh(t,`${e.componentCls}-sm`)},$O=e=>{const t=Kt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Rh(t,`${e.componentCls}-lg`)},EO=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},RO=dn("Button",e=>{const t=Ax(e);return[uO(t),xO(t),wO(t),$O(t),EO(t),CO(t),SO(t),s_(t)]},Dx,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function kO(e,t,n,r){const{focusElCls:o,focus:l,borderElCls:s}=n,c=s?"> *":"",d=["hover",l?"focus":null,"active"].filter(Boolean).map(m=>`&:${m} ${c}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[d]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${c}`]:{zIndex:0}})}}function _O(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Wd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,l=`${o}-compact`;return{[l]:Object.assign(Object.assign({},kO(e,l,t,o)),_O(o,l,t))}}function OO(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function IO(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 TO(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},OO(e,t,e.componentCls)),IO(e.componentCls,t))}}const jO=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,l=o(r).mul(-1).equal(),s=c=>{const d=`${t}-compact${c?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:c?l:0,insetInlineStart:c?0:l,backgroundColor:n,content:'""',width:c?"100%":r,height:c?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},NO=ac(["Button","compact"],e=>{const t=Ax(e);return[Wd(t),TO(t),jO(t)]},Dx);var PO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function zO(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 MO={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},LO=J.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:l,color:s,variant:c,type:d,danger:m=!1,shape:p,size:g,styles:h,disabled:y,className:b,rootClassName:S,children:C,icon:$,iconPosition:w="start",ghost:R=!1,block:I=!1,htmlType:_="button",classNames:O,style:j={},autoInsertSpace:N,autoFocus:T}=e,P=PO(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),B=d||"default",{button:z}=J.useContext(Rt),D=p||(z==null?void 0:z.shape)||"default",[A,W]=u.useMemo(()=>{if(s&&c)return[s,c];if(d||m){const vt=MO[B]||[];return m?["danger",vt[1]]:vt}return z!=null&&z.color&&(z!=null&&z.variant)?[z.color,z.variant]:["default","outlined"]},[s,c,d,m,z==null?void 0:z.color,z==null?void 0:z.variant,B]),V=A==="danger"?"dangerous":A,{getPrefixCls:F,direction:Y,autoInsertSpace:U,className:M,style:H,classNames:Q,styles:ne}=yr("button"),te=(n=N??U)!==null&&n!==void 0?n:!0,re=F("btn",l),[fe,me,ue]=RO(re),Se=u.useContext(Ga),le=y??Se,ce=u.useContext(Nx),ve=u.useMemo(()=>zO(o),[o]),[be,de]=u.useState(ve.loading),[se,ye]=u.useState(!1),xe=u.useRef(null),_e=ta(t,xe),Pe=u.Children.count(C)===1&&!$&&!cp(W),$e=u.useRef(!0);J.useEffect(()=>($e.current=!1,()=>{$e.current=!0}),[]),on(()=>{let vt=null;ve.delay>0?vt=setTimeout(()=>{vt=null,de(!0)},ve.delay):de(ve.loading);function Xt(){vt&&(clearTimeout(vt),vt=null)}return Xt},[ve.delay,ve.loading]),u.useEffect(()=>{if(!xe.current||!te)return;const vt=xe.current.textContent||"";Pe&&Sg(vt)?se||ye(!0):se&&ye(!1)}),u.useEffect(()=>{T&&xe.current&&xe.current.focus()},[]);const Ee=J.useCallback(vt=>{var Xt;if(be||le){vt.preventDefault();return}(Xt=e.onClick)===null||Xt===void 0||Xt.call(e,("href"in e,vt))},[e.onClick,be,le]),{compactSize:ze,compactItemClassnames:Ie}=cc(re,Y),Qe={large:"lg",small:"sm",middle:void 0},ot=ra(vt=>{var Xt,Ut;return(Ut=(Xt=g??ze)!==null&&Xt!==void 0?Xt:ce)!==null&&Ut!==void 0?Ut:vt}),xt=ot&&(r=Qe[ot])!==null&&r!==void 0?r:"",dt=be?"loading":$,Xe=Kn(P,["navigate"]),ct=ee(re,me,ue,{[`${re}-${D}`]:D!=="default"&&D,[`${re}-${B}`]:B,[`${re}-dangerous`]:m,[`${re}-color-${V}`]:V,[`${re}-variant-${W}`]:W,[`${re}-${xt}`]:xt,[`${re}-icon-only`]:!C&&C!==0&&!!dt,[`${re}-background-ghost`]:R&&!cp(W),[`${re}-loading`]:be,[`${re}-two-chinese-chars`]:se&&te&&!be,[`${re}-block`]:I,[`${re}-rtl`]:Y==="rtl",[`${re}-icon-end`]:w==="end"},Ie,b,S,M),Ge=Object.assign(Object.assign({},H),j),pt=ee(O==null?void 0:O.icon,Q.icon),Ze=Object.assign(Object.assign({},(h==null?void 0:h.icon)||{}),ne.icon||{}),Le=vt=>J.createElement(zx,{prefixCls:re,className:pt,style:Ze},vt),tt=()=>J.createElement(l_,{existIcon:!!$,prefixCls:re,loading:be,mount:$e.current});let Ne;$&&!be?Ne=Le($):o&&typeof o=="object"&&o.icon?Ne=Le(o.icon):Ne=tt();const Ve=C||C===0?i_(C,Pe&&te):null;if(Xe.href!==void 0)return fe(J.createElement("a",Object.assign({},Xe,{className:ee(ct,{[`${re}-disabled`]:le}),href:le?void 0:Xe.href,style:Ge,onClick:Ee,ref:_e,tabIndex:le?-1:0,"aria-disabled":le}),Ne,Ve));let kt=J.createElement("button",Object.assign({},P,{type:_,className:ct,style:Ge,onClick:Ee,disabled:le,ref:_e}),Ne,Ve,Ie&&J.createElement(NO,{prefixCls:re}));return cp(W)||(kt=J.createElement(zd,{component:"Button",disabled:be},kt)),fe(kt)}),Yn=LO;Yn.Group=o_;Yn.__ANT_BUTTON=!0;const mp=e=>typeof(e==null?void 0:e.then)=="function",Hx=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:l,autoFocus:s,emitEvent:c,isSilent:d,quitOnNullishReturnValue:m,actionFn:p}=e,g=u.useRef(!1),h=u.useRef(null),[y,b]=Nl(!1),S=(...w)=>{l==null||l.apply(void 0,w)};u.useEffect(()=>{let w=null;return s&&(w=setTimeout(()=>{var R;(R=h.current)===null||R===void 0||R.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[s]);const C=w=>{mp(w)&&(b(!0),w.then((...R)=>{b(!1,!0),S.apply(void 0,R),g.current=!1},R=>{if(b(!1,!0),g.current=!1,!(d!=null&&d()))return Promise.reject(R)}))},$=w=>{if(g.current)return;if(g.current=!0,!p){S();return}let R;if(c){if(R=p(w),m&&!mp(R)){g.current=!1,S(w);return}}else if(p.length)R=p(l),g.current=!1;else if(R=p(),!mp(R)){S();return}C(R)};return u.createElement(Yn,Object.assign({},Px(t),{onClick:$,loading:y,prefixCls:r},o,{ref:h}),n)},dc=J.createContext({}),{Provider:Vx}=dc,Vb=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:l,close:s,onCancel:c,onConfirm:d}=u.useContext(dc);return o?J.createElement(Hx,{isSilent:r,actionFn:c,close:(...m)=>{s==null||s.apply(void 0,m),d==null||d(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${l}-btn`},n):null},Wb=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:l,okType:s,onConfirm:c,onOk:d}=u.useContext(dc);return J.createElement(Hx,{isSilent:n,type:s||"primary",actionFn:d,close:(...m)=>{t==null||t.apply(void 0,m),c==null||c(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},l)};var Wx=u.createContext(null),qb=[];function BO(e,t){var n=u.useState(function(){if(!Or())return null;var b=document.createElement("div");return b}),r=ie(n,1),o=r[0],l=u.useRef(!1),s=u.useContext(Wx),c=u.useState(qb),d=ie(c,2),m=d[0],p=d[1],g=s||(l.current?void 0:function(b){p(function(S){var C=[b].concat(Fe(S));return C})});function h(){o.parentElement||document.body.appendChild(o),l.current=!0}function y(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),l.current=!1}return on(function(){return e?s?s(h):h():y(),y},[e]),on(function(){m.length&&(m.forEach(function(b){return b()}),p(qb))},[m]),[o,g]}function AO(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,l;if(e){var s=getComputedStyle(e);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(c.width,10),m=parseInt(c.height,10);try{var p=d?"width: ".concat(c.width,";"):"",g=m?"height: ".concat(c.height,";"):"";va(`
204
+ #`.concat(t,`::-webkit-scrollbar {
205
+ `).concat(p,`
206
+ `).concat(g,`
207
+ }`),t)}catch(b){console.error(b),o=d,l=m}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Hs(t),{width:h,height:y}}function DO(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:AO(e)}function FO(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var HO="rc-util-locker-".concat(Date.now()),Ub=0;function VO(e){var t=!!e,n=u.useState(function(){return Ub+=1,"".concat(HO,"_").concat(Ub)}),r=ie(n,1),o=r[0];on(function(){if(t){var l=DO(document.body).width,s=FO();va(`
208
+ html body {
209
+ overflow-y: hidden;
210
+ `.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
211
+ }`),o)}else Hs(o);return function(){Hs(o)}},[t,o])}var WO=!1;function qO(e){return WO}var Gb=function(t){return t===!1?!1:!Or()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},qd=u.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var l=e.autoDestroy,s=l===void 0?!0:l,c=e.children,d=u.useState(n),m=ie(d,2),p=m[0],g=m[1],h=p||n;u.useEffect(function(){(s||n)&&g(n)},[n,s]);var y=u.useState(function(){return Gb(o)}),b=ie(y,2),S=b[0],C=b[1];u.useEffect(function(){var B=Gb(o);C(B??null)});var $=BO(h&&!S),w=ie($,2),R=w[0],I=w[1],_=S??R;VO(r&&n&&Or()&&(_===R||_===document.body));var O=null;if(c&&Ya(c)&&t){var j=c;O=j.ref}var N=ta(O,t);if(!h||!Or()||S===void 0)return null;var T=_===!1||qO(),P=c;return t&&(P=u.cloneElement(c,{ref:N})),u.createElement(Wx.Provider,{value:I},T?P:qa.createPortal(P,_))}),qx=u.createContext({});function UO(){var e=K({},Ed);return e.useId}var Kb=0,Xb=UO();const Ud=Xb?(function(t){var n=Xb();return t||n}):(function(t){var n=u.useState("ssr-id"),r=ie(n,2),o=r[0],l=r[1];return u.useEffect(function(){var s=Kb;Kb+=1,l("rc_unique_".concat(s))},[]),t||o});function Qb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Yb(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function GO(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Yb(o),n.top+=Yb(o,!0),n}const KO=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var XO={width:0,height:0,overflow:"hidden",outline:"none"},QO={outline:"none"},Ux=J.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.title,s=e.ariaId,c=e.footer,d=e.closable,m=e.closeIcon,p=e.onClose,g=e.children,h=e.bodyStyle,y=e.bodyProps,b=e.modalRender,S=e.onMouseDown,C=e.onMouseUp,$=e.holderRef,w=e.visible,R=e.forceRender,I=e.width,_=e.height,O=e.classNames,j=e.styles,N=J.useContext(qx),T=N.panel,P=ta($,T),B=u.useRef(),z=u.useRef();J.useImperativeHandle(t,function(){return{focus:function(){var H;(H=B.current)===null||H===void 0||H.focus({preventScroll:!0})},changeActive:function(H){var Q=document,ne=Q.activeElement;H&&ne===z.current?B.current.focus({preventScroll:!0}):!H&&ne===B.current&&z.current.focus({preventScroll:!0})}}});var D={};I!==void 0&&(D.width=I),_!==void 0&&(D.height=_);var A=c?J.createElement("div",{className:ee("".concat(n,"-footer"),O==null?void 0:O.footer),style:K({},j==null?void 0:j.footer)},c):null,W=l?J.createElement("div",{className:ee("".concat(n,"-header"),O==null?void 0:O.header),style:K({},j==null?void 0:j.header)},J.createElement("div",{className:"".concat(n,"-title"),id:s},l)):null,q=u.useMemo(function(){return ht(d)==="object"&&d!==null?d:d?{closeIcon:m??J.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,m,n]),V=so(q,!0),F=ht(d)==="object"&&d.disabled,Y=d?J.createElement("button",ke({type:"button",onClick:p,"aria-label":"Close"},V,{className:"".concat(n,"-close"),disabled:F}),q.closeIcon):null,U=J.createElement("div",{className:ee("".concat(n,"-content"),O==null?void 0:O.content),style:j==null?void 0:j.content},Y,W,J.createElement("div",ke({className:ee("".concat(n,"-body"),O==null?void 0:O.body),style:K(K({},h),j==null?void 0:j.body)},y),g),A);return J.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?s:null,"aria-modal":"true",ref:P,style:K(K({},o),D),className:ee(n,r),onMouseDown:S,onMouseUp:C},J.createElement("div",{ref:B,tabIndex:0,style:QO},J.createElement(KO,{shouldUpdate:w||R},b?b(U):U)),J.createElement("div",{tabIndex:0,ref:z,style:XO}))}),Gx=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,l=e.className,s=e.visible,c=e.forceRender,d=e.destroyOnClose,m=e.motionName,p=e.ariaId,g=e.onVisibleChanged,h=e.mousePosition,y=u.useRef(),b=u.useState(),S=ie(b,2),C=S[0],$=S[1],w={};C&&(w.transformOrigin=C);function R(){var I=GO(y.current);$(h&&(h.x||h.y)?"".concat(h.x-I.left,"px ").concat(h.y-I.top,"px"):"")}return u.createElement(lo,{visible:s,onVisibleChanged:g,onAppearPrepare:R,onEnterPrepare:R,forceRender:c,motionName:m,removeOnLeave:d,ref:y},function(I,_){var O=I.className,j=I.style;return u.createElement(Ux,ke({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:_,style:K(K(K({},j),o),w),className:ee(l,O)}))})});Gx.displayName="Content";var YO=function(t){var n=t.prefixCls,r=t.style,o=t.visible,l=t.maskProps,s=t.motionName,c=t.className;return u.createElement(lo,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(n,"-mask-hidden")},function(d,m){var p=d.className,g=d.style;return u.createElement("div",ke({ref:m,style:K(K({},g),r),className:ee("".concat(n,"-mask"),p,c)},l))})},JO=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,l=t.visible,s=l===void 0?!1:l,c=t.keyboard,d=c===void 0?!0:c,m=t.focusTriggerAfterClose,p=m===void 0?!0:m,g=t.wrapStyle,h=t.wrapClassName,y=t.wrapProps,b=t.onClose,S=t.afterOpenChange,C=t.afterClose,$=t.transitionName,w=t.animation,R=t.closable,I=R===void 0?!0:R,_=t.mask,O=_===void 0?!0:_,j=t.maskTransitionName,N=t.maskAnimation,T=t.maskClosable,P=T===void 0?!0:T,B=t.maskStyle,z=t.maskProps,D=t.rootClassName,A=t.classNames,W=t.styles,q=u.useRef(),V=u.useRef(),F=u.useRef(),Y=u.useState(s),U=ie(Y,2),M=U[0],H=U[1],Q=Ud();function ne(){Up(V.current,document.activeElement)||(q.current=document.activeElement)}function te(){if(!Up(V.current,document.activeElement)){var de;(de=F.current)===null||de===void 0||de.focus()}}function re(de){if(de)te();else{if(H(!1),O&&q.current&&p){try{q.current.focus({preventScroll:!0})}catch{}q.current=null}M&&(C==null||C())}S==null||S(de)}function fe(de){b==null||b(de)}var me=u.useRef(!1),ue=u.useRef(),Se=function(){clearTimeout(ue.current),me.current=!0},le=function(){ue.current=setTimeout(function(){me.current=!1})},ce=null;P&&(ce=function(se){me.current?me.current=!1:V.current===se.target&&fe(se)});function ve(de){if(d&&de.keyCode===qe.ESC){de.stopPropagation(),fe(de);return}s&&de.keyCode===qe.TAB&&F.current.changeActive(!de.shiftKey)}u.useEffect(function(){s&&(H(!0),ne())},[s]),u.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var be=K(K(K({zIndex:o},g),W==null?void 0:W.wrapper),{},{display:M?null:"none"});return u.createElement("div",ke({className:ee("".concat(r,"-root"),D)},so(t,{data:!0})),u.createElement(YO,{prefixCls:r,visible:O&&s,motionName:Qb(r,j,N),style:K(K({zIndex:o},B),W==null?void 0:W.mask),maskProps:z,className:A==null?void 0:A.mask}),u.createElement("div",ke({tabIndex:-1,onKeyDown:ve,className:ee("".concat(r,"-wrap"),h,A==null?void 0:A.wrapper),ref:V,onClick:ce,style:be},y),u.createElement(Gx,ke({},t,{onMouseDown:Se,onMouseUp:le,ref:F,closable:I,ariaId:Q,prefixCls:r,visible:s&&M,onClose:fe,onVisibleChanged:re,motionName:Qb(r,$,w)}))))},Kx=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,l=t.destroyOnClose,s=l===void 0?!1:l,c=t.afterClose,d=t.panelRef,m=u.useState(n),p=ie(m,2),g=p[0],h=p[1],y=u.useMemo(function(){return{panel:d}},[d]);return u.useEffect(function(){n&&h(!0)},[n]),!o&&s&&!g?null:u.createElement(qx.Provider,{value:y},u.createElement(qd,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},u.createElement(JO,ke({},t,{destroyOnClose:s,afterClose:function(){c==null||c(),h(!1)}}))))};Kx.displayName="Dialog";var gi="RC_FORM_INTERNAL_HOOKS",En=function(){fr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},zl=u.createContext({getFieldValue:En,getFieldsValue:En,getFieldError:En,getFieldWarning:En,getFieldsError:En,isFieldsTouched:En,isFieldTouched:En,isFieldValidating:En,isFieldsValidating:En,resetFields:En,setFields:En,setFieldValue:En,setFieldsValue:En,validateFields:En,submit:En,getInternalHooks:function(){return En(),{dispatch:En,initEntityValue:En,registerField:En,useSubscribe:En,setInitialValues:En,destroyForm:En,setCallbacks:En,registerWatch:En,getFields:En,setValidateMessages:En,setPreserve:En,getInitialValue:En}}}),cd=u.createContext(null);function wg(e){return e==null?[]:Array.isArray(e)?e:[e]}function ZO(e){return e&&!!e._init}function $g(){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",tel:"%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 Eg=$g();function eI(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function tI(e,t,n){if(rh())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&As(o,n.prototype),o}function Rg(e){var t=typeof Map=="function"?new Map:void 0;return Rg=function(r){if(r===null||!eI(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return tI(r,arguments,Ds(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),As(o,r)},Rg(e)}var nI=/%[sdj%]/g,rI=function(){};function kg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ao(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var s=e.replace(nI,function(c){if(c==="%%")return"%";if(o>=l)return c;switch(c){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return c}});return s}return e}function oI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||oI(t)&&typeof e=="string"&&!e)}function aI(e,t,n){var r=[],o=0,l=e.length;function s(c){r.push.apply(r,Fe(c||[])),o++,o===l&&n(r)}e.forEach(function(c){t(c,s)})}function Jb(e,t,n){var r=0,o=e.length;function l(s){if(s&&s.length){n(s);return}var c=r;r=r+1,c<o?t(e[c],l):n([])}l([])}function iI(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Fe(e[n]||[]))}),t}var Zb=(function(e){ya(n,e);var t=ba(n);function n(r,o){var l;return Jn(this,n),l=t.call(this,"Async Validation Error"),G(Gt(l),"errors",void 0),G(Gt(l),"fields",void 0),l.errors=r,l.fields=o,l}return Zn(n)})(Rg(Error));function lI(e,t,n,r,o){if(t.first){var l=new Promise(function(h,y){var b=function($){return r($),$.length?y(new Zb($,kg($))):h(o)},S=iI(e);Jb(S,n,b)});return l.catch(function(h){return h}),l}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),d=c.length,m=0,p=[],g=new Promise(function(h,y){var b=function(C){if(p.push.apply(p,C),m++,m===d)return r(p),p.length?y(new Zb(p,kg(p))):h(o)};c.length||(r(p),h(o)),c.forEach(function(S){var C=e[S];s.indexOf(S)!==-1?Jb(C,n,b):aI(C,n,b)})});return g.catch(function(h){return h}),g}function sI(e){return!!(e&&e.message!==void 0)}function cI(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function e1(e,t){return function(n){var r;return e.fullFields?r=cI(t,e.fullFields):r=t[n.field||e.fullField],sI(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function t1(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ht(r)==="object"&&ht(e[n])==="object"?e[n]=K(K({},e[n]),r):e[n]=r}}return e}var rl="enum",uI=function(t,n,r,o,l){t[rl]=Array.isArray(t[rl])?t[rl]:[],t[rl].indexOf(n)===-1&&o.push(ao(l.messages[rl],t.fullField,t[rl].join(", ")))},dI=function(t,n,r,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ao(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(n)||o.push(ao(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},fI=function(t,n,r,o,l){var s=typeof t.len=="number",c=typeof t.min=="number",d=typeof t.max=="number",m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,g=null,h=typeof n=="number",y=typeof n=="string",b=Array.isArray(n);if(h?g="number":y?g="string":b&&(g="array"),!g)return!1;b&&(p=n.length),y&&(p=n.replace(m,"_").length),s?p!==t.len&&o.push(ao(l.messages[g].len,t.fullField,t.len)):c&&!d&&p<t.min?o.push(ao(l.messages[g].min,t.fullField,t.min)):d&&!c&&p>t.max?o.push(ao(l.messages[g].max,t.fullField,t.max)):c&&d&&(p<t.min||p>t.max)&&o.push(ao(l.messages[g].range,t.fullField,t.min,t.max))},Xx=function(t,n,r,o,l,s){t.required&&(!r.hasOwnProperty(t.field)||ar(n,s||t.type))&&o.push(ao(l.messages.required,t.fullField))},Eu;const mI=(function(){if(Eu)return Eu;var e="[a-fA-F\\d:]",t=function(O){return O&&O.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(l),c=new RegExp("(?:^".concat(n,"$)|(?:^").concat(s,"$)")),d=new RegExp("^".concat(n,"$")),m=new RegExp("^".concat(s,"$")),p=function(O){return O&&O.exact?c:new RegExp("(?:".concat(t(O)).concat(n).concat(t(O),")|(?:").concat(t(O)).concat(s).concat(t(O),")"),"g")};p.v4=function(_){return _&&_.exact?d:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},p.v6=function(_){return _&&_.exact?m:new RegExp("".concat(t(_)).concat(s).concat(t(_)),"g")};var g="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",y=p.v4().source,b=p.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",R='(?:[/?#][^\\s"]*)?',I="(?:".concat(g,"|www\\.)").concat(h,"(?:localhost|").concat(y,"|").concat(b,"|").concat(S).concat(C).concat($,")").concat(w).concat(R);return Eu=new RegExp("(?:^".concat(I,"$)"),"i"),Eu});var pp={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Is={integer:function(t){return Is.number(t)&&parseInt(t,10)===t},float:function(t){return Is.number(t)&&!Is.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 ht(t)==="object"&&!Is.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(pp.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(pp.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(mI())},hex:function(t){return typeof t=="string"&&!!t.match(pp.hex)}},pI=function(t,n,r,o,l){if(t.required&&n===void 0){Xx(t,n,r,o,l);return}var s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],c=t.type;s.indexOf(c)>-1?Is[c](n)||o.push(ao(l.messages.types[c],t.fullField,t.type)):c&&ht(n)!==t.type&&o.push(ao(l.messages.types[c],t.fullField,t.type))},gI=function(t,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(ao(l.messages.whitespace,t.fullField))};const tn={required:Xx,whitespace:gI,type:pI,range:fI,enum:uI,pattern:dI};var hI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l)}r(s)},vI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(n==null&&!t.required)return r();tn.required(t,n,o,s,l,"array"),n!=null&&(tn.type(t,n,o,s,l),tn.range(t,n,o,s,l))}r(s)},yI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&tn.type(t,n,o,s,l)}r(s)},bI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n,"date")&&!t.required)return r();if(tn.required(t,n,o,s,l),!ar(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),tn.type(t,d,o,s,l),d&&tn.range(t,d.getTime(),o,s,l)}}r(s)},CI="enum",SI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&tn[CI](t,n,o,s,l)}r(s)},xI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&(tn.type(t,n,o,s,l),tn.range(t,n,o,s,l))}r(s)},wI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&(tn.type(t,n,o,s,l),tn.range(t,n,o,s,l))}r(s)},$I=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&tn.type(t,n,o,s,l)}r(s)},EI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&(tn.type(t,n,o,s,l),tn.range(t,n,o,s,l))}r(s)},RI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),n!==void 0&&tn.type(t,n,o,s,l)}r(s)},kI=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n,"string")&&!t.required)return r();tn.required(t,n,o,s,l),ar(n,"string")||tn.pattern(t,n,o,s,l)}r(s)},_I=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n)&&!t.required)return r();tn.required(t,n,o,s,l),ar(n)||tn.type(t,n,o,s,l)}r(s)},OI=function(t,n,r,o,l){var s=[],c=Array.isArray(n)?"array":ht(n);tn.required(t,n,o,s,l,c),r(s)},II=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(ar(n,"string")&&!t.required)return r();tn.required(t,n,o,s,l,"string"),ar(n,"string")||(tn.type(t,n,o,s,l),tn.range(t,n,o,s,l),tn.pattern(t,n,o,s,l),t.whitespace===!0&&tn.whitespace(t,n,o,s,l))}r(s)},Ru=function(t,n,r,o,l){var s=t.type,c=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(ar(n,s)&&!t.required)return r();tn.required(t,n,o,c,l,s),ar(n,s)||tn.type(t,n,o,c,l)}r(c)};const Ms={string:II,method:$I,number:EI,boolean:yI,regexp:_I,integer:wI,float:xI,array:vI,object:RI,enum:SI,pattern:kI,date:bI,url:Ru,hex:Ru,email:Ru,tel:Ru,required:OI,any:hI};var fc=(function(){function e(t){Jn(this,e),G(this,"rules",null),G(this,"_messages",Eg),this.define(t)}return Zn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var l=n[o];r.rules[o]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(n){return n&&(this._messages=t1($g(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=n,c=o,d=l;if(typeof c=="function"&&(d=c,c={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,s),Promise.resolve(s);function m(b){var S=[],C={};function $(R){if(Array.isArray(R)){var I;S=(I=S).concat.apply(I,Fe(R))}else S.push(R)}for(var w=0;w<b.length;w++)$(b[w]);S.length?(C=kg(S),d(S,C)):d(null,s)}if(c.messages){var p=this.messages();p===Eg&&(p=$g()),t1(p,c.messages),c.messages=p}else c.messages=this.messages();var g={},h=c.keys||Object.keys(this.rules);h.forEach(function(b){var S=r.rules[b],C=s[b];S.forEach(function($){var w=$;typeof w.transform=="function"&&(s===n&&(s=K({},s)),C=s[b]=w.transform(C),C!=null&&(w.type=w.type||(Array.isArray(C)?"array":ht(C)))),typeof w=="function"?w={validator:w}:w=K({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=b,w.fullField=w.fullField||b,w.type=r.getType(w),g[b]=g[b]||[],g[b].push({rule:w,value:C,source:s,field:b}))})});var y={};return lI(g,c,function(b,S){var C=b.rule,$=(C.type==="object"||C.type==="array")&&(ht(C.fields)==="object"||ht(C.defaultField)==="object");$=$&&(C.required||!C.required&&b.value),C.field=b.field;function w(j,N){return K(K({},N),{},{fullField:"".concat(C.fullField,".").concat(j),fullFields:C.fullFields?[].concat(Fe(C.fullFields),[j]):[j]})}function R(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(j)?j:[j];!c.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&C.message!==void 0&&C.message!==null&&(N=[].concat(C.message));var T=N.map(e1(C,s));if(c.first&&T.length)return y[C.field]=1,S(T);if(!$)S(T);else{if(C.required&&!b.value)return C.message!==void 0?T=[].concat(C.message).map(e1(C,s)):c.error&&(T=[c.error(C,ao(c.messages.required,C.field))]),S(T);var P={};C.defaultField&&Object.keys(b.value).map(function(D){P[D]=C.defaultField}),P=K(K({},P),b.rule.fields);var B={};Object.keys(P).forEach(function(D){var A=P[D],W=Array.isArray(A)?A:[A];B[D]=W.map(w.bind(null,D))});var z=new e(B);z.messages(c.messages),b.rule.options&&(b.rule.options.messages=c.messages,b.rule.options.error=c.error),z.validate(b.value,b.rule.options||c,function(D){var A=[];T&&T.length&&A.push.apply(A,Fe(T)),D&&D.length&&A.push.apply(A,Fe(D)),S(A.length?A:null)})}}var I;if(C.asyncValidator)I=C.asyncValidator(C,b.value,R,b.source,c);else if(C.validator){try{I=C.validator(C,b.value,R,b.source,c)}catch(j){var _,O;(_=(O=console).error)===null||_===void 0||_.call(O,j),c.suppressValidatorError||setTimeout(function(){throw j},0),R(j.message)}I===!0?R():I===!1?R(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):I instanceof Array?R(I):I instanceof Error&&R(I.message)}I&&I.then&&I.then(function(){return R()},function(j){return R(j)})},function(b){m(b)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ms.hasOwnProperty(n.type))throw new Error(ao("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?Ms.required:Ms[this.getType(n)]||void 0}}]),e})();G(fc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ms[t]=n});G(fc,"warning",rI);G(fc,"messages",Eg);G(fc,"validators",Ms);var no="'${name}' is not a valid ${type}",Qx={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:no,method:no,array:no,object:no,number:no,date:no,boolean:no,integer:no,float:no,regexp:no,email:no,url:no,hex:no},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}"}},n1=fc;function TI(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var r1="CODE_LOGIC_ERROR";function _g(e,t,n,r,o){return Og.apply(this,arguments)}function Og(){return Og=Ri(Ir().mark(function e(t,n,r,o,l){var s,c,d,m,p,g,h,y,b;return Ir().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return s=K({},r),delete s.ruleIndex,n1.warning=function(){},s.validator&&(c=s.validator,s.validator=function(){try{return c.apply(void 0,arguments)}catch($){return console.error($),Promise.reject(r1)}}),d=null,s&&s.type==="array"&&s.defaultField&&(d=s.defaultField,delete s.defaultField),m=new n1(G({},t,[s])),p=vl(Qx,o.validateMessages),m.messages(p),g=[],C.prev=10,C.next=13,Promise.resolve(m.validate(G({},t,n),K({},o)));case 13:C.next=18;break;case 15:C.prev=15,C.t0=C.catch(10),C.t0.errors&&(g=C.t0.errors.map(function($,w){var R=$.message,I=R===r1?p.default:R;return u.isValidElement(I)?u.cloneElement(I,{key:"error_".concat(w)}):I}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){C.next=23;break}return C.next=21,Promise.all(n.map(function($,w){return _g("".concat(t,".").concat(w),$,d,o,l)}));case 21:return h=C.sent,C.abrupt("return",h.reduce(function($,w){return[].concat(Fe($),Fe(w))},[]));case 23:return y=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),b=g.map(function($){return typeof $=="string"?TI($,y):$}),C.abrupt("return",b);case 26:case"end":return C.stop()}},e,null,[[10,15]])})),Og.apply(this,arguments)}function jI(e,t,n,r,o,l){var s=e.join("."),c=n.map(function(p,g){var h=p.validator,y=K(K({},p),{},{ruleIndex:g});return h&&(y.validator=function(b,S,C){var $=!1,w=function(){for(var _=arguments.length,O=new Array(_),j=0;j<_;j++)O[j]=arguments[j];Promise.resolve().then(function(){fr(!$,"Your validator function has already return a promise. `callback` will be ignored."),$||C.apply(void 0,O)})},R=h(b,S,w);$=R&&typeof R.then=="function"&&typeof R.catch=="function",fr($,"`callback` is deprecated. Please return a promise instead."),$&&R.then(function(){C()}).catch(function(I){C(I||" ")})}),y}).sort(function(p,g){var h=p.warningOnly,y=p.ruleIndex,b=g.warningOnly,S=g.ruleIndex;return!!h==!!b?y-S:h?1:-1}),d;if(o===!0)d=new Promise((function(){var p=Ri(Ir().mark(function g(h,y){var b,S,C;return Ir().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:b=0;case 1:if(!(b<c.length)){w.next=12;break}return S=c[b],w.next=5,_g(s,t,S,r,l);case 5:if(C=w.sent,!C.length){w.next=9;break}return y([{errors:C,rule:S}]),w.abrupt("return");case 9:b+=1,w.next=1;break;case 12:h([]);case 13:case"end":return w.stop()}},g)}));return function(g,h){return p.apply(this,arguments)}})());else{var m=c.map(function(p){return _g(s,t,p,r,l).then(function(g){return{errors:g,rule:p}})});d=(o?PI(m):NI(m)).then(function(p){return Promise.reject(p)})}return d.catch(function(p){return p}),d}function NI(e){return Ig.apply(this,arguments)}function Ig(){return Ig=Ri(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var l,s=(l=[]).concat.apply(l,Fe(o));return s}));case 1:case"end":return r.stop()}},e)})),Ig.apply(this,arguments)}function PI(e){return Tg.apply(this,arguments)}function Tg(){return Tg=Ri(Ir().mark(function e(t){var n;return Ir().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(l){t.forEach(function(s){s.then(function(c){c.errors.length&&l([c]),n+=1,n===t.length&&l([])})})}));case 2:case"end":return o.stop()}},e)})),Tg.apply(this,arguments)}function Un(e){return wg(e)}function o1(e,t){var n={};return t.forEach(function(r){var o=Xo(e,r);n=No(n,r,o)}),n}function $l(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Yx(t,r,n)})}function Yx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function zI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ht(e)!=="object"||ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Fe(o).every(function(l){var s=e[l],c=t[l];return typeof s=="function"&&typeof c=="function"?!0:s===c})}function MI(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ht(t.target)==="object"&&e in t.target?t.target[e]:t}function a1(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],l=t-n;return l>0?[].concat(Fe(e.slice(0,n)),[o],Fe(e.slice(n,t)),Fe(e.slice(t+1,r))):l<0?[].concat(Fe(e.slice(0,t)),Fe(e.slice(t+1,n+1)),[o],Fe(e.slice(n+1,r))):e}var LI=["name"],yo=[];function gp(e,t,n,r,o,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==o}var kh=(function(e){ya(n,e);var t=ba(n);function n(r){var o;if(Jn(this,n),o=t.call(this,r),G(Gt(o),"state",{resetCount:0}),G(Gt(o),"cancelRegisterFunc",null),G(Gt(o),"mounted",!1),G(Gt(o),"touched",!1),G(Gt(o),"dirty",!1),G(Gt(o),"validatePromise",void 0),G(Gt(o),"prevValidating",void 0),G(Gt(o),"errors",yo),G(Gt(o),"warnings",yo),G(Gt(o),"cancelRegister",function(){var d=o.props,m=d.preserve,p=d.isListField,g=d.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(p,m,Un(g)),o.cancelRegisterFunc=null}),G(Gt(o),"getNamePath",function(){var d=o.props,m=d.name,p=d.fieldContext,g=p.prefixName,h=g===void 0?[]:g;return m!==void 0?[].concat(Fe(h),Fe(m)):[]}),G(Gt(o),"getRules",function(){var d=o.props,m=d.rules,p=m===void 0?[]:m,g=d.fieldContext;return p.map(function(h){return typeof h=="function"?h(g):h})}),G(Gt(o),"refresh",function(){o.mounted&&o.setState(function(d){var m=d.resetCount;return{resetCount:m+1}})}),G(Gt(o),"metaCache",null),G(Gt(o),"triggerMetaEvent",function(d){var m=o.props.onMetaChange;if(m){var p=K(K({},o.getMeta()),{},{destroy:d});Vs(o.metaCache,p)||m(p),o.metaCache=p}else o.metaCache=null}),G(Gt(o),"onStoreChange",function(d,m,p){var g=o.props,h=g.shouldUpdate,y=g.dependencies,b=y===void 0?[]:y,S=g.onReset,C=p.store,$=o.getNamePath(),w=o.getValue(d),R=o.getValue(C),I=m&&$l(m,$);switch(p.type==="valueUpdate"&&p.source==="external"&&!Vs(w,R)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=yo,o.warnings=yo,o.triggerMetaEvent()),p.type){case"reset":if(!m||I){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=yo,o.warnings=yo,o.triggerMetaEvent(),S==null||S(),o.refresh();return}break;case"remove":{if(h&&gp(h,d,C,w,R,p)){o.reRender();return}break}case"setField":{var _=p.data;if(I){"touched"in _&&(o.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(o.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(o.errors=_.errors||yo),"warnings"in _&&(o.warnings=_.warnings||yo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in _&&$l(m,$,!0)){o.reRender();return}if(h&&!$.length&&gp(h,d,C,w,R,p)){o.reRender();return}break}case"dependenciesUpdate":{var O=b.map(Un);if(O.some(function(j){return $l(p.relatedFields,j)})){o.reRender();return}break}default:if(I||(!b.length||$.length||h)&&gp(h,d,C,w,R,p)){o.reRender();return}break}h===!0&&o.reRender()}),G(Gt(o),"validateRules",function(d){var m=o.getNamePath(),p=o.getValue(),g=d||{},h=g.triggerName,y=g.validateOnly,b=y===void 0?!1:y,S=Promise.resolve().then(Ri(Ir().mark(function C(){var $,w,R,I,_,O,j;return Ir().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if($=o.props,w=$.validateFirst,R=w===void 0?!1:w,I=$.messageVariables,_=$.validateDebounce,O=o.getRules(),h&&(O=O.filter(function(P){return P}).filter(function(P){var B=P.validateTrigger;if(!B)return!0;var z=wg(B);return z.includes(h)})),!(_&&h)){T.next=10;break}return T.next=8,new Promise(function(P){setTimeout(P,_)});case 8:if(o.validatePromise===S){T.next=10;break}return T.abrupt("return",[]);case 10:return j=jI(m,p,O,d,R,I),j.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yo;if(o.validatePromise===S){var B;o.validatePromise=null;var z=[],D=[];(B=P.forEach)===null||B===void 0||B.call(P,function(A){var W=A.rule.warningOnly,q=A.errors,V=q===void 0?yo:q;W?D.push.apply(D,Fe(V)):z.push.apply(z,Fe(V))}),o.errors=z,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",j);case 13:case"end":return T.stop()}},C)})));return b||(o.validatePromise=S,o.dirty=!0,o.errors=yo,o.warnings=yo,o.triggerMetaEvent(),o.reRender()),S}),G(Gt(o),"isFieldValidating",function(){return!!o.validatePromise}),G(Gt(o),"isFieldTouched",function(){return o.touched}),G(Gt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var d=o.props.fieldContext,m=d.getInternalHooks(gi),p=m.getInitialValue;return p(o.getNamePath())!==void 0}),G(Gt(o),"getErrors",function(){return o.errors}),G(Gt(o),"getWarnings",function(){return o.warnings}),G(Gt(o),"isListField",function(){return o.props.isListField}),G(Gt(o),"isList",function(){return o.props.isList}),G(Gt(o),"isPreserve",function(){return o.props.preserve}),G(Gt(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var d={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return d}),G(Gt(o),"getOnlyChild",function(d){if(typeof d=="function"){var m=o.getMeta();return K(K({},o.getOnlyChild(d(o.getControlled(),m,o.props.fieldContext))),{},{isFunction:!0})}var p=Mr(d);return p.length!==1||!u.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}}),G(Gt(o),"getValue",function(d){var m=o.props.fieldContext.getFieldsValue,p=o.getNamePath();return Xo(d||m(!0),p)}),G(Gt(o),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,p=m.name,g=m.trigger,h=m.validateTrigger,y=m.getValueFromEvent,b=m.normalize,S=m.valuePropName,C=m.getValueProps,$=m.fieldContext,w=h!==void 0?h:$.validateTrigger,R=o.getNamePath(),I=$.getInternalHooks,_=$.getFieldsValue,O=I(gi),j=O.dispatch,N=o.getValue(),T=C||function(A){return G({},S,A)},P=d[g],B=p!==void 0?T(N):{},z=K(K({},d),B);z[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var A,W=arguments.length,q=new Array(W),V=0;V<W;V++)q[V]=arguments[V];y?A=y.apply(void 0,q):A=MI.apply(void 0,[S].concat(q)),b&&(A=b(A,N,_(!0))),A!==N&&j({type:"updateValue",namePath:R,value:A}),P&&P.apply(void 0,q)};var D=wg(w||[]);return D.forEach(function(A){var W=z[A];z[A]=function(){W&&W.apply(void 0,arguments);var q=o.props.rules;q&&q.length&&j({type:"validateField",namePath:R,triggerName:A})}}),z}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(gi),c=s.initEntityValue;c(Gt(o))}return o}return Zn(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var c=s.getInternalHooks,d=c(gi),m=d.registerField;this.cancelRegisterFunc=m(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 o=this.state.resetCount,l=this.props.children,s=this.getOnlyChild(l),c=s.child,d=s.isFunction,m;return d?m=c:u.isValidElement(c)?m=u.cloneElement(c,this.getControlled(c.props)):(fr(!c,"`children` of Field is not validate ReactElement."),m=c),u.createElement(u.Fragment,{key:o},m)}}]),n})(u.Component);G(kh,"contextType",zl);G(kh,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Jx(e){var t,n=e.name,r=Pt(e,LI),o=u.useContext(zl),l=u.useContext(cd),s=n!==void 0?Un(n):void 0,c=(t=r.isListField)!==null&&t!==void 0?t:!!l,d="keep";return c||(d="_".concat((s||[]).join("_"))),u.createElement(kh,ke({key:d,name:s,isListField:c},r,{fieldContext:o}))}function BI(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,l=e.validateTrigger,s=e.isListField,c=u.useContext(zl),d=u.useContext(cd),m=u.useRef({keys:[],id:0}),p=m.current,g=u.useMemo(function(){var S=Un(c.prefixName)||[];return[].concat(Fe(S),Fe(Un(t)))},[c.prefixName,t]),h=u.useMemo(function(){return K(K({},c),{},{prefixName:g})},[c,g]),y=u.useMemo(function(){return{getKey:function(C){var $=g.length,w=C[$];return[p.keys[w],C.slice($+1)]}}},[g]);if(typeof r!="function")return fr(!1,"Form.List only accepts function as children."),null;var b=function(C,$,w){var R=w.source;return R==="internal"?!1:C!==$};return u.createElement(cd.Provider,{value:y},u.createElement(zl.Provider,{value:h},u.createElement(Jx,{name:[],shouldUpdate:b,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!d},function(S,C){var $=S.value,w=$===void 0?[]:$,R=S.onChange,I=c.getFieldValue,_=function(){var T=I(g||[]);return T||[]},O={add:function(T,P){var B=_();P>=0&&P<=B.length?(p.keys=[].concat(Fe(p.keys.slice(0,P)),[p.id],Fe(p.keys.slice(P))),R([].concat(Fe(B.slice(0,P)),[T],Fe(B.slice(P))))):(p.keys=[].concat(Fe(p.keys),[p.id]),R([].concat(Fe(B),[T]))),p.id+=1},remove:function(T){var P=_(),B=new Set(Array.isArray(T)?T:[T]);B.size<=0||(p.keys=p.keys.filter(function(z,D){return!B.has(D)}),R(P.filter(function(z,D){return!B.has(D)})))},move:function(T,P){if(T!==P){var B=_();T<0||T>=B.length||P<0||P>=B.length||(p.keys=a1(p.keys,T,P),R(a1(B,T,P)))}}},j=w||[];return Array.isArray(j)||(j=[]),r(j.map(function(N,T){var P=p.keys[T];return P===void 0&&(p.keys[T]=p.id,P=p.keys[T],p.id+=1),{name:T,key:P,isListField:!0}}),O,C)})))}function AI(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,l){e.forEach(function(s,c){s.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[c]=d,!(n>0)&&(t&&l(r),o(r))})})}):Promise.resolve([])}var Zx="__@field_split__";function hp(e){return e.map(function(t){return"".concat(ht(t),":").concat(t)}).join(Zx)}var ol=(function(){function e(){Jn(this,e),G(this,"kvs",new Map)}return Zn(e,[{key:"set",value:function(n,r){this.kvs.set(hp(n),r)}},{key:"get",value:function(n){return this.kvs.get(hp(n))}},{key:"update",value:function(n,r){var o=this.get(n),l=r(o);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(hp(n))}},{key:"map",value:function(n){return Fe(this.kvs.entries()).map(function(r){var o=ie(r,2),l=o[0],s=o[1],c=l.split(Zx);return n({key:c.map(function(d){var m=d.match(/^([^:]*):(.*)$/),p=ie(m,3),g=p[1],h=p[2];return g==="number"?Number(h):h}),value:s})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,l=r.value;return n[o.join(".")]=l,null}),n}}]),e})(),DI=["name"],FI=Zn(function e(t){var n=this;Jn(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),G(this,"getInternalHooks",function(r){return r===gi?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(fr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(r){n.subscribable=r}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var l,s=vl(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(c){var d=c.key;s=No(s,d,Xo(r,d))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),G(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ol;n.getFieldEntities(!0).forEach(function(l){n.isMergedPreserve(l.isPreserve())||o.set(l.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),G(this,"getInitialValue",function(r){var o=Xo(n.initialValues,r);return r.length?vl(o):o}),G(this,"setCallbacks",function(r){n.callbacks=r}),G(this,"setValidateMessages",function(r){n.validateMessages=r}),G(this,"setPreserve",function(r){n.preserve=r}),G(this,"watchList",[]),G(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),G(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(s){s(o,l,r)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){}),G(this,"updateStore",function(r){n.store=r}),G(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),G(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ol;return n.getFieldEntities(r).forEach(function(l){var s=l.getNamePath();o.set(s,l)}),o}),G(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(l){var s=Un(l);return o.get(s)||{INVALIDATE_NAME_PATH:Un(l)}})}),G(this,"getFieldsValue",function(r,o){n.warningUnhooked();var l,s,c;if(r===!0||Array.isArray(r)?(l=r,s=o):r&&ht(r)==="object"&&(c=r.strict,s=r.filter),l===!0&&!s)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(l)?l:null),m=[];return d.forEach(function(p){var g,h,y="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(c){var b,S;if((b=(S=p).isList)!==null&&b!==void 0&&b.call(S))return}else if(!l&&(g=(h=p).isListField)!==null&&g!==void 0&&g.call(h))return;if(!s)m.push(y);else{var C="getMeta"in p?p.getMeta():null;s(C)&&m.push(y)}}),o1(n.store,m.map(Un))}),G(this,"getFieldValue",function(r){n.warningUnhooked();var o=Un(r);return Xo(n.store,o)}),G(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(l,s){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:Un(r[s]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(r){n.warningUnhooked();var o=Un(r),l=n.getFieldsError([o])[0];return l.errors}),G(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Un(r),l=n.getFieldsError([o])[0];return l.warnings}),G(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),l=0;l<r;l++)o[l]=arguments[l];var s=o[0],c=o[1],d,m=!1;o.length===0?d=null:o.length===1?Array.isArray(s)?(d=s.map(Un),m=!1):(d=null,m=s):(d=s.map(Un),m=c);var p=n.getFieldEntities(!0),g=function(C){return C.isFieldTouched()};if(!d)return m?p.every(function(S){return g(S)||S.isList()}):p.some(g);var h=new ol;d.forEach(function(S){h.set(S,[])}),p.forEach(function(S){var C=S.getNamePath();d.forEach(function($){$.every(function(w,R){return C[R]===w})&&h.update($,function(w){return[].concat(Fe(w),[S])})})});var y=function(C){return C.some(g)},b=h.map(function(S){var C=S.value;return C});return m?b.every(y):b.some(y)}),G(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),G(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(s){return s.isFieldValidating()});var l=r.map(Un);return o.some(function(s){var c=s.getNamePath();return $l(l,c)&&s.isFieldValidating()})}),G(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),G(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ol,l=n.getFieldEntities(!0);l.forEach(function(d){var m=d.props.initialValue,p=d.getNamePath();if(m!==void 0){var g=o.get(p)||new Set;g.add({entity:d,value:m}),o.set(p,g)}});var s=function(m){m.forEach(function(p){var g=p.props.initialValue;if(g!==void 0){var h=p.getNamePath(),y=n.getInitialValue(h);if(y!==void 0)fr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var b=o.get(h);if(b&&b.size>1)fr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var S=n.getFieldValue(h),C=p.isListField();!C&&(!r.skipExist||S===void 0)&&n.updateStore(No(n.store,h,Fe(b)[0].value))}}}})},c;r.entities?c=r.entities:r.namePathList?(c=[],r.namePathList.forEach(function(d){var m=o.get(d);if(m){var p;(p=c).push.apply(p,Fe(Fe(m).map(function(g){return g.entity})))}})):c=l,s(c)}),G(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(vl(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var l=r.map(Un);l.forEach(function(s){var c=n.getInitialValue(s);n.updateStore(No(n.store,s,c))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(o,l,{type:"reset"}),n.notifyWatch(l)}),G(this,"setFields",function(r){n.warningUnhooked();var o=n.store,l=[];r.forEach(function(s){var c=s.name,d=Pt(s,DI),m=Un(c);l.push(m),"value"in d&&n.updateStore(No(n.store,m,d.value)),n.notifyObservers(o,[m],{type:"setField",data:s})}),n.notifyWatch(l)}),G(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(l){var s=l.getNamePath(),c=l.getMeta(),d=K(K({},c),{},{name:s,value:n.getFieldValue(s)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return o}),G(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var l=r.getNamePath(),s=Xo(n.store,l);s===void 0&&n.updateStore(No(n.store,l,o))}}),G(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),G(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(l,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(g){return g!==r}),!n.isMergedPreserve(c)&&(!s||d.length>1)){var m=s?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==m&&n.fieldEntities.every(function(g){return!Yx(g.getNamePath(),o)})){var p=n.store;n.updateStore(No(p,o,m,!0)),n.notifyObservers(p,[o],{type:"remove"}),n.triggerDependenciesUpdate(p,o)}}n.notifyWatch([o])}}),G(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,l=r.value;n.updateValue(o,l);break}case"validateField":{var s=r.namePath,c=r.triggerName;n.validateFields([s],{triggerName:c});break}}}),G(this,"notifyObservers",function(r,o,l){if(n.subscribable){var s=K(K({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(c){var d=c.onStoreChange;d(r,o,s)})}else n.forceRootUpdate()}),G(this,"triggerDependenciesUpdate",function(r,o){var l=n.getDependencyChildrenFields(o);return l.length&&n.validateFields(l),n.notifyObservers(r,l,{type:"dependenciesUpdate",relatedFields:[o].concat(Fe(l))}),l}),G(this,"updateValue",function(r,o){var l=Un(r),s=n.store;n.updateStore(No(n.store,l,o)),n.notifyObservers(s,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var c=n.triggerDependenciesUpdate(s,l),d=n.callbacks.onValuesChange;if(d){var m=o1(n.store,[l]);d(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Fe(c)))}),G(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=vl(n.store,r);n.updateStore(l)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),G(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(r){var o=new Set,l=[],s=new ol;n.getFieldEntities().forEach(function(d){var m=d.props.dependencies;(m||[]).forEach(function(p){var g=Un(p);s.update(g,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(d),h})})});var c=function d(m){var p=s.get(m)||new Set;p.forEach(function(g){if(!o.has(g)){o.add(g);var h=g.getNamePath();g.isFieldDirty()&&h.length&&(l.push(h),d(h))}})};return c(r),l}),G(this,"triggerOnFieldsChange",function(r,o){var l=n.callbacks.onFieldsChange;if(l){var s=n.getFields();if(o){var c=new ol;o.forEach(function(m){var p=m.name,g=m.errors;c.set(p,g)}),s.forEach(function(m){m.errors=c.get(m.name)||m.errors})}var d=s.filter(function(m){var p=m.name;return $l(r,p)});d.length&&l(d,s)}}),G(this,"validateFields",function(r,o){n.warningUnhooked();var l,s;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(l=r,s=o):s=r;var c=!!l,d=c?l.map(Un):[],m=[],p=String(Date.now()),g=new Set,h=s||{},y=h.recursive,b=h.dirty;n.getFieldEntities(!0).forEach(function(w){if(c||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(b&&!w.isFieldDirty())){var R=w.getNamePath();if(g.add(R.join(p)),!c||$l(d,R,y)){var I=w.validateRules(K({validateMessages:K(K({},Qx),n.validateMessages)},s));m.push(I.then(function(){return{name:R,errors:[],warnings:[]}}).catch(function(_){var O,j=[],N=[];return(O=_.forEach)===null||O===void 0||O.call(_,function(T){var P=T.rule.warningOnly,B=T.errors;P?N.push.apply(N,Fe(B)):j.push.apply(j,Fe(B))}),j.length?Promise.reject({name:R,errors:j,warnings:N}):{name:R,errors:j,warnings:N}}))}}});var S=AI(m);n.lastValidatePromise=S,S.catch(function(w){return w}).then(function(w){var R=w.map(function(I){var _=I.name;return _});n.notifyObservers(n.store,R,{type:"validateFinish"}),n.triggerOnFieldsChange(R,w)});var C=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var R=w.filter(function(I){return I&&I.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:R,outOfDate:n.lastValidatePromise!==S})});C.catch(function(w){return w});var $=d.filter(function(w){return g.has(w.join(p))});return n.triggerOnFieldsChange($),C}),G(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(l){console.error(l)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function ew(e){var t=u.useRef(),n=u.useState({}),r=ie(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){o({})},s=new FI(l);t.current=s.getForm()}return[t.current]}var jg=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),HI=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,l=t.children,s=u.useContext(jg),c=u.useRef({});return u.createElement(jg.Provider,{value:K(K({},s),{},{validateMessages:K(K({},s.validateMessages),n),triggerFormChange:function(m,p){r&&r(m,{changedFields:p,forms:c.current}),s.triggerFormChange(m,p)},triggerFormFinish:function(m,p){o&&o(m,{values:p,forms:c.current}),s.triggerFormFinish(m,p)},registerForm:function(m,p){m&&(c.current=K(K({},c.current),{},G({},m,p))),s.registerForm(m,p)},unregisterForm:function(m){var p=K({},c.current);delete p[m],c.current=p,s.unregisterForm(m)}})},l)},VI=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],WI=function(t,n){var r=t.name,o=t.initialValues,l=t.fields,s=t.form,c=t.preserve,d=t.children,m=t.component,p=m===void 0?"form":m,g=t.validateMessages,h=t.validateTrigger,y=h===void 0?"onChange":h,b=t.onValuesChange,S=t.onFieldsChange,C=t.onFinish,$=t.onFinishFailed,w=t.clearOnDestroy,R=Pt(t,VI),I=u.useRef(null),_=u.useContext(jg),O=ew(s),j=ie(O,1),N=j[0],T=N.getInternalHooks(gi),P=T.useSubscribe,B=T.setInitialValues,z=T.setCallbacks,D=T.setValidateMessages,A=T.setPreserve,W=T.destroyForm;u.useImperativeHandle(n,function(){return K(K({},N),{},{nativeElement:I.current})}),u.useEffect(function(){return _.registerForm(r,N),function(){_.unregisterForm(r)}},[_,N,r]),D(K(K({},_.validateMessages),g)),z({onValuesChange:b,onFieldsChange:function(ne){if(_.triggerFormChange(r,ne),S){for(var te=arguments.length,re=new Array(te>1?te-1:0),fe=1;fe<te;fe++)re[fe-1]=arguments[fe];S.apply(void 0,[ne].concat(re))}},onFinish:function(ne){_.triggerFormFinish(r,ne),C&&C(ne)},onFinishFailed:$}),A(c);var q=u.useRef(null);B(o,!q.current),q.current||(q.current=!0),u.useEffect(function(){return function(){return W(w)}},[]);var V,F=typeof d=="function";if(F){var Y=N.getFieldsValue(!0);V=d(Y,N)}else V=d;P(!F);var U=u.useRef();u.useEffect(function(){zI(U.current||[],l||[])||N.setFields(l||[]),U.current=l},[l,N]);var M=u.useMemo(function(){return K(K({},N),{},{validateTrigger:y})},[N,y]),H=u.createElement(cd.Provider,{value:null},u.createElement(zl.Provider,{value:M},V));return p===!1?H:u.createElement(p,ke({},R,{ref:I,onSubmit:function(ne){ne.preventDefault(),ne.stopPropagation(),N.submit()},onReset:function(ne){var te;ne.preventDefault(),N.resetFields(),(te=R.onReset)===null||te===void 0||te.call(R,ne)}}),H)};function i1(e){try{return JSON.stringify(e)}catch{return Math.random()}}function qI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],l=o===void 0?{}:o,s=ZO(l)?{form:l}:l,c=s.form,d=u.useState(),m=ie(d,2),p=m[0],g=m[1],h=u.useMemo(function(){return i1(p)},[p]),y=u.useRef(h);y.current=h;var b=u.useContext(zl),S=c||b,C=S&&S._init,$=Un(r),w=u.useRef($);return w.current=$,u.useEffect(function(){if(C){var R=S.getFieldsValue,I=S.getInternalHooks,_=I(gi),O=_.registerWatch,j=function(B,z){var D=s.preserve?z:B;return typeof r=="function"?r(D):Xo(D,w.current)},N=O(function(P,B){var z=j(P,B),D=i1(z);y.current!==D&&(y.current=D,g(z))}),T=j(R(),R(!0));return p!==T&&g(T),N}},[C]),p}var UI=u.forwardRef(WI),mc=UI;mc.FormProvider=HI;mc.Field=Jx;mc.List=BI;mc.useForm=ew;mc.useWatch=qI;const Xs=u.createContext({}),GI=({children:e,status:t,override:n})=>{const r=u.useContext(Xs),o=u.useMemo(()=>{const l=Object.assign({},r);return n&&delete l.isFormItemInput,t&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[t,n,r]);return u.createElement(Xs.Provider,{value:o},e)},KI=u.createContext(void 0),pc=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=J.createElement(GI,{override:!0,status:!0},o)),t&&(o=J.createElement(e_,null,o)),o};var XI=function(t){if(Or()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1};function l1(e,t){return XI(e)}const QI=()=>Or()&&window.document.documentElement,Gd=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:l}=e,s=ee({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),c=ee({[`${t}-circle`]:l==="circle",[`${t}-square`]:l==="square",[`${t}-round`]:l==="round"}),d=u.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return u.createElement("span",{className:ee(t,s,c,n),style:Object.assign(Object.assign({},d),r)})},YI=new qt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Kd=e=>({height:e,lineHeight:Z(e)}),El=e=>Object.assign({width:e},Kd(e)),JI=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:YI,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),vp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Kd(e)),ZI=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},El(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},El(o)),[`${t}${t}-sm`]:Object.assign({},El(l))}},eT=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},vp(t,c)),[`${r}-lg`]:Object.assign({},vp(o,c)),[`${r}-sm`]:Object.assign({},vp(l,c))}},s1=e=>Object.assign({width:e},Kd(e)),tT=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:l}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},s1(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},s1(n)),{maxWidth:l(n).mul(4).equal(),maxHeight:l(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},yp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},bp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Kd(e)),nT=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l,gradientFromColor:s,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},bp(r,c))},yp(e,r,n)),{[`${n}-lg`]:Object.assign({},bp(o,c))}),yp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},bp(l,c))}),yp(e,l,`${n}-sm`))},rT=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:l,skeletonInputCls:s,skeletonImageCls:c,controlHeight:d,controlHeightLG:m,controlHeightSM:p,gradientFromColor:g,padding:h,marginSM:y,borderRadius:b,titleHeight:S,blockRadius:C,paragraphLiHeight:$,controlHeightXS:w,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},El(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},El(m)),[`${n}-sm`]:Object.assign({},El(p))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:g,borderRadius:C,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:$,listStyle:"none",background:g,borderRadius:C,"+ li":{marginBlockStart:w}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:y,[`+ ${o}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},nT(e)),ZI(e)),eT(e)),tT(e)),[`${t}${t}-block`]:{width:"100%",[l]:{width:"100%"},[s]:{width:"100%"}},[`${t}${t}-active`]:{[`
212
+ ${r},
213
+ ${o} > li,
214
+ ${n},
215
+ ${l},
216
+ ${s},
217
+ ${c}
218
+ `]:Object.assign({},JI(e))}}},oT=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Fl=dn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Kt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return rT(r)},oT,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),aT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:l="circle",size:s="default"}=e,{getPrefixCls:c}=u.useContext(Rt),d=c("skeleton",t),[m,p,g]=Fl(d),h=Kn(e,["prefixCls","className"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o},n,r,p,g);return m(u.createElement("div",{className:y},u.createElement(Gd,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:s},h))))},iT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l=!1,size:s="default"}=e,{getPrefixCls:c}=u.useContext(Rt),d=c("skeleton",t),[m,p,g]=Fl(d),h=Kn(e,["prefixCls"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},n,r,p,g);return m(u.createElement("div",{className:y},u.createElement(Gd,Object.assign({prefixCls:`${d}-button`,size:s},h))))},lT="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",sT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l}=e,{getPrefixCls:s}=u.useContext(Rt),c=s("skeleton",t),[d,m,p]=Fl(c),g=ee(c,`${c}-element`,{[`${c}-active`]:l},n,r,m,p);return d(u.createElement("div",{className:g},u.createElement("div",{className:ee(`${c}-image`,n),style:o},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:lT,className:`${c}-image-path`})))))},cT=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l,size:s="default"}=e,{getPrefixCls:c}=u.useContext(Rt),d=c("skeleton",t),[m,p,g]=Fl(d),h=Kn(e,["prefixCls"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o,[`${d}-block`]:l},n,r,p,g);return m(u.createElement("div",{className:y},u.createElement(Gd,Object.assign({prefixCls:`${d}-input`,size:s},h))))},uT=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l,children:s}=e,{getPrefixCls:c}=u.useContext(Rt),d=c("skeleton",t),[m,p,g]=Fl(d),h=ee(d,`${d}-element`,{[`${d}-active`]:l},p,n,r,g);return m(u.createElement("div",{className:h},u.createElement("div",{className:ee(`${d}-image`,n),style:o},s)))},dT=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},fT=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,l=Array.from({length:o}).map((s,c)=>u.createElement("li",{key:c,style:{width:dT(c,e)}}));return u.createElement("ul",{className:ee(t,n),style:r},l)},mT=({prefixCls:e,className:t,width:n,style:r})=>u.createElement("h3",{className:ee(e,t),style:Object.assign({width:n},r)});function Cp(e){return e&&typeof e=="object"?e:{}}function pT(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function gT(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function hT(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ki=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:l,children:s,avatar:c=!1,title:d=!0,paragraph:m=!0,active:p,round:g}=e,{getPrefixCls:h,direction:y,className:b,style:S}=yr("skeleton"),C=h("skeleton",t),[$,w,R]=Fl(C);if(n||!("loading"in e)){const I=!!c,_=!!d,O=!!m;let j;if(I){const P=Object.assign(Object.assign({prefixCls:`${C}-avatar`},pT(_,O)),Cp(c));j=u.createElement("div",{className:`${C}-header`},u.createElement(Gd,Object.assign({},P)))}let N;if(_||O){let P;if(_){const z=Object.assign(Object.assign({prefixCls:`${C}-title`},gT(I,O)),Cp(d));P=u.createElement(mT,Object.assign({},z))}let B;if(O){const z=Object.assign(Object.assign({prefixCls:`${C}-paragraph`},hT(I,_)),Cp(m));B=u.createElement(fT,Object.assign({},z))}N=u.createElement("div",{className:`${C}-content`},P,B)}const T=ee(C,{[`${C}-with-avatar`]:I,[`${C}-active`]:p,[`${C}-rtl`]:y==="rtl",[`${C}-round`]:g},b,r,o,w,R);return $(u.createElement("div",{className:T,style:Object.assign(Object.assign({},S),l)},j,N))}return s??null};ki.Button=iT;ki.Avatar=aT;ki.Input=cT;ki.Image=sT;ki.Node=uT;function c1(){}const vT=u.createContext({add:c1,remove:c1});function tw(e){const t=u.useContext(vT),n=u.useRef(null);return Dn(o=>{if(o){const l=e?o.querySelector(e):o;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const u1=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(dc);return J.createElement(Yn,Object.assign({onClick:n},e),t)},d1=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(dc);return J.createElement(Yn,Object.assign({},Px(n),{loading:e,onClick:o},t),r)};function nw(e,t){return J.createElement("span",{className:`${e}-close-x`},t||J.createElement(Xa,{className:`${e}-close-icon`}))}const rw=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:l,onCancel:s,okButtonProps:c,cancelButtonProps:d,footer:m}=e,[p]=Ca("Modal",LS()),g=t||(p==null?void 0:p.okText),h=r||(p==null?void 0:p.cancelText),y=J.useMemo(()=>({confirmLoading:o,okButtonProps:c,cancelButtonProps:d,okTextLocale:g,cancelTextLocale:h,okType:n,onOk:l,onCancel:s}),[o,c,d,g,h,n,l,s]);let b;return typeof m=="function"||typeof m>"u"?(b=J.createElement(J.Fragment,null,J.createElement(u1,null),J.createElement(d1,null)),typeof m=="function"&&(b=m(b,{OkBtn:d1,CancelBtn:u1})),b=J.createElement(Vx,{value:y},b)):b=m,J.createElement(WS,{disabled:!1},b)},yT=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"}}}},bT=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},CT=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,l={};for(let s=o;s>=0;s--)s===0?(l[`${r}${t}-${s}`]={display:"none"},l[`${r}-push-${s}`]={insetInlineStart:"auto"},l[`${r}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-push-${s}`]={insetInlineStart:"auto"},l[`${r}${t}-pull-${s}`]={insetInlineEnd:"auto"},l[`${r}${t}-offset-${s}`]={marginInlineStart:0},l[`${r}${t}-order-${s}`]={order:0}):(l[`${r}${t}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],l[`${r}${t}-push-${s}`]={insetInlineStart:`${s/o*100}%`},l[`${r}${t}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},l[`${r}${t}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},l[`${r}${t}-order-${s}`]={order:s});return l[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},l},Ng=(e,t)=>CT(e,t),ST=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},Ng(e,n))}),xT=()=>({}),wT=()=>({}),$T=dn("Grid",yT,xT),ow=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),ET=dn("Grid",e=>{const t=Kt(e,{gridColumns:24}),n=ow(t);return delete n.xs,[bT(t),Ng(t,""),Ng(t,"-xs"),Object.keys(n).map(r=>ST(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},wT);function f1(e){return{position:e,inset:0}}const RT=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},f1("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},f1("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:O_(e)}]},kT=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Z(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Pn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Z(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Z(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},$o(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Z(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
219
+ ${t}-body,
220
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},_T=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},OT=e=>{const{componentCls:t}=e,n=ow(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,l=Object.keys(r).map(s=>({[`@media (min-width: ${Z(r[s])})`]:{width:`var(${o}${s}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Fe(Object.keys(n).map((s,c)=>{const d=Object.keys(n)[c-1];return d?{[`${o}${s}-width`]:`var(${o}${d}-width)`}:null})),[{width:`var(${o}xs-width)`}],Fe(l))}}},aw=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Kt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},iw=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Z(e.paddingMD)} ${Z(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Z(e.padding)} ${Z(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Z(e.paddingXS)} ${Z(e.padding)}`:0,footerBorderTop:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Z(e.padding*2)} ${Z(e.padding*2)} ${Z(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),lw=dn("Modal",e=>{const t=aw(e);return[kT(t),_T(t),RT(t),uc(t,"zoom"),OT(t)]},iw,{unitless:{titleLineHeight:!0}});var IT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Pg;const TT=e=>{Pg={x:e.pageX,y:e.pageY},setTimeout(()=>{Pg=null},100)};QI()&&document.documentElement.addEventListener("click",TT,!0);const sw=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:l,centered:s,getContainer:c,focusTriggerAfterClose:d=!0,style:m,visible:p,width:g=520,footer:h,classNames:y,styles:b,children:S,loading:C,confirmLoading:$,zIndex:w,mousePosition:R,onOk:I,onCancel:_,destroyOnHidden:O,destroyOnClose:j,panelRef:N=null,modalRender:T}=e,P=IT(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:B,getPrefixCls:z,direction:D,modal:A}=u.useContext(Rt),W=xe=>{$||_==null||_(xe)},q=xe=>{I==null||I(xe)},V=z("modal",t),F=z(),Y=Fo(V),[U,M,H]=lw(V,Y),Q=ee(l,{[`${V}-centered`]:s??(A==null?void 0:A.centered),[`${V}-wrap-rtl`]:D==="rtl"}),ne=h!==null&&!C?u.createElement(rw,Object.assign({},e,{onOk:q,onCancel:W})):null,[te,re,fe,me]=gh(Pl(e),Pl(A),{closable:!0,closeIcon:u.createElement(Xa,{className:`${V}-close-icon`}),closeIconRender:xe=>nw(V,xe)}),ue=T?xe=>u.createElement("div",{className:`${V}-render`},T(xe)):void 0,Se=`.${V}-${T?"render":"content"}`,le=tw(Se),ce=Eo(N,le),[ve,be]=Dl("Modal",w),[de,se]=u.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ye=u.useMemo(()=>{const xe={};return se&&Object.keys(se).forEach(_e=>{const Pe=se[_e];Pe!==void 0&&(xe[`--${V}-${_e}-width`]=typeof Pe=="number"?`${Pe}px`:Pe)}),xe},[V,se]);return U(u.createElement(pc,{form:!0,space:!0},u.createElement(lc.Provider,{value:be},u.createElement(Kx,Object.assign({width:de},P,{zIndex:ve,getContainer:c===void 0?B:c,prefixCls:V,rootClassName:ee(M,r,H,Y),footer:ne,visible:o??p,mousePosition:R??Pg,onClose:W,closable:te&&Object.assign({disabled:fe,closeIcon:re},me),closeIcon:re,focusTriggerAfterClose:d,transitionName:Jo(F,"zoom",e.transitionName),maskTransitionName:Jo(F,"fade",e.maskTransitionName),className:ee(M,n,A==null?void 0:A.className),style:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),m),ye),classNames:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.classNames),y),{wrapper:ee(Q,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},A==null?void 0:A.styles),b),panelRef:ce,destroyOnClose:O??j,modalRender:ue}),C?u.createElement(ki,{active:!0,title:!1,paragraph:{rows:4},className:`${V}-body-skeleton`}):S))))},jT=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:l,lineHeight:s,modalTitleHeight:c,fontHeight:d,confirmBodyPadding:m}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:Object.assign({},rd()),[`&${t} ${t}-body`]:{padding:m},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(d).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Z(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${Z(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:l,lineHeight:s},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
221
+ ${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},NT=ac(["Modal","confirm"],e=>{const t=aw(e);return jT(t)},iw,{order:-1e3});var PT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cw=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:l,type:s,okCancel:c,footer:d,locale:m}=e,p=PT(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(s){case"info":g=u.createElement(bx,null);break;case"success":g=u.createElement(vx,null);break;case"error":g=u.createElement(Nd,null);break;default:g=u.createElement(yx,null)}const h=c??s==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=Ca("Modal"),S=m||b,C=r||(h?S==null?void 0:S.okText:S==null?void 0:S.justOkText),$=o||(S==null?void 0:S.cancelText),w=u.useMemo(()=>Object.assign({autoFocusButton:y,cancelTextLocale:$,okTextLocale:C,mergedOkCancel:h},p),[y,$,C,h,p]),R=u.createElement(u.Fragment,null,u.createElement(Vb,null),u.createElement(Wb,null)),I=e.title!==void 0&&e.title!==null,_=`${l}-body`;return u.createElement("div",{className:`${l}-body-wrapper`},u.createElement("div",{className:ee(_,{[`${_}-has-title`]:I})},g,u.createElement("div",{className:`${l}-paragraph`},I&&u.createElement("span",{className:`${l}-title`},e.title),u.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?u.createElement(Vx,{value:w},u.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(R,{OkBtn:Wb,CancelBtn:Vb}):R)):d,u.createElement(NT,{prefixCls:t}))},zT=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:l,wrapClassName:s,rootPrefixCls:c,bodyStyle:d,closable:m=!1,onConfirm:p,styles:g,title:h}=e,y=`${l}-confirm`,b=e.width||416,S=e.style||{},C=e.mask===void 0?!0:e.mask,$=e.maskClosable===void 0?!1:e.maskClosable,w=ee(y,`${y}-${e.type}`,{[`${y}-rtl`]:o==="rtl"},e.className),[,R]=Br(),I=u.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+$x,[n,R]);return u.createElement(sw,Object.assign({},e,{className:w,wrapClassName:ee({[`${y}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},title:h,footer:null,transitionName:Jo(c||"","zoom",e.transitionName),maskTransitionName:Jo(c||"","fade",e.maskTransitionName),mask:C,maskClosable:$,style:S,styles:Object.assign({body:d,mask:r},g),width:b,zIndex:I,closable:m}),u.createElement(cw,Object.assign({},e,{confirmPrefixCls:y})))},uw=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement(na,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(zT,Object.assign({},e)))},hi=[];let dw="";function fw(){return dw}const MT=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:l}=e,s=LS(),c=u.useContext(Rt),d=fw()||c.getPrefixCls(),m=r||`${d}-modal`;let p=o;return p===!1&&(p=void 0),J.createElement(uw,Object.assign({},e,{rootPrefixCls:d,prefixCls:m,iconPrefixCls:c.iconPrefixCls,theme:c.theme,direction:l??c.direction,locale:(n=(t=c.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:s,getContainer:p}))};function gc(e){const t=fx(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),o,l;function s(...p){var g;if(p.some(b=>b==null?void 0:b.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Fe(p.slice(1))))}for(let b=0;b<hi.length;b++)if(hi[b]===d){hi.splice(b,1);break}l()}const c=p=>{clearTimeout(o),o=setTimeout(()=>{const g=t.getPrefixCls(void 0,fw()),h=t.getIconPrefixCls(),y=t.getTheme(),b=J.createElement(MT,Object.assign({},p));l=yh()(J.createElement(na,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(b):b),n)})};function d(...p){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}}),r.visible&&delete r.visible,c(r)}function m(p){typeof p=="function"?r=p(r):r=Object.assign(Object.assign({},r),p),c(r)}return c(r),hi.push(d),{destroy:d,update:m}}function mw(e){return Object.assign(Object.assign({},e),{type:"warning"})}function pw(e){return Object.assign(Object.assign({},e),{type:"info"})}function gw(e){return Object.assign(Object.assign({},e),{type:"success"})}function hw(e){return Object.assign(Object.assign({},e),{type:"error"})}function vw(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function LT({rootPrefixCls:e}){dw=e}var BT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AT=(e,t)=>{var n,{afterClose:r,config:o}=e,l=BT(e,["afterClose","config"]);const[s,c]=u.useState(!0),[d,m]=u.useState(o),{direction:p,getPrefixCls:g}=u.useContext(Rt),h=g("modal"),y=g(),b=()=>{var w;r(),(w=d.afterClose)===null||w===void 0||w.call(d)},S=(...w)=>{var R;if(c(!1),w.some(O=>O==null?void 0:O.triggerCancel)){var _;(R=d.onCancel)===null||R===void 0||(_=R).call.apply(_,[d,()=>{}].concat(Fe(w.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:S,update:w=>{m(R=>{const I=typeof w=="function"?w(R):w;return Object.assign(Object.assign({},R),I)})}}));const C=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[$]=Ca("Modal",Ua.Modal);return u.createElement(uw,Object.assign({prefixCls:h,rootPrefixCls:y},d,{close:S,open:s,afterClose:b,okText:d.okText||(C?$==null?void 0:$.okText:$==null?void 0:$.justOkText),direction:d.direction||p,cancelText:d.cancelText||($==null?void 0:$.cancelText)},l))},DT=u.forwardRef(AT);let m1=0;const FT=u.memo(u.forwardRef((e,t)=>{const[n,r]=pk();return u.useImperativeHandle(t,()=>({patchElement:r}),[r]),u.createElement(u.Fragment,null,n)}));function HT(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(Fe(t).forEach(s=>{s()}),n([]))},[t]);const r=u.useCallback(l=>function(c){var d;m1+=1;const m=u.createRef();let p;const g=new Promise(C=>{p=C});let h=!1,y;const b=u.createElement(DT,{key:`modal-${m1}`,config:l(c),ref:m,afterClose:()=>{y==null||y()},isSilent:()=>h,onConfirm:C=>{p(C)}});return y=(d=e.current)===null||d===void 0?void 0:d.patchElement(b),y&&hi.push(y),{destroy:()=>{function C(){var $;($=m.current)===null||$===void 0||$.destroy()}m.current?C():n($=>[].concat(Fe($),[C]))},update:C=>{function $(){var w;(w=m.current)===null||w===void 0||w.update(C)}m.current?$():n(w=>[].concat(Fe(w),[$]))},then:C=>(h=!0,g.then(C))}},[]);return[u.useMemo(()=>({info:r(pw),success:r(gw),error:r(hw),warning:r(mw),confirm:r(vw)}),[r]),u.createElement(FT,{key:"modal-holder",ref:e})]}const VT=J.createContext({});function yw(e){return t=>u.createElement(na,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const bw=(e,t,n,r,o)=>yw(s=>{const{prefixCls:c,style:d}=s,m=u.useRef(null),[p,g]=u.useState(0),[h,y]=u.useState(0),[b,S]=Fn(!1,{value:s.open}),{getPrefixCls:C}=u.useContext(Rt),$=C(r||"select",c);u.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver(O=>{const j=O[0].target;g(j.offsetHeight+8),y(j.offsetWidth)}),_=setInterval(()=>{var O;const j=o?`.${o($)}`:`.${$}-dropdown`,N=(O=m.current)===null||O===void 0?void 0:O.querySelector(j);N&&(clearInterval(_),I.observe(N))},10);return()=>{clearInterval(_),I.disconnect()}}},[$]);let w=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},d),{margin:0}),open:b,visible:b,getPopupContainer:()=>m.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const R={paddingBottom:p,position:"relative",minWidth:h};return u.createElement("div",{ref:m,style:R},u.createElement(e,Object.assign({},w)))}),_h=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var Xd=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,l=t.children,s=t.onMouseDown,c=t.onClick,d=typeof r=="function"?r(o):r;return u.createElement("span",{className:n,onMouseDown:function(p){p.preventDefault(),s==null||s(p)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},d!==void 0?d:u.createElement("span",{className:ee(n.split(/\s+/).map(function(m){return"".concat(m,"-icon")}))},l))},WT=function(t,n,r,o,l){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,m=J.useMemo(function(){if(ht(o)==="object")return o.clearIcon;if(l)return l},[o,l]),p=J.useMemo(function(){return!!(!s&&o&&(r.length||c)&&!(d==="combobox"&&c===""))},[o,s,r.length,c,d]);return{allowClear:p,clearIcon:J.createElement(Xd,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},Cw=u.createContext(null);function qT(){return u.useContext(Cw)}function UT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=ie(t,2),r=n[0],o=n[1],l=u.useRef(null),s=function(){window.clearTimeout(l.current)};u.useEffect(function(){return s},[]);var c=function(m,p){s(),l.current=window.setTimeout(function(){o(m),p&&p()},e)};return[r,c,s]}function Sw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);u.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function GT(e,t,n,r){var o=u.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},u.useEffect(function(){function l(s){var c;if(!((c=o.current)!==null&&c!==void 0&&c.customizedTrigger)){var d=s.target;d.shadowRoot&&s.composed&&(d=s.composedPath()[0]||d),o.current.open&&e().filter(function(m){return m}).every(function(m){return!m.contains(d)&&m!==d})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}function KT(e){return e&&![qe.ESC,qe.SHIFT,qe.BACKSPACE,qe.TAB,qe.WIN_KEY,qe.ALT,qe.META,qe.WIN_KEY_RIGHT,qe.CTRL,qe.SEMICOLON,qe.EQUALS,qe.CAPS_LOCK,qe.CONTEXT_MENU,qe.F1,qe.F2,qe.F3,qe.F4,qe.F5,qe.F6,qe.F7,qe.F8,qe.F9,qe.F10,qe.F11,qe.F12].includes(e)}var XT=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],al=void 0;function QT(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,l=e.renderItem,s=e.responsive,c=e.responsiveDisabled,d=e.registerSize,m=e.itemKey,p=e.className,g=e.style,h=e.children,y=e.display,b=e.order,S=e.component,C=S===void 0?"div":S,$=Pt(e,XT),w=s&&!y;function R(N){d(m,N)}u.useEffect(function(){return function(){R(null)}},[]);var I=l&&o!==al?l(o,{index:b}):h,_;r||(_={opacity:w?0:1,height:w?0:al,overflowY:w?"hidden":al,order:s?b:al,pointerEvents:w?"none":al,position:w?"absolute":al});var O={};w&&(O["aria-hidden"]=!0);var j=u.createElement(C,ke({className:ee(!r&&n,p),style:K(K({},_),g)},O,$,{ref:t}),I);return s&&(j=u.createElement(xo,{onResize:function(T){var P=T.offsetWidth;R(P)},disabled:c},j)),j}var Cl=u.forwardRef(QT);Cl.displayName="Item";function YT(e){if(typeof MessageChannel>"u")Cn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function JT(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],YT(function(){qa.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function il(e,t){var n=u.useState(t),r=ie(n,2),o=r[0],l=r[1],s=Dn(function(c){e(function(){l(c)})});return[o,s]}var ud=J.createContext(null),ZT=["component"],ej=["className"],tj=["className"],nj=function(t,n){var r=u.useContext(ud);if(!r){var o=t.component,l=o===void 0?"div":o,s=Pt(t,ZT);return u.createElement(l,ke({},s,{ref:n}))}var c=r.className,d=Pt(r,ej),m=t.className,p=Pt(t,tj);return u.createElement(ud.Provider,{value:null},u.createElement(Cl,ke({ref:n,className:ee(c,m)},d,p)))},xw=u.forwardRef(nj);xw.displayName="RawItem";var rj=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],ww="responsive",$w="invalidate";function oj(e){return"+ ".concat(e.length," ...")}function aj(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,l=o===void 0?[]:o,s=e.renderItem,c=e.renderRawItem,d=e.itemKey,m=e.itemWidth,p=m===void 0?10:m,g=e.ssr,h=e.style,y=e.className,b=e.maxCount,S=e.renderRest,C=e.renderRawRest,$=e.prefix,w=e.suffix,R=e.component,I=R===void 0?"div":R,_=e.itemComponent,O=e.onVisibleChange,j=Pt(e,rj),N=g==="full",T=JT(),P=il(T,null),B=ie(P,2),z=B[0],D=B[1],A=z||0,W=il(T,new Map),q=ie(W,2),V=q[0],F=q[1],Y=il(T,0),U=ie(Y,2),M=U[0],H=U[1],Q=il(T,0),ne=ie(Q,2),te=ne[0],re=ne[1],fe=il(T,0),me=ie(fe,2),ue=me[0],Se=me[1],le=il(T,0),ce=ie(le,2),ve=ce[0],be=ce[1],de=u.useState(null),se=ie(de,2),ye=se[0],xe=se[1],_e=u.useState(null),Pe=ie(_e,2),$e=Pe[0],Ee=Pe[1],ze=u.useMemo(function(){return $e===null&&N?Number.MAX_SAFE_INTEGER:$e||0},[$e,z]),Ie=u.useState(!1),Qe=ie(Ie,2),ot=Qe[0],xt=Qe[1],dt="".concat(r,"-item"),Xe=Math.max(M,te),ct=b===ww,Ge=l.length&&ct,pt=b===$w,Ze=Ge||typeof b=="number"&&l.length>b,Le=u.useMemo(function(){var Re=l;return Ge?z===null&&N?Re=l:Re=l.slice(0,Math.min(l.length,A/p)):typeof b=="number"&&(Re=l.slice(0,b)),Re},[l,p,z,b,Ge]),tt=u.useMemo(function(){return Ge?l.slice(ze+1):l.slice(Le.length)},[l,Le,Ge,ze]),Ne=u.useCallback(function(Re,we){var Be;return typeof d=="function"?d(Re):(Be=d&&(Re==null?void 0:Re[d]))!==null&&Be!==void 0?Be:we},[d]),Ve=u.useCallback(s||function(Re){return Re},[s]);function kt(Re,we,Be){$e===Re&&(we===void 0||we===ye)||(Ee(Re),Be||(xt(Re<l.length-1),O==null||O(Re)),we!==void 0&&xe(we))}function vt(Re,we){D(we.clientWidth)}function Xt(Re,we){F(function(Be){var Je=new Map(Be);return we===null?Je.delete(Re):Je.set(Re,we),Je})}function Ut(Re,we){re(we),H(te)}function fn(Re,we){Se(we)}function wn(Re,we){be(we)}function Yt(Re){return V.get(Ne(Le[Re],Re))}on(function(){if(A&&typeof Xe=="number"&&Le){var Re=ue+ve,we=Le.length,Be=we-1;if(!we){kt(0,null);return}for(var Je=0;Je<we;Je+=1){var et=Yt(Je);if(N&&(et=et||0),et===void 0){kt(Je-1,void 0,!0);break}if(Re+=et,Be===0&&Re<=A||Je===Be-1&&Re+Yt(Be)<=A){kt(Be,null);break}else if(Re+Xe>A){kt(Je-1,Re-et-ve+te);break}}w&&Yt(0)+ve>A&&xe(null)}},[A,V,te,ue,ve,Ne,Le]);var Lt=ot&&!!tt.length,wt={};ye!==null&&Ge&&(wt={position:"absolute",left:ye,top:0});var Jt={prefixCls:dt,responsive:Ge,component:_,invalidate:pt},Wt=c?function(Re,we){var Be=Ne(Re,we);return u.createElement(ud.Provider,{key:Be,value:K(K({},Jt),{},{order:we,item:Re,itemKey:Be,registerSize:Xt,display:we<=ze})},c(Re,we))}:function(Re,we){var Be=Ne(Re,we);return u.createElement(Cl,ke({},Jt,{order:we,key:Be,item:Re,renderItem:Ve,itemKey:Be,registerSize:Xt,display:we<=ze}))},nt={order:Lt?ze:Number.MAX_SAFE_INTEGER,className:"".concat(dt,"-rest"),registerSize:Ut,display:Lt},St=S||oj,ut=C?u.createElement(ud.Provider,{value:K(K({},Jt),nt)},C(tt)):u.createElement(Cl,ke({},Jt,nt),typeof St=="function"?St(tt):St),Te=u.createElement(I,ke({className:ee(!pt&&r,y),style:h,ref:t},j),$&&u.createElement(Cl,ke({},Jt,{responsive:ct,responsiveDisabled:!Ge,order:-1,className:"".concat(dt,"-prefix"),registerSize:fn,display:!0}),$),Le.map(Wt),Ze?ut:null,w&&u.createElement(Cl,ke({},Jt,{responsive:ct,responsiveDisabled:!Ge,order:ze,className:"".concat(dt,"-suffix"),registerSize:wn,display:!0,style:wt}),w));return ct?u.createElement(xo,{onResize:vt,disabled:!Ge},Te):Te}var Yo=u.forwardRef(aj);Yo.displayName="Overflow";Yo.Item=xw;Yo.RESPONSIVE=ww;Yo.INVALIDATE=$w;function ij(e,t,n){var r=K(K({},e),t);return Object.keys(t).forEach(function(o){var l=t[o];typeof l=="function"&&(r[o]=function(){for(var s,c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];return l.apply(void 0,d),(s=e[o])===null||s===void 0?void 0:s.call.apply(s,[e].concat(d))})}),r}var lj=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],sj=function(t,n){var r=t.prefixCls,o=t.id,l=t.inputElement,s=t.autoFocus,c=t.autoComplete,d=t.editable,m=t.activeDescendantId,p=t.value,g=t.open,h=t.attrs,y=Pt(t,lj),b=l||u.createElement("input",null),S=b,C=S.ref,$=S.props;return"maxLength"in b.props,b=u.cloneElement(b,K(K(K({type:"search"},ij(y,$)),{},{id:o,ref:Eo(n,C),autoComplete:c||"off",autoFocus:s,className:ee("".concat(r,"-selection-search-input"),$==null?void 0:$.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":g?m:void 0},h),{},{value:d?p:"",readOnly:!d,unselectable:d?null:"on",style:K(K({},$.style),{},{opacity:d?null:0})})),b},Ew=u.forwardRef(sj);function Rw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var cj=typeof window<"u"&&window.document&&window.document.documentElement,uj=cj;function dj(e){return e!=null}function fj(e){return!e&&e!==0}function p1(e){return["string","number"].includes(ht(e))}function kw(e){var t=void 0;return e&&(p1(e.title)?t=e.title.toString():p1(e.label)&&(t=e.label.toString())),t}function mj(e,t){uj?u.useLayoutEffect(e,t):u.useEffect(e,t)}function pj(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var g1=function(t){t.preventDefault(),t.stopPropagation()},gj=function(t){var n=t.id,r=t.prefixCls,o=t.values,l=t.open,s=t.searchValue,c=t.autoClearSearchValue,d=t.inputRef,m=t.placeholder,p=t.disabled,g=t.mode,h=t.showSearch,y=t.autoFocus,b=t.autoComplete,S=t.activeDescendantId,C=t.tabIndex,$=t.removeIcon,w=t.maxTagCount,R=t.maxTagTextLength,I=t.maxTagPlaceholder,_=I===void 0?function(be){return"+ ".concat(be.length," ...")}:I,O=t.tagRender,j=t.onToggleOpen,N=t.onRemove,T=t.onInputChange,P=t.onInputPaste,B=t.onInputKeyDown,z=t.onInputMouseDown,D=t.onInputCompositionStart,A=t.onInputCompositionEnd,W=t.onInputBlur,q=u.useRef(null),V=u.useState(0),F=ie(V,2),Y=F[0],U=F[1],M=u.useState(!1),H=ie(M,2),Q=H[0],ne=H[1],te="".concat(r,"-selection"),re=l||g==="multiple"&&c===!1||g==="tags"?s:"",fe=g==="tags"||g==="multiple"&&c===!1||h&&(l||Q);mj(function(){U(q.current.scrollWidth)},[re]);var me=function(de,se,ye,xe,_e){return u.createElement("span",{title:kw(de),className:ee("".concat(te,"-item"),G({},"".concat(te,"-item-disabled"),ye))},u.createElement("span",{className:"".concat(te,"-item-content")},se),xe&&u.createElement(Xd,{className:"".concat(te,"-item-remove"),onMouseDown:g1,onClick:_e,customizeIcon:$},"×"))},ue=function(de,se,ye,xe,_e,Pe){var $e=function(ze){g1(ze),j(!l)};return u.createElement("span",{onMouseDown:$e},O({label:se,value:de,disabled:ye,closable:xe,onClose:_e,isMaxTag:!!Pe}))},Se=function(de){var se=de.disabled,ye=de.label,xe=de.value,_e=!p&&!se,Pe=ye;if(typeof R=="number"&&(typeof ye=="string"||typeof ye=="number")){var $e=String(Pe);$e.length>R&&(Pe="".concat($e.slice(0,R),"..."))}var Ee=function(Ie){Ie&&Ie.stopPropagation(),N(de)};return typeof O=="function"?ue(xe,Pe,se,_e,Ee):me(de,Pe,se,_e,Ee)},le=function(de){if(!o.length)return null;var se=typeof _=="function"?_(de):_;return typeof O=="function"?ue(void 0,se,!1,!1,void 0,!0):me({title:se},se,!1)},ce=u.createElement("div",{className:"".concat(te,"-search"),style:{width:Y},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},u.createElement(Ew,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:y,autoComplete:b,editable:fe,activeDescendantId:S,value:re,onKeyDown:B,onMouseDown:z,onChange:T,onPaste:P,onCompositionStart:D,onCompositionEnd:A,onBlur:W,tabIndex:C,attrs:so(t,!0)}),u.createElement("span",{ref:q,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},re," ")),ve=u.createElement(Yo,{prefixCls:"".concat(te,"-overflow"),data:o,renderItem:Se,renderRest:le,suffix:ce,itemKey:pj,maxCount:w});return u.createElement("span",{className:"".concat(te,"-wrap")},ve,!o.length&&!re&&u.createElement("span",{className:"".concat(te,"-placeholder")},m))},hj=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,l=t.inputRef,s=t.disabled,c=t.autoFocus,d=t.autoComplete,m=t.activeDescendantId,p=t.mode,g=t.open,h=t.values,y=t.placeholder,b=t.tabIndex,S=t.showSearch,C=t.searchValue,$=t.activeValue,w=t.maxLength,R=t.onInputKeyDown,I=t.onInputMouseDown,_=t.onInputChange,O=t.onInputPaste,j=t.onInputCompositionStart,N=t.onInputCompositionEnd,T=t.onInputBlur,P=t.title,B=u.useState(!1),z=ie(B,2),D=z[0],A=z[1],W=p==="combobox",q=W||S,V=h[0],F=C||"";W&&$&&!D&&(F=$),u.useEffect(function(){W&&A(!1)},[W,$]);var Y=p!=="combobox"&&!g&&!S?!1:!!F,U=P===void 0?kw(V):P,M=u.useMemo(function(){return V?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Y?{visibility:"hidden"}:void 0},y)},[V,Y,y,r]);return u.createElement("span",{className:"".concat(r,"-selection-wrap")},u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(Ew,{ref:l,prefixCls:r,id:o,open:g,inputElement:n,disabled:s,autoFocus:c,autoComplete:d,editable:q,activeDescendantId:m,value:F,onKeyDown:R,onMouseDown:I,onChange:function(Q){A(!0),_(Q)},onPaste:O,onCompositionStart:j,onCompositionEnd:N,onBlur:T,tabIndex:b,attrs:so(t,!0),maxLength:W?w:void 0})),!W&&V?u.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:Y?{visibility:"hidden"}:void 0},V.label):null,M)},vj=function(t,n){var r=u.useRef(null),o=u.useRef(!1),l=t.prefixCls,s=t.open,c=t.mode,d=t.showSearch,m=t.tokenWithEnter,p=t.disabled,g=t.prefix,h=t.autoClearSearchValue,y=t.onSearch,b=t.onSearchSubmit,S=t.onToggleOpen,C=t.onInputKeyDown,$=t.onInputBlur,w=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(U){r.current.focus(U)},blur:function(){r.current.blur()}}});var R=Sw(0),I=ie(R,2),_=I[0],O=I[1],j=function(U){var M=U.which,H=r.current instanceof HTMLTextAreaElement;!H&&s&&(M===qe.UP||M===qe.DOWN)&&U.preventDefault(),C&&C(U),M===qe.ENTER&&c==="tags"&&!o.current&&!s&&(b==null||b(U.target.value)),!(H&&!s&&~[qe.UP,qe.DOWN,qe.LEFT,qe.RIGHT].indexOf(M))&&KT(M)&&S(!0)},N=function(){O(!0)},T=u.useRef(null),P=function(U){y(U,!0,o.current)!==!1&&S(!0)},B=function(){o.current=!0},z=function(U){o.current=!1,c!=="combobox"&&P(U.target.value)},D=function(U){var M=U.target.value;if(m&&T.current&&/[\r\n]/.test(T.current)){var H=T.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");M=M.replace(H,T.current)}T.current=null,P(M)},A=function(U){var M=U.clipboardData,H=M==null?void 0:M.getData("text");T.current=H||""},W=function(U){var M=U.target;if(M!==r.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){r.current.focus()}):r.current.focus()}},q=function(U){var M=_();U.target!==r.current&&!M&&!(c==="combobox"&&p)&&U.preventDefault(),(c!=="combobox"&&(!d||!M)||!s)&&(s&&h!==!1&&y("",!0,!1),S())},V={inputRef:r,onInputKeyDown:j,onInputMouseDown:N,onInputChange:D,onInputPaste:A,onInputCompositionStart:B,onInputCompositionEnd:z,onInputBlur:$},F=c==="multiple"||c==="tags"?u.createElement(gj,ke({},t,V)):u.createElement(hj,ke({},t,V));return u.createElement("div",{ref:w,className:"".concat(l,"-selector"),onClick:W,onMouseDown:q},g&&u.createElement("div",{className:"".concat(l,"-prefix")},g),F)},yj=u.forwardRef(vj);function bj(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,l=r||{},s=l.className,c=l.content,d=o.x,m=d===void 0?0:d,p=o.y,g=p===void 0?0:p,h=u.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],S=n.points[1],C=b[0],$=b[1],w=S[0],R=S[1];C===w||!["t","b"].includes(C)?y.top=g:C==="t"?y.top=0:y.bottom=0,$===R||!["l","r"].includes($)?y.left=m:$==="l"?y.left=0:y.right=0}return u.createElement("div",{ref:h,className:ee("".concat(t,"-arrow"),s),style:y},c)}function Cj(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,l=e.motion;return o?u.createElement(lo,ke({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(s){var c=s.className;return u.createElement("div",{style:{zIndex:r},className:ee("".concat(t,"-mask"),c)})}):null}var Sj=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),xj=u.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,l=e.style,s=e.target,c=e.onVisibleChanged,d=e.open,m=e.keepDom,p=e.fresh,g=e.onClick,h=e.mask,y=e.arrow,b=e.arrowPos,S=e.align,C=e.motion,$=e.maskMotion,w=e.forceRender,R=e.getPopupContainer,I=e.autoDestroy,_=e.portal,O=e.zIndex,j=e.onMouseEnter,N=e.onMouseLeave,T=e.onPointerEnter,P=e.onPointerDownCapture,B=e.ready,z=e.offsetX,D=e.offsetY,A=e.offsetR,W=e.offsetB,q=e.onAlign,V=e.onPrepare,F=e.stretch,Y=e.targetWidth,U=e.targetHeight,M=typeof n=="function"?n():n,H=d||m,Q=(R==null?void 0:R.length)>0,ne=u.useState(!R||!Q),te=ie(ne,2),re=te[0],fe=te[1];if(on(function(){!re&&Q&&s&&fe(!0)},[re,Q,s]),!re)return null;var me="auto",ue={left:"-1000vw",top:"-1000vh",right:me,bottom:me};if(B||!d){var Se,le=S.points,ce=S.dynamicInset||((Se=S._experimental)===null||Se===void 0?void 0:Se.dynamicInset),ve=ce&&le[0][1]==="r",be=ce&&le[0][0]==="b";ve?(ue.right=A,ue.left=me):(ue.left=z,ue.right=me),be?(ue.bottom=W,ue.top=me):(ue.top=D,ue.bottom=me)}var de={};return F&&(F.includes("height")&&U?de.height=U:F.includes("minHeight")&&U&&(de.minHeight=U),F.includes("width")&&Y?de.width=Y:F.includes("minWidth")&&Y&&(de.minWidth=Y)),d||(de.pointerEvents="none"),u.createElement(_,{open:w||H,getContainer:R&&function(){return R(s)},autoDestroy:I},u.createElement(Cj,{prefixCls:o,open:d,zIndex:O,mask:h,motion:$}),u.createElement(xo,{onResize:q,disabled:!d},function(se){return u.createElement(lo,ke({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(o,"-hidden")},C,{onAppearPrepare:V,onEnterPrepare:V,visible:d,onVisibleChanged:function(xe){var _e;C==null||(_e=C.onVisibleChanged)===null||_e===void 0||_e.call(C,xe),c(xe)}}),function(ye,xe){var _e=ye.className,Pe=ye.style,$e=ee(o,_e,r);return u.createElement("div",{ref:Eo(se,t,xe),className:$e,style:K(K(K(K({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ue),de),Pe),{},{boxSizing:"border-box",zIndex:O},l),onMouseEnter:j,onMouseLeave:N,onPointerEnter:T,onClick:g,onPointerDownCapture:P},y&&u.createElement(bj,{prefixCls:o,arrow:y,arrowPos:b,align:S}),u.createElement(Sj,{cache:!d&&!p},M))})}))}),wj=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Ya(n),l=u.useCallback(function(c){th(t,r?r(c):c)},[r]),s=ta(l,Ei(n));return o?u.cloneElement(n,{ref:s}):n}),h1=u.createContext(null);function v1(e){return e?Array.isArray(e)?e:[e]:[]}function $j(e,t,n,r){return u.useMemo(function(){var o=v1(n??t),l=v1(r??t),s=new Set(o),c=new Set(l);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[s,c]},[e,t,n,r])}function Ej(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Rj(e,t,n,r){for(var o=n.points,l=Object.keys(e),s=0;s<l.length;s+=1){var c,d=l[s];if(Ej((c=e[d])===null||c===void 0?void 0:c.points,o,r))return"".concat(t,"-placement-").concat(d)}return""}function y1(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function hc(e){return e.ownerDocument.defaultView}function zg(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=hc(n).getComputedStyle(n),l=o.overflowX,s=o.overflowY,c=o.overflow;[l,s,c].some(function(d){return r.includes(d)})&&t.push(n),n=n.parentElement}return t}function Qs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Cs(e){return Qs(parseFloat(e),0)}function b1(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=hc(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,c=o.borderTopWidth,d=o.borderBottomWidth,m=o.borderLeftWidth,p=o.borderRightWidth,g=r.getBoundingClientRect(),h=r.offsetHeight,y=r.clientHeight,b=r.offsetWidth,S=r.clientWidth,C=Cs(c),$=Cs(d),w=Cs(m),R=Cs(p),I=Qs(Math.round(g.width/b*1e3)/1e3),_=Qs(Math.round(g.height/h*1e3)/1e3),O=(b-S-w-R)*I,j=(h-y-C-$)*_,N=C*_,T=$*_,P=w*I,B=R*I,z=0,D=0;if(l==="clip"){var A=Cs(s);z=A*I,D=A*_}var W=g.x+P-z,q=g.y+N-D,V=W+g.width+2*z-P-B-O,F=q+g.height+2*D-N-T-j;n.left=Math.max(n.left,W),n.top=Math.max(n.top,q),n.right=Math.min(n.right,V),n.bottom=Math.min(n.bottom,F)}}),n}function C1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function S1(e,t){var n=t||[],r=ie(n,2),o=r[0],l=r[1];return[C1(e.width,o),C1(e.height,l)]}function x1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ll(e,t){var n=t[0],r=t[1],o,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:l}}function Ba(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function kj(e,t,n,r,o,l,s){var c=u.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),d=ie(c,2),m=d[0],p=d[1],g=u.useRef(0),h=u.useMemo(function(){return t?zg(t):[]},[t]),y=u.useRef({}),b=function(){y.current={}};e||b();var S=Dn(function(){if(t&&n&&e){let Mn=function(Tr,Dr){var co=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qe,Qr=H.x+Tr,ji=H.y+Dr,Ni=Qr+be,lt=ji+ve,Mt=Math.max(Qr,co.left),Rn=Math.max(ji,co.top),On=Math.min(Ni,co.right),kn=Math.min(lt,co.bottom);return Math.max(0,(On-Mt)*(kn-Rn))},xr=function(){vn=H.y+St,$n=vn+ve,Tn=H.x+nt,en=Tn+be};var Ti=Mn,aa=xr,w,R,I,_,O=t,j=O.ownerDocument,N=hc(O),T=N.getComputedStyle(O),P=T.position,B=O.style.left,z=O.style.top,D=O.style.right,A=O.style.bottom,W=O.style.overflow,q=K(K({},o[r]),l),V=j.createElement("div");(w=O.parentElement)===null||w===void 0||w.appendChild(V),V.style.left="".concat(O.offsetLeft,"px"),V.style.top="".concat(O.offsetTop,"px"),V.style.position=P,V.style.height="".concat(O.offsetHeight,"px"),V.style.width="".concat(O.offsetWidth,"px"),O.style.left="0",O.style.top="0",O.style.right="auto",O.style.bottom="auto",O.style.overflow="hidden";var F;if(Array.isArray(n))F={x:n[0],y:n[1],width:0,height:0};else{var Y,U,M=n.getBoundingClientRect();M.x=(Y=M.x)!==null&&Y!==void 0?Y:M.left,M.y=(U=M.y)!==null&&U!==void 0?U:M.top,F={x:M.x,y:M.y,width:M.width,height:M.height}}var H=O.getBoundingClientRect(),Q=N.getComputedStyle(O),ne=Q.height,te=Q.width;H.x=(R=H.x)!==null&&R!==void 0?R:H.left,H.y=(I=H.y)!==null&&I!==void 0?I:H.top;var re=j.documentElement,fe=re.clientWidth,me=re.clientHeight,ue=re.scrollWidth,Se=re.scrollHeight,le=re.scrollTop,ce=re.scrollLeft,ve=H.height,be=H.width,de=F.height,se=F.width,ye={left:0,top:0,right:fe,bottom:me},xe={left:-ce,top:-le,right:ue-ce,bottom:Se-le},_e=q.htmlRegion,Pe="visible",$e="visibleFirst";_e!=="scroll"&&_e!==$e&&(_e=Pe);var Ee=_e===$e,ze=b1(xe,h),Ie=b1(ye,h),Qe=_e===Pe?Ie:ze,ot=Ee?Ie:Qe;O.style.left="auto",O.style.top="auto",O.style.right="0",O.style.bottom="0";var xt=O.getBoundingClientRect();O.style.left=B,O.style.top=z,O.style.right=D,O.style.bottom=A,O.style.overflow=W,(_=O.parentElement)===null||_===void 0||_.removeChild(V);var dt=Qs(Math.round(be/parseFloat(te)*1e3)/1e3),Xe=Qs(Math.round(ve/parseFloat(ne)*1e3)/1e3);if(dt===0||Xe===0||Bs(n)&&!bh(n))return;var ct=q.offset,Ge=q.targetOffset,pt=S1(H,ct),Ze=ie(pt,2),Le=Ze[0],tt=Ze[1],Ne=S1(F,Ge),Ve=ie(Ne,2),kt=Ve[0],vt=Ve[1];F.x-=kt,F.y-=vt;var Xt=q.points||[],Ut=ie(Xt,2),fn=Ut[0],wn=Ut[1],Yt=x1(wn),Lt=x1(fn),wt=ll(F,Yt),Jt=ll(H,Lt),Wt=K({},q),nt=wt.x-Jt.x+Le,St=wt.y-Jt.y+tt,ut=Mn(nt,St),Te=Mn(nt,St,Ie),Re=ll(F,["t","l"]),we=ll(H,["t","l"]),Be=ll(F,["b","r"]),Je=ll(H,["b","r"]),et=q.overflow||{},Bt=et.adjustX,Ht=et.adjustY,jt=et.shiftX,zt=et.shiftY,Sn=function(Dr){return typeof Dr=="boolean"?Dr:Dr>=0},vn,$n,Tn,en;xr();var an=Sn(Ht),Ae=Lt[0]===Yt[0];if(an&&Lt[0]==="t"&&($n>ot.bottom||y.current.bt)){var Ke=St;Ae?Ke-=ve-de:Ke=Re.y-Je.y-tt;var Et=Mn(nt,Ke),ft=Mn(nt,Ke,Ie);Et>ut||Et===ut&&(!Ee||ft>=Te)?(y.current.bt=!0,St=Ke,tt=-tt,Wt.points=[Ba(Lt,0),Ba(Yt,0)]):y.current.bt=!1}if(an&&Lt[0]==="b"&&(vn<ot.top||y.current.tb)){var at=St;Ae?at+=ve-de:at=Be.y-we.y-tt;var Ye=Mn(nt,at),$t=Mn(nt,at,Ie);Ye>ut||Ye===ut&&(!Ee||$t>=Te)?(y.current.tb=!0,St=at,tt=-tt,Wt.points=[Ba(Lt,0),Ba(Yt,0)]):y.current.tb=!1}var Vt=Sn(Bt),We=Lt[1]===Yt[1];if(Vt&&Lt[1]==="l"&&(en>ot.right||y.current.rl)){var mt=nt;We?mt-=be-se:mt=Re.x-Je.x-Le;var _t=Mn(mt,St),sn=Mn(mt,St,Ie);_t>ut||_t===ut&&(!Ee||sn>=Te)?(y.current.rl=!0,nt=mt,Le=-Le,Wt.points=[Ba(Lt,1),Ba(Yt,1)]):y.current.rl=!1}if(Vt&&Lt[1]==="r"&&(Tn<ot.left||y.current.lr)){var Vn=nt;We?Vn+=be-se:Vn=Be.x-we.x-Le;var _n=Mn(Vn,St),br=Mn(Vn,St,Ie);_n>ut||_n===ut&&(!Ee||br>=Te)?(y.current.lr=!0,nt=Vn,Le=-Le,Wt.points=[Ba(Lt,1),Ba(Yt,1)]):y.current.lr=!1}xr();var er=jt===!0?0:jt;typeof er=="number"&&(Tn<Ie.left&&(nt-=Tn-Ie.left-Le,F.x+se<Ie.left+er&&(nt+=F.x-Ie.left+se-er)),en>Ie.right&&(nt-=en-Ie.right-Le,F.x>Ie.right-er&&(nt+=F.x-Ie.right+er)));var Cr=zt===!0?0:zt;typeof Cr=="number"&&(vn<Ie.top&&(St-=vn-Ie.top-tt,F.y+de<Ie.top+Cr&&(St+=F.y-Ie.top+de-Cr)),$n>Ie.bottom&&(St-=$n-Ie.bottom-tt,F.y>Ie.bottom-Cr&&(St+=F.y-Ie.bottom+Cr)));var tr=H.x+nt,mr=tr+be,Sr=H.y+St,nn=Sr+ve,it=F.x,rt=it+se,Zt=F.y,rn=Zt+de,mn=Math.max(tr,it),hn=Math.min(mr,rt),pr=(mn+hn)/2,Wn=pr-tr,Dt=Math.max(Sr,Zt),nr=Math.min(nn,rn),ir=(Dt+nr)/2,Ar=ir-Sr;s==null||s(t,Wt);var lr=xt.right-H.x-(nt+H.width),Sa=xt.bottom-H.y-(St+H.height);dt===1&&(nt=Math.floor(nt),lr=Math.floor(lr)),Xe===1&&(St=Math.floor(St),Sa=Math.floor(Sa));var Ii={ready:!0,offsetX:nt/dt,offsetY:St/Xe,offsetR:lr/dt,offsetB:Sa/Xe,arrowX:Wn/dt,arrowY:Ar/Xe,scaleX:dt,scaleY:Xe,align:Wt};p(Ii)}}),C=function(){g.current+=1;var R=g.current;Promise.resolve().then(function(){g.current===R&&S()})},$=function(){p(function(R){return K(K({},R),{},{ready:!1})})};return on($,[r]),on(function(){e||$()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,C]}function _j(e,t,n,r,o){on(function(){if(e&&t&&n){let h=function(){r(),o()};var g=h,l=t,s=n,c=zg(l),d=zg(s),m=hc(s),p=new Set([m].concat(Fe(c),Fe(d)));return p.forEach(function(y){y.addEventListener("scroll",h,{passive:!0})}),m.addEventListener("resize",h,{passive:!0}),r(),function(){p.forEach(function(y){y.removeEventListener("scroll",h),m.removeEventListener("resize",h)})}}},[e,t,n])}function Oj(e,t,n,r,o,l,s,c){var d=u.useRef(e);d.current=e;var m=u.useRef(!1);u.useEffect(function(){if(t&&r&&(!o||l)){var g=function(){m.current=!1},h=function(C){var $;d.current&&!s((($=C.composedPath)===null||$===void 0||($=$.call(C))===null||$===void 0?void 0:$[0])||C.target)&&!m.current&&c(!1)},y=hc(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",h,!0),y.addEventListener("contextmenu",h,!0);var b=ad(n);return b&&(b.addEventListener("mousedown",h,!0),b.addEventListener("contextmenu",h,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",h,!0),y.removeEventListener("contextmenu",h,!0),b&&(b.removeEventListener("mousedown",h,!0),b.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,l]);function p(){m.current=!0}return p}var Ij=["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 Tj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qd,t=u.forwardRef(function(n,r){var o=n.prefixCls,l=o===void 0?"rc-trigger-popup":o,s=n.children,c=n.action,d=c===void 0?"hover":c,m=n.showAction,p=n.hideAction,g=n.popupVisible,h=n.defaultPopupVisible,y=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,S=n.mouseEnterDelay,C=n.mouseLeaveDelay,$=C===void 0?.1:C,w=n.focusDelay,R=n.blurDelay,I=n.mask,_=n.maskClosable,O=_===void 0?!0:_,j=n.getPopupContainer,N=n.forceRender,T=n.autoDestroy,P=n.destroyPopupOnHide,B=n.popup,z=n.popupClassName,D=n.popupStyle,A=n.popupPlacement,W=n.builtinPlacements,q=W===void 0?{}:W,V=n.popupAlign,F=n.zIndex,Y=n.stretch,U=n.getPopupClassNameFromAlign,M=n.fresh,H=n.alignPoint,Q=n.onPopupClick,ne=n.onPopupAlign,te=n.arrow,re=n.popupMotion,fe=n.maskMotion,me=n.popupTransitionName,ue=n.popupAnimation,Se=n.maskTransitionName,le=n.maskAnimation,ce=n.className,ve=n.getTriggerDOMNode,be=Pt(n,Ij),de=T||P||!1,se=u.useState(!1),ye=ie(se,2),xe=ye[0],_e=ye[1];on(function(){_e(_h())},[]);var Pe=u.useRef({}),$e=u.useContext(h1),Ee=u.useMemo(function(){return{registerSubPopup:function(Mt,Rn){Pe.current[Mt]=Rn,$e==null||$e.registerSubPopup(Mt,Rn)}}},[$e]),ze=Ud(),Ie=u.useState(null),Qe=ie(Ie,2),ot=Qe[0],xt=Qe[1],dt=u.useRef(null),Xe=Dn(function(lt){dt.current=lt,Bs(lt)&&ot!==lt&&xt(lt),$e==null||$e.registerSubPopup(ze,lt)}),ct=u.useState(null),Ge=ie(ct,2),pt=Ge[0],Ze=Ge[1],Le=u.useRef(null),tt=Dn(function(lt){Bs(lt)&&pt!==lt&&(Ze(lt),Le.current=lt)}),Ne=u.Children.only(s),Ve=(Ne==null?void 0:Ne.props)||{},kt={},vt=Dn(function(lt){var Mt,Rn,On=pt;return(On==null?void 0:On.contains(lt))||((Mt=ad(On))===null||Mt===void 0?void 0:Mt.host)===lt||lt===On||(ot==null?void 0:ot.contains(lt))||((Rn=ad(ot))===null||Rn===void 0?void 0:Rn.host)===lt||lt===ot||Object.values(Pe.current).some(function(kn){return(kn==null?void 0:kn.contains(lt))||lt===kn})}),Xt=y1(l,re,ue,me),Ut=y1(l,fe,le,Se),fn=u.useState(h||!1),wn=ie(fn,2),Yt=wn[0],Lt=wn[1],wt=g??Yt,Jt=Dn(function(lt){g===void 0&&Lt(lt)});on(function(){Lt(g||!1)},[g]);var Wt=u.useRef(wt);Wt.current=wt;var nt=u.useRef([]);nt.current=[];var St=Dn(function(lt){var Mt;Jt(lt),((Mt=nt.current[nt.current.length-1])!==null&&Mt!==void 0?Mt:wt)!==lt&&(nt.current.push(lt),y==null||y(lt))}),ut=u.useRef(),Te=function(){clearTimeout(ut.current)},Re=function(Mt){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Te(),Rn===0?St(Mt):ut.current=setTimeout(function(){St(Mt)},Rn*1e3)};u.useEffect(function(){return Te},[]);var we=u.useState(!1),Be=ie(we,2),Je=Be[0],et=Be[1];on(function(lt){(!lt||wt)&&et(!0)},[wt]);var Bt=u.useState(null),Ht=ie(Bt,2),jt=Ht[0],zt=Ht[1],Sn=u.useState(null),vn=ie(Sn,2),$n=vn[0],Tn=vn[1],en=function(Mt){Tn([Mt.clientX,Mt.clientY])},an=kj(wt,ot,H&&$n!==null?$n:pt,A,q,V,ne),Ae=ie(an,11),Ke=Ae[0],Et=Ae[1],ft=Ae[2],at=Ae[3],Ye=Ae[4],$t=Ae[5],Vt=Ae[6],We=Ae[7],mt=Ae[8],_t=Ae[9],sn=Ae[10],Vn=$j(xe,d,m,p),_n=ie(Vn,2),br=_n[0],er=_n[1],Cr=br.has("click"),tr=er.has("click")||er.has("contextMenu"),mr=Dn(function(){Je||sn()}),Sr=function(){Wt.current&&H&&tr&&Re(!1)};_j(wt,pt,ot,mr,Sr),on(function(){mr()},[$n,A]),on(function(){wt&&!(q!=null&&q[A])&&mr()},[JSON.stringify(V)]);var nn=u.useMemo(function(){var lt=Rj(q,l,_t,H);return ee(lt,U==null?void 0:U(_t))},[_t,U,q,l,H]);u.useImperativeHandle(r,function(){return{nativeElement:Le.current,popupElement:dt.current,forceAlign:mr}});var it=u.useState(0),rt=ie(it,2),Zt=rt[0],rn=rt[1],mn=u.useState(0),hn=ie(mn,2),pr=hn[0],Wn=hn[1],Dt=function(){if(Y&&pt){var Mt=pt.getBoundingClientRect();rn(Mt.width),Wn(Mt.height)}},nr=function(){Dt(),mr()},ir=function(Mt){et(!1),sn(),b==null||b(Mt)},Ar=function(){return new Promise(function(Mt){Dt(),zt(function(){return Mt})})};on(function(){jt&&(sn(),jt(),zt(null))},[jt]);function lr(lt,Mt,Rn,On){kt[lt]=function(kn){var Pi;On==null||On(kn),Re(Mt,Rn);for(var ia=arguments.length,xa=new Array(ia>1?ia-1:0),Ro=1;Ro<ia;Ro++)xa[Ro-1]=arguments[Ro];(Pi=Ve[lt])===null||Pi===void 0||Pi.call.apply(Pi,[Ve,kn].concat(xa))}}(Cr||tr)&&(kt.onClick=function(lt){var Mt;Wt.current&&tr?Re(!1):!Wt.current&&Cr&&(en(lt),Re(!0));for(var Rn=arguments.length,On=new Array(Rn>1?Rn-1:0),kn=1;kn<Rn;kn++)On[kn-1]=arguments[kn];(Mt=Ve.onClick)===null||Mt===void 0||Mt.call.apply(Mt,[Ve,lt].concat(On))});var Sa=Oj(wt,tr,pt,ot,I,O,vt,Re),Ii=br.has("hover"),Ti=er.has("hover"),aa,Mn;Ii&&(lr("onMouseEnter",!0,S,function(lt){en(lt)}),lr("onPointerEnter",!0,S,function(lt){en(lt)}),aa=function(Mt){(wt||Je)&&ot!==null&&ot!==void 0&&ot.contains(Mt.target)&&Re(!0,S)},H&&(kt.onMouseMove=function(lt){var Mt;(Mt=Ve.onMouseMove)===null||Mt===void 0||Mt.call(Ve,lt)})),Ti&&(lr("onMouseLeave",!1,$),lr("onPointerLeave",!1,$),Mn=function(){Re(!1,$)}),br.has("focus")&&lr("onFocus",!0,w),er.has("focus")&&lr("onBlur",!1,R),br.has("contextMenu")&&(kt.onContextMenu=function(lt){var Mt;Wt.current&&er.has("contextMenu")?Re(!1):(en(lt),Re(!0)),lt.preventDefault();for(var Rn=arguments.length,On=new Array(Rn>1?Rn-1:0),kn=1;kn<Rn;kn++)On[kn-1]=arguments[kn];(Mt=Ve.onContextMenu)===null||Mt===void 0||Mt.call.apply(Mt,[Ve,lt].concat(On))}),ce&&(kt.className=ee(Ve.className,ce));var xr=u.useRef(!1);xr.current||(xr.current=N||wt||Je);var Tr=K(K({},Ve),kt),Dr={},co=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];co.forEach(function(lt){be[lt]&&(Dr[lt]=function(){for(var Mt,Rn=arguments.length,On=new Array(Rn),kn=0;kn<Rn;kn++)On[kn]=arguments[kn];(Mt=Tr[lt])===null||Mt===void 0||Mt.call.apply(Mt,[Tr].concat(On)),be[lt].apply(be,On)})});var Qr=u.cloneElement(Ne,K(K({},Tr),Dr)),ji={x:$t,y:Vt},Ni=te?K({},te!==!0?te:{}):null;return u.createElement(u.Fragment,null,u.createElement(xo,{disabled:!wt,ref:tt,onResize:nr},u.createElement(wj,{getTriggerDOMNode:ve},Qr)),xr.current&&u.createElement(h1.Provider,{value:Ee},u.createElement(xj,{portal:e,ref:Xe,prefixCls:l,popup:B,className:ee(z,nn),style:D,target:pt,onMouseEnter:aa,onMouseLeave:Mn,onPointerEnter:aa,zIndex:F,open:wt,keepDom:Je,fresh:M,onClick:Q,onPointerDownCapture:Sa,mask:I,motion:Xt,maskMotion:Ut,onVisibleChanged:ir,onPrepare:Ar,forceRender:N,autoDestroy:de,getPopupContainer:j,align:_t,arrow:Ni,arrowPos:ji,ready:Ke,offsetX:Et,offsetY:ft,offsetR:at,offsetB:Ye,onAlign:mr,stretch:Y,targetWidth:Zt/We,targetHeight:pr/mt})))});return t}const Qd=Tj(qd);var jj=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Nj=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},Pj=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,l=t.children,s=t.popupElement,c=t.animation,d=t.transitionName,m=t.dropdownStyle,p=t.dropdownClassName,g=t.direction,h=g===void 0?"ltr":g,y=t.placement,b=t.builtinPlacements,S=t.dropdownMatchSelectWidth,C=t.dropdownRender,$=t.dropdownAlign,w=t.getPopupContainer,R=t.empty,I=t.getTriggerDOMNode,_=t.onPopupVisibleChange,O=t.onPopupMouseEnter,j=Pt(t,jj),N="".concat(r,"-dropdown"),T=s;C&&(T=C(s));var P=u.useMemo(function(){return b||Nj(S)},[b,S]),B=c?"".concat(N,"-").concat(c):d,z=typeof S=="number",D=u.useMemo(function(){return z?null:S===!1?"minWidth":"width"},[S,z]),A=m;z&&(A=K(K({},A),{},{width:S}));var W=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var V;return(V=W.current)===null||V===void 0?void 0:V.popupElement}}}),u.createElement(Qd,ke({},j,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:N,popupTransitionName:B,popup:u.createElement("div",{onMouseEnter:O},T),ref:W,stretch:D,popupAlign:$,popupVisible:o,getPopupContainer:w,popupClassName:ee(p,G({},"".concat(N,"-empty"),R)),popupStyle:A,getTriggerDOMNode:I,onPopupVisibleChange:_}),l)},zj=u.forwardRef(Pj);function w1(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Mg(e){return typeof e<"u"&&!Number.isNaN(e)}function _w(e,t){var n=e||{},r=n.label,o=n.value,l=n.options,s=n.groupLabel,c=r||(t?"children":"label");return{label:c,value:o||"value",options:l||"options",groupLabel:s||c}}function Mj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],l=_w(n,!1),s=l.label,c=l.value,d=l.options,m=l.groupLabel;function p(g,h){Array.isArray(g)&&g.forEach(function(y){if(h||!(d in y)){var b=y[c];o.push({key:w1(y,o.length),groupOption:h,data:y,label:y[s],value:b})}else{var S=y[m];S===void 0&&r&&(S=y.label),o.push({key:w1(y,o.length),group:!0,data:y,label:S}),p(y[d],!0)}})}return p(e,!1),o}function Lg(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return fr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Lj=function(t,n,r){if(!n||!n.length)return null;var o=!1,l=function c(d,m){var p=NS(m),g=p[0],h=p.slice(1);if(!g)return[d];var y=d.split(g);return o=o||y.length>1,y.reduce(function(b,S){return[].concat(Fe(b),Fe(c(S,h)))},[]).filter(Boolean)},s=l(t,n);return o?typeof r<"u"?s.slice(0,r):s:null},Oh=u.createContext(null);function Bj(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return u.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var l=o.label,s=o.value;return["number","string"].includes(ht(l))?l:s}).join(", ")),n.length>r?", ...":null)}var Aj=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Dj=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Bg=function(t){return t==="tags"||t==="multiple"},Fj=u.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,l=e.className,s=e.showSearch,c=e.tagRender,d=e.direction,m=e.omitDomProps,p=e.displayValues,g=e.onDisplayValuesChange,h=e.emptyOptions,y=e.notFoundContent,b=y===void 0?"Not Found":y,S=e.onClear,C=e.mode,$=e.disabled,w=e.loading,R=e.getInputElement,I=e.getRawInputElement,_=e.open,O=e.defaultOpen,j=e.onDropdownVisibleChange,N=e.activeValue,T=e.onActiveValueChange,P=e.activeDescendantId,B=e.searchValue,z=e.autoClearSearchValue,D=e.onSearch,A=e.onSearchSplit,W=e.tokenSeparators,q=e.allowClear,V=e.prefix,F=e.suffixIcon,Y=e.clearIcon,U=e.OptionList,M=e.animation,H=e.transitionName,Q=e.dropdownStyle,ne=e.dropdownClassName,te=e.dropdownMatchSelectWidth,re=e.dropdownRender,fe=e.dropdownAlign,me=e.placement,ue=e.builtinPlacements,Se=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,ve=e.onFocus,be=e.onBlur,de=e.onKeyUp,se=e.onKeyDown,ye=e.onMouseDown,xe=Pt(e,Aj),_e=Bg(C),Pe=(s!==void 0?s:_e)||C==="combobox",$e=K({},xe);Dj.forEach(function(it){delete $e[it]}),m==null||m.forEach(function(it){delete $e[it]});var Ee=u.useState(!1),ze=ie(Ee,2),Ie=ze[0],Qe=ze[1];u.useEffect(function(){Qe(_h())},[]);var ot=u.useRef(null),xt=u.useRef(null),dt=u.useRef(null),Xe=u.useRef(null),ct=u.useRef(null),Ge=u.useRef(!1),pt=UT(),Ze=ie(pt,3),Le=Ze[0],tt=Ze[1],Ne=Ze[2];u.useImperativeHandle(t,function(){var it,rt;return{focus:(it=Xe.current)===null||it===void 0?void 0:it.focus,blur:(rt=Xe.current)===null||rt===void 0?void 0:rt.blur,scrollTo:function(rn){var mn;return(mn=ct.current)===null||mn===void 0?void 0:mn.scrollTo(rn)},nativeElement:ot.current||xt.current}});var Ve=u.useMemo(function(){var it;if(C!=="combobox")return B;var rt=(it=p[0])===null||it===void 0?void 0:it.value;return typeof rt=="string"||typeof rt=="number"?String(rt):""},[B,C,p]),kt=C==="combobox"&&typeof R=="function"&&R()||null,vt=typeof I=="function"&&I(),Xt=ta(xt,vt==null||(n=vt.props)===null||n===void 0?void 0:n.ref),Ut=u.useState(!1),fn=ie(Ut,2),wn=fn[0],Yt=fn[1];on(function(){Yt(!0)},[]);var Lt=Fn(!1,{defaultValue:O,value:_}),wt=ie(Lt,2),Jt=wt[0],Wt=wt[1],nt=wn?Jt:!1,St=!b&&h;($||St&&nt&&C==="combobox")&&(nt=!1);var ut=St?!1:nt,Te=u.useCallback(function(it){var rt=it!==void 0?it:!nt;$||(Wt(rt),nt!==rt&&(j==null||j(rt)))},[$,nt,Wt,j]),Re=u.useMemo(function(){return(W||[]).some(function(it){return[`
222
+ `,`\r
223
+ `].includes(it)})},[W]),we=u.useContext(Oh)||{},Be=we.maxCount,Je=we.rawValues,et=function(rt,Zt,rn){if(!(_e&&Mg(Be)&&(Je==null?void 0:Je.size)>=Be)){var mn=!0,hn=rt;T==null||T(null);var pr=Lj(rt,W,Mg(Be)?Be-Je.size:void 0),Wn=rn?null:pr;return C!=="combobox"&&Wn&&(hn="",A==null||A(Wn),Te(!1),mn=!1),D&&Ve!==hn&&D(hn,{source:Zt?"typing":"effect"}),mn}},Bt=function(rt){!rt||!rt.trim()||D(rt,{source:"submit"})};u.useEffect(function(){!nt&&!_e&&C!=="combobox"&&et("",!1,!1)},[nt]),u.useEffect(function(){Jt&&$&&Wt(!1),$&&!Ge.current&&tt(!1)},[$]);var Ht=Sw(),jt=ie(Ht,2),zt=jt[0],Sn=jt[1],vn=u.useRef(!1),$n=function(rt){var Zt=zt(),rn=rt.key,mn=rn==="Enter";if(mn&&(C!=="combobox"&&rt.preventDefault(),nt||Te(!0)),Sn(!!Ve),rn==="Backspace"&&!Zt&&_e&&!Ve&&p.length){for(var hn=Fe(p),pr=null,Wn=hn.length-1;Wn>=0;Wn-=1){var Dt=hn[Wn];if(!Dt.disabled){hn.splice(Wn,1),pr=Dt;break}}pr&&g(hn,{type:"remove",values:[pr]})}for(var nr=arguments.length,ir=new Array(nr>1?nr-1:0),Ar=1;Ar<nr;Ar++)ir[Ar-1]=arguments[Ar];if(nt&&(!mn||!vn.current)){var lr;mn&&(vn.current=!0),(lr=ct.current)===null||lr===void 0||lr.onKeyDown.apply(lr,[rt].concat(ir))}se==null||se.apply(void 0,[rt].concat(ir))},Tn=function(rt){for(var Zt=arguments.length,rn=new Array(Zt>1?Zt-1:0),mn=1;mn<Zt;mn++)rn[mn-1]=arguments[mn];if(nt){var hn;(hn=ct.current)===null||hn===void 0||hn.onKeyUp.apply(hn,[rt].concat(rn))}rt.key==="Enter"&&(vn.current=!1),de==null||de.apply(void 0,[rt].concat(rn))},en=function(rt){var Zt=p.filter(function(rn){return rn!==rt});g(Zt,{type:"remove",values:[rt]})},an=function(){vn.current=!1},Ae=u.useRef(!1),Ke=function(){tt(!0),$||(ve&&!Ae.current&&ve.apply(void 0,arguments),ce.includes("focus")&&Te(!0)),Ae.current=!0},Et=function(){Ge.current=!0,tt(!1,function(){Ae.current=!1,Ge.current=!1,Te(!1)}),!$&&(Ve&&(C==="tags"?D(Ve,{source:"submit"}):C==="multiple"&&D("",{source:"blur"})),be&&be.apply(void 0,arguments))},ft=[];u.useEffect(function(){return function(){ft.forEach(function(it){return clearTimeout(it)}),ft.splice(0,ft.length)}},[]);var at=function(rt){var Zt,rn=rt.target,mn=(Zt=dt.current)===null||Zt===void 0?void 0:Zt.getPopupElement();if(mn&&mn.contains(rn)){var hn=setTimeout(function(){var nr=ft.indexOf(hn);if(nr!==-1&&ft.splice(nr,1),Ne(),!Ie&&!mn.contains(document.activeElement)){var ir;(ir=Xe.current)===null||ir===void 0||ir.focus()}});ft.push(hn)}for(var pr=arguments.length,Wn=new Array(pr>1?pr-1:0),Dt=1;Dt<pr;Dt++)Wn[Dt-1]=arguments[Dt];ye==null||ye.apply(void 0,[rt].concat(Wn))},Ye=u.useState({}),$t=ie(Ye,2),Vt=$t[1];function We(){Vt({})}var mt;vt&&(mt=function(rt){Te(rt)}),GT(function(){var it;return[ot.current,(it=dt.current)===null||it===void 0?void 0:it.getPopupElement()]},ut,Te,!!vt);var _t=u.useMemo(function(){return K(K({},e),{},{notFoundContent:b,open:nt,triggerOpen:ut,id:r,showSearch:Pe,multiple:_e,toggleOpen:Te})},[e,b,ut,nt,r,Pe,_e,Te]),sn=!!F||w,Vn;sn&&(Vn=u.createElement(Xd,{className:ee("".concat(o,"-arrow"),G({},"".concat(o,"-arrow-loading"),w)),customizeIcon:F,customizeIconProps:{loading:w,searchValue:Ve,open:nt,focused:Le,showSearch:Pe}}));var _n=function(){var rt;S==null||S(),(rt=Xe.current)===null||rt===void 0||rt.focus(),g([],{type:"clear",values:p}),et("",!1,!1)},br=WT(o,_n,p,q,Y,$,Ve,C),er=br.allowClear,Cr=br.clearIcon,tr=u.createElement(U,{ref:ct}),mr=ee(o,l,G(G(G(G(G(G(G(G(G(G({},"".concat(o,"-focused"),Le),"".concat(o,"-multiple"),_e),"".concat(o,"-single"),!_e),"".concat(o,"-allow-clear"),q),"".concat(o,"-show-arrow"),sn),"".concat(o,"-disabled"),$),"".concat(o,"-loading"),w),"".concat(o,"-open"),nt),"".concat(o,"-customize-input"),kt),"".concat(o,"-show-search"),Pe)),Sr=u.createElement(zj,{ref:dt,disabled:$,prefixCls:o,visible:ut,popupElement:tr,animation:M,transitionName:H,dropdownStyle:Q,dropdownClassName:ne,direction:d,dropdownMatchSelectWidth:te,dropdownRender:re,dropdownAlign:fe,placement:me,builtinPlacements:ue,getPopupContainer:Se,empty:h,getTriggerDOMNode:function(rt){return xt.current||rt},onPopupVisibleChange:mt,onPopupMouseEnter:We},vt?u.cloneElement(vt,{ref:Xt}):u.createElement(yj,ke({},e,{domRef:xt,prefixCls:o,inputElement:kt,ref:Xe,id:r,prefix:V,showSearch:Pe,autoClearSearchValue:z,mode:C,activeDescendantId:P,tagRender:c,values:p,open:nt,onToggleOpen:Te,activeValue:N,searchValue:Ve,onSearch:et,onSearchSubmit:Bt,onRemove:en,tokenWithEnter:Re,onInputBlur:an}))),nn;return vt?nn=Sr:nn=u.createElement("div",ke({className:mr},$e,{ref:ot,onMouseDown:at,onKeyDown:$n,onKeyUp:Tn,onFocus:Ke,onBlur:Et}),u.createElement(Bj,{visible:Le&&!nt,values:p}),Sr,Vn,er&&Cr),u.createElement(Cw.Provider,{value:_t},nn)}),Ih=function(){return null};Ih.isSelectOptGroup=!0;var Th=function(){return null};Th.isSelectOption=!0;var Ow=u.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,l=e.children,s=e.prefixCls,c=e.onInnerResize,d=e.innerProps,m=e.rtl,p=e.extra,g={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},h=K(K({},h),{},G(G(G(G(G({transform:"translateY(".concat(r,"px)")},m?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:g},u.createElement(xo,{onResize:function(b){var S=b.offsetHeight;S&&c&&c()}},u.createElement("div",ke({style:h,className:ee(G({},"".concat(s,"-holder-inner"),s)),ref:t},d),l,p)))});Ow.displayName="Filler";function Hj(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function Vj(e,t,n,r,o,l,s,c){var d=c.getKey;return e.slice(t,n+1).map(function(m,p){var g=t+p,h=s(m,g,{style:{width:r},offsetX:o}),y=d(m);return u.createElement(Hj,{key:y,setRef:function(S){return l(m,S)}},h)})}function Wj(e,t,n){var r=e.length,o=t.length,l,s;if(r===0&&o===0)return null;r<o?(l=e,s=t):(l=t,s=e);var c={__EMPTY_ITEM__:!0};function d(b){return b!==void 0?n(b):c}for(var m=null,p=Math.abs(r-o)!==1,g=0;g<s.length;g+=1){var h=d(l[g]),y=d(s[g]);if(h!==y){m=g,p=p||h!==d(s[g+1]);break}}return m===null?null:{index:m,multiple:p}}function qj(e,t,n){var r=u.useState(e),o=ie(r,2),l=o[0],s=o[1],c=u.useState(null),d=ie(c,2),m=d[0],p=d[1];return u.useEffect(function(){var g=Wj(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&p(e[g.index]),s(e)},[e]),[m]}var $1=(typeof navigator>"u"?"undefined":ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Iw=(function(e,t,n,r){var o=u.useRef(!1),l=u.useRef(null);function s(){clearTimeout(l.current),o.current=!0,l.current=setTimeout(function(){o.current=!1},50)}var c=u.useRef({top:e,bottom:t,left:n,right:r});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=r,function(d,m){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,g=d?m<0&&c.current.left||m>0&&c.current.right:m<0&&c.current.top||m>0&&c.current.bottom;return p&&g?(clearTimeout(l.current),o.current=!1):(!g||o.current)&&s(),!o.current&&g}});function Uj(e,t,n,r,o,l,s){var c=u.useRef(0),d=u.useRef(null),m=u.useRef(null),p=u.useRef(!1),g=Iw(t,n,r,o);function h(w,R){if(Cn.cancel(d.current),!g(!1,R)){var I=w;if(!I._virtualHandled)I._virtualHandled=!0;else return;c.current+=R,m.current=R,$1||I.preventDefault(),d.current=Cn(function(){var _=p.current?10:1;s(c.current*_,!1),c.current=0})}}function y(w,R){s(R,!0),$1||w.preventDefault()}var b=u.useRef(null),S=u.useRef(null);function C(w){if(e){Cn.cancel(S.current),S.current=Cn(function(){b.current=null},2);var R=w.deltaX,I=w.deltaY,_=w.shiftKey,O=R,j=I;(b.current==="sx"||!b.current&&_&&I&&!R)&&(O=I,j=0,b.current="sx");var N=Math.abs(O),T=Math.abs(j);b.current===null&&(b.current=l&&N>T?"x":"y"),b.current==="y"?h(w,j):y(w,O)}}function $(w){e&&(p.current=w.detail===m.current)}return[C,$]}function Gj(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=ie(o,2),s=l[0],c=l[1],d=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,h=s.get(p),y=s.get(g);if(h===void 0||y===void 0)for(var b=e.length,S=c.length;S<b;S+=1){var C,$=e[S],w=t($);s.set(w,S);var R=(C=n.get(w))!==null&&C!==void 0?C:r;if(c[S]=(c[S-1]||0)+R,w===p&&(h=S),w===g&&(y=S),h!==void 0&&y!==void 0)break}return{top:c[h-1]||0,bottom:c[y]}};return d}var Kj=(function(){function e(){Jn(this,e),G(this,"maps",void 0),G(this,"id",0),G(this,"diffRecords",new Map),this.maps=Object.create(null)}return Zn(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function E1(e){var t=parseFloat(e);return isNaN(t)?0:t}function Xj(e,t,n){var r=u.useState(0),o=ie(r,2),l=o[0],s=o[1],c=u.useRef(new Map),d=u.useRef(new Kj),m=u.useRef(0);function p(){m.current+=1}function g(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var b=function(){var $=!1;c.current.forEach(function(w,R){if(w&&w.offsetParent){var I=w.offsetHeight,_=getComputedStyle(w),O=_.marginTop,j=_.marginBottom,N=E1(O),T=E1(j),P=I+N+T;d.current.get(R)!==P&&(d.current.set(R,P),$=!0)}}),$&&s(function(w){return w+1})};if(y)b();else{m.current+=1;var S=m.current;Promise.resolve().then(function(){S===m.current&&b()})}}function h(y,b){var S=e(y);c.current.get(S),b?(c.current.set(S,b),g()):c.current.delete(S)}return u.useEffect(function(){return p},[]),[h,g,d.current,l]}var R1=14/15;function Qj(e,t,n){var r=u.useRef(!1),o=u.useRef(0),l=u.useRef(0),s=u.useRef(null),c=u.useRef(null),d,m=function(y){if(r.current){var b=Math.ceil(y.touches[0].pageX),S=Math.ceil(y.touches[0].pageY),C=o.current-b,$=l.current-S,w=Math.abs(C)>Math.abs($);w?o.current=b:l.current=S;var R=n(w,w?C:$,!1,y);R&&y.preventDefault(),clearInterval(c.current),R&&(c.current=setInterval(function(){w?C*=R1:$*=R1;var I=Math.floor(w?C:$);(!n(w,I,!0)||Math.abs(I)<=.1)&&clearInterval(c.current)},16))}},p=function(){r.current=!1,d()},g=function(y){d(),y.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(y.touches[0].pageX),l.current=Math.ceil(y.touches[0].pageY),s.current=y.target,s.current.addEventListener("touchmove",m,{passive:!1}),s.current.addEventListener("touchend",p,{passive:!0}))};d=function(){s.current&&(s.current.removeEventListener("touchmove",m),s.current.removeEventListener("touchend",p))},on(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",g),d(),clearInterval(c.current)}},[e])}function k1(e){return Math.floor(Math.pow(e,.5))}function Ag(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Yj(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var o=!1,l,s,c=function(){Cn.cancel(l)},d=function h(){c(),l=Cn(function(){n(s),h()})},m=function(){o=!1,c()},p=function(y){if(!(y.target.draggable||y.button!==0)){var b=y;b._virtualHandled||(b._virtualHandled=!0,o=!0)}},g=function(y){if(o){var b=Ag(y,!1),S=r.getBoundingClientRect(),C=S.top,$=S.bottom;if(b<=C){var w=C-b;s=-k1(w),d()}else if(b>=$){var R=b-$;s=k1(R),d()}else c()}};return r.addEventListener("mousedown",p),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",g),r.ownerDocument.addEventListener("dragend",m),function(){r.removeEventListener("mousedown",p),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",g),r.ownerDocument.removeEventListener("dragend",m),c()}}},[e])}var Jj=10;function Zj(e,t,n,r,o,l,s,c){var d=u.useRef(),m=u.useState(null),p=ie(m,2),g=p[0],h=p[1];return on(function(){if(g&&g.times<Jj){if(!e.current){h(function(Y){return K({},Y)});return}l();var y=g.targetAlign,b=g.originAlign,S=g.index,C=g.offset,$=e.current.clientHeight,w=!1,R=y,I=null;if($){for(var _=y||b,O=0,j=0,N=0,T=Math.min(t.length-1,S),P=0;P<=T;P+=1){var B=o(t[P]);j=O;var z=n.get(B);N=j+(z===void 0?r:z),O=N}for(var D=_==="top"?C:$-C,A=T;A>=0;A-=1){var W=o(t[A]),q=n.get(W);if(q===void 0){w=!0;break}if(D-=q,D<=0)break}switch(_){case"top":I=j-C;break;case"bottom":I=N-$+C;break;default:{var V=e.current.scrollTop,F=V+$;j<V?R="top":N>F&&(R="bottom")}}I!==null&&s(I),I!==g.lastTop&&(w=!0)}w&&h(K(K({},g),{},{times:g.times+1,targetAlign:R,lastTop:I}))}},[g,e.current]),function(y){if(y==null){c();return}if(Cn.cancel(d.current),typeof y=="number")s(y);else if(y&&ht(y)==="object"){var b,S=y.align;"index"in y?b=y.index:b=t.findIndex(function(w){return o(w)===y.key});var C=y.offset,$=C===void 0?0:C;h({times:0,index:b,offset:$,originAlign:S})}}}var _1=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,l=e.scrollRange,s=e.onStartMove,c=e.onStopMove,d=e.onScroll,m=e.horizontal,p=e.spinSize,g=e.containerSize,h=e.style,y=e.thumbStyle,b=e.showScrollBar,S=u.useState(!1),C=ie(S,2),$=C[0],w=C[1],R=u.useState(null),I=ie(R,2),_=I[0],O=I[1],j=u.useState(null),N=ie(j,2),T=N[0],P=N[1],B=!r,z=u.useRef(),D=u.useRef(),A=u.useState(b),W=ie(A,2),q=W[0],V=W[1],F=u.useRef(),Y=function(){b===!0||b===!1||(clearTimeout(F.current),V(!0),F.current=setTimeout(function(){V(!1)},3e3))},U=l-g||0,M=g-p||0,H=u.useMemo(function(){if(o===0||U===0)return 0;var le=o/U;return le*M},[o,U,M]),Q=function(ce){ce.stopPropagation(),ce.preventDefault()},ne=u.useRef({top:H,dragging:$,pageY:_,startTop:T});ne.current={top:H,dragging:$,pageY:_,startTop:T};var te=function(ce){w(!0),O(Ag(ce,m)),P(ne.current.top),s(),ce.stopPropagation(),ce.preventDefault()};u.useEffect(function(){var le=function(de){de.preventDefault()},ce=z.current,ve=D.current;return ce.addEventListener("touchstart",le,{passive:!1}),ve.addEventListener("touchstart",te,{passive:!1}),function(){ce.removeEventListener("touchstart",le),ve.removeEventListener("touchstart",te)}},[]);var re=u.useRef();re.current=U;var fe=u.useRef();fe.current=M,u.useEffect(function(){if($){var le,ce=function(de){var se=ne.current,ye=se.dragging,xe=se.pageY,_e=se.startTop;Cn.cancel(le);var Pe=z.current.getBoundingClientRect(),$e=g/(m?Pe.width:Pe.height);if(ye){var Ee=(Ag(de,m)-xe)*$e,ze=_e;!B&&m?ze-=Ee:ze+=Ee;var Ie=re.current,Qe=fe.current,ot=Qe?ze/Qe:0,xt=Math.ceil(ot*Ie);xt=Math.max(xt,0),xt=Math.min(xt,Ie),le=Cn(function(){d(xt,m)})}},ve=function(){w(!1),c()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",ve,{passive:!0}),window.addEventListener("touchend",ve,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",ve),window.removeEventListener("touchend",ve),Cn.cancel(le)}}},[$]),u.useEffect(function(){return Y(),function(){clearTimeout(F.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:Y}});var me="".concat(n,"-scrollbar"),ue={position:"absolute",visibility:q?null:"hidden"},Se={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return m?(Object.assign(ue,{height:8,left:0,right:0,bottom:0}),Object.assign(Se,G({height:"100%",width:p},B?"left":"right",H))):(Object.assign(ue,G({width:8,top:0,bottom:0},B?"right":"left",0)),Object.assign(Se,{width:"100%",height:p,top:H})),u.createElement("div",{ref:z,className:ee(me,G(G(G({},"".concat(me,"-horizontal"),m),"".concat(me,"-vertical"),!m),"".concat(me,"-visible"),q)),style:K(K({},ue),h),onMouseDown:Q,onMouseMove:Y},u.createElement("div",{ref:D,className:ee("".concat(me,"-thumb"),G({},"".concat(me,"-thumb-moving"),$)),style:K(K({},Se),y),onMouseDown:te}))}),eN=20;function O1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,eN),Math.floor(n)}var tN=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],nN=[],rN={overflowY:"auto",overflowAnchor:"none"};function oN(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,l=e.height,s=e.itemHeight,c=e.fullHeight,d=c===void 0?!0:c,m=e.style,p=e.data,g=e.children,h=e.itemKey,y=e.virtual,b=e.direction,S=e.scrollWidth,C=e.component,$=C===void 0?"div":C,w=e.onScroll,R=e.onVirtualScroll,I=e.onVisibleChange,_=e.innerProps,O=e.extraRender,j=e.styles,N=e.showScrollBar,T=N===void 0?"optional":N,P=Pt(e,tN),B=u.useCallback(function(Ae){return typeof h=="function"?h(Ae):Ae==null?void 0:Ae[h]},[h]),z=Xj(B),D=ie(z,4),A=D[0],W=D[1],q=D[2],V=D[3],F=!!(y!==!1&&l&&s),Y=u.useMemo(function(){return Object.values(q.maps).reduce(function(Ae,Ke){return Ae+Ke},0)},[q.id,q.maps]),U=F&&p&&(Math.max(s*p.length,Y)>l||!!S),M=b==="rtl",H=ee(r,G({},"".concat(r,"-rtl"),M),o),Q=p||nN,ne=u.useRef(),te=u.useRef(),re=u.useRef(),fe=u.useState(0),me=ie(fe,2),ue=me[0],Se=me[1],le=u.useState(0),ce=ie(le,2),ve=ce[0],be=ce[1],de=u.useState(!1),se=ie(de,2),ye=se[0],xe=se[1],_e=function(){xe(!0)},Pe=function(){xe(!1)},$e={getKey:B};function Ee(Ae){Se(function(Ke){var Et;typeof Ae=="function"?Et=Ae(Ke):Et=Ae;var ft=Yt(Et);return ne.current.scrollTop=ft,ft})}var ze=u.useRef({start:0,end:Q.length}),Ie=u.useRef(),Qe=qj(Q,B),ot=ie(Qe,1),xt=ot[0];Ie.current=xt;var dt=u.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};if(!U){var Ae;return{scrollHeight:((Ae=te.current)===null||Ae===void 0?void 0:Ae.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0}}for(var Ke=0,Et,ft,at,Ye=Q.length,$t=0;$t<Ye;$t+=1){var Vt=Q[$t],We=B(Vt),mt=q.get(We),_t=Ke+(mt===void 0?s:mt);_t>=ue&&Et===void 0&&(Et=$t,ft=Ke),_t>ue+l&&at===void 0&&(at=$t),Ke=_t}return Et===void 0&&(Et=0,ft=0,at=Math.ceil(l/s)),at===void 0&&(at=Q.length-1),at=Math.min(at+1,Q.length-1),{scrollHeight:Ke,start:Et,end:at,offset:ft}},[U,F,ue,Q,V,l]),Xe=dt.scrollHeight,ct=dt.start,Ge=dt.end,pt=dt.offset;ze.current.start=ct,ze.current.end=Ge,u.useLayoutEffect(function(){var Ae=q.getRecord();if(Ae.size===1){var Ke=Array.from(Ae.keys())[0],Et=Ae.get(Ke),ft=Q[ct];if(ft&&Et===void 0){var at=B(ft);if(at===Ke){var Ye=q.get(Ke),$t=Ye-s;Ee(function(Vt){return Vt+$t})}}}q.resetRecord()},[Xe]);var Ze=u.useState({width:0,height:l}),Le=ie(Ze,2),tt=Le[0],Ne=Le[1],Ve=function(Ke){Ne({width:Ke.offsetWidth,height:Ke.offsetHeight})},kt=u.useRef(),vt=u.useRef(),Xt=u.useMemo(function(){return O1(tt.width,S)},[tt.width,S]),Ut=u.useMemo(function(){return O1(tt.height,Xe)},[tt.height,Xe]),fn=Xe-l,wn=u.useRef(fn);wn.current=fn;function Yt(Ae){var Ke=Ae;return Number.isNaN(wn.current)||(Ke=Math.min(Ke,wn.current)),Ke=Math.max(Ke,0),Ke}var Lt=ue<=0,wt=ue>=fn,Jt=ve<=0,Wt=ve>=S,nt=Iw(Lt,wt,Jt,Wt),St=function(){return{x:M?-ve:ve,y:ue}},ut=u.useRef(St()),Te=Dn(function(Ae){if(R){var Ke=K(K({},St()),Ae);(ut.current.x!==Ke.x||ut.current.y!==Ke.y)&&(R(Ke),ut.current=Ke)}});function Re(Ae,Ke){var Et=Ae;Ke?(qa.flushSync(function(){be(Et)}),Te()):Ee(Et)}function we(Ae){var Ke=Ae.currentTarget.scrollTop;Ke!==ue&&Ee(Ke),w==null||w(Ae),Te()}var Be=function(Ke){var Et=Ke,ft=S?S-tt.width:0;return Et=Math.max(Et,0),Et=Math.min(Et,ft),Et},Je=Dn(function(Ae,Ke){Ke?(qa.flushSync(function(){be(function(Et){var ft=Et+(M?-Ae:Ae);return Be(ft)})}),Te()):Ee(function(Et){var ft=Et+Ae;return ft})}),et=Uj(F,Lt,wt,Jt,Wt,!!S,Je),Bt=ie(et,2),Ht=Bt[0],jt=Bt[1];Qj(F,ne,function(Ae,Ke,Et,ft){var at=ft;return nt(Ae,Ke,Et)?!1:!at||!at._virtualHandled?(at&&(at._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:Ae?Ke:0,deltaY:Ae?0:Ke}),!0):!1}),Yj(U,ne,function(Ae){Ee(function(Ke){return Ke+Ae})}),on(function(){function Ae(Et){var ft=Lt&&Et.detail<0,at=wt&&Et.detail>0;F&&!ft&&!at&&Et.preventDefault()}var Ke=ne.current;return Ke.addEventListener("wheel",Ht,{passive:!1}),Ke.addEventListener("DOMMouseScroll",jt,{passive:!0}),Ke.addEventListener("MozMousePixelScroll",Ae,{passive:!1}),function(){Ke.removeEventListener("wheel",Ht),Ke.removeEventListener("DOMMouseScroll",jt),Ke.removeEventListener("MozMousePixelScroll",Ae)}},[F,Lt,wt]),on(function(){if(S){var Ae=Be(ve);be(Ae),Te({x:Ae})}},[tt.width,S]);var zt=function(){var Ke,Et;(Ke=kt.current)===null||Ke===void 0||Ke.delayHidden(),(Et=vt.current)===null||Et===void 0||Et.delayHidden()},Sn=Zj(ne,Q,q,s,B,function(){return W(!0)},Ee,zt);u.useImperativeHandle(t,function(){return{nativeElement:re.current,getScrollInfo:St,scrollTo:function(Ke){function Et(ft){return ft&&ht(ft)==="object"&&("left"in ft||"top"in ft)}Et(Ke)?(Ke.left!==void 0&&be(Be(Ke.left)),Sn(Ke.top)):Sn(Ke)}}}),on(function(){if(I){var Ae=Q.slice(ct,Ge+1);I(Ae,Q)}},[ct,Ge,Q]);var vn=Gj(Q,B,q,s),$n=O==null?void 0:O({start:ct,end:Ge,virtual:U,offsetX:ve,offsetY:pt,rtl:M,getSize:vn}),Tn=Vj(Q,ct,Ge,S,ve,A,g,$e),en=null;l&&(en=K(G({},d?"height":"maxHeight",l),rN),F&&(en.overflowY="hidden",S&&(en.overflowX="hidden"),ye&&(en.pointerEvents="none")));var an={};return M&&(an.dir="rtl"),u.createElement("div",ke({ref:re,style:K(K({},m),{},{position:"relative"}),className:H},an,P),u.createElement(xo,{onResize:Ve},u.createElement($,{className:"".concat(r,"-holder"),style:en,ref:ne,onScroll:we,onMouseEnter:zt},u.createElement(Ow,{prefixCls:r,height:Xe,offsetX:ve,offsetY:pt,scrollWidth:S,onInnerResize:W,ref:te,innerProps:_,rtl:M,extra:$n},Tn))),U&&Xe>l&&u.createElement(_1,{ref:kt,prefixCls:r,scrollOffset:ue,scrollRange:Xe,rtl:M,onScroll:Re,onStartMove:_e,onStopMove:Pe,spinSize:Ut,containerSize:tt.height,style:j==null?void 0:j.verticalScrollBar,thumbStyle:j==null?void 0:j.verticalScrollBarThumb,showScrollBar:T}),U&&S>tt.width&&u.createElement(_1,{ref:vt,prefixCls:r,scrollOffset:ve,scrollRange:S,rtl:M,onScroll:Re,onStartMove:_e,onStopMove:Pe,spinSize:Xt,containerSize:tt.width,horizontal:!0,style:j==null?void 0:j.horizontalScrollBar,thumbStyle:j==null?void 0:j.horizontalScrollBarThumb,showScrollBar:T}))}var Tw=u.forwardRef(oN);Tw.displayName="List";function aN(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var iN=["disabled","title","children","style","className"];function I1(e){return typeof e=="string"||typeof e=="number"}var lN=function(t,n){var r=qT(),o=r.prefixCls,l=r.id,s=r.open,c=r.multiple,d=r.mode,m=r.searchValue,p=r.toggleOpen,g=r.notFoundContent,h=r.onPopupScroll,y=u.useContext(Oh),b=y.maxCount,S=y.flattenOptions,C=y.onActiveValue,$=y.defaultActiveFirstOption,w=y.onSelect,R=y.menuItemSelectedIcon,I=y.rawValues,_=y.fieldNames,O=y.virtual,j=y.direction,N=y.listHeight,T=y.listItemHeight,P=y.optionRender,B="".concat(o,"-item"),z=rc(function(){return S},[s,S],function(le,ce){return ce[0]&&le[1]!==ce[1]}),D=u.useRef(null),A=u.useMemo(function(){return c&&Mg(b)&&(I==null?void 0:I.size)>=b},[c,b,I==null?void 0:I.size]),W=function(ce){ce.preventDefault()},q=function(ce){var ve;(ve=D.current)===null||ve===void 0||ve.scrollTo(typeof ce=="number"?{index:ce}:ce)},V=u.useCallback(function(le){return d==="combobox"?!1:I.has(le)},[d,Fe(I).toString(),I.size]),F=function(ce){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,be=z.length,de=0;de<be;de+=1){var se=(ce+de*ve+be)%be,ye=z[se]||{},xe=ye.group,_e=ye.data;if(!xe&&!(_e!=null&&_e.disabled)&&(V(_e.value)||!A))return se}return-1},Y=u.useState(function(){return F(0)}),U=ie(Y,2),M=U[0],H=U[1],Q=function(ce){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;H(ce);var be={source:ve?"keyboard":"mouse"},de=z[ce];if(!de){C(null,-1,be);return}C(de.value,ce,be)};u.useEffect(function(){Q($!==!1?F(0):-1)},[z.length,m]);var ne=u.useCallback(function(le){return d==="combobox"?String(le).toLowerCase()===m.toLowerCase():I.has(le)},[d,m,Fe(I).toString(),I.size]);u.useEffect(function(){var le=setTimeout(function(){if(!c&&s&&I.size===1){var ve=Array.from(I)[0],be=z.findIndex(function(de){var se=de.data;return m?String(se.value).startsWith(m):se.value===ve});be!==-1&&(Q(be),q(be))}});if(s){var ce;(ce=D.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(le)}},[s,m]);var te=function(ce){ce!==void 0&&w(ce,{selected:!I.has(ce)}),c||p(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var ve=ce.which,be=ce.ctrlKey;switch(ve){case qe.N:case qe.P:case qe.UP:case qe.DOWN:{var de=0;if(ve===qe.UP?de=-1:ve===qe.DOWN?de=1:aN()&&be&&(ve===qe.N?de=1:ve===qe.P&&(de=-1)),de!==0){var se=F(M+de,de);q(se),Q(se,!0)}break}case qe.TAB:case qe.ENTER:{var ye,xe=z[M];xe&&!(xe!=null&&(ye=xe.data)!==null&&ye!==void 0&&ye.disabled)&&!A?te(xe.value):te(void 0),s&&ce.preventDefault();break}case qe.ESC:p(!1),s&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){q(ce)}}}),z.length===0)return u.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(B,"-empty"),onMouseDown:W},g);var re=Object.keys(_).map(function(le){return _[le]}),fe=function(ce){return ce.label};function me(le,ce){var ve=le.group;return{role:ve?"presentation":"option",id:"".concat(l,"_list_").concat(ce)}}var ue=function(ce){var ve=z[ce];if(!ve)return null;var be=ve.data||{},de=be.value,se=ve.group,ye=so(be,!0),xe=fe(ve);return ve?u.createElement("div",ke({"aria-label":typeof xe=="string"&&!se?xe:null},ye,{key:ce},me(ve,ce),{"aria-selected":ne(de)}),de):null},Se={role:"listbox",id:"".concat(l,"_list")};return u.createElement(u.Fragment,null,O&&u.createElement("div",ke({},Se,{style:{height:0,width:0,overflow:"hidden"}}),ue(M-1),ue(M),ue(M+1)),u.createElement(Tw,{itemKey:"key",ref:D,data:z,height:N,itemHeight:T,fullHeight:!1,onMouseDown:W,onScroll:h,virtual:O,direction:j,innerProps:O?null:Se},function(le,ce){var ve=le.group,be=le.groupOption,de=le.data,se=le.label,ye=le.value,xe=de.key;if(ve){var _e,Pe=(_e=de.title)!==null&&_e!==void 0?_e:I1(se)?se.toString():void 0;return u.createElement("div",{className:ee(B,"".concat(B,"-group"),de.className),title:Pe},se!==void 0?se:xe)}var $e=de.disabled,Ee=de.title;de.children;var ze=de.style,Ie=de.className,Qe=Pt(de,iN),ot=Kn(Qe,re),xt=V(ye),dt=$e||!xt&&A,Xe="".concat(B,"-option"),ct=ee(B,Xe,Ie,G(G(G(G({},"".concat(Xe,"-grouped"),be),"".concat(Xe,"-active"),M===ce&&!dt),"".concat(Xe,"-disabled"),dt),"".concat(Xe,"-selected"),xt)),Ge=fe(le),pt=!R||typeof R=="function"||xt,Ze=typeof Ge=="number"?Ge:Ge||ye,Le=I1(Ze)?Ze.toString():void 0;return Ee!==void 0&&(Le=Ee),u.createElement("div",ke({},so(ot),O?{}:me(le,ce),{"aria-selected":ne(ye),className:ct,title:Le,onMouseMove:function(){M===ce||dt||Q(ce)},onClick:function(){dt||te(ye)},style:ze}),u.createElement("div",{className:"".concat(Xe,"-content")},typeof P=="function"?P(le,{index:ce}):Ze),u.isValidElement(R)||xt,pt&&u.createElement(Xd,{className:"".concat(B,"-option-state"),customizeIcon:R,customizeIconProps:{value:ye,disabled:dt,isSelected:xt}},xt?"✓":null))}))},sN=u.forwardRef(lN);const cN=(function(e,t){var n=u.useRef({values:new Map,options:new Map}),r=u.useMemo(function(){var l=n.current,s=l.values,c=l.options,d=e.map(function(g){if(g.label===void 0){var h;return K(K({},g),{},{label:(h=s.get(g.value))===null||h===void 0?void 0:h.label})}return g}),m=new Map,p=new Map;return d.forEach(function(g){m.set(g.value,g),p.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=m,n.current.options=p,d},[e,t]),o=u.useCallback(function(l){return t.get(l)||n.current.options.get(l)},[t]);return[r,o]});function Sp(e,t){return Rw(e).join("").toUpperCase().includes(t)}const uN=(function(e,t,n,r,o){return u.useMemo(function(){if(!n||r===!1)return e;var l=t.options,s=t.label,c=t.value,d=[],m=typeof r=="function",p=n.toUpperCase(),g=m?r:function(y,b){return o?Sp(b[o],p):b[l]?Sp(b[s!=="children"?s:"label"],p):Sp(b[c],p)},h=m?function(y){return Lg(y)}:function(y){return y};return e.forEach(function(y){if(y[l]){var b=g(n,h(y));if(b)d.push(y);else{var S=y[l].filter(function(C){return g(n,h(C))});S.length&&d.push(K(K({},y),{},G({},l,S)))}return}g(n,h(y))&&d.push(y)}),d},[e,r,o,n,t])});var T1=0,dN=Or();function fN(){var e;return dN?(e=T1,T1+=1):e="TEST_OR_SSR",e}function mN(e){var t=u.useState(),n=ie(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(fN()))},[]),e||r}var pN=["children","value"],gN=["children"];function hN(e){var t=e,n=t.key,r=t.props,o=r.children,l=r.value,s=Pt(r,pN);return K({key:n,value:l!==void 0?l:n,children:o},s)}function jw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Mr(e).map(function(n,r){if(!u.isValidElement(n)||!n.type)return null;var o=n,l=o.type.isSelectOptGroup,s=o.key,c=o.props,d=c.children,m=Pt(c,gN);return t||!l?hN(n):K(K({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:jw(d)})}).filter(function(n){return n})}var vN=function(t,n,r,o,l){return u.useMemo(function(){var s=t,c=!t;c&&(s=jw(n));var d=new Map,m=new Map,p=function(y,b,S){S&&typeof S=="string"&&y.set(b[S],b)},g=function h(y){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<y.length;S+=1){var C=y[S];!C[r.options]||b?(d.set(C[r.value],C),p(m,C,r.label),p(m,C,o),p(m,C,l)):h(C[r.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:m}},[t,n,r,o,l])};function j1(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var yN=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],bN=["inputValue"];function CN(e){return!e||ht(e)!=="object"}var SN=u.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,l=o===void 0?"rc-select":o,s=e.backfill,c=e.fieldNames,d=e.inputValue,m=e.searchValue,p=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,y=e.onSelect,b=e.onDeselect,S=e.dropdownMatchSelectWidth,C=S===void 0?!0:S,$=e.filterOption,w=e.filterSort,R=e.optionFilterProp,I=e.optionLabelProp,_=e.options,O=e.optionRender,j=e.children,N=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,P=e.virtual,B=e.direction,z=e.listHeight,D=z===void 0?200:z,A=e.listItemHeight,W=A===void 0?20:A,q=e.labelRender,V=e.value,F=e.defaultValue,Y=e.labelInValue,U=e.onChange,M=e.maxCount,H=Pt(e,yN),Q=mN(n),ne=Bg(r),te=!!(!_&&j),re=u.useMemo(function(){return $===void 0&&r==="combobox"?!1:$},[$,r]),fe=u.useMemo(function(){return _w(c,te)},[JSON.stringify(c),te]),me=Fn("",{value:m!==void 0?m:d,postState:function(Re){return Re||""}}),ue=ie(me,2),Se=ue[0],le=ue[1],ce=vN(_,j,fe,R,I),ve=ce.valueOptions,be=ce.labelOptions,de=ce.options,se=u.useCallback(function(Te){var Re=Rw(Te);return Re.map(function(we){var Be,Je,et,Bt,Ht;if(CN(we))Be=we;else{var jt;et=we.key,Je=we.label,Be=(jt=we.value)!==null&&jt!==void 0?jt:et}var zt=ve.get(Be);if(zt){var Sn;Je===void 0&&(Je=zt==null?void 0:zt[I||fe.label]),et===void 0&&(et=(Sn=zt==null?void 0:zt.key)!==null&&Sn!==void 0?Sn:Be),Bt=zt==null?void 0:zt.disabled,Ht=zt==null?void 0:zt.title}return{label:Je,value:Be,key:et,disabled:Bt,title:Ht}})},[fe,I,ve]),ye=Fn(F,{value:V}),xe=ie(ye,2),_e=xe[0],Pe=xe[1],$e=u.useMemo(function(){var Te,Re=ne&&_e===null?[]:_e,we=se(Re);return r==="combobox"&&fj((Te=we[0])===null||Te===void 0?void 0:Te.value)?[]:we},[_e,se,r,ne]),Ee=cN($e,ve),ze=ie(Ee,2),Ie=ze[0],Qe=ze[1],ot=u.useMemo(function(){if(!r&&Ie.length===1){var Te=Ie[0];if(Te.value===null&&(Te.label===null||Te.label===void 0))return[]}return Ie.map(function(Re){var we;return K(K({},Re),{},{label:(we=typeof q=="function"?q(Re):Re.label)!==null&&we!==void 0?we:Re.value})})},[r,Ie,q]),xt=u.useMemo(function(){return new Set(Ie.map(function(Te){return Te.value}))},[Ie]);u.useEffect(function(){if(r==="combobox"){var Te,Re=(Te=Ie[0])===null||Te===void 0?void 0:Te.value;le(dj(Re)?String(Re):"")}},[Ie]);var dt=j1(function(Te,Re){var we=Re??Te;return G(G({},fe.value,Te),fe.label,we)}),Xe=u.useMemo(function(){if(r!=="tags")return de;var Te=Fe(de),Re=function(Be){return ve.has(Be)};return Fe(Ie).sort(function(we,Be){return we.value<Be.value?-1:1}).forEach(function(we){var Be=we.value;Re(Be)||Te.push(dt(Be,we.label))}),Te},[dt,de,ve,Ie,r]),ct=uN(Xe,fe,Se,re,R),Ge=u.useMemo(function(){return r!=="tags"||!Se||ct.some(function(Te){return Te[R||"value"]===Se})||ct.some(function(Te){return Te[fe.value]===Se})?ct:[dt(Se)].concat(Fe(ct))},[dt,R,r,ct,Se,fe]),pt=function Te(Re){var we=Fe(Re).sort(function(Be,Je){return w(Be,Je,{searchValue:Se})});return we.map(function(Be){return Array.isArray(Be.options)?K(K({},Be),{},{options:Be.options.length>0?Te(Be.options):Be.options}):Be})},Ze=u.useMemo(function(){return w?pt(Ge):Ge},[Ge,w,Se]),Le=u.useMemo(function(){return Mj(Ze,{fieldNames:fe,childrenAsData:te})},[Ze,fe,te]),tt=function(Re){var we=se(Re);if(Pe(we),U&&(we.length!==Ie.length||we.some(function(et,Bt){var Ht;return((Ht=Ie[Bt])===null||Ht===void 0?void 0:Ht.value)!==(et==null?void 0:et.value)}))){var Be=Y?we:we.map(function(et){return et.value}),Je=we.map(function(et){return Lg(Qe(et.value))});U(ne?Be:Be[0],ne?Je:Je[0])}},Ne=u.useState(null),Ve=ie(Ne,2),kt=Ve[0],vt=Ve[1],Xt=u.useState(0),Ut=ie(Xt,2),fn=Ut[0],wn=Ut[1],Yt=N!==void 0?N:r!=="combobox",Lt=u.useCallback(function(Te,Re){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Be=we.source,Je=Be===void 0?"keyboard":Be;wn(Re),s&&r==="combobox"&&Te!==null&&Je==="keyboard"&&vt(String(Te))},[s,r]),wt=function(Re,we,Be){var Je=function(){var en,an=Qe(Re);return[Y?{label:an==null?void 0:an[fe.label],value:Re,key:(en=an==null?void 0:an.key)!==null&&en!==void 0?en:Re}:Re,Lg(an)]};if(we&&y){var et=Je(),Bt=ie(et,2),Ht=Bt[0],jt=Bt[1];y(Ht,jt)}else if(!we&&b&&Be!=="clear"){var zt=Je(),Sn=ie(zt,2),vn=Sn[0],$n=Sn[1];b(vn,$n)}},Jt=j1(function(Te,Re){var we,Be=ne?Re.selected:!0;Be?we=ne?[].concat(Fe(Ie),[Te]):[Te]:we=Ie.filter(function(Je){return Je.value!==Te}),tt(we),wt(Te,Be),r==="combobox"?vt(""):(!Bg||h)&&(le(""),vt(""))}),Wt=function(Re,we){tt(Re);var Be=we.type,Je=we.values;(Be==="remove"||Be==="clear")&&Je.forEach(function(et){wt(et.value,!1,Be)})},nt=function(Re,we){if(le(Re),vt(null),we.source==="submit"){var Be=(Re||"").trim();if(Be){var Je=Array.from(new Set([].concat(Fe(xt),[Be])));tt(Je),wt(Be,!0),le("")}return}we.source!=="blur"&&(r==="combobox"&&tt(Re),p==null||p(Re))},St=function(Re){var we=Re;r!=="tags"&&(we=Re.map(function(Je){var et=be.get(Je);return et==null?void 0:et.value}).filter(function(Je){return Je!==void 0}));var Be=Array.from(new Set([].concat(Fe(xt),Fe(we))));tt(Be),Be.forEach(function(Je){wt(Je,!0)})},ut=u.useMemo(function(){var Te=P!==!1&&C!==!1;return K(K({},ce),{},{flattenOptions:Le,onActiveValue:Lt,defaultActiveFirstOption:Yt,onSelect:Jt,menuItemSelectedIcon:T,rawValues:xt,fieldNames:fe,virtual:Te,direction:B,listHeight:D,listItemHeight:W,childrenAsData:te,maxCount:M,optionRender:O})},[M,ce,Le,Lt,Yt,Jt,T,xt,fe,P,C,B,D,W,te,O]);return u.createElement(Oh.Provider,{value:ut},u.createElement(Fj,ke({},H,{id:Q,prefixCls:l,ref:t,omitDomProps:bN,mode:r,displayValues:ot,onDisplayValuesChange:Wt,direction:B,searchValue:Se,onSearch:nt,autoClearSearchValue:h,onSearchSplit:St,dropdownMatchSelectWidth:C,OptionList:sN,emptyOptions:!Le.length,activeValue:kt,activeDescendantId:"".concat(Q,"_list_").concat(fn)})))}),jh=SN;jh.Option=Th;jh.OptGroup=Ih;function Nw(e,t,n){return ee({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Pw=(e,t)=>t||e,xN=()=>{const[,e]=Br(),[t]=Ca("Empty"),r=new un(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return u.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),u.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),u.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),u.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),u.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),u.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},wN=()=>{const[,e]=Br(),[t]=Ca("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=e,{borderColor:s,shadowColor:c,contentColor:d}=u.useMemo(()=>({borderColor:new un(n).onBackground(l).toHexString(),shadowColor:new un(r).onBackground(l).toHexString(),contentColor:new un(o).onBackground(l).toHexString()}),[n,r,o,l]);return u.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("title",null,(t==null?void 0:t.description)||"Empty"),u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{fillRule:"nonzero",stroke:s},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},$N=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:l,lineHeight:s}=e;return{[t]:{marginInline:r,fontSize:l,lineHeight:s,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},EN=dn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Kt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return $N(o)});var RN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zw=u.createElement(xN,null),Mw=u.createElement(wN,null),Lo=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:l,description:s,children:c,imageStyle:d,style:m,classNames:p,styles:g}=e,h=RN(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:b,className:S,style:C,classNames:$,styles:w,image:R}=yr("empty"),I=y("empty",o),[_,O,j]=EN(I),[N]=Ca("Empty"),T=typeof s<"u"?s:N==null?void 0:N.description,P=typeof T=="string"?T:"empty",B=(t=l??R)!==null&&t!==void 0?t:zw;let z=null;return typeof B=="string"?z=u.createElement("img",{draggable:!1,alt:P,src:B}):z=B,_(u.createElement("div",Object.assign({className:ee(O,j,I,S,{[`${I}-normal`]:B===Mw,[`${I}-rtl`]:b==="rtl"},n,r,$.root,p==null?void 0:p.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),C),g==null?void 0:g.root),m)},h),u.createElement("div",{className:ee(`${I}-image`,$.image,p==null?void 0:p.image),style:Object.assign(Object.assign(Object.assign({},d),w.image),g==null?void 0:g.image)},z),T&&u.createElement("div",{className:ee(`${I}-description`,$.description,p==null?void 0:p.description),style:Object.assign(Object.assign({},w.description),g==null?void 0:g.description)},T),c&&u.createElement("div",{className:ee(`${I}-footer`,$.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign({},w.footer),g==null?void 0:g.footer)},c)))};Lo.PRESENTED_IMAGE_DEFAULT=zw;Lo.PRESENTED_IMAGE_SIMPLE=Mw;const Lw=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(Rt),r=n("empty");switch(t){case"Table":case"List":return J.createElement(Lo,{image:Lo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return J.createElement(Lo,{image:Lo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return J.createElement(Lo,null)}},Bw=(e,t,n)=>{var r,o;const{variant:l,[e]:s}=u.useContext(Rt),c=u.useContext(KI),d=s==null?void 0:s.variant;let m;typeof t<"u"?m=t:n===!1?m="borderless":m=(o=(r=c??d)!==null&&r!==void 0?r:l)!==null&&o!==void 0?o:"outlined";const p=wR.includes(m);return[m,p]},kN=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function _N(e,t){return e||kN(t)}const N1=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},ON=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,l=`&${t}-slide-up-appear${t}-slide-up-appear-active`,s=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Pn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
224
+ ${o}${c}bottomLeft,
225
+ ${l}${c}bottomLeft
226
+ `]:{animationName:xh},[`
227
+ ${o}${c}topLeft,
228
+ ${l}${c}topLeft,
229
+ ${o}${c}topRight,
230
+ ${l}${c}topRight
231
+ `]:{animationName:$h},[`${s}${c}bottomLeft`]:{animationName:wh},[`
232
+ ${s}${c}topLeft,
233
+ ${s}${c}topRight
234
+ `]:{animationName:Eh},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},N1(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Gs),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},N1(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Qa(e,"slide-up"),Qa(e,"slide-down"),sd(e,"move-up"),sd(e,"move-down")]},IN=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,l=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(l).sub(o).equal(),0);return{basePadding:l,containerPadding:s,itemHeight:Z(t),itemLineHeight:Z(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},TN=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},jN=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:l,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:c,colorIcon:d,colorIconHover:m,INTERNAL_FIXED_ITEM_MARGIN:p}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:p,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:l,paddingInlineEnd:e.calc(l).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(l).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Bl()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},NN=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=TN(e),c=t?`${n}-${t}`:"",d=IN(e);return{[`${n}-multiple${c}`]:Object.assign(Object.assign({},jN(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Z(r)} 0`,lineHeight:Z(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:Z(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Z(l),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${o}-item + ${o}-item,
235
+ ${n}-prefix + ${n}-selection-wrap
236
+ `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:Z(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function xp(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
237
+ &${n}-show-arrow ${n}-selector,
238
+ &${n}-allow-clear ${n}-selector
239
+ `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[NN(e,t),o]}const PN=e=>{const{componentCls:t}=e,n=Kt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Kt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[xp(e),xp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},xp(r,"lg")]};function wp(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,l=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Pn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Z(l)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
240
+ ${n}-selection-item,
241
+ ${n}-selection-placeholder
242
+ `]:{display:"block",padding:0,lineHeight:Z(l),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
243
+ &${n}-show-arrow ${n}-selection-item,
244
+ &${n}-show-arrow ${n}-selection-search,
245
+ &${n}-show-arrow ${n}-selection-placeholder
246
+ `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Z(r)}`,[`${n}-selection-search-input`]:{height:l,fontSize:e.fontSize},"&:after":{lineHeight:Z(l)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Z(r)}`,"&:after":{display:"none"}}}}}}}function zN(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[wp(e),wp(Kt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Z(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
247
+ &${t}-show-arrow ${t}-selection-item,
248
+ &${t}-show-arrow ${t}-selection-placeholder
249
+ `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},wp(Kt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const MN=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:l,controlHeightLG:s,paddingXXS:c,controlPaddingHorizontal:d,zIndexPopupBase:m,colorText:p,fontWeightStrong:g,controlItemBgActive:h,controlItemBgHover:y,colorBgContainer:b,colorFillSecondary:S,colorBgContainerDisabled:C,colorTextDisabled:$,colorPrimaryHover:w,colorPrimary:R,controlOutline:I}=e,_=c*2,O=r*2,j=Math.min(o-_,o-O),N=Math.min(l-_,l-O),T=Math.min(s-_,s-O);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(c/2),zIndexPopup:m+50,optionSelectedColor:p,optionSelectedFontWeight:g,optionSelectedBg:h,optionActiveBg:y,optionPadding:`${(o-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:b,clearBg:b,singleItemHeightLG:s,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:j,multipleItemHeightSM:N,multipleItemHeightLG:T,multipleSelectorBgDisabled:C,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:R,activeOutlineColor:I,selectAffixPadding:c}},Aw=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Z(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},P1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Aw(e,t))}),LN=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Aw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),P1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),P1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Dw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Z(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},z1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Dw(e,t))}),BN=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Dw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),z1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),z1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),AN=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Fw=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},M1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Fw(e,t))}),DN=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),M1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),M1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),FN=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},LN(e)),BN(e)),AN(e)),DN(e))}),HN=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},VN=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},WN=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,l={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Pn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},HN(e)),VN(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Gs),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Gs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Bl()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":l,"&:hover":l}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},qN=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},WN(e),zN(e),PN(e),ON(e),{[`${t}-rtl`]:{direction:"rtl"}},Wd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},UN=dn("Select",(e,{rootPrefixCls:t})=>{const n=Kt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[qN(n),FN(n)]},MN,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var GN={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"},KN=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:GN}))},Hw=u.forwardRef(KN),XN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},QN=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:XN}))},Sl=u.forwardRef(QN),YN={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"},JN=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:YN}))},ZN=u.forwardRef(JN);function e6({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:d,feedbackIcon:m,showArrow:p,componentName:g}){const h=t??u.createElement(Nd,null),y=$=>e===null&&!s&&!p?null:u.createElement(u.Fragment,null,d!==!1&&$,s&&m);let b=null;if(e!==void 0)b=y(e);else if(o)b=y(u.createElement(ic,{spin:!0}));else{const $=`${c}-suffix`;b=({open:w,showSearch:R})=>y(w&&R?u.createElement(ZN,{className:$}):u.createElement(Sl,{className:$}))}let S=null;n!==void 0?S=n:l?S=u.createElement(Hw,null):S=null;let C=null;return r!==void 0?C=r:C=u.createElement(Xa,null),{clearIcon:h,suffixIcon:b,itemIcon:S,removeIcon:C}}function t6(e){return J.useMemo(()=>{if(e)return(...t)=>J.createElement(pc,{space:!0},e.apply(void 0,t))},[e])}function n6(e,t){return t!==void 0?t:e!==null}var r6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vw="SECRET_COMBOBOX_MODE_DO_NOT_USE",o6=(e,t)=>{var n,r,o,l,s;const{prefixCls:c,bordered:d,className:m,rootClassName:p,getPopupContainer:g,popupClassName:h,dropdownClassName:y,listHeight:b=256,placement:S,listItemHeight:C,size:$,disabled:w,notFoundContent:R,status:I,builtinPlacements:_,dropdownMatchSelectWidth:O,popupMatchSelectWidth:j,direction:N,style:T,allowClear:P,variant:B,dropdownStyle:z,transitionName:D,tagRender:A,maxCount:W,prefix:q,dropdownRender:V,popupRender:F,onDropdownVisibleChange:Y,onOpenChange:U,styles:M,classNames:H}=e,Q=r6(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:ne,getPrefixCls:te,renderEmpty:re,direction:fe,virtual:me,popupMatchSelectWidth:ue,popupOverflow:Se}=u.useContext(Rt),{showSearch:le,style:ce,styles:ve,className:be,classNames:de}=yr("select"),[,se]=Br(),ye=C??(se==null?void 0:se.controlHeight),xe=te("select",c),_e=te(),Pe=N??fe,{compactSize:$e,compactItemClassnames:Ee}=cc(xe,Pe),[ze,Ie]=Bw("select",B,d),Qe=Fo(xe),[ot,xt,dt]=UN(xe,Qe),Xe=u.useMemo(()=>{const{mode:Be}=e;if(Be!=="combobox")return Be===Vw?"combobox":Be},[e.mode]),ct=Xe==="multiple"||Xe==="tags",Ge=n6(e.suffixIcon,e.showArrow),pt=(n=j??O)!==null&&n!==void 0?n:ue,Ze=((r=M==null?void 0:M.popup)===null||r===void 0?void 0:r.root)||((o=ve.popup)===null||o===void 0?void 0:o.root)||z,Le=t6(F||V),tt=U||Y,{status:Ne,hasFeedback:Ve,isFormItemInput:kt,feedbackIcon:vt}=u.useContext(Xs),Xt=Pw(Ne,I);let Ut;R!==void 0?Ut=R:Xe==="combobox"?Ut=null:Ut=(re==null?void 0:re("Select"))||u.createElement(Lw,{componentName:"Select"});const{suffixIcon:fn,itemIcon:wn,removeIcon:Yt,clearIcon:Lt}=e6(Object.assign(Object.assign({},Q),{multiple:ct,hasFeedback:Ve,feedbackIcon:vt,showSuffixIcon:Ge,prefixCls:xe,componentName:"Select"})),wt=P===!0?{clearIcon:Lt}:P,Jt=Kn(Q,["suffixIcon","itemIcon"]),Wt=ee(((l=H==null?void 0:H.popup)===null||l===void 0?void 0:l.root)||((s=de==null?void 0:de.popup)===null||s===void 0?void 0:s.root)||h||y,{[`${xe}-dropdown-${Pe}`]:Pe==="rtl"},p,de.root,H==null?void 0:H.root,dt,Qe,xt),nt=ra(Be=>{var Je;return(Je=$??$e)!==null&&Je!==void 0?Je:Be}),St=u.useContext(Ga),ut=w??St,Te=ee({[`${xe}-lg`]:nt==="large",[`${xe}-sm`]:nt==="small",[`${xe}-rtl`]:Pe==="rtl",[`${xe}-${ze}`]:Ie,[`${xe}-in-form-item`]:kt},Nw(xe,Xt,Ve),Ee,be,m,de.root,H==null?void 0:H.root,p,dt,Qe,xt),Re=u.useMemo(()=>S!==void 0?S:Pe==="rtl"?"bottomRight":"bottomLeft",[S,Pe]),[we]=Dl("SelectLike",Ze==null?void 0:Ze.zIndex);return ot(u.createElement(jh,Object.assign({ref:t,virtual:me,showSearch:le},Jt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ve.root),M==null?void 0:M.root),ce),T),dropdownMatchSelectWidth:pt,transitionName:Jo(_e,"slide-up",D),builtinPlacements:_N(_,Se),listHeight:b,listItemHeight:ye,mode:Xe,prefixCls:xe,placement:Re,direction:Pe,prefix:q,suffixIcon:fn,menuItemSelectedIcon:wn,removeIcon:Yt,allowClear:wt,notFoundContent:Ut,className:Te,getPopupContainer:g||ne,dropdownClassName:Wt,disabled:ut,dropdownStyle:Object.assign(Object.assign({},Ze),{zIndex:we}),maxCount:ct?W:void 0,tagRender:ct?A:void 0,dropdownRender:Le,onDropdownVisibleChange:tt})))},_i=u.forwardRef(o6),a6=bw(_i,"dropdownAlign");_i.SECRET_COMBOBOX_MODE_DO_NOT_USE=Vw;_i.Option=Th;_i.OptGroup=Ih;_i._InternalPanelDoNotUseOrYouWillBeFired=a6;const Ww=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},qw=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},xi=["xxl","xl","lg","md","sm","xs"],i6=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)`}),l6=e=>{const t=e,n=[].concat(xi).reverse();return n.forEach((r,o)=>{const l=r.toUpperCase(),s=`screen${l}Min`,c=`screen${l}`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);if(o<n.length-1){const d=`screen${l}Max`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);const p=`screen${n[o+1].toUpperCase()}Min`;if(!(t[d]<=t[p]))throw new Error(`${d}<=${p} fails : !(${t[d]}<=${t[p]})`)}}),e},s6=()=>{const[,e]=Br(),t=i6(l6(e));return J.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(l){return o=l,n.forEach(s=>s(o)),n.size>=1},subscribe(l){return n.size||this.register(),r+=1,n.set(r,l),l(o),r},unsubscribe(l){n.delete(l),n.size||this.unregister()},register(){Object.entries(t).forEach(([l,s])=>{const c=({matches:m})=>{this.dispatch(Object.assign(Object.assign({},o),{[l]:m}))},d=window.matchMedia(s);Ww(d,c),this.matchHandlers[s]={mql:d,listener:c},c(d)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];qw(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function Nh(e=!0,t={}){const n=u.useRef(t),[,r]=mk(),o=s6();return on(()=>{const l=o.subscribe(s=>{n.current=s,e&&r()});return()=>o.unsubscribe(l)},[]),n.current}const dd=e=>e?typeof e=="function"?e():e:null;function Ph(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,l=e.bodyClassName,s=e.className,c=e.style;return u.createElement("div",{className:ee("".concat(n,"-content"),s),style:c},u.createElement("div",{className:ee("".concat(n,"-inner"),l),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var sl={shiftX:64,adjustY:1},cl={adjustX:1,shiftY:!0},bo=[0,0],c6={left:{points:["cr","cl"],overflow:cl,offset:[-4,0],targetOffset:bo},right:{points:["cl","cr"],overflow:cl,offset:[4,0],targetOffset:bo},top:{points:["bc","tc"],overflow:sl,offset:[0,-4],targetOffset:bo},bottom:{points:["tc","bc"],overflow:sl,offset:[0,4],targetOffset:bo},topLeft:{points:["bl","tl"],overflow:sl,offset:[0,-4],targetOffset:bo},leftTop:{points:["tr","tl"],overflow:cl,offset:[-4,0],targetOffset:bo},topRight:{points:["br","tr"],overflow:sl,offset:[0,-4],targetOffset:bo},rightTop:{points:["tl","tr"],overflow:cl,offset:[4,0],targetOffset:bo},bottomRight:{points:["tr","br"],overflow:sl,offset:[0,4],targetOffset:bo},rightBottom:{points:["bl","br"],overflow:cl,offset:[4,0],targetOffset:bo},bottomLeft:{points:["tl","bl"],overflow:sl,offset:[0,4],targetOffset:bo},leftBottom:{points:["br","bl"],overflow:cl,offset:[-4,0],targetOffset:bo}},u6=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],d6=function(t,n){var r=t.overlayClassName,o=t.trigger,l=o===void 0?["hover"]:o,s=t.mouseEnterDelay,c=s===void 0?0:s,d=t.mouseLeaveDelay,m=d===void 0?.1:d,p=t.overlayStyle,g=t.prefixCls,h=g===void 0?"rc-tooltip":g,y=t.children,b=t.onVisibleChange,S=t.afterVisibleChange,C=t.transitionName,$=t.animation,w=t.motion,R=t.placement,I=R===void 0?"right":R,_=t.align,O=_===void 0?{}:_,j=t.destroyTooltipOnHide,N=j===void 0?!1:j,T=t.defaultVisible,P=t.getTooltipContainer,B=t.overlayInnerStyle;t.arrowContent;var z=t.overlay,D=t.id,A=t.showArrow,W=A===void 0?!0:A,q=t.classNames,V=t.styles,F=Pt(t,u6),Y=Ud(D),U=u.useRef(null);u.useImperativeHandle(n,function(){return U.current});var M=K({},F);"visible"in t&&(M.popupVisible=t.visible);var H=function(){return u.createElement(Ph,{key:"content",prefixCls:h,id:Y,bodyClassName:q==null?void 0:q.body,overlayInnerStyle:K(K({},B),V==null?void 0:V.body)},z)},Q=function(){var te=u.Children.only(y),re=(te==null?void 0:te.props)||{},fe=K(K({},re),{},{"aria-describedby":z?Y:null});return u.cloneElement(y,fe)};return u.createElement(Qd,ke({popupClassName:ee(r,q==null?void 0:q.root),prefixCls:h,popup:H,action:l,builtinPlacements:c6,popupPlacement:I,ref:U,popupAlign:O,getPopupContainer:P,onPopupVisibleChange:b,afterPopupVisibleChange:S,popupTransitionName:C,popupAnimation:$,popupMotion:w,defaultPopupVisible:T,autoDestroy:N,mouseLeaveDelay:m,popupStyle:K(K({},p),V==null?void 0:V.root),mouseEnterDelay:c,arrow:W},M),Q())};const f6=u.forwardRef(d6);function zh(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,l=0,s=o,c=r*1/Math.sqrt(2),d=o-r*(1-1/Math.sqrt(2)),m=o-n*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),g=2*o-m,h=p,y=2*o-c,b=d,S=2*o-l,C=s,$=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),R=`polygon(${w}px 100%, 50% ${w}px, ${2*o-w}px 100%, ${w}px 100%)`,I=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${c} ${d} L ${m} ${p} A ${n} ${n} 0 0 1 ${g} ${h} L ${y} ${b} A ${r} ${r} 0 0 0 ${S} ${C} Z')`;return{arrowShadowWidth:$,arrowPath:I,arrowPolygon:R}}const m6=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:l,arrowShadowWidth:s,borderRadiusXS:c,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Z(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Uw=8;function Yd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Uw:r}}function ku(e,t){return e?t:{}}function Mh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:l,arrowOffsetHorizontal:s}=e,{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},m6(e,t,o)),{"&:before":{background:t}})]},ku(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),ku(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(s)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),ku(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:l},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:l}})),ku(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:l},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:l}}))}}function p6(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},l={};switch(e){case"top":case"bottom":l.shiftX=t.arrowOffsetHorizontal*2+n,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=t.arrowOffsetVertical*2+n,l.shiftX=!0,l.adjustX=!0;break}const s=Object.assign(Object.assign({},l),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const L1={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"]}},g6={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"]}},h6=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Gw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l,visibleFirst:s}=e,c=t/2,d={},m=Yd({contentRadius:l,limitVerticalRadius:!0});return Object.keys(L1).forEach(p=>{const g=r&&g6[p]||L1[p],h=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[p]=h,h6.has(p)&&(h.autoArrow=!1),p){case"top":case"topLeft":case"topRight":h.offset[1]=-c-o;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=c+o;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-c-o;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=c+o;break}if(r)switch(p){case"topLeft":case"bottomLeft":h.offset[0]=-m.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":h.offset[0]=m.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":h.offset[1]=-m.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":h.offset[1]=m.arrowOffsetHorizontal*2-c;break}h.overflow=p6(p,m,t,n),s&&(h.htmlRegion="visibleFirst")}),d}const v6=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:l,tooltipBorderRadius:s,zIndexPopup:c,controlHeight:d,boxShadowSecondary:m,paddingSM:p,paddingXS:g,arrowOffsetHorizontal:h,sizePopupArrow:y}=e,b=t(s).add(y).add(h).equal(),S=t(s).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),{position:"absolute",zIndex:c,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":l,[`${n}-inner`]:{minWidth:S,minHeight:d,padding:`${Z(e.calc(p).div(2).equal())} ${Z(g)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:s,boxShadow:m,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,Uw)}},[`${n}-content`]:{position:"relative"}}),jd(e,(C,{darkColor:$})=>({[`&${n}-${C}`]:{[`${n}-inner`]:{backgroundColor:$},[`${n}-arrow`]:{"--antd-arrow-background-color":$}}}))),{"&-rtl":{direction:"rtl"}})},Mh(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},y6=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Yd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),zh(Kt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Kw=(e,t=!0)=>dn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,c=Kt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[v6(c),uc(r,"zoom-big-fast")]},y6,{resetStyle:!1,injectStyle:t})(e),b6=Ka.map(e=>`${e}-inverse`),C6=["success","processing","error","default","warning"];function Jd(e,t=!0){return t?[].concat(Fe(b6),Fe(Ka)).includes(e):Ka.includes(e)}function S6(e){return C6.includes(e)}function Xw(e,t){const n=Jd(t),r=ee({[`${e}-${t}`]:t&&n}),o={},l={},s=sO(t).toRgb(),d=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=d,l["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:l}}const x6=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=e,{getPrefixCls:c}=u.useContext(Rt),d=c("tooltip",t),[m,p,g]=Kw(d),h=Xw(d,l),y=h.arrowStyle,b=Object.assign(Object.assign({},s),h.overlayStyle),S=ee(p,g,d,`${d}-pure`,`${d}-placement-${r}`,n,h.className);return m(u.createElement("div",{className:S,style:y},u.createElement("div",{className:`${d}-arrow`}),u.createElement(Ph,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:b}),o)))};var w6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $6=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:l,getTooltipContainer:s,color:c,overlayInnerStyle:d,children:m,afterOpenChange:p,afterVisibleChange:g,destroyTooltipOnHide:h,destroyOnHidden:y,arrow:b=!0,title:S,overlay:C,builtinPlacements:$,arrowPointAtCenter:w=!1,autoAdjustOverflow:R=!0,motion:I,getPopupContainer:_,placement:O="top",mouseEnterDelay:j=.1,mouseLeaveDelay:N=.1,overlayStyle:T,rootClassName:P,overlayClassName:B,styles:z,classNames:D}=e,A=w6(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),W=!!b,[,q]=Br(),{getPopupContainer:V,getPrefixCls:F,direction:Y,className:U,style:M,classNames:H,styles:Q}=yr("tooltip"),ne=Id(),te=u.useRef(null),re=()=>{var Ge;(Ge=te.current)===null||Ge===void 0||Ge.forceAlign()};u.useImperativeHandle(t,()=>{var Ge,pt;return{forceAlign:re,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),re()},nativeElement:(Ge=te.current)===null||Ge===void 0?void 0:Ge.nativeElement,popupElement:(pt=te.current)===null||pt===void 0?void 0:pt.popupElement}});const[fe,me]=Fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ue=!S&&!C&&S!==0,Se=Ge=>{var pt,Ze;me(ue?!1:Ge),ue||((pt=e.onOpenChange)===null||pt===void 0||pt.call(e,Ge),(Ze=e.onVisibleChange)===null||Ze===void 0||Ze.call(e,Ge))},le=u.useMemo(()=>{var Ge,pt;let Ze=w;return typeof b=="object"&&(Ze=(pt=(Ge=b.pointAtCenter)!==null&&Ge!==void 0?Ge:b.arrowPointAtCenter)!==null&&pt!==void 0?pt:w),$||Gw({arrowPointAtCenter:Ze,autoAdjustOverflow:R,arrowWidth:W?q.sizePopupArrow:0,borderRadius:q.borderRadius,offset:q.marginXXS,visibleFirst:!0})},[w,b,$,q]),ce=u.useMemo(()=>S===0?S:C||S||"",[C,S]),ve=u.createElement(pc,{space:!0},typeof ce=="function"?ce():ce),be=F("tooltip",o),de=F(),se=e["data-popover-inject"];let ye=fe;!("open"in e)&&!("visible"in e)&&ue&&(ye=!1);const xe=u.isValidElement(m)&&!Cx(m)?m:u.createElement("span",null,m),_e=xe.props,Pe=!_e.className||typeof _e.className=="string"?ee(_e.className,l||`${be}-open`):_e.className,[$e,Ee,ze]=Kw(be,!se),Ie=Xw(be,c),Qe=Ie.arrowStyle,ot=ee(B,{[`${be}-rtl`]:Y==="rtl"},Ie.className,P,Ee,ze,U,H.root,D==null?void 0:D.root),xt=ee(H.body,D==null?void 0:D.body),[dt,Xe]=Dl("Tooltip",A.zIndex),ct=u.createElement(f6,Object.assign({},A,{zIndex:dt,showArrow:W,placement:O,mouseEnterDelay:j,mouseLeaveDelay:N,prefixCls:be,classNames:{root:ot,body:xt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qe),Q.root),M),T),z==null?void 0:z.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Q.body),d),z==null?void 0:z.body),Ie.overlayStyle)},getTooltipContainer:_||s||V,ref:te,builtinPlacements:le,overlay:ve,visible:ye,onVisibleChange:Se,afterVisibleChange:p??g,arrowContent:u.createElement("span",{className:`${be}-arrow-content`}),motion:{motionName:Jo(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!h}),ye?Lr(xe,{className:Pe}):xe);return $e(u.createElement(lc.Provider,{value:Xe},ct))}),ea=$6;ea._InternalPanelDoNotUseOrYouWillBeFired=x6;const E6=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:l,boxShadowSecondary:s,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:m,titleMarginBottom:p,colorBgElevated:g,popoverBg:h,titleBorderBottom:y,innerContentPadding:b,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},Pn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:m,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:d,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:p,color:c,fontWeight:o,borderBottom:y,padding:S},[`${t}-inner-content`]:{color:n,padding:b}})},Mh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},R6=e=>{const{componentCls:t}=e;return{[t]:Ka.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},k6=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:l,zIndexPopupBase:s,borderRadiusLG:c,marginXS:d,lineType:m,colorSplit:p,paddingSM:g}=e,h=n-r,y=h/2,b=h/2-t,S=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},zh(e)),Yd({contentRadius:c,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${y}px ${S}px ${b}px`:0,titleBorderBottom:l?`${t}px ${m} ${p}`:"none",innerContentPadding:l?`${g}px ${S}px`:0})},Qw=dn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Kt(e,{popoverBg:t,popoverColor:n});return[E6(r),R6(r),uc(r,"zoom-big")]},k6,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var _6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yw=({title:e,content:t,prefixCls:n})=>!e&&!t?null:u.createElement(u.Fragment,null,e&&u.createElement("div",{className:`${n}-title`},e),t&&u.createElement("div",{className:`${n}-inner-content`},t)),O6=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:l="top",title:s,content:c,children:d}=e,m=dd(s),p=dd(c),g=ee(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return u.createElement("div",{className:g,style:o},u.createElement("div",{className:`${n}-arrow`}),u.createElement(Ph,Object.assign({},e,{className:t,prefixCls:n}),d||u.createElement(Yw,{prefixCls:n,title:m,content:p})))},I6=e=>{const{prefixCls:t,className:n}=e,r=_6(e,["prefixCls","className"]),{getPrefixCls:o}=u.useContext(Rt),l=o("popover",t),[s,c,d]=Qw(l);return s(u.createElement(O6,Object.assign({},r,{prefixCls:l,hashId:c,className:ee(n,d)})))};var T6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const j6=u.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:l,content:s,overlayClassName:c,placement:d="top",trigger:m="hover",children:p,mouseEnterDelay:g=.1,mouseLeaveDelay:h=.1,onOpenChange:y,overlayStyle:b={},styles:S,classNames:C}=e,$=T6(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:R,style:I,classNames:_,styles:O}=yr("popover"),j=w("popover",o),[N,T,P]=Qw(j),B=w(),z=ee(c,T,P,R,_.root,C==null?void 0:C.root),D=ee(_.body,C==null?void 0:C.body),[A,W]=Fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),q=(M,H)=>{W(M,!0),y==null||y(M,H)},V=M=>{M.keyCode===qe.ESC&&q(!1,M)},F=M=>{q(M)},Y=dd(l),U=dd(s);return N(u.createElement(ea,Object.assign({placement:d,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:h},$,{prefixCls:j,classNames:{root:z,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),I),b),S==null?void 0:S.root),body:Object.assign(Object.assign({},O.body),S==null?void 0:S.body)},ref:t,open:A,onOpenChange:F,overlay:Y||U?u.createElement(Yw,{prefixCls:j,title:Y,content:U}):null,transitionName:Jo(B,"zoom-big",$.transitionName),"data-popover-inject":!0}),Lr(p,{onKeyDown:M=>{var H,Q;u.isValidElement(p)&&((Q=p==null?void 0:(H=p.props).onKeyDown)===null||Q===void 0||Q.call(H,M)),V(M)}})))}),Dg=j6;Dg._InternalPanelDoNotUseOrYouWillBeFired=I6;const N6=new qt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),P6=new qt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),z6=new qt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),M6=new qt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),L6=new qt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),B6=new qt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),A6=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:l,textFontSizeSM:s,statusSize:c,dotSize:d,textFontWeight:m,indicatorHeight:p,indicatorHeightSM:g,marginXS:h,calc:y}=e,b=`${r}-scroll-number`,S=jd(e,(C,{darkColor:$})=>({[`&${t} ${t}-color-${C}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:Z(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:y(p).div(2).equal(),boxShadow:`0 0 0 ${Z(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:g,height:g,fontSize:s,lineHeight:Z(g),borderRadius:y(g).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Z(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:d,minWidth:d,height:d,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Z(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:B6,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:c,height:c,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:N6,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),S),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:P6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:z6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:M6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:L6,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Jw=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,l=t,s=n,c=e.colorTextLightSolid,d=e.colorError,m=e.colorErrorHover;return Kt(e,{badgeFontHeight:l,badgeShadowSize:s,badgeTextColor:c,badgeColor:d,badgeColorHover:m,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Zw=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},D6=dn("Badge",e=>{const t=Jw(e);return A6(t)},Zw),F6=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:l}=e,s=`${t}-ribbon`,c=`${t}-ribbon-wrapper`,d=jd(e,(m,{darkColor:p})=>({[`&${s}-color-${m}`]:{background:p,color:p}}));return{[c]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),{position:"absolute",top:r,padding:`0 ${Z(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Z(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${Z(l(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),d),{[`&${s}-placement-end`]:{insetInlineEnd:l(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:l(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},H6=dn(["Badge","Ribbon"],e=>{const t=Jw(e);return F6(t)},Zw),V6=e=>{const{className:t,prefixCls:n,style:r,color:o,children:l,text:s,placement:c="end",rootClassName:d}=e,{getPrefixCls:m,direction:p}=u.useContext(Rt),g=m("ribbon",n),h=`${g}-wrapper`,[y,b,S]=H6(g,h),C=Jd(o,!1),$=ee(g,`${g}-placement-${c}`,{[`${g}-rtl`]:p==="rtl",[`${g}-color-${o}`]:C},t),w={},R={};return o&&!C&&(w.background=o,R.color=o),y(u.createElement("div",{className:ee(h,d,b,S)},l,u.createElement("div",{className:ee($,b),style:Object.assign(Object.assign({},w),r)},u.createElement("span",{className:`${g}-text`},s),u.createElement("div",{className:`${g}-corner`,style:R}))))},B1=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let l;return o&&(l={position:"absolute",top:`${o}00%`,left:0}),u.createElement("span",{style:l,className:ee(`${t}-only-unit`,{current:r})},n)};function W6(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const q6=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),l=Math.abs(n),[s,c]=u.useState(o),[d,m]=u.useState(l),p=()=>{c(o),m(l)};u.useEffect(()=>{const y=setTimeout(p,1e3);return()=>clearTimeout(y)},[o]);let g,h;if(s===o||Number.isNaN(o)||Number.isNaN(s))g=[u.createElement(B1,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{g=[];const y=o+10,b=[];for(let w=o;w<=y;w+=1)b.push(w);const S=d<l?1:-1,C=b.findIndex(w=>w%10===s);g=(S<0?b.slice(0,C+1):b.slice(C)).map((w,R)=>{const I=w%10;return u.createElement(B1,Object.assign({},e,{key:w,value:I,offset:S<0?R-C:R,current:R===C}))}),h={transform:`translateY(${-W6(s,o,S)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:p},g)};var U6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const G6=u.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:l,style:s,title:c,show:d,component:m="sup",children:p}=e,g=U6(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=u.useContext(Rt),y=h("scroll-number",n),b=Object.assign(Object.assign({},g),{"data-show":d,style:s,className:ee(y,o,l),title:c});let S=r;if(r&&Number(r)%1===0){const C=String(r).split("");S=u.createElement("bdi",null,C.map(($,w)=>u.createElement(q6,{prefixCls:y,count:Number(r),value:$,key:C.length-w})))}return s!=null&&s.borderColor&&(b.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),p?Lr(p,C=>({className:ee(`${y}-custom-component`,C==null?void 0:C.className,l)})):u.createElement(m,Object.assign({},b,{ref:t}),S)});var K6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const X6=u.forwardRef((e,t)=>{var n,r,o,l,s;const{prefixCls:c,scrollNumberPrefixCls:d,children:m,status:p,text:g,color:h,count:y=null,overflowCount:b=99,dot:S=!1,size:C="default",title:$,offset:w,style:R,className:I,rootClassName:_,classNames:O,styles:j,showZero:N=!1}=e,T=K6(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:B,badge:z}=u.useContext(Rt),D=P("badge",c),[A,W,q]=D6(D),V=y>b?`${b}+`:y,F=V==="0"||V===0||g==="0"||g===0,Y=y===null||F&&!N,U=(p!=null||h!=null)&&Y,M=p!=null||!F,H=S&&!F,Q=H?"":V,ne=u.useMemo(()=>((Q==null||Q==="")&&(g==null||g==="")||F&&!N)&&!H,[Q,F,N,H,g]),te=u.useRef(y);ne||(te.current=y);const re=te.current,fe=u.useRef(Q);ne||(fe.current=Q);const me=fe.current,ue=u.useRef(H);ne||(ue.current=H);const Se=u.useMemo(()=>{if(!w)return Object.assign(Object.assign({},z==null?void 0:z.style),R);const _e={marginTop:w[1]};return B==="rtl"?_e.left=Number.parseInt(w[0],10):_e.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},_e),z==null?void 0:z.style),R)},[B,w,R,z==null?void 0:z.style]),le=$??(typeof re=="string"||typeof re=="number"?re:void 0),ce=!ne&&(g===0?N:!!g&&g!==!0),ve=ce?u.createElement("span",{className:`${D}-status-text`},g):null,be=!re||typeof re!="object"?void 0:Lr(re,_e=>({style:Object.assign(Object.assign({},Se),_e.style)})),de=Jd(h,!1),se=ee(O==null?void 0:O.indicator,(n=z==null?void 0:z.classNames)===null||n===void 0?void 0:n.indicator,{[`${D}-status-dot`]:U,[`${D}-status-${p}`]:!!p,[`${D}-color-${h}`]:de}),ye={};h&&!de&&(ye.color=h,ye.background=h);const xe=ee(D,{[`${D}-status`]:U,[`${D}-not-a-wrapper`]:!m,[`${D}-rtl`]:B==="rtl"},I,_,z==null?void 0:z.className,(r=z==null?void 0:z.classNames)===null||r===void 0?void 0:r.root,O==null?void 0:O.root,W,q);if(!m&&U&&(g||M||!Y)){const _e=Se.color;return A(u.createElement("span",Object.assign({},T,{className:xe,style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.root),(o=z==null?void 0:z.styles)===null||o===void 0?void 0:o.root),Se)}),u.createElement("span",{className:se,style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.indicator),(l=z==null?void 0:z.styles)===null||l===void 0?void 0:l.indicator),ye)}),ce&&u.createElement("span",{style:{color:_e},className:`${D}-status-text`},g)))}return A(u.createElement("span",Object.assign({ref:t},T,{className:xe,style:Object.assign(Object.assign({},(s=z==null?void 0:z.styles)===null||s===void 0?void 0:s.root),j==null?void 0:j.root)}),m,u.createElement(lo,{visible:!ne,motionName:`${D}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:_e})=>{var Pe,$e;const Ee=P("scroll-number",d),ze=ue.current,Ie=ee(O==null?void 0:O.indicator,(Pe=z==null?void 0:z.classNames)===null||Pe===void 0?void 0:Pe.indicator,{[`${D}-dot`]:ze,[`${D}-count`]:!ze,[`${D}-count-sm`]:C==="small",[`${D}-multiple-words`]:!ze&&me&&me.toString().length>1,[`${D}-status-${p}`]:!!p,[`${D}-color-${h}`]:de});let Qe=Object.assign(Object.assign(Object.assign({},j==null?void 0:j.indicator),($e=z==null?void 0:z.styles)===null||$e===void 0?void 0:$e.indicator),Se);return h&&!de&&(Qe=Qe||{},Qe.background=h),u.createElement(G6,{prefixCls:Ee,show:!ne,motionClassName:_e,className:Ie,count:me,title:le,style:Qe,key:"scrollNumber"},be)}),ve))}),e2=X6;e2.Ribbon=V6;var Q6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Y6=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:Q6}))},Ys=u.forwardRef(Y6),J6=qe.ESC,Z6=qe.TAB;function e8(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,l=e.overlayRef,s=u.useRef(!1),c=function(){if(t){var g,h;(g=n.current)===null||g===void 0||(h=g.focus)===null||h===void 0||h.call(g),r==null||r(!1)}},d=function(){var g;return(g=l.current)!==null&&g!==void 0&&g.focus?(l.current.focus(),s.current=!0,!0):!1},m=function(g){switch(g.keyCode){case J6:c();break;case Z6:{var h=!1;s.current||(h=d()),h?g.preventDefault():c();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&Cn(d,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var t8=u.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,l=u.useMemo(function(){var c;return typeof n=="function"?c=n():c=n,c},[n]),s=Eo(t,Ei(l));return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:"".concat(o,"-arrow")}),J.cloneElement(l,{ref:Ya(l)?s:void 0}))}),ul={adjustX:1,adjustY:1},dl=[0,0],n8={topLeft:{points:["bl","tl"],overflow:ul,offset:[0,-4],targetOffset:dl},top:{points:["bc","tc"],overflow:ul,offset:[0,-4],targetOffset:dl},topRight:{points:["br","tr"],overflow:ul,offset:[0,-4],targetOffset:dl},bottomLeft:{points:["tl","bl"],overflow:ul,offset:[0,4],targetOffset:dl},bottom:{points:["tc","bc"],overflow:ul,offset:[0,4],targetOffset:dl},bottomRight:{points:["tr","br"],overflow:ul,offset:[0,4],targetOffset:dl}},r8=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function o8(e,t){var n,r=e.arrow,o=r===void 0?!1:r,l=e.prefixCls,s=l===void 0?"rc-dropdown":l,c=e.transitionName,d=e.animation,m=e.align,p=e.placement,g=p===void 0?"bottomLeft":p,h=e.placements,y=h===void 0?n8:h,b=e.getPopupContainer,S=e.showAction,C=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,R=e.visible,I=e.trigger,_=I===void 0?["hover"]:I,O=e.autoFocus,j=e.overlay,N=e.children,T=e.onVisibleChange,P=Pt(e,r8),B=J.useState(),z=ie(B,2),D=z[0],A=z[1],W="visible"in e?R:D,q=J.useRef(null),V=J.useRef(null),F=J.useRef(null);J.useImperativeHandle(t,function(){return q.current});var Y=function(me){A(me),T==null||T(me)};e8({visible:W,triggerRef:F,onVisibleChange:Y,autoFocus:O,overlayRef:V});var U=function(me){var ue=e.onOverlayClick;A(!1),ue&&ue(me)},M=function(){return J.createElement(t8,{ref:V,overlay:j,prefixCls:s,arrow:o})},H=function(){return typeof j=="function"?M:M()},Q=function(){var me=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?me:!ue},ne=function(){var me=e.openClassName;return me!==void 0?me:"".concat(s,"-open")},te=J.cloneElement(N,{className:ee((n=N.props)===null||n===void 0?void 0:n.className,W&&ne()),ref:Ya(N)?Eo(F,Ei(N)):void 0}),re=C;return!re&&_.indexOf("contextMenu")!==-1&&(re=["click"]),J.createElement(Qd,ke({builtinPlacements:y},P,{prefixCls:s,ref:q,popupClassName:ee($,G({},"".concat(s,"-show-arrow"),o)),popupStyle:w,action:_,showAction:S,hideAction:re,popupPlacement:g,popupAlign:m,popupTransitionName:c,popupAnimation:d,popupVisible:W,stretch:Q()?"minWidth":"",popup:H(),onPopupVisibleChange:Y,onPopupClick:U,getPopupContainer:b}),te)}const t2=J.forwardRef(o8),a8=e=>typeof e!="object"&&typeof e!="function"||e===null;var n2=u.createContext(null);function r2(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function o2(e){var t=u.useContext(n2);return r2(t,e)}var i8=["children","locked"],Do=u.createContext(null);function l8(e,t){var n=K({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Js(e){var t=e.children,n=e.locked,r=Pt(e,i8),o=u.useContext(Do),l=rc(function(){return l8(o,r)},[o,r],function(s,c){return!n&&(s[0]!==c[0]||!Vs(s[1],c[1],!0))});return u.createElement(Do.Provider,{value:l},t)}var s8=[],a2=u.createContext(null);function Zd(){return u.useContext(a2)}var i2=u.createContext(s8);function Hl(e){var t=u.useContext(i2);return u.useMemo(function(){return e!==void 0?[].concat(Fe(t),[e]):t},[t,e])}var l2=u.createContext(null),Lh=u.createContext({});function A1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(bh(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),l=Number(o),s=null;return o&&!Number.isNaN(l)?s=l:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function c8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Fe(e.querySelectorAll("*")).filter(function(r){return A1(r,t)});return A1(e,t)&&n.unshift(e),n}var Fg=qe.LEFT,Hg=qe.RIGHT,Vg=qe.UP,Uu=qe.DOWN,Gu=qe.ENTER,s2=qe.ESC,Ss=qe.HOME,xs=qe.END,D1=[Vg,Uu,Fg,Hg];function u8(e,t,n,r){var o,l="prev",s="next",c="children",d="parent";if(e==="inline"&&r===Gu)return{inlineTrigger:!0};var m=G(G({},Vg,l),Uu,s),p=G(G(G(G({},Fg,n?s:l),Hg,n?l:s),Uu,c),Gu,c),g=G(G(G(G(G(G({},Vg,l),Uu,s),Gu,c),s2,d),Fg,n?c:d),Hg,n?d:c),h={inline:m,horizontal:p,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},y=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(y){case l:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function d8(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function f8(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Bh(e,t){var n=c8(e,!0);return n.filter(function(r){return t.has(r)})}function F1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Bh(e,t),l=o.length,s=o.findIndex(function(c){return n===c});return r<0?s===-1?s=l-1:s-=1:r>0&&(s+=1),s=(s+l)%l,o[s]}var Wg=function(t,n){var r=new Set,o=new Map,l=new Map;return t.forEach(function(s){var c=document.querySelector("[data-menu-id='".concat(r2(n,s),"']"));c&&(r.add(c),l.set(c,s),o.set(s,c))}),{elements:r,key2element:o,element2key:l}};function m8(e,t,n,r,o,l,s,c,d,m){var p=u.useRef(),g=u.useRef();g.current=t;var h=function(){Cn.cancel(p.current)};return u.useEffect(function(){return function(){h()}},[]),function(y){var b=y.which;if([].concat(D1,[Gu,s2,Ss,xs]).includes(b)){var S=l(),C=Wg(S,r),$=C,w=$.elements,R=$.key2element,I=$.element2key,_=R.get(t),O=f8(_,w),j=I.get(O),N=u8(e,s(j,!0).length===1,n,b);if(!N&&b!==Ss&&b!==xs)return;(D1.includes(b)||[Ss,xs].includes(b))&&y.preventDefault();var T=function(V){if(V){var F=V,Y=V.querySelector("a");Y!=null&&Y.getAttribute("href")&&(F=Y);var U=I.get(V);c(U),h(),p.current=Cn(function(){g.current===U&&F.focus()})}};if([Ss,xs].includes(b)||N.sibling||!O){var P;!O||e==="inline"?P=o.current:P=d8(O);var B,z=Bh(P,w);b===Ss?B=z[0]:b===xs?B=z[z.length-1]:B=F1(P,w,O,N.offset),T(B)}else if(N.inlineTrigger)d(j);else if(N.offset>0)d(j,!0),h(),p.current=Cn(function(){C=Wg(S,r);var q=O.getAttribute("aria-controls"),V=document.getElementById(q),F=F1(V,C.elements);T(F)},5);else if(N.offset<0){var D=s(j,!0),A=D[D.length-2],W=R.get(A);d(A,!1),T(W)}}m==null||m(y)}}function p8(e){Promise.resolve().then(e)}var Ah="__RC_UTIL_PATH_SPLIT__",H1=function(t){return t.join(Ah)},g8=function(t){return t.split(Ah)},qg="rc-menu-more";function h8(){var e=u.useState({}),t=ie(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),l=u.useState([]),s=ie(l,2),c=s[0],d=s[1],m=u.useRef(0),p=u.useRef(!1),g=function(){p.current||n({})},h=u.useCallback(function(R,I){var _=H1(I);o.current.set(_,R),r.current.set(R,_),m.current+=1;var O=m.current;p8(function(){O===m.current&&g()})},[]),y=u.useCallback(function(R,I){var _=H1(I);o.current.delete(_),r.current.delete(R)},[]),b=u.useCallback(function(R){d(R)},[]),S=u.useCallback(function(R,I){var _=r.current.get(R)||"",O=g8(_);return I&&c.includes(O[0])&&O.unshift(qg),O},[c]),C=u.useCallback(function(R,I){return R.filter(function(_){return _!==void 0}).some(function(_){var O=S(_,!0);return O.includes(I)})},[S]),$=function(){var I=Fe(r.current.keys());return c.length&&I.push(qg),I},w=u.useCallback(function(R){var I="".concat(r.current.get(R)).concat(Ah),_=new Set;return Fe(o.current.keys()).forEach(function(O){O.startsWith(I)&&_.add(o.current.get(O))}),_},[]);return u.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:h,unregisterPath:y,refreshOverflowKeys:b,isSubPathKey:C,getKeyPath:S,getKeys:$,getSubPathKeys:w}}function Ts(e){var t=u.useRef(e);t.current=e;var n=u.useCallback(function(){for(var r,o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(l))},[]);return e?n:void 0}var v8=Math.random().toFixed(5).toString().slice(2),V1=0;function y8(e){var t=Fn(e,{value:e}),n=ie(t,2),r=n[0],o=n[1];return u.useEffect(function(){V1+=1;var l="".concat(v8,"-").concat(V1);o("rc-menu-uuid-".concat(l))},[]),r}function c2(e,t,n,r){var o=u.useContext(Do),l=o.activeKey,s=o.onActive,c=o.onInactive,d={active:l===e};return t||(d.onMouseEnter=function(m){n==null||n({key:e,domEvent:m}),s(e)},d.onMouseLeave=function(m){r==null||r({key:e,domEvent:m}),c(e)}),d}function u2(e){var t=u.useContext(Do),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var l=e;return r?{paddingRight:l*o}:{paddingLeft:l*o}}function d2(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=u.createElement(t,K({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var b8=["item"];function fd(e){var t=e.item,n=Pt(e,b8);return Object.defineProperty(n,"item",{get:function(){return fr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var C8=["title","attribute","elementRef"],S8=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],x8=["active"],w8=(function(e){ya(n,e);var t=ba(n);function n(){return Jn(this,n),t.apply(this,arguments)}return Zn(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,c=o.elementRef,d=Pt(o,C8),m=Kn(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return fr(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(Yo.Item,ke({},s,{title:typeof l=="string"?l:void 0},m,{ref:c}))}}]),n})(u.Component),$8=u.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var l=e.disabled,s=e.itemIcon,c=e.children,d=e.role,m=e.onMouseEnter,p=e.onMouseLeave,g=e.onClick,h=e.onKeyDown,y=e.onFocus,b=Pt(e,S8),S=o2(o),C=u.useContext(Do),$=C.prefixCls,w=C.onItemClick,R=C.disabled,I=C.overflowDisabled,_=C.itemIcon,O=C.selectedKeys,j=C.onActive,N=u.useContext(Lh),T=N._internalRenderMenuItem,P="".concat($,"-item"),B=u.useRef(),z=u.useRef(),D=R||l,A=ta(t,z),W=Hl(o),q=function(ue){return{key:o,keyPath:Fe(W).reverse(),item:B.current,domEvent:ue}},V=s||_,F=c2(o,D,m,p),Y=F.active,U=Pt(F,x8),M=O.includes(o),H=u2(W.length),Q=function(ue){if(!D){var Se=q(ue);g==null||g(fd(Se)),w(Se)}},ne=function(ue){if(h==null||h(ue),ue.which===qe.ENTER){var Se=q(ue);g==null||g(fd(Se)),w(Se)}},te=function(ue){j(o),y==null||y(ue)},re={};e.role==="option"&&(re["aria-selected"]=M);var fe=u.createElement(w8,ke({ref:B,elementRef:A,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":I&&S?null:S},Kn(b,["extra"]),U,re,{component:"li","aria-disabled":l,style:K(K({},H),n),className:ee(P,G(G(G({},"".concat(P,"-active"),Y),"".concat(P,"-selected"),M),"".concat(P,"-disabled"),D),r),onClick:Q,onKeyDown:ne,onFocus:te}),c,u.createElement(d2,{props:K(K({},e),{},{isSelected:M}),icon:V}));return T&&(fe=T(fe,e,{selected:M})),fe});function E8(e,t){var n=e.eventKey,r=Zd(),o=Hl(n);return u.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:u.createElement($8,ke({},e,{ref:t}))}const vc=u.forwardRef(E8);var R8=["className","children"],k8=function(t,n){var r=t.className,o=t.children,l=Pt(t,R8),s=u.useContext(Do),c=s.prefixCls,d=s.mode,m=s.rtl;return u.createElement("ul",ke({className:ee(c,m&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat(d==="inline"?"inline":"vertical"),r),role:"menu"},l,{"data-menu-list":!0,ref:n}),o)},Dh=u.forwardRef(k8);Dh.displayName="SubMenuList";function Fh(e,t){return Mr(e).map(function(n,r){if(u.isValidElement(n)){var o,l,s=n.key,c=(o=(l=n.props)===null||l===void 0?void 0:l.eventKey)!==null&&o!==void 0?o:s,d=c==null;d&&(c="tmp_key-".concat([].concat(Fe(t),[r]).join("-")));var m={key:c,eventKey:c};return u.cloneElement(n,m)}return n})}var _r={adjustX:1,adjustY:1},_8={topLeft:{points:["bl","tl"],overflow:_r},topRight:{points:["br","tr"],overflow:_r},bottomLeft:{points:["tl","bl"],overflow:_r},bottomRight:{points:["tr","br"],overflow:_r},leftTop:{points:["tr","tl"],overflow:_r},leftBottom:{points:["br","bl"],overflow:_r},rightTop:{points:["tl","tr"],overflow:_r},rightBottom:{points:["bl","br"],overflow:_r}},O8={topLeft:{points:["bl","tl"],overflow:_r},topRight:{points:["br","tr"],overflow:_r},bottomLeft:{points:["tl","bl"],overflow:_r},bottomRight:{points:["tr","br"],overflow:_r},rightTop:{points:["tr","tl"],overflow:_r},rightBottom:{points:["br","bl"],overflow:_r},leftTop:{points:["tl","tr"],overflow:_r},leftBottom:{points:["bl","br"],overflow:_r}};function f2(e,t,n){if(t)return t;if(n)return n[e]||n.other}var I8={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function T8(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,l=e.popupStyle,s=e.popupClassName,c=e.popupOffset,d=e.disabled,m=e.mode,p=e.onVisibleChange,g=u.useContext(Do),h=g.getPopupContainer,y=g.rtl,b=g.subMenuOpenDelay,S=g.subMenuCloseDelay,C=g.builtinPlacements,$=g.triggerSubMenuAction,w=g.forceSubMenuRender,R=g.rootClassName,I=g.motion,_=g.defaultMotions,O=u.useState(!1),j=ie(O,2),N=j[0],T=j[1],P=K(y?K({},O8):K({},_8),C),B=I8[m],z=f2(m,I,_),D=u.useRef(z);m!=="inline"&&(D.current=z);var A=K(K({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),W=u.useRef();return u.useEffect(function(){return W.current=Cn(function(){T(n)}),function(){Cn.cancel(W.current)}},[n]),u.createElement(Qd,{prefixCls:t,popupClassName:ee("".concat(t,"-popup"),G({},"".concat(t,"-rtl"),y),s,R),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:P,popupPlacement:B,popupVisible:N,popup:o,popupStyle:l,popupAlign:c&&{offset:c},action:d?[]:[$],mouseEnterDelay:b,mouseLeaveDelay:S,onPopupVisibleChange:p,forceRender:w,popupMotion:A,fresh:!0},r)}function j8(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,l="inline",s=u.useContext(Do),c=s.prefixCls,d=s.forceSubMenuRender,m=s.motion,p=s.defaultMotions,g=s.mode,h=u.useRef(!1);h.current=g===l;var y=u.useState(!h.current),b=ie(y,2),S=b[0],C=b[1],$=h.current?n:!1;u.useEffect(function(){h.current&&C(!1)},[g]);var w=K({},f2(l,m,p));r.length>1&&(w.motionAppear=!1);var R=w.onVisibleChanged;return w.onVisibleChanged=function(I){return!h.current&&!I&&C(!0),R==null?void 0:R(I)},S?null:u.createElement(Js,{mode:l,locked:!h.current},u.createElement(lo,ke({visible:$},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(I){var _=I.className,O=I.style;return u.createElement(Dh,{id:t,className:_,style:O},o)}))}var N8=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],P8=["active"],z8=u.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,l=e.eventKey;e.warnKey;var s=e.disabled,c=e.internalPopupClose,d=e.children,m=e.itemIcon,p=e.expandIcon,g=e.popupClassName,h=e.popupOffset,y=e.popupStyle,b=e.onClick,S=e.onMouseEnter,C=e.onMouseLeave,$=e.onTitleClick,w=e.onTitleMouseEnter,R=e.onTitleMouseLeave,I=Pt(e,N8),_=o2(l),O=u.useContext(Do),j=O.prefixCls,N=O.mode,T=O.openKeys,P=O.disabled,B=O.overflowDisabled,z=O.activeKey,D=O.selectedKeys,A=O.itemIcon,W=O.expandIcon,q=O.onItemClick,V=O.onOpenChange,F=O.onActive,Y=u.useContext(Lh),U=Y._internalRenderSubMenuItem,M=u.useContext(l2),H=M.isSubPathKey,Q=Hl(),ne="".concat(j,"-submenu"),te=P||s,re=u.useRef(),fe=u.useRef(),me=m??A,ue=p??W,Se=T.includes(l),le=!B&&Se,ce=H(D,l),ve=c2(l,te,w,R),be=ve.active,de=Pt(ve,P8),se=u.useState(!1),ye=ie(se,2),xe=ye[0],_e=ye[1],Pe=function(Ne){te||_e(Ne)},$e=function(Ne){Pe(!0),S==null||S({key:l,domEvent:Ne})},Ee=function(Ne){Pe(!1),C==null||C({key:l,domEvent:Ne})},ze=u.useMemo(function(){return be||(N!=="inline"?xe||H([z],l):!1)},[N,be,z,xe,l,H]),Ie=u2(Q.length),Qe=function(Ne){te||($==null||$({key:l,domEvent:Ne}),N==="inline"&&V(l,!Se))},ot=Ts(function(tt){b==null||b(fd(tt)),q(tt)}),xt=function(Ne){N!=="inline"&&V(l,Ne)},dt=function(){F(l)},Xe=_&&"".concat(_,"-popup"),ct=u.useMemo(function(){return u.createElement(d2,{icon:N!=="horizontal"?ue:void 0,props:K(K({},e),{},{isOpen:le,isSubMenu:!0})},u.createElement("i",{className:"".concat(ne,"-arrow")}))},[N,ue,e,le,ne]),Ge=u.createElement("div",ke({role:"menuitem",style:Ie,className:"".concat(ne,"-title"),tabIndex:te?null:-1,ref:re,title:typeof o=="string"?o:null,"data-menu-id":B&&_?null:_,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Xe,"aria-disabled":te,onClick:Qe,onFocus:dt},de),o,ct),pt=u.useRef(N);if(N!=="inline"&&Q.length>1?pt.current="vertical":pt.current=N,!B){var Ze=pt.current;Ge=u.createElement(T8,{mode:Ze,prefixCls:ne,visible:!c&&le&&N!=="inline",popupClassName:g,popupOffset:h,popupStyle:y,popup:u.createElement(Js,{mode:Ze==="horizontal"?"vertical":Ze},u.createElement(Dh,{id:Xe,ref:fe},d)),disabled:te,onVisibleChange:xt},Ge)}var Le=u.createElement(Yo.Item,ke({ref:t,role:"none"},I,{component:"li",style:n,className:ee(ne,"".concat(ne,"-").concat(N),r,G(G(G(G({},"".concat(ne,"-open"),le),"".concat(ne,"-active"),ze),"".concat(ne,"-selected"),ce),"".concat(ne,"-disabled"),te)),onMouseEnter:$e,onMouseLeave:Ee}),Ge,!B&&u.createElement(j8,{id:Xe,open:le,keyPath:Q},d));return U&&(Le=U(Le,e,{selected:ce,active:ze,open:le,disabled:te})),u.createElement(Js,{onItemClick:ot,mode:N==="horizontal"?"vertical":N,itemIcon:me,expandIcon:ue},Le)}),ef=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Hl(n),l=Fh(r,o),s=Zd();u.useEffect(function(){if(s)return s.registerPath(n,o),function(){s.unregisterPath(n,o)}},[o]);var c;return s?c=l:c=u.createElement(z8,ke({ref:t},e),l),u.createElement(i2.Provider,{value:o},c)});function Hh(e){var t=e.className,n=e.style,r=u.useContext(Do),o=r.prefixCls,l=Zd();return l?null:u.createElement("li",{role:"separator",className:ee("".concat(o,"-item-divider"),t),style:n})}var M8=["className","title","eventKey","children"],L8=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,l=Pt(e,M8),s=u.useContext(Do),c=s.prefixCls,d="".concat(c,"-item-group");return u.createElement("li",ke({ref:t,role:"presentation"},l,{onClick:function(p){return p.stopPropagation()},className:ee(d,n)}),u.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),u.createElement("ul",{role:"group",className:"".concat(d,"-list")},o))}),Vh=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Hl(n),l=Fh(r,o),s=Zd();return s?l:u.createElement(L8,ke({ref:t},Kn(e,["warnKey"])),l)}),B8=["label","children","key","type","extra"];function Ug(e,t,n){var r=t.item,o=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(c,d){if(c&&ht(c)==="object"){var m=c,p=m.label,g=m.children,h=m.key,y=m.type,b=m.extra,S=Pt(m,B8),C=h??"tmp-".concat(d);return g||y==="group"?y==="group"?u.createElement(o,ke({key:C},S,{title:p}),Ug(g,t,n)):u.createElement(l,ke({key:C},S,{title:p}),Ug(g,t,n)):y==="divider"?u.createElement(s,ke({key:C},S)):u.createElement(r,ke({key:C},S,{extra:b}),p,(!!b||b===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(c){return c})}function W1(e,t,n,r,o){var l=e,s=K({divider:Hh,item:vc,group:Vh,submenu:ef},r);return t&&(l=Ug(t,s,o)),Fh(l,n)}var A8=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ui=[],D8=u.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,l=o===void 0?"rc-menu":o,s=r.rootClassName,c=r.style,d=r.className,m=r.tabIndex,p=m===void 0?0:m,g=r.items,h=r.children,y=r.direction,b=r.id,S=r.mode,C=S===void 0?"vertical":S,$=r.inlineCollapsed,w=r.disabled,R=r.disabledOverflow,I=r.subMenuOpenDelay,_=I===void 0?.1:I,O=r.subMenuCloseDelay,j=O===void 0?.1:O,N=r.forceSubMenuRender,T=r.defaultOpenKeys,P=r.openKeys,B=r.activeKey,z=r.defaultActiveFirst,D=r.selectable,A=D===void 0?!0:D,W=r.multiple,q=W===void 0?!1:W,V=r.defaultSelectedKeys,F=r.selectedKeys,Y=r.onSelect,U=r.onDeselect,M=r.inlineIndent,H=M===void 0?24:M,Q=r.motion,ne=r.defaultMotions,te=r.triggerSubMenuAction,re=te===void 0?"hover":te,fe=r.builtinPlacements,me=r.itemIcon,ue=r.expandIcon,Se=r.overflowedIndicator,le=Se===void 0?"...":Se,ce=r.overflowedIndicatorPopupClassName,ve=r.getPopupContainer,be=r.onClick,de=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var ye=r._internalRenderMenuItem,xe=r._internalRenderSubMenuItem,_e=r._internalComponents,Pe=Pt(r,A8),$e=u.useMemo(function(){return[W1(h,g,ui,_e,l),W1(h,g,ui,{},l)]},[h,g,_e]),Ee=ie($e,2),ze=Ee[0],Ie=Ee[1],Qe=u.useState(!1),ot=ie(Qe,2),xt=ot[0],dt=ot[1],Xe=u.useRef(),ct=y8(b),Ge=y==="rtl",pt=Fn(T,{value:P,postState:function(it){return it||ui}}),Ze=ie(pt,2),Le=Ze[0],tt=Ze[1],Ne=function(it){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Zt(){tt(it),de==null||de(it)}rt?qa.flushSync(Zt):Zt()},Ve=u.useState(Le),kt=ie(Ve,2),vt=kt[0],Xt=kt[1],Ut=u.useRef(!1),fn=u.useMemo(function(){return(C==="inline"||C==="vertical")&&$?["vertical",$]:[C,!1]},[C,$]),wn=ie(fn,2),Yt=wn[0],Lt=wn[1],wt=Yt==="inline",Jt=u.useState(Yt),Wt=ie(Jt,2),nt=Wt[0],St=Wt[1],ut=u.useState(Lt),Te=ie(ut,2),Re=Te[0],we=Te[1];u.useEffect(function(){St(Yt),we(Lt),Ut.current&&(wt?tt(vt):Ne(ui))},[Yt,Lt]);var Be=u.useState(0),Je=ie(Be,2),et=Je[0],Bt=Je[1],Ht=et>=ze.length-1||nt!=="horizontal"||R;u.useEffect(function(){wt&&Xt(Le)},[Le]),u.useEffect(function(){return Ut.current=!0,function(){Ut.current=!1}},[]);var jt=h8(),zt=jt.registerPath,Sn=jt.unregisterPath,vn=jt.refreshOverflowKeys,$n=jt.isSubPathKey,Tn=jt.getKeyPath,en=jt.getKeys,an=jt.getSubPathKeys,Ae=u.useMemo(function(){return{registerPath:zt,unregisterPath:Sn}},[zt,Sn]),Ke=u.useMemo(function(){return{isSubPathKey:$n}},[$n]);u.useEffect(function(){vn(Ht?ui:ze.slice(et+1).map(function(nn){return nn.key}))},[et,Ht]);var Et=Fn(B||z&&((n=ze[0])===null||n===void 0?void 0:n.key),{value:B}),ft=ie(Et,2),at=ft[0],Ye=ft[1],$t=Ts(function(nn){Ye(nn)}),Vt=Ts(function(){Ye(void 0)});u.useImperativeHandle(t,function(){return{list:Xe.current,focus:function(it){var rt,Zt=en(),rn=Wg(Zt,ct),mn=rn.elements,hn=rn.key2element,pr=rn.element2key,Wn=Bh(Xe.current,mn),Dt=at??(Wn[0]?pr.get(Wn[0]):(rt=ze.find(function(Ar){return!Ar.props.disabled}))===null||rt===void 0?void 0:rt.key),nr=hn.get(Dt);if(Dt&&nr){var ir;nr==null||(ir=nr.focus)===null||ir===void 0||ir.call(nr,it)}}}});var We=Fn(V||[],{value:F,postState:function(it){return Array.isArray(it)?it:it==null?ui:[it]}}),mt=ie(We,2),_t=mt[0],sn=mt[1],Vn=function(it){if(A){var rt=it.key,Zt=_t.includes(rt),rn;q?Zt?rn=_t.filter(function(hn){return hn!==rt}):rn=[].concat(Fe(_t),[rt]):rn=[rt],sn(rn);var mn=K(K({},it),{},{selectedKeys:rn});Zt?U==null||U(mn):Y==null||Y(mn)}!q&&Le.length&&nt!=="inline"&&Ne(ui)},_n=Ts(function(nn){be==null||be(fd(nn)),Vn(nn)}),br=Ts(function(nn,it){var rt=Le.filter(function(rn){return rn!==nn});if(it)rt.push(nn);else if(nt!=="inline"){var Zt=an(nn);rt=rt.filter(function(rn){return!Zt.has(rn)})}Vs(Le,rt,!0)||Ne(rt,!0)}),er=function(it,rt){var Zt=rt??!Le.includes(it);br(it,Zt)},Cr=m8(nt,at,Ge,ct,Xe,en,Tn,Ye,er,se);u.useEffect(function(){dt(!0)},[]);var tr=u.useMemo(function(){return{_internalRenderMenuItem:ye,_internalRenderSubMenuItem:xe}},[ye,xe]),mr=nt!=="horizontal"||R?ze:ze.map(function(nn,it){return u.createElement(Js,{key:nn.key,overflowDisabled:it>et},nn)}),Sr=u.createElement(Yo,ke({id:b,ref:Xe,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:vc,className:ee(l,"".concat(l,"-root"),"".concat(l,"-").concat(nt),d,G(G({},"".concat(l,"-inline-collapsed"),Re),"".concat(l,"-rtl"),Ge),s),dir:y,style:c,role:"menu",tabIndex:p,data:mr,renderRawItem:function(it){return it},renderRawRest:function(it){var rt=it.length,Zt=rt?ze.slice(-rt):null;return u.createElement(ef,{eventKey:qg,title:le,disabled:Ht,internalPopupClose:rt===0,popupClassName:ce},Zt)},maxCount:nt!=="horizontal"||R?Yo.INVALIDATE:Yo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(it){Bt(it)},onKeyDown:Cr},Pe));return u.createElement(Lh.Provider,{value:tr},u.createElement(n2.Provider,{value:ct},u.createElement(Js,{prefixCls:l,rootClassName:s,mode:nt,openKeys:Le,rtl:Ge,disabled:w,motion:xt?Q:null,defaultMotions:xt?ne:null,activeKey:at,onActive:$t,onInactive:Vt,selectedKeys:_t,inlineIndent:H,subMenuOpenDelay:_,subMenuCloseDelay:j,forceSubMenuRender:N,builtinPlacements:fe,triggerSubMenuAction:re,getPopupContainer:ve,itemIcon:me,expandIcon:ue,onItemClick:_n,onOpenChange:br},u.createElement(l2.Provider,{value:Ke},Sr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(a2.Provider,{value:Ae},Ie)))))}),Vl=D8;Vl.Item=vc;Vl.SubMenu=ef;Vl.ItemGroup=Vh;Vl.Divider=Hh;var F8={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},H8=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:F8}))},V8=u.forwardRef(H8);const m2=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),W8=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:l,headerPadding:s,headerColor:c,footerPadding:d,fontSize:m,bodyBg:p,headerBg:g}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:l,padding:s,color:c,lineHeight:Z(l),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:m,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},p2=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:l,marginXXS:s,colorTextLightSolid:c,colorBgContainer:d}=e,m=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${m}px`,headerColor:o,footerPadding:`${l}px ${m}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+s*2,triggerBg:"#002140",triggerColor:c,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:o}},g2=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],h2=dn("Layout",W8,p2,{deprecatedTokens:g2}),q8=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:l,triggerHeight:s,triggerColor:c,triggerBg:d,headerHeight:m,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:h,lightSiderBg:y,lightTriggerColor:b,lightTriggerBg:S,bodyBg:C}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:c,lineHeight:Z(s),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:m,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:c,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Z(h)} ${Z(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${Z(h)} 0 0 ${Z(h)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:b,background:S},[`${t}-zero-width-trigger`]:{color:b,background:S,border:`1px solid ${C}`,borderInlineStart:0}}}}},U8=dn(["Layout","Sider"],q8,p2,{deprecatedTokens:g2});var G8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const q1={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},K8=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),tf=u.createContext({}),X8=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),v2=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:l,defaultCollapsed:s=!1,theme:c="dark",style:d={},collapsible:m=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:h=80,zeroWidthTriggerStyle:y,breakpoint:b,onCollapse:S,onBreakpoint:C}=e,$=G8(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=u.useContext(m2),[R,I]=u.useState("collapsed"in e?e.collapsed:s),[_,O]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const j=(me,ue)=>{"collapsed"in e||I(me),S==null||S(me,ue)},{getPrefixCls:N,direction:T}=u.useContext(Rt),P=N("layout-sider",n),[B,z,D]=U8(P),A=u.useRef(null);A.current=me=>{O(me.matches),C==null||C(me.matches),R!==me.matches&&j(me.matches,"responsive")},u.useEffect(()=>{function me(Se){var le;return(le=A.current)===null||le===void 0?void 0:le.call(A,Se)}let ue;return typeof(window==null?void 0:window.matchMedia)<"u"&&b&&b in q1&&(ue=window.matchMedia(`screen and (max-width: ${q1[b]})`),Ww(ue,me),me(ue)),()=>{qw(ue,me)}},[b]),u.useEffect(()=>{const me=X8("ant-sider-");return w.addSider(me),()=>w.removeSider(me)},[]);const W=()=>{j(!R,"clickTrigger")},q=Kn($,["collapsed"]),V=R?h:g,F=K8(V)?`${V}px`:String(V),Y=Number.parseFloat(String(h||0))===0?u.createElement("span",{onClick:W,className:ee(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${p?"right":"left"}`),style:y},o||u.createElement(V8,null)):null,U=T==="rtl"==!p,Q={expanded:U?u.createElement(Qo,null):u.createElement(Ys,null),collapsed:U?u.createElement(Ys,null):u.createElement(Qo,null)}[R?"collapsed":"expanded"],ne=o!==null?Y||u.createElement("div",{className:`${P}-trigger`,onClick:W,style:{width:F}},o||Q):null,te=Object.assign(Object.assign({},d),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),re=ee(P,`${P}-${c}`,{[`${P}-collapsed`]:!!R,[`${P}-has-trigger`]:m&&o!==null&&!Y,[`${P}-below`]:!!_,[`${P}-zero-width`]:Number.parseFloat(F)===0},r,z,D),fe=u.useMemo(()=>({siderCollapsed:R}),[R]);return B(u.createElement(tf.Provider,{value:fe},u.createElement("aside",Object.assign({className:re},q,{style:te,ref:t}),u.createElement("div",{className:`${P}-children`},l),m||_&&Y?ne:null)))});var Q8={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Y8=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:Q8}))},Wh=u.forwardRef(Y8);const md=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var J8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const y2=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=J8(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=u.useContext(Rt),s=l("menu",t),c=ee({[`${s}-item-divider-dashed`]:!!r},n);return u.createElement(Hh,Object.assign({className:c},o))},b2=e=>{var t;const{className:n,children:r,icon:o,title:l,danger:s,extra:c}=e,{prefixCls:d,firstLevel:m,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h}=u.useContext(md),y=R=>{const I=r==null?void 0:r[0],_=u.createElement("span",{className:ee(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!c||c===0})},r);return(!o||u.isValidElement(r)&&r.type==="span")&&r&&R&&m&&typeof I=="string"?u.createElement("div",{className:`${d}-inline-collapsed-noicon`},I.charAt(0)):_},{siderCollapsed:b}=u.useContext(tf);let S=l;typeof l>"u"?S=m?r:"":l===!1&&(S="");const C={title:S};!b&&!h&&(C.title=null,C.open=!1);const $=Mr(r).length;let w=u.createElement(vc,Object.assign({},Kn(e,["title","icon","danger"]),{className:ee({[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(o?$+1:$)===1},n),title:typeof l=="string"?l:void 0}),Lr(o,{className:ee(u.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),y(h));return g||(w=u.createElement(ea,Object.assign({},C,{placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var Z8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const pd=u.createContext(null),eP=u.forwardRef((e,t)=>{const{children:n}=e,r=Z8(e,["children"]),o=u.useContext(pd),l=u.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=S4(n),c=ta(t,s?Ei(n):null);return u.createElement(pd.Provider,{value:l},u.createElement(pc,{space:!0},s?u.cloneElement(n,{ref:c}):n))}),tP=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:l,lineType:s,itemPaddingInline:c}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Z(l)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:c},[`> ${t}-item:hover,
250
+ > ${t}-item-active,
251
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},nP=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
252
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Z(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Z(t)})`}}}}),U1=e=>Si(e),G1=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:l,groupTitleColor:s,itemBg:c,subMenuItemBg:d,itemSelectedBg:m,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:h,motionDurationSlow:y,motionEaseInOut:b,motionEaseOut:S,itemPaddingInline:C,motionDurationMid:$,itemHoverColor:w,lineType:R,colorSplit:I,itemDisabledColor:_,dangerItemColor:O,dangerItemHoverColor:j,dangerItemSelectedColor:N,dangerItemActiveBg:T,dangerItemSelectedBg:P,popupBg:B,itemHoverBg:z,itemActiveBg:D,menuSubMenuBg:A,horizontalItemSelectedColor:W,horizontalItemSelectedBg:q,horizontalItemBorderRadius:V,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:c,[`&${n}-root:focus-visible`]:Object.assign({},U1(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:l},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},U1(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:z},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:z},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:O,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:j}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:N},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:m,[`&${n}-item-danger`]:{backgroundColor:P}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:B},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:B},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:V,"&::after":{position:"absolute",insetInline:C,bottom:0,borderBottom:`${Z(p)} solid transparent`,transition:`border-color ${y} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:p,borderBottomColor:W}},"&-selected":{color:W,backgroundColor:q,"&:hover":{backgroundColor:q},"&::after":{borderBottomWidth:p,borderBottomColor:W}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Z(h)} ${R} ${I}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Z(g)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${S}`,`opacity ${$} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${b}`,`opacity ${$} ${b}`].join(",")}}}}}},K1=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:l,marginXS:s,itemMarginBlock:c,itemWidth:d,itemPaddingInline:m}=e,p=e.calc(l).add(o).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Z(n),paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:c,width:d},[`> ${t}-item,
253
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Z(n)},[`${t}-item-group-list ${t}-submenu-title,
254
+ ${t}-submenu-title`]:{paddingInlineEnd:p}}},rP=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:l,controlHeightLG:s,motionEaseOut:c,paddingXL:d,itemMarginInline:m,fontSizeLG:p,motionDurationFast:g,motionDurationSlow:h,paddingXS:y,boxShadowSecondary:b,collapsedWidth:S,collapsedIconSize:C}=e,$={height:r,lineHeight:Z(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},K1(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},K1(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${Z(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${g} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
255
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
256
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
257
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Z(e.calc(C).div(2).equal())} - ${Z(m)})`,textOverflow:"clip",[`
258
+ ${t}-submenu-arrow,
259
+ ${t}-submenu-expand-icon
260
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:C,lineHeight:Z(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Gs),{paddingInline:y})}}]},X1=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:l,iconCls:s,iconSize:c,iconMarginInlineEnd:d}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:c,fontSize:c,transition:[`font-size ${r} ${l}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Bl()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Q1=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:l,menuArrowOffset:s}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Z(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Z(s)})`}}}}},oP=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:l,motionEaseInOut:s,paddingXS:c,padding:d,colorSplit:m,lineWidth:p,zIndexPopup:g,borderRadiusLG:h,subMenuItemBorderRadius:y,menuArrowSize:b,menuArrowOffset:S,lineType:C,groupTitleLineHeight:$,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},rd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),rd()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Z(c)} ${Z(d)}`,fontSize:w,lineHeight:$,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${l} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:m,borderStyle:C,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),X1(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Z(e.calc(r).mul(2).equal())} ${Z(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:g,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},X1(e)),Q1(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:y},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Q1(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
261
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Z(S)})`},"&::after":{transform:`rotate(45deg) translateX(${Z(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Z(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Z(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Z(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},aP=e=>{var t,n,r;const{colorPrimary:o,colorError:l,colorTextDisabled:s,colorErrorBg:c,colorText:d,colorTextDescription:m,colorBgContainer:p,colorFillAlter:g,colorFillContent:h,lineWidth:y,lineWidthBold:b,controlItemBgActive:S,colorBgTextHover:C,controlHeightLG:$,lineHeight:w,colorBgElevated:R,marginXXS:I,padding:_,fontSize:O,controlHeightSM:j,fontSizeLG:N,colorTextLightSolid:T,colorErrorHover:P}=e,B=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,z=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,A=new un(T).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:m,groupTitleColor:m,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:p,itemBg:p,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:h,itemActiveBg:S,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:B,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:y,activeBarBorderWidth:z,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:c,dangerItemActiveBg:c,colorDangerItemBgSelected:c,dangerItemSelectedBg:c,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$,groupTitleLineHeight:w,collapsedWidth:$*2,popupBg:R,itemMarginBlock:I,itemPaddingInline:_,horizontalLineHeight:`${$*1.15}px`,iconSize:O,iconMarginInlineEnd:j-O,collapsedIconSize:N,groupTitleFontSize:O,darkItemDisabledColor:new un(T).setA(.25).toRgbString(),darkItemColor:A,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:T,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:A,darkItemHoverColor:T,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:l,itemWidth:B?`calc(100% + ${z}px)`:`calc(100% - ${D*2}px)`}},iP=(e,t=e,n=!0)=>dn("Menu",o=>{const{colorBgElevated:l,controlHeightLG:s,fontSize:c,darkItemColor:d,darkDangerItemColor:m,darkItemBg:p,darkSubMenuItemBg:g,darkItemSelectedColor:h,darkItemSelectedBg:y,darkDangerItemSelectedBg:b,darkItemHoverBg:S,darkGroupTitleColor:C,darkItemHoverColor:$,darkItemDisabledColor:w,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:_,popupBg:O,darkPopupBg:j}=o,N=o.calc(c).div(7).mul(5).equal(),T=Kt(o,{menuArrowSize:N,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(N).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:O}),P=Kt(T,{itemColor:d,itemHoverColor:$,groupTitleColor:C,itemSelectedColor:h,subMenuItemSelectedColor:h,itemBg:p,popupBg:j,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:m,dangerItemHoverColor:R,dangerItemSelectedColor:I,dangerItemActiveBg:_,dangerItemSelectedBg:b,menuSubMenuBg:g,horizontalItemSelectedColor:h,horizontalItemSelectedBg:y});return[oP(T),tP(T),rP(T),G1(T,"light"),G1(P,"dark"),nP(T),Bx(T),Qa(T,"slide-up"),Qa(T,"slide-down"),uc(T,"zoom-big")]},aP,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),C2=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:l}=e,s=u.useContext(md),{prefixCls:c,inlineCollapsed:d,theme:m}=s,p=Hl();let g;if(!r)g=d&&!p.length&&o&&typeof o=="string"?u.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):u.createElement("span",{className:`${c}-title-content`},o);else{const b=u.isValidElement(o)&&o.type==="span";g=u.createElement(u.Fragment,null,Lr(r,{className:ee(u.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),b?o:u.createElement("span",{className:`${c}-title-content`},o))}const h=u.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[y]=Dl("Menu");return u.createElement(md.Provider,{value:h},u.createElement(ef,Object.assign({},Kn(e,["icon"]),{title:g,popupClassName:ee(c,n,`${c}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var lP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function $p(e){return e===null||e===!1}const sP={item:b2,submenu:C2,divider:y2},cP=u.forwardRef((e,t)=>{var n;const r=u.useContext(pd),o=r||{},{getPrefixCls:l,getPopupContainer:s,direction:c,menu:d}=u.useContext(Rt),m=l(),{prefixCls:p,className:g,style:h,theme:y="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:C,siderCollapsed:$,rootClassName:w,mode:R,selectable:I,onClick:_,overflowedIndicatorPopupClassName:O}=e,j=lP(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=Kn(j,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:R});const T=Dn((...H)=>{var Q;_==null||_.apply(void 0,H),(Q=o.onClick)===null||Q===void 0||Q.call(o)}),P=o.mode||R,B=I??o.selectable,z=C??$,D={horizontal:{motionName:`${m}-slide-up`},inline:Tx(m),other:{motionName:`${m}-zoom-big`}},A=l("menu",p||o.prefixCls),W=Fo(A),[q,V,F]=iP(A,W,!r),Y=ee(`${A}-${y}`,d==null?void 0:d.className,g),U=u.useMemo(()=>{var H,Q;if(typeof b=="function"||$p(b))return b||null;if(typeof o.expandIcon=="function"||$p(o.expandIcon))return o.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||$p(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const ne=(H=b??(o==null?void 0:o.expandIcon))!==null&&H!==void 0?H:d==null?void 0:d.expandIcon;return Lr(ne,{className:ee(`${A}-submenu-expand-icon`,u.isValidElement(ne)?(Q=ne.props)===null||Q===void 0?void 0:Q.className:void 0)})},[b,o==null?void 0:o.expandIcon,d==null?void 0:d.expandIcon,A]),M=u.useMemo(()=>({prefixCls:A,inlineCollapsed:z||!1,direction:c,firstLevel:!0,theme:y,mode:P,disableMenuItemTitleTooltip:S}),[A,z,c,S,y]);return q(u.createElement(pd.Provider,{value:null},u.createElement(md.Provider,{value:M},u.createElement(Vl,Object.assign({getPopupContainer:s,overflowedIndicator:u.createElement(Wh,null),overflowedIndicatorPopupClassName:ee(A,`${A}-${y}`,O),mode:P,selectable:B,onClick:T},N,{inlineCollapsed:z,style:Object.assign(Object.assign({},d==null?void 0:d.style),h),className:Y,prefixCls:A,direction:c,defaultMotions:D,expandIcon:U,ref:t,rootClassName:ee(w,V,o.rootClassName,F,W),_internalComponents:sP})))))}),yc=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u.useContext(tf);return u.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var l;(l=n.current)===null||l===void 0||l.focus(o)}})),u.createElement(cP,Object.assign({ref:n},e,r))});yc.Item=b2;yc.SubMenu=C2;yc.Divider=y2;yc.ItemGroup=Vh;const uP=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},dP=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:l,antCls:s,iconCls:c,motionDurationMid:d,paddingBlock:m,fontSize:p,dropdownEdgeChildPadding:g,colorTextDisabled:h,fontSizeIcon:y,controlPaddingHorizontal:b,colorBgElevated:S}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${c}-down, & > ${s}-btn-icon > ${c}-down`]:{fontSize:y}},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${c}-down`]:{fontSize:y},[`${c}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft,
262
+ &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
263
+ &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
264
+ &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
265
+ &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
266
+ &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:xh},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
267
+ &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
268
+ &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
269
+ &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
270
+ &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
271
+ &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:$h},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
272
+ &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
273
+ &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:wh},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
274
+ &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
275
+ &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Eh}}},Mh(e,S,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Pn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},$o(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Z(m)} ${Z(b)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${d}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Z(m)} ${Z(b)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},$o(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Z(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Z(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Qa(e,"slide-up"),Qa(e,"slide-down"),sd(e,"move-up"),sd(e,"move-down"),uc(e,"zoom-big")]]},fP=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Yd({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),zh(e)),mP=dn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,l=Kt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[dP(l),uP(l)]},fP,{resetStyle:!1}),nf=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:l,trigger:s,disabled:c,dropdownRender:d,popupRender:m,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:b,onOpenChange:S,visible:C,onVisibleChange:$,mouseEnterDelay:w=.15,mouseLeaveDelay:R=.1,autoAdjustOverflow:I=!0,placement:_="",overlay:O,transitionName:j,destroyOnHidden:N,destroyPopupOnHide:T}=e,{getPopupContainer:P,getPrefixCls:B,direction:z,dropdown:D}=u.useContext(Rt),A=m||d;Id();const W=u.useMemo(()=>{const ye=B();return j!==void 0?j:_.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[B,_,j]),q=u.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:z==="rtl"?"bottomRight":"bottomLeft",[_,z]),V=B("dropdown",o),F=Fo(V),[Y,U,M]=mP(V,F),[,H]=Br(),Q=u.Children.only(a8(l)?u.createElement("span",null,l):l),ne=Lr(Q,{className:ee(`${V}-trigger`,{[`${V}-rtl`]:z==="rtl"},Q.props.className),disabled:(t=Q.props.disabled)!==null&&t!==void 0?t:c}),te=c?[]:s,re=!!(te!=null&&te.includes("contextMenu")),[fe,me]=Fn(!1,{value:b??C}),ue=Dn(ye=>{S==null||S(ye,{source:"trigger"}),$==null||$(ye),me(ye)}),Se=ee(g,h,U,M,F,D==null?void 0:D.className,{[`${V}-rtl`]:z==="rtl"}),le=Gw({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:I,offset:H.marginXXS,arrowWidth:r?H.sizePopupArrow:0,borderRadius:H.borderRadius}),ce=Dn(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),me(!1))}),ve=()=>{let ye;return n!=null&&n.items?ye=u.createElement(yc,Object.assign({},n)):typeof O=="function"?ye=O():ye=O,A&&(ye=A(ye)),ye=u.Children.only(typeof ye=="string"?u.createElement("span",null,ye):ye),u.createElement(eP,{prefixCls:`${V}-menu`,rootClassName:ee(M,F),expandIcon:u.createElement("span",{className:`${V}-menu-submenu-arrow`},z==="rtl"?u.createElement(Ys,{className:`${V}-menu-submenu-arrow-icon`}):u.createElement(Qo,{className:`${V}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:xe})=>{}},ye)},[be,de]=Dl("Dropdown",y==null?void 0:y.zIndex);let se=u.createElement(t2,Object.assign({alignPoint:re},Kn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:R,visible:fe,builtinPlacements:le,arrow:!!r,overlayClassName:Se,prefixCls:V,getPopupContainer:p||P,transitionName:W,trigger:te,overlay:ve,placement:q,onVisibleChange:ue,overlayStyle:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),y),{zIndex:be}),autoDestroy:N??T}),ne);return be&&(se=u.createElement(lc.Provider,{value:de},se)),Y(se)},pP=bw(nf,"align",void 0,"dropdown",e=>e),gP=e=>u.createElement(pP,Object.assign({},e),u.createElement("span",null));nf._InternalPanelDoNotUseOrYouWillBeFired=gP;var hP=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],vP=u.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,l=e.style,s=e.checked,c=e.disabled,d=e.defaultChecked,m=d===void 0?!1:d,p=e.type,g=p===void 0?"checkbox":p,h=e.title,y=e.onChange,b=Pt(e,hP),S=u.useRef(null),C=u.useRef(null),$=Fn(m,{value:s}),w=ie($,2),R=w[0],I=w[1];u.useImperativeHandle(t,function(){return{focus:function(N){var T;(T=S.current)===null||T===void 0||T.focus(N)},blur:function(){var N;(N=S.current)===null||N===void 0||N.blur()},input:S.current,nativeElement:C.current}});var _=ee(r,o,G(G({},"".concat(r,"-checked"),R),"".concat(r,"-disabled"),c)),O=function(N){c||("checked"in e||I(N.target.checked),y==null||y({target:K(K({},e),{},{type:g,checked:N.target.checked}),stopPropagation:function(){N.stopPropagation()},preventDefault:function(){N.preventDefault()},nativeEvent:N.nativeEvent}))};return u.createElement("span",{className:_,title:h,style:l,ref:C},u.createElement("input",ke({},b,{className:"".concat(r,"-input"),ref:S,onChange:O,disabled:c,checked:!!R,type:g})),u.createElement("span",{className:"".concat(r,"-inner")}))});function yP(e){const t=J.useRef(null),n=()=>{Cn.cancel(t.current),t.current=null};return[()=>{n(),t.current=Cn(()=>{t.current=null})},l=>{t.current&&(l.stopPropagation(),n()),e==null||e(l)}]}function rf(e){return Kt(e,{inputAffixPadding:e.paddingXXS})}const of=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:s,fontSizeLG:c,lineHeightLG:d,paddingSM:m,controlPaddingHorizontalSM:p,controlPaddingHorizontal:g,colorFillAlter:h,colorPrimaryHover:y,colorPrimary:b,controlOutlineWidth:S,controlOutline:C,colorErrorOutline:$,colorWarningOutline:w,colorBgContainer:R,inputFontSize:I,inputFontSizeLG:_,inputFontSizeSM:O}=e,j=I||n,N=O||j,T=_||c,P=Math.round((t-j*r)/2*10)/10-o,B=Math.round((l-N*r)/2*10)/10-o,z=Math.ceil((s-T*d)/2*10)/10-o;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(B,0),paddingBlockLG:Math.max(z,0),paddingInline:m-o,paddingInlineSM:p-o,paddingInlineLG:g-o,addonBg:h,activeBorderColor:b,hoverBorderColor:y,activeShadow:`0 0 0 ${S}px ${C}`,errorActiveShadow:`0 0 0 ${S}px ${$}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:R,activeBg:R,inputFontSize:j,inputFontSizeLG:T,inputFontSizeSM:N}},bP=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),af=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({},bP(Kt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qh=(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}}),Y1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),CP=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qh(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},af(e))}),Y1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Y1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),J1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),SP=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},J1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),J1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},af(e))}})}),xP=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},S2=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Z1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},S2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),wP=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},af(e))}),Z1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Z1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),eC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),$P=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},eC(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),eC(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:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),x2=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),tC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},x2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),EP=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},x2(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),tC(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),tC(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),RP=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),w2=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Uh=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Gh=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},RP(e.colorTextPlaceholder)),{"&-lg":Object.assign({},w2(e)),"&-sm":Object.assign({},Uh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),kP=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},w2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Uh(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},rd()),{[`${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},[`
276
+ & > ${t}-affix-wrapper,
277
+ & > ${t}-number-affix-wrapper,
278
+ & > ${n}-picker-range
279
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
280
+ & > ${n}-select-auto-complete ${t},
281
+ & > ${n}-cascader-picker ${t},
282
+ & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
283
+ & > ${n}-select:first-child > ${n}-select-selector,
284
+ & > ${n}-select-auto-complete:first-child ${t},
285
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
286
+ & > ${n}-select:last-child > ${n}-select-selector,
287
+ & > ${n}-cascader-picker:last-child ${t},
288
+ & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},_P=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,s=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),Gh(e)),CP(e)),wP(e)),xP(e)),EP(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},OP=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Z(e.inputAffixPadding)}`}}}},IP=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:s,iconCls:c}=e,d=`${t}-affix-wrapper`,m=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},Gh(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),OP(e)),{[`${c}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[`${t}-underlined`]:{borderRadius:0},[m]:{[`${c}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},TP=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Pn(e)),kP(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},SP(e)),$P(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}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},jP=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
289
+ > ${t},
290
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},NP=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},PP=dn(["Input","Shared"],e=>{const t=Kt(e,rf(e));return[_P(t),IP(t)]},of,{resetFont:!1});dn(["Input","Component"],e=>{const t=Kt(e,rf(e));return[TP(t),jP(t),NP(t),Wd(t)]},of,{resetFont:!1});var zP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},MP=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:zP}))},LP=u.forwardRef(MP);const lf=u.createContext(null);var BP=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,l=t.indicator,s=l===void 0?{}:l,c=s.size,d=s.align,m=d===void 0?"center":d,p=u.useState(),g=ie(p,2),h=g[0],y=g[1],b=u.useRef(),S=J.useCallback(function($){return typeof c=="function"?c($):typeof c=="number"?c:$},[c]);function C(){Cn.cancel(b.current)}return u.useEffect(function(){var $={};if(n)if(r){$.width=S(n.width);var w=o?"right":"left";m==="start"&&($[w]=n[w]),m==="center"&&($[w]=n[w]+n.width/2,$.transform=o?"translateX(50%)":"translateX(-50%)"),m==="end"&&($[w]=n[w]+n.width,$.transform="translateX(-100%)")}else $.height=S(n.height),m==="start"&&($.top=n.top),m==="center"&&($.top=n.top+n.height/2,$.transform="translateY(-50%)"),m==="end"&&($.top=n.top+n.height,$.transform="translateY(-100%)");return C(),b.current=Cn(function(){var R=h&&$&&Object.keys($).every(function(I){var _=$[I],O=h[I];return typeof _=="number"&&typeof O=="number"?Math.round(_)===Math.round(O):_===O});R||y($)}),C},[JSON.stringify(n),r,o,m,S]),{style:h}},nC={width:0,height:0,left:0,top:0};function AP(e,t,n){return u.useMemo(function(){for(var r,o=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||nC,s=l.left+l.width,c=0;c<e.length;c+=1){var d=e[c].key,m=t.get(d);if(!m){var p;m=t.get((p=e[c-1])===null||p===void 0?void 0:p.key)||nC}var g=o.get(d)||K({},m);g.right=s-g.left-g.width,o.set(d,g)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function rC(e,t){var n=u.useRef(e),r=u.useState({}),o=ie(r,2),l=o[1];function s(c){var d=typeof c=="function"?c(n.current):c;d!==n.current&&t(d,n.current),n.current=d,l({})}return[n.current,s]}var DP=.1,oC=.01,Ku=20,aC=Math.pow(.995,Ku);function FP(e,t){var n=u.useState(),r=ie(n,2),o=r[0],l=r[1],s=u.useState(0),c=ie(s,2),d=c[0],m=c[1],p=u.useState(0),g=ie(p,2),h=g[0],y=g[1],b=u.useState(),S=ie(b,2),C=S[0],$=S[1],w=u.useRef();function R(T){var P=T.touches[0],B=P.screenX,z=P.screenY;l({x:B,y:z}),window.clearInterval(w.current)}function I(T){if(o){var P=T.touches[0],B=P.screenX,z=P.screenY;l({x:B,y:z});var D=B-o.x,A=z-o.y;t(D,A);var W=Date.now();m(W),y(W-d),$({x:D,y:A})}}function _(){if(o&&(l(null),$(null),C)){var T=C.x/h,P=C.y/h,B=Math.abs(T),z=Math.abs(P);if(Math.max(B,z)<DP)return;var D=T,A=P;w.current=window.setInterval(function(){if(Math.abs(D)<oC&&Math.abs(A)<oC){window.clearInterval(w.current);return}D*=aC,A*=aC,t(D*Ku,A*Ku)},Ku)}}var O=u.useRef();function j(T){var P=T.deltaX,B=T.deltaY,z=0,D=Math.abs(P),A=Math.abs(B);D===A?z=O.current==="x"?P:B:D>A?(z=P,O.current="x"):(z=B,O.current="y"),t(-z,-z)&&T.preventDefault()}var N=u.useRef(null);N.current={onTouchStart:R,onTouchMove:I,onTouchEnd:_,onWheel:j},u.useEffect(function(){function T(D){N.current.onTouchStart(D)}function P(D){N.current.onTouchMove(D)}function B(D){N.current.onTouchEnd(D)}function z(D){N.current.onWheel(D)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",B,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",z,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",B)}},[])}function $2(e){var t=u.useState(0),n=ie(t,2),r=n[0],o=n[1],l=u.useRef(0),s=u.useRef();return s.current=e,Yp(function(){var c;(c=s.current)===null||c===void 0||c.call(s)},[r]),function(){l.current===r&&(l.current+=1,o(l.current))}}function HP(e){var t=u.useRef([]),n=u.useState({}),r=ie(n,2),o=r[1],l=u.useRef(typeof e=="function"?e():e),s=$2(function(){var d=l.current;t.current.forEach(function(m){d=m(d)}),t.current=[],l.current=d,o({})});function c(d){t.current.push(d),s()}return[l.current,c]}var iC={width:0,height:0,left:0,top:0,right:0};function VP(e,t,n,r,o,l,s){var c=s.tabs,d=s.tabPosition,m=s.rtl,p,g,h;return["top","bottom"].includes(d)?(p="width",g=m?"right":"left",h=Math.abs(n)):(p="height",g="top",h=-n),u.useMemo(function(){if(!c.length)return[0,0];for(var y=c.length,b=y,S=0;S<y;S+=1){var C=e.get(c[S].key)||iC;if(Math.floor(C[g]+C[p])>Math.floor(h+t)){b=S-1;break}}for(var $=0,w=y-1;w>=0;w-=1){var R=e.get(c[w].key)||iC;if(R[g]<h){$=w+1;break}}return $>b?[0,-1]:[$,b]},[e,t,r,o,l,h,d,c.map(function(y){return y.key}).join("_"),m])}function lC(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var WP="TABS_DQ";function E2(e){return String(e).replace(/"/g,WP)}function Kh(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var R2=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,l=e.style;return!r||r.showAdd===!1?null:u.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(c){r.onEdit("add",{event:c})}},r.addIcon||"+")}),sC=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var l,s={};return ht(o)==="object"&&!u.isValidElement(o)?s=o:s.right=o,n==="right"&&(l=s.right),n==="left"&&(l=s.left),l?u.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),qP=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,l=e.locale,s=e.mobile,c=e.more,d=c===void 0?{}:c,m=e.style,p=e.className,g=e.editable,h=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,S=e.onTabClick,C=e.getPopupContainer,$=e.popupClassName,w=u.useState(!1),R=ie(w,2),I=R[0],_=R[1],O=u.useState(null),j=ie(O,2),N=j[0],T=j[1],P=d.icon,B=P===void 0?"More":P,z="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),A=N!==null?"".concat(z,"-").concat(N):null,W=l==null?void 0:l.dropdownAriaLabel;function q(Q,ne){Q.preventDefault(),Q.stopPropagation(),g.onEdit("remove",{key:ne,event:Q})}var V=u.createElement(Vl,{onClick:function(ne){var te=ne.key,re=ne.domEvent;S(te,re),_(!1)},prefixCls:"".concat(D,"-menu"),id:z,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[N],"aria-label":W!==void 0?W:"expanded dropdown"},o.map(function(Q){var ne=Q.closable,te=Q.disabled,re=Q.closeIcon,fe=Q.key,me=Q.label,ue=Kh(ne,re,g,te);return u.createElement(vc,{key:fe,id:"".concat(z,"-").concat(fe),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(fe),disabled:te},u.createElement("span",null,me),ue&&u.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),q(le,fe)}},re||g.removeIcon||"×"))}));function F(Q){for(var ne=o.filter(function(ue){return!ue.disabled}),te=ne.findIndex(function(ue){return ue.key===N})||0,re=ne.length,fe=0;fe<re;fe+=1){te=(te+Q+re)%re;var me=ne[te];if(!me.disabled){T(me.key);return}}}function Y(Q){var ne=Q.which;if(!I){[qe.DOWN,qe.SPACE,qe.ENTER].includes(ne)&&(_(!0),Q.preventDefault());return}switch(ne){case qe.UP:F(-1),Q.preventDefault();break;case qe.DOWN:F(1),Q.preventDefault();break;case qe.ESC:_(!1);break;case qe.SPACE:case qe.ENTER:N!==null&&S(N,Q);break}}u.useEffect(function(){var Q=document.getElementById(A);Q&&Q.scrollIntoView&&Q.scrollIntoView(!1)},[N]),u.useEffect(function(){I||T(null)},[I]);var U=G({},y?"marginRight":"marginLeft",h);o.length||(U.visibility="hidden",U.order=1);var M=ee(G({},"".concat(D,"-rtl"),y)),H=s?null:u.createElement(t2,ke({prefixCls:D,overlay:V,visible:o.length?I:!1,onVisibleChange:_,overlayClassName:ee(M,$),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:C},d),u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:U,"aria-haspopup":"listbox","aria-controls":z,id:"".concat(r,"-more"),"aria-expanded":I,onKeyDown:Y},B));return u.createElement("div",{className:ee("".concat(n,"-nav-operations"),p),style:m,ref:t},H,u.createElement(R2,{prefixCls:n,locale:l,editable:g}))});const UP=u.memo(qP,function(e,t){return t.tabMoving});var GP=function(t){var n=t.prefixCls,r=t.id,o=t.active,l=t.focus,s=t.tab,c=s.key,d=s.label,m=s.disabled,p=s.closeIcon,g=s.icon,h=t.closable,y=t.renderWrapper,b=t.removeAriaLabel,S=t.editable,C=t.onClick,$=t.onFocus,w=t.onBlur,R=t.onKeyDown,I=t.onMouseDown,_=t.onMouseUp,O=t.style,j=t.tabCount,N=t.currentPosition,T="".concat(n,"-tab"),P=Kh(h,p,S,m);function B(q){m||C(q)}function z(q){q.preventDefault(),q.stopPropagation(),S.onEdit("remove",{key:c,event:q})}var D=u.useMemo(function(){return g&&typeof d=="string"?u.createElement("span",null,d):d},[d,g]),A=u.useRef(null);u.useEffect(function(){l&&A.current&&A.current.focus()},[l]);var W=u.createElement("div",{key:c,"data-node-key":E2(c),className:ee(T,G(G(G(G({},"".concat(T,"-with-remove"),P),"".concat(T,"-active"),o),"".concat(T,"-disabled"),m),"".concat(T,"-focus"),l)),style:O,onClick:B},u.createElement("div",{ref:A,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(c),className:"".concat(T,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(c),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(V){V.stopPropagation(),B(V)},onKeyDown:R,onMouseDown:I,onMouseUp:_,onFocus:$,onBlur:w},l&&u.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(N," of ").concat(j)),g&&u.createElement("span",{className:"".concat(T,"-icon")},g),d&&D),P&&u.createElement("button",{type:"button",role:"tab","aria-label":b||"remove",tabIndex:o?0:-1,className:"".concat(T,"-remove"),onClick:function(V){V.stopPropagation(),z(V)}},p||S.removeIcon||"×"));return y?y(W):W},KP=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,l=t.offsetTop,s=t.offsetLeft,c=t.getBoundingClientRect(),d=c.width,m=c.height,p=c.left,g=c.top;return Math.abs(d-r)<1?[d,m,p-n.left,g-n.top]:[r,o,s,l]},fl=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,l=n.offsetHeight,s=l===void 0?0:l;if(t.current){var c=t.current.getBoundingClientRect(),d=c.width,m=c.height;if(Math.abs(d-o)<1)return[d,m]}return[o,s]},_u=function(t,n){return t[n?0:1]},cC=u.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,l=e.animated,s=e.activeKey,c=e.rtl,d=e.extra,m=e.editable,p=e.locale,g=e.tabPosition,h=e.tabBarGutter,y=e.children,b=e.onTabClick,S=e.onTabScroll,C=e.indicator,$=u.useContext(lf),w=$.prefixCls,R=$.tabs,I=u.useRef(null),_=u.useRef(null),O=u.useRef(null),j=u.useRef(null),N=u.useRef(null),T=u.useRef(null),P=u.useRef(null),B=g==="top"||g==="bottom",z=rC(0,function(at,Ye){B&&S&&S({direction:at>Ye?"left":"right"})}),D=ie(z,2),A=D[0],W=D[1],q=rC(0,function(at,Ye){!B&&S&&S({direction:at>Ye?"top":"bottom"})}),V=ie(q,2),F=V[0],Y=V[1],U=u.useState([0,0]),M=ie(U,2),H=M[0],Q=M[1],ne=u.useState([0,0]),te=ie(ne,2),re=te[0],fe=te[1],me=u.useState([0,0]),ue=ie(me,2),Se=ue[0],le=ue[1],ce=u.useState([0,0]),ve=ie(ce,2),be=ve[0],de=ve[1],se=HP(new Map),ye=ie(se,2),xe=ye[0],_e=ye[1],Pe=AP(R,xe,re[0]),$e=_u(H,B),Ee=_u(re,B),ze=_u(Se,B),Ie=_u(be,B),Qe=Math.floor($e)<Math.floor(Ee+ze),ot=Qe?$e-Ie:$e-ze,xt="".concat(w,"-nav-operations-hidden"),dt=0,Xe=0;B&&c?(dt=0,Xe=Math.max(0,Ee-ot)):(dt=Math.min(0,ot-Ee),Xe=0);function ct(at){return at<dt?dt:at>Xe?Xe:at}var Ge=u.useRef(null),pt=u.useState(),Ze=ie(pt,2),Le=Ze[0],tt=Ze[1];function Ne(){tt(Date.now())}function Ve(){Ge.current&&clearTimeout(Ge.current)}FP(j,function(at,Ye){function $t(Vt,We){Vt(function(mt){var _t=ct(mt+We);return _t})}return Qe?(B?$t(W,at):$t(Y,Ye),Ve(),Ne(),!0):!1}),u.useEffect(function(){return Ve(),Le&&(Ge.current=setTimeout(function(){tt(0)},100)),Ve},[Le]);var kt=VP(Pe,ot,B?A:F,Ee,ze,Ie,K(K({},e),{},{tabs:R})),vt=ie(kt,2),Xt=vt[0],Ut=vt[1],fn=Dn(function(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Ye=Pe.get(at)||{width:0,height:0,left:0,right:0,top:0};if(B){var $t=A;c?Ye.right<A?$t=Ye.right:Ye.right+Ye.width>A+ot&&($t=Ye.right+Ye.width-ot):Ye.left<-A?$t=-Ye.left:Ye.left+Ye.width>-A+ot&&($t=-(Ye.left+Ye.width-ot)),Y(0),W(ct($t))}else{var Vt=F;Ye.top<-F?Vt=-Ye.top:Ye.top+Ye.height>-F+ot&&(Vt=-(Ye.top+Ye.height-ot)),W(0),Y(ct(Vt))}}),wn=u.useState(),Yt=ie(wn,2),Lt=Yt[0],wt=Yt[1],Jt=u.useState(!1),Wt=ie(Jt,2),nt=Wt[0],St=Wt[1],ut=R.filter(function(at){return!at.disabled}).map(function(at){return at.key}),Te=function(Ye){var $t=ut.indexOf(Lt||s),Vt=ut.length,We=($t+Ye+Vt)%Vt,mt=ut[We];wt(mt)},Re=function(Ye,$t){var Vt=ut.indexOf(Ye),We=R.find(function(_t){return _t.key===Ye}),mt=Kh(We==null?void 0:We.closable,We==null?void 0:We.closeIcon,m,We==null?void 0:We.disabled);mt&&($t.preventDefault(),$t.stopPropagation(),m.onEdit("remove",{key:Ye,event:$t}),Vt===ut.length-1?Te(-1):Te(1))},we=function(Ye,$t){St(!0),$t.button===1&&Re(Ye,$t)},Be=function(Ye){var $t=Ye.code,Vt=c&&B,We=ut[0],mt=ut[ut.length-1];switch($t){case"ArrowLeft":{B&&Te(Vt?1:-1);break}case"ArrowRight":{B&&Te(Vt?-1:1);break}case"ArrowUp":{Ye.preventDefault(),B||Te(-1);break}case"ArrowDown":{Ye.preventDefault(),B||Te(1);break}case"Home":{Ye.preventDefault(),wt(We);break}case"End":{Ye.preventDefault(),wt(mt);break}case"Enter":case"Space":{Ye.preventDefault(),b(Lt??s,Ye);break}case"Backspace":case"Delete":{Re(Lt,Ye);break}}},Je={};B?Je[c?"marginRight":"marginLeft"]=h:Je.marginTop=h;var et=R.map(function(at,Ye){var $t=at.key;return u.createElement(GP,{id:o,prefixCls:w,key:$t,tab:at,style:Ye===0?void 0:Je,closable:at.closable,editable:m,active:$t===s,focus:$t===Lt,renderWrapper:y,removeAriaLabel:p==null?void 0:p.removeAriaLabel,tabCount:ut.length,currentPosition:Ye+1,onClick:function(We){b($t,We)},onKeyDown:Be,onFocus:function(){nt||wt($t),fn($t),Ne(),j.current&&(c||(j.current.scrollLeft=0),j.current.scrollTop=0)},onBlur:function(){wt(void 0)},onMouseDown:function(We){return we($t,We)},onMouseUp:function(){St(!1)}})}),Bt=function(){return _e(function(){var Ye,$t=new Map,Vt=(Ye=N.current)===null||Ye===void 0?void 0:Ye.getBoundingClientRect();return R.forEach(function(We){var mt,_t=We.key,sn=(mt=N.current)===null||mt===void 0?void 0:mt.querySelector('[data-node-key="'.concat(E2(_t),'"]'));if(sn){var Vn=KP(sn,Vt),_n=ie(Vn,4),br=_n[0],er=_n[1],Cr=_n[2],tr=_n[3];$t.set(_t,{width:br,height:er,left:Cr,top:tr})}}),$t})};u.useEffect(function(){Bt()},[R.map(function(at){return at.key}).join("_")]);var Ht=$2(function(){var at=fl(I),Ye=fl(_),$t=fl(O);Q([at[0]-Ye[0]-$t[0],at[1]-Ye[1]-$t[1]]);var Vt=fl(P);le(Vt);var We=fl(T);de(We);var mt=fl(N);fe([mt[0]-Vt[0],mt[1]-Vt[1]]),Bt()}),jt=R.slice(0,Xt),zt=R.slice(Ut+1),Sn=[].concat(Fe(jt),Fe(zt)),vn=Pe.get(s),$n=BP({activeTabOffset:vn,horizontal:B,indicator:C,rtl:c}),Tn=$n.style;u.useEffect(function(){fn()},[s,dt,Xe,lC(vn),lC(Pe),B]),u.useEffect(function(){Ht()},[c]);var en=!!Sn.length,an="".concat(w,"-nav-wrap"),Ae,Ke,Et,ft;return B?c?(Ke=A>0,Ae=A!==Xe):(Ae=A<0,Ke=A!==dt):(Et=F<0,ft=F!==dt),u.createElement(xo,{onResize:Ht},u.createElement("div",{ref:ta(t,I),role:"tablist","aria-orientation":B?"horizontal":"vertical",className:ee("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Ne()}},u.createElement(sC,{ref:_,position:"left",extra:d,prefixCls:w}),u.createElement(xo,{onResize:Ht},u.createElement("div",{className:ee(an,G(G(G(G({},"".concat(an,"-ping-left"),Ae),"".concat(an,"-ping-right"),Ke),"".concat(an,"-ping-top"),Et),"".concat(an,"-ping-bottom"),ft)),ref:j},u.createElement(xo,{onResize:Ht},u.createElement("div",{ref:N,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(F,"px)"),transition:Le?"none":void 0}},et,u.createElement(R2,{ref:P,prefixCls:w,locale:p,editable:m,style:K(K({},et.length===0?void 0:Je),{},{visibility:en?"hidden":null})}),u.createElement("div",{className:ee("".concat(w,"-ink-bar"),G({},"".concat(w,"-ink-bar-animated"),l.inkBar)),style:Tn}))))),u.createElement(UP,ke({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:T,prefixCls:w,tabs:Sn,className:!en&&xt,tabMoving:!!Le})),u.createElement(sC,{ref:O,position:"right",extra:d,prefixCls:w})))}),k2=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,l=e.id,s=e.active,c=e.tabKey,d=e.children;return u.createElement("div",{id:l&&"".concat(l,"-panel-").concat(c),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(c),"aria-hidden":!s,style:o,className:ee(n,s&&"".concat(n,"-active"),r),ref:t},d)}),XP=["renderTabBar"],QP=["label","key"],YP=function(t){var n=t.renderTabBar,r=Pt(t,XP),o=u.useContext(lf),l=o.tabs;if(n){var s=K(K({},r),{},{panes:l.map(function(c){var d=c.label,m=c.key,p=Pt(c,QP);return u.createElement(k2,ke({tab:d,key:m,tabKey:m},p))})});return n(s,cC)}return u.createElement(cC,r)},JP=["key","forceRender","style","className","destroyInactiveTabPane"],ZP=function(t){var n=t.id,r=t.activeKey,o=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,c=u.useContext(lf),d=c.prefixCls,m=c.tabs,p=o.tabPane,g="".concat(d,"-tabpane");return u.createElement("div",{className:ee("".concat(d,"-content-holder"))},u.createElement("div",{className:ee("".concat(d,"-content"),"".concat(d,"-content-").concat(l),G({},"".concat(d,"-content-animated"),p))},m.map(function(h){var y=h.key,b=h.forceRender,S=h.style,C=h.className,$=h.destroyInactiveTabPane,w=Pt(h,JP),R=y===r;return u.createElement(lo,ke({key:y,visible:R,forceRender:b,removeOnLeave:!!(s||$),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(I,_){var O=I.style,j=I.className;return u.createElement(k2,ke({},w,{prefixCls:g,id:n,tabKey:y,animated:p,active:R,style:K(K({},S),O),className:ee(C,j),ref:_}))})})))};function ez(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=K({inkBar:!0},ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var tz=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],uC=0,nz=u.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,l=e.className,s=e.items,c=e.direction,d=e.activeKey,m=e.defaultActiveKey,p=e.editable,g=e.animated,h=e.tabPosition,y=h===void 0?"top":h,b=e.tabBarGutter,S=e.tabBarStyle,C=e.tabBarExtraContent,$=e.locale,w=e.more,R=e.destroyInactiveTabPane,I=e.renderTabBar,_=e.onChange,O=e.onTabClick,j=e.onTabScroll,N=e.getPopupContainer,T=e.popupClassName,P=e.indicator,B=Pt(e,tz),z=u.useMemo(function(){return(s||[]).filter(function(be){return be&&ht(be)==="object"&&"key"in be})},[s]),D=c==="rtl",A=ez(g),W=u.useState(!1),q=ie(W,2),V=q[0],F=q[1];u.useEffect(function(){F(_h())},[]);var Y=Fn(function(){var be;return(be=z[0])===null||be===void 0?void 0:be.key},{value:d,defaultValue:m}),U=ie(Y,2),M=U[0],H=U[1],Q=u.useState(function(){return z.findIndex(function(be){return be.key===M})}),ne=ie(Q,2),te=ne[0],re=ne[1];u.useEffect(function(){var be=z.findIndex(function(se){return se.key===M});if(be===-1){var de;be=Math.max(0,Math.min(te,z.length-1)),H((de=z[be])===null||de===void 0?void 0:de.key)}re(be)},[z.map(function(be){return be.key}).join("_"),M,te]);var fe=Fn(null,{value:n}),me=ie(fe,2),ue=me[0],Se=me[1];u.useEffect(function(){n||(Se("rc-tabs-".concat(uC)),uC+=1)},[]);function le(be,de){O==null||O(be,de);var se=be!==M;H(be),se&&(_==null||_(be))}var ce={id:ue,activeKey:M,animated:A,tabPosition:y,rtl:D,mobile:V},ve=K(K({},ce),{},{editable:p,locale:$,more:w,tabBarGutter:b,onTabClick:le,onTabScroll:j,extra:C,style:S,panes:null,getPopupContainer:N,popupClassName:T,indicator:P});return u.createElement(lf.Provider,{value:{tabs:z,prefixCls:o}},u.createElement("div",ke({ref:t,id:n,className:ee(o,"".concat(o,"-").concat(y),G(G(G({},"".concat(o,"-mobile"),V),"".concat(o,"-editable"),p),"".concat(o,"-rtl"),D),l)},B),u.createElement(YP,ke({},ve,{renderTabBar:I})),u.createElement(ZP,ke({destroyInactiveTabPane:R},ce,{animated:A}))))});const rz={motionAppear:!1,motionEnter:!0,motionLeave:!0};function oz(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},rz),{motionName:Jo(e,"switch")})),n}var az=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function iz(e){return e.filter(t=>t)}function lz(e,t){if(e)return e.map(r=>{var o;const l=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=Mr(t).map(r=>{if(u.isValidElement(r)){const{key:o,props:l}=r,s=l||{},{tab:c}=s,d=az(s,["tab"]);return Object.assign(Object.assign({key:String(o)},d),{label:c})}return null});return iz(n)}const sz=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Qa(e,"slide-up"),Qa(e,"slide-down")]]},cz=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:l,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Z(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Si(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Z(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},uz=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Pn(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Z(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Gs),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},dz=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:l,verticalItemMargin:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
291
+ right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
292
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Z(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},fz=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:l,horizontalItemPaddingSM:s,horizontalItemPaddingLG:c}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},mz=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:l,horizontalItemPadding:s,itemSelectedColor:c,itemColor:d}=e,m=`${t}-tab`;return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${m}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},$o(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:Si(e),[`&${m}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${m}-disabled ${m}-btn, &${m}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${m}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${m} + ${m}`]:{margin:{_skip_check_:!0,value:l}}}},pz=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Z(e.marginXS)},marginLeft:{_skip_check_:!0,value:Z(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},gz=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:l,itemActiveColor:s,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} ${c}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:s}},$o(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),mz(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},$o(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},hz=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:l}=e,s=t||l,c=n||o,d=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:s,cardHeightSM:c,cardHeightLG:d,cardPadding:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(d-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},vz=dn("Tabs",e=>{const t=Kt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[fz(t),pz(t),dz(t),uz(t),cz(t),gz(t),sz(t)]},hz),yz=()=>null;var bz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Cz=u.forwardRef((e,t)=>{var n,r,o,l,s,c,d,m,p,g,h;const{type:y,className:b,rootClassName:S,size:C,onEdit:$,hideAdd:w,centered:R,addIcon:I,removeIcon:_,moreIcon:O,more:j,popupClassName:N,children:T,items:P,animated:B,style:z,indicatorSize:D,indicator:A,destroyInactiveTabPane:W,destroyOnHidden:q}=e,V=bz(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=V,{direction:Y,tabs:U,getPrefixCls:M,getPopupContainer:H}=u.useContext(Rt),Q=M("tabs",F),ne=Fo(Q),[te,re,fe]=vz(Q,ne),me=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:me.current}));let ue;y==="editable-card"&&(ue={onEdit:(se,{key:ye,event:xe})=>{$==null||$(se==="add"?xe:ye,se)},removeIcon:(n=_??(U==null?void 0:U.removeIcon))!==null&&n!==void 0?n:u.createElement(Xa,null),addIcon:(I??(U==null?void 0:U.addIcon))||u.createElement(LP,null),showAdd:w!==!0});const Se=M(),le=ra(C),ce=lz(P,T),ve=oz(Q,B),be=Object.assign(Object.assign({},U==null?void 0:U.style),z),de={align:(r=A==null?void 0:A.align)!==null&&r!==void 0?r:(o=U==null?void 0:U.indicator)===null||o===void 0?void 0:o.align,size:(d=(s=(l=A==null?void 0:A.size)!==null&&l!==void 0?l:D)!==null&&s!==void 0?s:(c=U==null?void 0:U.indicator)===null||c===void 0?void 0:c.size)!==null&&d!==void 0?d:U==null?void 0:U.indicatorSize};return te(u.createElement(nz,Object.assign({ref:me,direction:Y,getPopupContainer:H},V,{items:ce,className:ee({[`${Q}-${le}`]:le,[`${Q}-card`]:["card","editable-card"].includes(y),[`${Q}-editable-card`]:y==="editable-card",[`${Q}-centered`]:R},U==null?void 0:U.className,b,S,re,fe,ne),popupClassName:ee(N,re,fe,ne),style:be,editable:ue,more:Object.assign({icon:(h=(g=(p=(m=U==null?void 0:U.more)===null||m===void 0?void 0:m.icon)!==null&&p!==void 0?p:U==null?void 0:U.moreIcon)!==null&&g!==void 0?g:O)!==null&&h!==void 0?h:u.createElement(Wh,null),transitionName:`${Se}-slide-up`},j),prefixCls:Q,animated:ve,indicator:de,destroyInactiveTabPane:q??W})))}),Xh=Cz;Xh.TabPane=yz;function Sz(e,t,n){var r=n||{},o=r.noTrailing,l=o===void 0?!1:o,s=r.noLeading,c=s===void 0?!1:s,d=r.debounceMode,m=d===void 0?void 0:d,p,g=!1,h=0;function y(){p&&clearTimeout(p)}function b(C){var $=C||{},w=$.upcomingOnly,R=w===void 0?!1:w;y(),g=!R}function S(){for(var C=arguments.length,$=new Array(C),w=0;w<C;w++)$[w]=arguments[w];var R=this,I=Date.now()-h;if(g)return;function _(){h=Date.now(),t.apply(R,$)}function O(){p=void 0}!c&&m&&!p&&_(),y(),m===void 0&&I>e?c?(h=Date.now(),l||(p=setTimeout(m?O:_,e))):_():l!==!0&&(p=setTimeout(m?O:_,m===void 0?e-I:e))}return S.cancel=b,S}function xz(e,t,n){var r={},o=r.atBegin,l=o===void 0?!1:o;return Sz(e,t,{debounceMode:l!==!1})}const wz=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Pn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Pn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Pn(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`]:Si(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Z(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:`${Z(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}})},{[`
293
+ ${n}:not(${n}-disabled),
294
+ ${t}:not(${t}-disabled)
295
+ `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-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}`}}},[`
296
+ ${n}-checked:not(${n}-disabled),
297
+ ${t}-checked:not(${t}-disabled)
298
+ `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&: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}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-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 $z(e,t){const n=Kt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return wz(n)}const _2=dn("Checkbox",(e,{prefixCls:t})=>[$z(t,e)]),O2=J.createContext(null);var Ez=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Rz=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:l,children:s,indeterminate:c=!1,style:d,onMouseEnter:m,onMouseLeave:p,skipGroup:g=!1,disabled:h}=e,y=Ez(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:S,checkbox:C}=u.useContext(Rt),$=u.useContext(O2),{isFormItemInput:w}=u.useContext(Xs),R=u.useContext(Ga),I=(n=($==null?void 0:$.disabled)||h)!==null&&n!==void 0?n:R,_=u.useRef(y.value),O=u.useRef(null),j=Eo(t,O);u.useEffect(()=>{$==null||$.registerValue(y.value)},[]),u.useEffect(()=>{if(!g)return y.value!==_.current&&($==null||$.cancelValue(_.current),$==null||$.registerValue(y.value),_.current=y.value),()=>$==null?void 0:$.cancelValue(y.value)},[y.value]),u.useEffect(()=>{var F;!((F=O.current)===null||F===void 0)&&F.input&&(O.current.input.indeterminate=c)},[c]);const N=b("checkbox",r),T=Fo(N),[P,B,z]=_2(N,T),D=Object.assign({},y);$&&!g&&(D.onChange=(...F)=>{y.onChange&&y.onChange.apply(y,F),$.toggleOption&&$.toggleOption({label:s,value:y.value})},D.name=$.name,D.checked=$.value.includes(y.value));const A=ee(`${N}-wrapper`,{[`${N}-rtl`]:S==="rtl",[`${N}-wrapper-checked`]:D.checked,[`${N}-wrapper-disabled`]:I,[`${N}-wrapper-in-form-item`]:w},C==null?void 0:C.className,o,l,z,T,B),W=ee({[`${N}-indeterminate`]:c},Ch,B),[q,V]=yP(D.onClick);return P(u.createElement(zd,{component:"Checkbox",disabled:I},u.createElement("label",{className:A,style:Object.assign(Object.assign({},C==null?void 0:C.style),d),onMouseEnter:m,onMouseLeave:p,onClick:q},u.createElement(vP,Object.assign({},D,{onClick:V,prefixCls:N,className:W,disabled:I,ref:j})),s!=null&&u.createElement("span",{className:`${N}-label`},s))))},I2=u.forwardRef(Rz);var kz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _z=u.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:l,className:s,rootClassName:c,style:d,onChange:m}=e,p=kz(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:g,direction:h}=u.useContext(Rt),[y,b]=u.useState(p.value||n||[]),[S,C]=u.useState([]);u.useEffect(()=>{"value"in p&&b(p.value||[])},[p.value]);const $=u.useMemo(()=>o.map(W=>typeof W=="string"||typeof W=="number"?{label:W,value:W}:W),[o]),w=W=>{C(q=>q.filter(V=>V!==W))},R=W=>{C(q=>[].concat(Fe(q),[W]))},I=W=>{const q=y.indexOf(W.value),V=Fe(y);q===-1?V.push(W.value):V.splice(q,1),"value"in p||b(V),m==null||m(V.filter(F=>S.includes(F)).sort((F,Y)=>{const U=$.findIndex(H=>H.value===F),M=$.findIndex(H=>H.value===Y);return U-M}))},_=g("checkbox",l),O=`${_}-group`,j=Fo(_),[N,T,P]=_2(_,j),B=Kn(p,["value","disabled"]),z=o.length?$.map(W=>u.createElement(I2,{prefixCls:_,key:W.value.toString(),disabled:"disabled"in W?W.disabled:p.disabled,value:W.value,checked:y.includes(W.value),onChange:W.onChange,className:ee(`${O}-item`,W.className),style:W.style,title:W.title,id:W.id,required:W.required},W.label)):r,D=u.useMemo(()=>({toggleOption:I,value:y,disabled:p.disabled,name:p.name,registerValue:R,cancelValue:w}),[I,y,p.disabled,p.name,R,w]),A=ee(O,{[`${O}-rtl`]:h==="rtl"},s,c,P,j,T);return N(u.createElement("div",Object.assign({className:A,style:d},B,{ref:t}),u.createElement(O2.Provider,{value:D},z)))}),Qh=I2;Qh.Group=_z;Qh.__ANT_CHECKBOX=!0;const T2=u.createContext({});var Oz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function dC(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Iz=["xs","sm","md","lg","xl","xxl"],Tz=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Rt),{gutter:o,wrap:l}=u.useContext(T2),{prefixCls:s,span:c,order:d,offset:m,push:p,pull:g,className:h,children:y,flex:b,style:S}=e,C=Oz(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",s),[w,R,I]=ET($),_={};let O={};Iz.forEach(T=>{let P={};const B=e[T];typeof B=="number"?P.span=B:typeof B=="object"&&(P=B||{}),delete C[T],O=Object.assign(Object.assign({},O),{[`${$}-${T}-${P.span}`]:P.span!==void 0,[`${$}-${T}-order-${P.order}`]:P.order||P.order===0,[`${$}-${T}-offset-${P.offset}`]:P.offset||P.offset===0,[`${$}-${T}-push-${P.push}`]:P.push||P.push===0,[`${$}-${T}-pull-${P.pull}`]:P.pull||P.pull===0,[`${$}-rtl`]:r==="rtl"}),P.flex&&(O[`${$}-${T}-flex`]=!0,_[`--${$}-${T}-flex`]=dC(P.flex))});const j=ee($,{[`${$}-${c}`]:c!==void 0,[`${$}-order-${d}`]:d,[`${$}-offset-${m}`]:m,[`${$}-push-${p}`]:p,[`${$}-pull-${g}`]:g},h,O,R,I),N={};if(o!=null&&o[0]){const T=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;N.paddingLeft=T,N.paddingRight=T}return b&&(N.flex=dC(b),l===!1&&!N.minWidth&&(N.minWidth=0)),w(u.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},N),S),_),className:j,ref:t}),y))});function jz(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((l,s)=>{if(typeof l=="object"&&l!==null)for(let c=0;c<xi.length;c++){const d=xi[c];if(o[d]&&l[d]!==void 0){n[s]=l[d];break}}else n[s]=l}),n}var Nz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fC(e,t){const[n,r]=u.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let l=0;l<xi.length;l++){const s=xi[l];if(!t||!t[s])continue;const c=e[s];if(c!==void 0){r(c);return}}};return u.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Pz=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:l,style:s,children:c,gutter:d=0,wrap:m}=e,p=Nz(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:h}=u.useContext(Rt),y=Nh(!0,null),b=fC(o,y),S=fC(r,y),C=g("row",n),[$,w,R]=$T(C),I=jz(d,y),_=ee(C,{[`${C}-no-wrap`]:m===!1,[`${C}-${S}`]:S,[`${C}-${b}`]:b,[`${C}-rtl`]:h==="rtl"},l,w,R),O={};if(I!=null&&I[0]){const P=typeof I[0]=="number"?`${I[0]/-2}px`:`calc(${I[0]} / -2)`;O.marginLeft=P,O.marginRight=P}const[j,N]=I;O.rowGap=N;const T=u.useMemo(()=>({gutter:[j,N],wrap:m}),[j,N,m]);return $(u.createElement(T2.Provider,{value:T},u.createElement("div",Object.assign({},p,{className:_,style:Object.assign(Object.assign({},O),s),ref:t}),c)))}),zz=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Mz=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},Pn(e)),{borderBlockStart:`${Z(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Z(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Z(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Z(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Z(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Z(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Z(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Lz=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Bz=dn("Divider",e=>{const t=Kt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Mz(t),zz(t)]},Lz,{unitless:{orientationMargin:!0}});var Az=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Dz={small:"sm",middle:"md"},mC=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=yr("divider"),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:m,rootClassName:p,children:g,dashed:h,variant:y="solid",plain:b,style:S,size:C}=e,$=Az(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",l),[R,I,_]=Bz(w),O=ra(C),j=Dz[O],N=!!g,T=u.useMemo(()=>c==="left"?n==="rtl"?"end":"start":c==="right"?n==="rtl"?"start":"end":c,[n,c]),P=T==="start"&&d!=null,B=T==="end"&&d!=null,z=ee(w,r,I,_,`${w}-${s}`,{[`${w}-with-text`]:N,[`${w}-with-text-${T}`]:N,[`${w}-dashed`]:!!h,[`${w}-${y}`]:y!=="solid",[`${w}-plain`]:!!b,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:P,[`${w}-no-default-orientation-margin-end`]:B,[`${w}-${j}`]:!!j},m,p),D=u.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),A={marginInlineStart:P?D:void 0,marginInlineEnd:B?D:void 0};return R(u.createElement("div",Object.assign({className:z,style:Object.assign(Object.assign({},o),S)},$,{role:"separator"}),g&&s!=="vertical"&&u.createElement("span",{className:`${w}-inner-text`,style:A},g)))};function Fz(e){return!!(e.addonBefore||e.addonAfter)}function Hz(e){return!!(e.prefix||e.suffix||e.allowClear)}function pC(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function gC(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=pC(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=pC(t,e,r),n(o);return}n(o)}}function Vz(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Wz=J.forwardRef(function(e,t){var n,r,o,l=e.inputElement,s=e.children,c=e.prefixCls,d=e.prefix,m=e.suffix,p=e.addonBefore,g=e.addonAfter,h=e.className,y=e.style,b=e.disabled,S=e.readOnly,C=e.focused,$=e.triggerFocus,w=e.allowClear,R=e.value,I=e.handleReset,_=e.hidden,O=e.classes,j=e.classNames,N=e.dataAttrs,T=e.styles,P=e.components,B=e.onClear,z=s??l,D=(P==null?void 0:P.affixWrapper)||"span",A=(P==null?void 0:P.groupWrapper)||"span",W=(P==null?void 0:P.wrapper)||"span",q=(P==null?void 0:P.groupAddon)||"span",V=u.useRef(null),F=function(de){var se;(se=V.current)!==null&&se!==void 0&&se.contains(de.target)&&($==null||$())},Y=Hz(e),U=u.cloneElement(z,{value:R,className:ee((n=z.props)===null||n===void 0?void 0:n.className,!Y&&(j==null?void 0:j.variant))||null}),M=u.useRef(null);if(J.useImperativeHandle(t,function(){return{nativeElement:M.current||V.current}}),Y){var H=null;if(w){var Q=!b&&!S&&R,ne="".concat(c,"-clear-icon"),te=ht(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";H=J.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){I==null||I(de),B==null||B()},onMouseDown:function(de){return de.preventDefault()},className:ee(ne,G(G({},"".concat(ne,"-hidden"),!Q),"".concat(ne,"-has-suffix"),!!m))},te)}var re="".concat(c,"-affix-wrapper"),fe=ee(re,G(G(G(G(G({},"".concat(c,"-disabled"),b),"".concat(re,"-disabled"),b),"".concat(re,"-focused"),C),"".concat(re,"-readonly"),S),"".concat(re,"-input-with-clear-btn"),m&&w&&R),O==null?void 0:O.affixWrapper,j==null?void 0:j.affixWrapper,j==null?void 0:j.variant),me=(m||w)&&J.createElement("span",{className:ee("".concat(c,"-suffix"),j==null?void 0:j.suffix),style:T==null?void 0:T.suffix},H,m);U=J.createElement(D,ke({className:fe,style:T==null?void 0:T.affixWrapper,onClick:F},N==null?void 0:N.affixWrapper,{ref:V}),d&&J.createElement("span",{className:ee("".concat(c,"-prefix"),j==null?void 0:j.prefix),style:T==null?void 0:T.prefix},d),U,me)}if(Fz(e)){var ue="".concat(c,"-group"),Se="".concat(ue,"-addon"),le="".concat(ue,"-wrapper"),ce=ee("".concat(c,"-wrapper"),ue,O==null?void 0:O.wrapper,j==null?void 0:j.wrapper),ve=ee(le,G({},"".concat(le,"-disabled"),b),O==null?void 0:O.group,j==null?void 0:j.groupWrapper);U=J.createElement(A,{className:ve,ref:M},J.createElement(W,{className:ce},p&&J.createElement(q,{className:Se},p),U,g&&J.createElement(q,{className:Se},g)))}return J.cloneElement(U,{className:ee((r=U.props)===null||r===void 0?void 0:r.className,h)||null,style:K(K({},(o=U.props)===null||o===void 0?void 0:o.style),y),hidden:_})}),qz=["show"];function Uz(e,t){return u.useMemo(function(){var n={};t&&(n.show=ht(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,o=r.show,l=Pt(r,qz);return K(K({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const Gz=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:J.createElement(Nd,null)}),t};var hC=u.createContext(null),j2=u.createContext({}),Kz=["prefixCls","className","containerRef"],Xz=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,l=Pt(t,Kz),s=u.useContext(j2),c=s.panel,d=ta(c,o);return u.createElement("div",ke({className:ee("".concat(n,"-content"),r),role:"dialog",ref:d},so(t,{aria:!0}),{"aria-modal":"true"},l))};function vC(e){return typeof e=="string"&&String(Number(e))===e?(fr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var yC={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Qz(e,t){var n,r,o,l=e.prefixCls,s=e.open,c=e.placement,d=e.inline,m=e.push,p=e.forceRender,g=e.autoFocus,h=e.keyboard,y=e.classNames,b=e.rootClassName,S=e.rootStyle,C=e.zIndex,$=e.className,w=e.id,R=e.style,I=e.motion,_=e.width,O=e.height,j=e.children,N=e.mask,T=e.maskClosable,P=e.maskMotion,B=e.maskClassName,z=e.maskStyle,D=e.afterOpenChange,A=e.onClose,W=e.onMouseEnter,q=e.onMouseOver,V=e.onMouseLeave,F=e.onClick,Y=e.onKeyDown,U=e.onKeyUp,M=e.styles,H=e.drawerRender,Q=u.useRef(),ne=u.useRef(),te=u.useRef();u.useImperativeHandle(t,function(){return Q.current});var re=function(Ee){var ze=Ee.keyCode,Ie=Ee.shiftKey;switch(ze){case qe.TAB:{if(ze===qe.TAB){if(!Ie&&document.activeElement===te.current){var Qe;(Qe=ne.current)===null||Qe===void 0||Qe.focus({preventScroll:!0})}else if(Ie&&document.activeElement===ne.current){var ot;(ot=te.current)===null||ot===void 0||ot.focus({preventScroll:!0})}}break}case qe.ESC:{A&&h&&(Ee.stopPropagation(),A(Ee));break}}};u.useEffect(function(){if(s&&g){var $e;($e=Q.current)===null||$e===void 0||$e.focus({preventScroll:!0})}},[s]);var fe=u.useState(!1),me=ie(fe,2),ue=me[0],Se=me[1],le=u.useContext(hC),ce;typeof m=="boolean"?ce=m?{}:{distance:0}:ce=m||{};var ve=(n=(r=(o=ce)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,be=u.useMemo(function(){return{pushDistance:ve,push:function(){Se(!0)},pull:function(){Se(!1)}}},[ve]);u.useEffect(function(){if(s){var $e;le==null||($e=le.push)===null||$e===void 0||$e.call(le)}else{var Ee;le==null||(Ee=le.pull)===null||Ee===void 0||Ee.call(le)}},[s]),u.useEffect(function(){return function(){var $e;le==null||($e=le.pull)===null||$e===void 0||$e.call(le)}},[]);var de=u.createElement(lo,ke({key:"mask"},P,{visible:N&&s}),function($e,Ee){var ze=$e.className,Ie=$e.style;return u.createElement("div",{className:ee("".concat(l,"-mask"),ze,y==null?void 0:y.mask,B),style:K(K(K({},Ie),z),M==null?void 0:M.mask),onClick:T&&s?A:void 0,ref:Ee})}),se=typeof I=="function"?I(c):I,ye={};if(ue&&ve)switch(c){case"top":ye.transform="translateY(".concat(ve,"px)");break;case"bottom":ye.transform="translateY(".concat(-ve,"px)");break;case"left":ye.transform="translateX(".concat(ve,"px)");break;default:ye.transform="translateX(".concat(-ve,"px)");break}c==="left"||c==="right"?ye.width=vC(_):ye.height=vC(O);var xe={onMouseEnter:W,onMouseOver:q,onMouseLeave:V,onClick:F,onKeyDown:Y,onKeyUp:U},_e=u.createElement(lo,ke({key:"panel"},se,{visible:s,forceRender:p,onVisibleChanged:function(Ee){D==null||D(Ee)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function($e,Ee){var ze=$e.className,Ie=$e.style,Qe=u.createElement(Xz,ke({id:w,containerRef:Ee,prefixCls:l,className:ee($,y==null?void 0:y.content),style:K(K({},R),M==null?void 0:M.content)},so(e,{aria:!0}),xe),j);return u.createElement("div",ke({className:ee("".concat(l,"-content-wrapper"),y==null?void 0:y.wrapper,ze),style:K(K(K({},ye),Ie),M==null?void 0:M.wrapper)},so(e,{data:!0})),H?H(Qe):Qe)}),Pe=K({},S);return C&&(Pe.zIndex=C),u.createElement(hC.Provider,{value:be},u.createElement("div",{className:ee(l,"".concat(l,"-").concat(c),b,G(G({},"".concat(l,"-open"),s),"".concat(l,"-inline"),d)),style:Pe,tabIndex:-1,ref:Q,onKeyDown:re},de,u.createElement("div",{tabIndex:0,ref:ne,style:yC,"aria-hidden":"true","data-sentinel":"start"}),_e,u.createElement("div",{tabIndex:0,ref:te,style:yC,"aria-hidden":"true","data-sentinel":"end"})))}var Yz=u.forwardRef(Qz),Jz=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,l=o===void 0?"rc-drawer":o,s=t.placement,c=s===void 0?"right":s,d=t.autoFocus,m=d===void 0?!0:d,p=t.keyboard,g=p===void 0?!0:p,h=t.width,y=h===void 0?378:h,b=t.mask,S=b===void 0?!0:b,C=t.maskClosable,$=C===void 0?!0:C,w=t.getContainer,R=t.forceRender,I=t.afterOpenChange,_=t.destroyOnClose,O=t.onMouseEnter,j=t.onMouseOver,N=t.onMouseLeave,T=t.onClick,P=t.onKeyDown,B=t.onKeyUp,z=t.panelRef,D=u.useState(!1),A=ie(D,2),W=A[0],q=A[1],V=u.useState(!1),F=ie(V,2),Y=F[0],U=F[1];on(function(){U(!0)},[]);var M=Y?r:!1,H=u.useRef(),Q=u.useRef();on(function(){M&&(Q.current=document.activeElement)},[M]);var ne=function(ue){var Se;if(q(ue),I==null||I(ue),!ue&&Q.current&&!((Se=H.current)!==null&&Se!==void 0&&Se.contains(Q.current))){var le;(le=Q.current)===null||le===void 0||le.focus({preventScroll:!0})}},te=u.useMemo(function(){return{panel:z}},[z]);if(!R&&!W&&!M&&_)return null;var re={onMouseEnter:O,onMouseOver:j,onMouseLeave:N,onClick:T,onKeyDown:P,onKeyUp:B},fe=K(K({},t),{},{open:M,prefixCls:l,placement:c,autoFocus:m,keyboard:g,width:y,mask:S,maskClosable:$,inline:w===!1,afterOpenChange:ne,ref:H},re);return u.createElement(j2.Provider,{value:te},u.createElement(qd,{open:M||R||W,autoDestroy:!1,getContainer:w,autoLock:S&&(M||W)},u.createElement(Yz,fe)))};const N2=e=>{var t,n;const{prefixCls:r,ariaId:o,title:l,footer:s,extra:c,closable:d,loading:m,onClose:p,headerStyle:g,bodyStyle:h,footerStyle:y,children:b,classNames:S,styles:C}=e,$=yr("drawer");let w;d===!1?w=void 0:d===void 0||d===!0?w="start":w=(d==null?void 0:d.placement)==="end"?"end":"start";const R=u.useCallback(N=>u.createElement("button",{type:"button",onClick:p,className:ee(`${r}-close`,{[`${r}-close-${w}`]:w==="end"})},N),[p,r,w]),[I,_]=gh(Pl(e),Pl($),{closable:!0,closeIconRender:R}),O=()=>{var N,T;return!l&&!I?null:u.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(N=$.styles)===null||N===void 0?void 0:N.header),g),C==null?void 0:C.header),className:ee(`${r}-header`,{[`${r}-header-close-only`]:I&&!l&&!c},(T=$.classNames)===null||T===void 0?void 0:T.header,S==null?void 0:S.header)},u.createElement("div",{className:`${r}-header-title`},w==="start"&&_,l&&u.createElement("div",{className:`${r}-title`,id:o},l)),c&&u.createElement("div",{className:`${r}-extra`},c),w==="end"&&_)},j=()=>{var N,T;if(!s)return null;const P=`${r}-footer`;return u.createElement("div",{className:ee(P,(N=$.classNames)===null||N===void 0?void 0:N.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(T=$.styles)===null||T===void 0?void 0:T.footer),y),C==null?void 0:C.footer)},s)};return u.createElement(u.Fragment,null,O(),u.createElement("div",{className:ee(`${r}-body`,S==null?void 0:S.body,(t=$.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=$.styles)===null||n===void 0?void 0:n.body),h),C==null?void 0:C.body)},m?u.createElement(ki,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):b),j())},Zz=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},P2=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),z2=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},P2({opacity:e},{opacity:1})),eM=(e,t)=>[z2(.7,t),P2({transform:Zz(e)},{transform:"none"})],tM=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:z2(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:eM(o,n)}),{})}}},nM=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:l,motionDurationSlow:s,motionDurationMid:c,paddingXS:d,padding:m,paddingLG:p,fontSizeLG:g,lineHeightLG:h,lineWidth:y,lineType:b,colorSplit:S,marginXS:C,colorIcon:$,colorIconHover:w,colorBgTextHover:R,colorBgTextActive:I,colorText:_,fontWeightStrong:O,footerPaddingBlock:j,footerPaddingInline:N,calc:T}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:_,"&-pure":{position:"relative",background:l,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:l,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Z(m)} ${Z(p)}`,fontSize:g,lineHeight:h,borderBottom:`${Z(y)} ${b} ${S}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:T(g).add(d).equal(),height:T(g).add(d).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:$,fontWeight:O,fontSize:g,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${c}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:C},[`&:not(${n}-close-end)`]:{marginInlineEnd:C},"&:hover":{color:w,backgroundColor:R,textDecoration:"none"},"&:active":{backgroundColor:I}},$o(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:g,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Z(j)} ${Z(N)}`,borderTop:`${Z(y)} ${b} ${S}`},"&-rtl":{direction:"rtl"}}}},rM=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),M2=dn("Drawer",e=>{const t=Kt(e,{});return[nM(t),tM(t)]},rM);var L2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oM={distance:180},Xu=e=>{const{rootClassName:t,width:n,height:r,size:o="default",mask:l=!0,push:s=oM,open:c,afterOpenChange:d,onClose:m,prefixCls:p,getContainer:g,panelRef:h=null,style:y,className:b,"aria-labelledby":S,visible:C,afterVisibleChange:$,maskStyle:w,drawerStyle:R,contentWrapperStyle:I,destroyOnClose:_,destroyOnHidden:O}=e,j=L2(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),N=Ud(),T=j.title?N:void 0,{getPopupContainer:P,getPrefixCls:B,direction:z,className:D,style:A,classNames:W,styles:q}=yr("drawer"),V=B("drawer",p),[F,Y,U]=M2(V),M=g===void 0&&P?()=>P(document.body):g,H=ee({"no-mask":!l,[`${V}-rtl`]:z==="rtl"},t,Y,U),Q=u.useMemo(()=>n??(o==="large"?736:378),[n,o]),ne=u.useMemo(()=>r??(o==="large"?736:378),[r,o]),te={motionName:Jo(V,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},re=ve=>({motionName:Jo(V,`panel-motion-${ve}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),fe=tw(),me=Eo(h,fe),[ue,Se]=Dl("Drawer",j.zIndex),{classNames:le={},styles:ce={}}=j;return F(u.createElement(pc,{form:!0,space:!0},u.createElement(lc.Provider,{value:Se},u.createElement(Jz,Object.assign({prefixCls:V,onClose:m,maskMotion:te,motion:re},j,{classNames:{mask:ee(le.mask,W.mask),content:ee(le.content,W.content),wrapper:ee(le.wrapper,W.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ce.mask),w),q.mask),content:Object.assign(Object.assign(Object.assign({},ce.content),R),q.content),wrapper:Object.assign(Object.assign(Object.assign({},ce.wrapper),I),q.wrapper)},open:c??C,mask:l,push:s,width:Q,height:ne,style:Object.assign(Object.assign({},A),y),className:ee(D,b),rootClassName:H,getContainer:M,afterOpenChange:d??$,panelRef:me,zIndex:ue,"aria-labelledby":S??T,destroyOnClose:O??_}),u.createElement(N2,Object.assign({prefixCls:V},j,{ariaId:T,onClose:m}))))))},aM=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,l=L2(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=u.useContext(Rt),c=s("drawer",t),[d,m,p]=M2(c),g=ee(c,`${c}-pure`,`${c}-${o}`,m,p,r);return d(u.createElement("div",{className:g,style:n},u.createElement(N2,Object.assign({prefixCls:c},l))))};Xu._InternalPanelDoNotUseOrYouWillBeFired=aM;function bC(e){return["small","middle","large"].includes(e)}function CC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const iM=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:l,fontSizeLG:s,fontSizeSM:c,borderRadiusLG:d,borderRadiusSM:m,colorBgContainerDisabled:p,lineWidth:g}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:p,borderWidth:g,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:s,borderRadius:d},"&-small":{paddingInline:l,borderRadius:m,fontSize:c},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Wd(e,{focus:!1})]}},lM=dn(["Space","Addon"],e=>[iM(e)]);var sM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cM=J.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:l}=e,s=sM(e,["className","children","style","prefixCls"]),{getPrefixCls:c,direction:d}=J.useContext(Rt),m=c("space-addon",l),[p,g,h]=lM(m),{compactItemClassnames:y,compactSize:b}=cc(m,d),S=ee(m,g,y,h,{[`${m}-${b}`]:b},n);return p(J.createElement("div",Object.assign({ref:t,className:S,style:o},s),r))}),B2=J.createContext({latestIndex:0}),uM=B2.Provider,dM=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:l}=u.useContext(B2);return n==null?null:u.createElement(u.Fragment,null,u.createElement("div",{className:e,style:o},n),t<l&&r&&u.createElement("span",{className:`${e}-split`},r))},fM=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},mM=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},pM=dn("Space",e=>{const t=Kt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[fM(t),mM(t)]},()=>({}),{resetStyle:!1});var gM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hM=u.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:c,classNames:d,styles:m}=yr("space"),{size:p=l??"small",align:g,className:h,rootClassName:y,children:b,direction:S="horizontal",prefixCls:C,split:$,style:w,wrap:R=!1,classNames:I,styles:_}=e,O=gM(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[j,N]=Array.isArray(p)?p:[p,p],T=bC(N),P=bC(j),B=CC(N),z=CC(j),D=Mr(b,{keepEmpty:!0}),A=g===void 0&&S==="horizontal"?"center":g,W=r("space",C),[q,V,F]=pM(W),Y=ee(W,s,V,`${W}-${S}`,{[`${W}-rtl`]:o==="rtl",[`${W}-align-${A}`]:A,[`${W}-gap-row-${N}`]:T,[`${W}-gap-col-${j}`]:P},h,y,F),U=ee(`${W}-item`,(n=I==null?void 0:I.item)!==null&&n!==void 0?n:d.item),M=Object.assign(Object.assign({},m.item),_==null?void 0:_.item),H=D.map((te,re)=>{const fe=(te==null?void 0:te.key)||`${U}-${re}`;return u.createElement(dM,{className:U,key:fe,index:re,split:$,style:M},te)}),Q=u.useMemo(()=>({latestIndex:D.reduce((re,fe,me)=>fe!=null?me:re,0)}),[D]);if(D.length===0)return null;const ne={};return R&&(ne.flexWrap="wrap"),!P&&z&&(ne.columnGap=j),!T&&B&&(ne.rowGap=N),q(u.createElement("div",Object.assign({ref:t,className:Y,style:Object.assign(Object.assign(Object.assign({},ne),c),w)},O),u.createElement(uM,{value:Q},H)))}),ha=hM;ha.Compact=n_;ha.Addon=cM;var vM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A2=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u.useContext(Rt),{prefixCls:o,type:l="default",danger:s,disabled:c,loading:d,onClick:m,htmlType:p,children:g,className:h,menu:y,arrow:b,autoFocus:S,overlay:C,trigger:$,align:w,open:R,onOpenChange:I,placement:_,getPopupContainer:O,href:j,icon:N=u.createElement(Wh,null),title:T,buttonsRender:P=le=>le,mouseEnterDelay:B,mouseLeaveDelay:z,overlayClassName:D,overlayStyle:A,destroyOnHidden:W,destroyPopupOnHide:q,dropdownRender:V,popupRender:F}=e,Y=vM(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),U=n("dropdown",o),M=`${U}-button`,Q={menu:y,arrow:b,autoFocus:S,align:w,disabled:c,trigger:c?[]:$,onOpenChange:I,getPopupContainer:O||t,mouseEnterDelay:B,mouseLeaveDelay:z,overlayClassName:D,overlayStyle:A,destroyOnHidden:W,popupRender:F||V},{compactSize:ne,compactItemClassnames:te}=cc(U,r),re=ee(M,te,h);"destroyPopupOnHide"in e&&(Q.destroyPopupOnHide=q),"overlay"in e&&(Q.overlay=C),"open"in e&&(Q.open=R),"placement"in e?Q.placement=_:Q.placement=r==="rtl"?"bottomLeft":"bottomRight";const fe=u.createElement(Yn,{type:l,danger:s,disabled:c,loading:d,onClick:m,htmlType:p,href:j,title:T},g),me=u.createElement(Yn,{type:l,danger:s,icon:N}),[ue,Se]=P([fe,me]);return u.createElement(ha.Compact,Object.assign({className:re,size:ne,block:!0},Y),ue,u.createElement(nf,Object.assign({},Q),Se))};A2.__ANT_BUTTON=!0;const Gg=nf;Gg.Button=A2;var yM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},bM=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:yM}))},Ls=u.forwardRef(bM),CM=`
299
+ min-height:0 !important;
300
+ max-height:none !important;
301
+ height:0 !important;
302
+ visibility:hidden !important;
303
+ overflow:hidden !important;
304
+ position:absolute !important;
305
+ z-index:-1000 !important;
306
+ top:0 !important;
307
+ right:0 !important;
308
+ pointer-events: none !important;
309
+ `,SM=["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"],Ep={},ro;function xM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ep[n])return Ep[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=SM.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),d={sizingStyle:c,paddingSize:l,borderSize:s,boxSizing:o};return t&&n&&(Ep[n]=d),d}function wM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ro||(ro=document.createElement("textarea"),ro.setAttribute("tab-index","-1"),ro.setAttribute("aria-hidden","true"),ro.setAttribute("name","hiddenTextarea"),document.body.appendChild(ro)),e.getAttribute("wrap")?ro.setAttribute("wrap",e.getAttribute("wrap")):ro.removeAttribute("wrap");var o=xM(e,t),l=o.paddingSize,s=o.borderSize,c=o.boxSizing,d=o.sizingStyle;ro.setAttribute("style","".concat(d,";").concat(CM)),ro.value=e.value||e.placeholder||"";var m=void 0,p=void 0,g,h=ro.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=l),n!==null||r!==null){ro.value=" ";var y=ro.scrollHeight-l;n!==null&&(m=y*n,c==="border-box"&&(m=m+l+s),h=Math.max(m,h)),r!==null&&(p=y*r,c==="border-box"&&(p=p+l+s),g=h>p?"":"hidden",h=Math.min(p,h))}var b={height:h,overflowY:g,resize:"none"};return m&&(b.minHeight=m),p&&(b.maxHeight=p),b}var $M=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rp=0,kp=1,_p=2,EM=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,s=n.autoSize,c=n.onResize,d=n.className,m=n.style,p=n.disabled,g=n.onChange;n.onInternalAutoSize;var h=Pt(n,$M),y=Fn(o,{value:l,postState:function(Q){return Q??""}}),b=ie(y,2),S=b[0],C=b[1],$=function(Q){C(Q.target.value),g==null||g(Q)},w=u.useRef();u.useImperativeHandle(t,function(){return{textArea:w.current}});var R=u.useMemo(function(){return s&&ht(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),I=ie(R,2),_=I[0],O=I[1],j=!!s,N=u.useState(_p),T=ie(N,2),P=T[0],B=T[1],z=u.useState(),D=ie(z,2),A=D[0],W=D[1],q=function(){B(Rp)};on(function(){j&&q()},[l,_,O,j]),on(function(){if(P===Rp)B(kp);else if(P===kp){var H=wM(w.current,!1,_,O);B(_p),W(H)}},[P]);var V=u.useRef(),F=function(){Cn.cancel(V.current)},Y=function(Q){P===_p&&(c==null||c(Q),s&&(F(),V.current=Cn(function(){q()})))};u.useEffect(function(){return F},[]);var U=j?A:null,M=K(K({},m),U);return(P===Rp||P===kp)&&(M.overflowY="hidden",M.overflowX="hidden"),u.createElement(xo,{onResize:Y,disabled:!(s||c)},u.createElement("textarea",ke({},h,{ref:w,style:M,className:ee(r,d,G({},"".concat(r,"-disabled"),p)),disabled:p,value:S,onChange:$})))}),RM=["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"],kM=J.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,s=e.onBlur,c=e.onChange,d=e.allowClear,m=e.maxLength,p=e.onCompositionStart,g=e.onCompositionEnd,h=e.suffix,y=e.prefixCls,b=y===void 0?"rc-textarea":y,S=e.showCount,C=e.count,$=e.className,w=e.style,R=e.disabled,I=e.hidden,_=e.classNames,O=e.styles,j=e.onResize,N=e.onClear,T=e.onPressEnter,P=e.readOnly,B=e.autoSize,z=e.onKeyDown,D=Pt(e,RM),A=Fn(r,{value:o,defaultValue:r}),W=ie(A,2),q=W[0],V=W[1],F=q==null?"":String(q),Y=J.useState(!1),U=ie(Y,2),M=U[0],H=U[1],Q=J.useRef(!1),ne=J.useState(null),te=ie(ne,2),re=te[0],fe=te[1],me=u.useRef(null),ue=u.useRef(null),Se=function(){var Le;return(Le=ue.current)===null||Le===void 0?void 0:Le.textArea},le=function(){Se().focus()};u.useImperativeHandle(t,function(){var Ze;return{resizableTextArea:ue.current,focus:le,blur:function(){Se().blur()},nativeElement:((Ze=me.current)===null||Ze===void 0?void 0:Ze.nativeElement)||Se()}}),u.useEffect(function(){H(function(Ze){return!R&&Ze})},[R]);var ce=J.useState(null),ve=ie(ce,2),be=ve[0],de=ve[1];J.useEffect(function(){if(be){var Ze;(Ze=Se()).setSelectionRange.apply(Ze,Fe(be))}},[be]);var se=Uz(C,S),ye=(n=se.max)!==null&&n!==void 0?n:m,xe=Number(ye)>0,_e=se.strategy(F),Pe=!!ye&&_e>ye,$e=function(Le,tt){var Ne=tt;!Q.current&&se.exceedFormatter&&se.max&&se.strategy(tt)>se.max&&(Ne=se.exceedFormatter(tt,{max:se.max}),tt!==Ne&&de([Se().selectionStart||0,Se().selectionEnd||0])),V(Ne),gC(Le.currentTarget,Le,c,Ne)},Ee=function(Le){Q.current=!0,p==null||p(Le)},ze=function(Le){Q.current=!1,$e(Le,Le.currentTarget.value),g==null||g(Le)},Ie=function(Le){$e(Le,Le.target.value)},Qe=function(Le){Le.key==="Enter"&&T&&T(Le),z==null||z(Le)},ot=function(Le){H(!0),l==null||l(Le)},xt=function(Le){H(!1),s==null||s(Le)},dt=function(Le){V(""),le(),gC(Se(),Le,c)},Xe=h,ct;se.show&&(se.showFormatter?ct=se.showFormatter({value:F,count:_e,maxLength:ye}):ct="".concat(_e).concat(xe?" / ".concat(ye):""),Xe=J.createElement(J.Fragment,null,Xe,J.createElement("span",{className:ee("".concat(b,"-data-count"),_==null?void 0:_.count),style:O==null?void 0:O.count},ct)));var Ge=function(Le){var tt;j==null||j(Le),(tt=Se())!==null&&tt!==void 0&&tt.style.height&&fe(!0)},pt=!B&&!S&&!d;return J.createElement(Wz,{ref:me,value:F,allowClear:d,handleReset:dt,suffix:Xe,prefixCls:b,classNames:K(K({},_),{},{affixWrapper:ee(_==null?void 0:_.affixWrapper,G(G({},"".concat(b,"-show-count"),S),"".concat(b,"-textarea-allow-clear"),d))}),disabled:R,focused:M,className:ee($,Pe&&"".concat(b,"-out-of-range")),style:K(K({},w),re&&!pt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ct=="string"?ct:void 0}},hidden:I,readOnly:P,onClear:N},J.createElement(EM,ke({},D,{autoSize:B,maxLength:m,onKeyDown:Qe,onChange:Ie,onFocus:ot,onBlur:xt,onCompositionStart:Ee,onCompositionEnd:ze,className:ee(_==null?void 0:_.textarea),style:K(K({},O==null?void 0:O.textarea),{},{resize:w==null?void 0:w.resize}),disabled:R,prefixCls:b,onResize:Ge,ref:ue,readOnly:P})))});const _M=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${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"}},[`
310
+ &-allow-clear > ${t},
311
+ &-affix-wrapper${r}-has-feedback ${t}
312
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},OM=dn(["Input","TextArea"],e=>{const t=Kt(e,rf(e));return _M(t)},of,{resetFont:!1});var IM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TM=u.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:s,status:c,allowClear:d,classNames:m,rootClassName:p,className:g,style:h,styles:y,variant:b,showCount:S,onMouseDown:C,onResize:$}=e,w=IM(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:R,direction:I,allowClear:_,autoComplete:O,className:j,style:N,classNames:T,styles:P}=yr("textArea"),B=u.useContext(Ga),z=s??B,{status:D,hasFeedback:A,feedbackIcon:W}=u.useContext(Xs),q=Pw(D,c),V=u.useRef(null);u.useImperativeHandle(t,()=>{var se;return{resizableTextArea:(se=V.current)===null||se===void 0?void 0:se.resizableTextArea,focus:ye=>{var xe,_e;Vz((_e=(xe=V.current)===null||xe===void 0?void 0:xe.resizableTextArea)===null||_e===void 0?void 0:_e.textArea,ye)},blur:()=>{var ye;return(ye=V.current)===null||ye===void 0?void 0:ye.blur()}}});const F=R("input",r),Y=Fo(F),[U,M,H]=PP(F,p),[Q]=OM(F,Y),{compactSize:ne,compactItemClassnames:te}=cc(F,I),re=ra(se=>{var ye;return(ye=l??ne)!==null&&ye!==void 0?ye:se}),[fe,me]=Bw("textArea",b,o),ue=Gz(d??_),[Se,le]=u.useState(!1),[ce,ve]=u.useState(!1),be=se=>{le(!0),C==null||C(se);const ye=()=>{le(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},de=se=>{var ye,xe;if($==null||$(se),Se&&typeof getComputedStyle=="function"){const _e=(xe=(ye=V.current)===null||ye===void 0?void 0:ye.nativeElement)===null||xe===void 0?void 0:xe.querySelector("textarea");_e&&getComputedStyle(_e).resize==="both"&&ve(!0)}};return U(Q(u.createElement(kM,Object.assign({autoComplete:O},w,{style:Object.assign(Object.assign({},N),h),styles:Object.assign(Object.assign({},P),y),disabled:z,allowClear:ue,className:ee(H,Y,g,p,te,j,ce&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),T),{textarea:ee({[`${F}-sm`]:re==="small",[`${F}-lg`]:re==="large"},M,m==null?void 0:m.textarea,T.textarea,Se&&`${F}-mouse-active`),variant:ee({[`${F}-${fe}`]:me},Nw(F,q)),affixWrapper:ee(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:I==="rtl",[`${F}-affix-wrapper-sm`]:re==="small",[`${F}-affix-wrapper-lg`]:re==="large",[`${F}-textarea-show-count`]:S||((n=e.count)===null||n===void 0?void 0:n.show)},M)}),prefixCls:F,suffix:A&&u.createElement("span",{className:`${F}-textarea-suffix`},W),showCount:S,ref:V,onResize:de,onMouseDown:be}))))});function jM(e,t,n){return typeof n=="boolean"?n:e.length?!0:Mr(t).some(o=>o.type===v2)}var D2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function sf({suffixCls:e,tagName:t,displayName:n}){return r=>u.forwardRef((l,s)=>u.createElement(r,Object.assign({ref:s,suffixCls:e,tagName:t},l)))}const Yh=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:l}=e,s=D2(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=u.useContext(Rt),d=c("layout",n),[m,p,g]=h2(d),h=r?`${d}-${r}`:d;return m(u.createElement(l,Object.assign({className:ee(n||h,o,p,g),ref:t},s)))}),NM=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(Rt),[r,o]=u.useState([]),{prefixCls:l,className:s,rootClassName:c,children:d,hasSider:m,tagName:p,style:g}=e,h=D2(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Kn(h,["suffixCls"]),{getPrefixCls:b,className:S,style:C}=yr("layout"),$=b("layout",l),w=jM(r,d,m),[R,I,_]=h2($),O=ee($,{[`${$}-has-sider`]:w,[`${$}-rtl`]:n==="rtl"},S,s,c,I,_),j=u.useMemo(()=>({siderHook:{addSider:N=>{o(T=>[].concat(Fe(T),[N]))},removeSider:N=>{o(T=>T.filter(P=>P!==N))}}}),[]);return R(u.createElement(m2.Provider,{value:j},u.createElement(p,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},C),g)},y),d)))}),PM=sf({tagName:"div",displayName:"Layout"})(NM),zM=sf({suffixCls:"header",tagName:"header",displayName:"Header"})(Yh),MM=sf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Yh),LM=sf({suffixCls:"content",tagName:"main",displayName:"Content"})(Yh),Wa=PM;Wa.Header=zM;Wa.Footer=MM;Wa.Content=LM;Wa.Sider=v2;Wa._InternalSiderContext=tf;var BM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},AM=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:BM}))},SC=u.forwardRef(AM),DM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},FM=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:DM}))},xC=u.forwardRef(FM),HM={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},VM=[10,20,50,100],WM=function(t){var n=t.pageSizeOptions,r=n===void 0?VM:n,o=t.locale,l=t.changeSize,s=t.pageSize,c=t.goButton,d=t.quickGo,m=t.rootPrefixCls,p=t.disabled,g=t.buildOptionText,h=t.showSizeChanger,y=t.sizeChangerRender,b=J.useState(""),S=ie(b,2),C=S[0],$=S[1],w=function(){return!C||Number.isNaN(C)?void 0:Number(C)},R=typeof g=="function"?g:function(z){return"".concat(z," ").concat(o.items_per_page)},I=function(D){$(D.target.value)},_=function(D){c||C===""||($(""),!(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||D.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(d==null||d(w())))},O=function(D){C!==""&&(D.keyCode===qe.ENTER||D.type==="click")&&($(""),d==null||d(w()))},j=function(){return r.some(function(D){return D.toString()===s.toString()})?r:r.concat([s]).sort(function(D,A){var W=Number.isNaN(Number(D))?0:Number(D),q=Number.isNaN(Number(A))?0:Number(A);return W-q})},N="".concat(m,"-options");if(!h&&!d)return null;var T=null,P=null,B=null;return h&&y&&(T=y({disabled:p,size:s,onSizeChange:function(D){l==null||l(Number(D))},"aria-label":o.page_size,className:"".concat(N,"-size-changer"),options:j().map(function(z){return{label:R(z),value:z}})})),d&&(c&&(B=typeof c=="boolean"?J.createElement("button",{type:"button",onClick:O,onKeyUp:O,disabled:p,className:"".concat(N,"-quick-jumper-button")},o.jump_to_confirm):J.createElement("span",{onClick:O,onKeyUp:O},c)),P=J.createElement("div",{className:"".concat(N,"-quick-jumper")},o.jump_to,J.createElement("input",{disabled:p,type:"text",value:C,onChange:I,onKeyUp:O,onBlur:_,"aria-label":o.page}),o.page,B)),J.createElement("li",{className:N},T,P)},ws=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,l=t.className,s=t.showTitle,c=t.onClick,d=t.onKeyPress,m=t.itemRender,p="".concat(n,"-item"),g=ee(p,"".concat(p,"-").concat(r),G(G({},"".concat(p,"-active"),o),"".concat(p,"-disabled"),!r),l),h=function(){c(r)},y=function(C){d(C,c,r)},b=m(r,"page",J.createElement("a",{rel:"nofollow"},r));return b?J.createElement("li",{title:s?String(r):null,className:g,onClick:h,onKeyDown:y,tabIndex:0},b):null},qM=function(t,n,r){return r};function wC(){}function $C(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function di(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var UM=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,l=o===void 0?"rc-select":o,s=t.className,c=t.current,d=t.defaultCurrent,m=d===void 0?1:d,p=t.total,g=p===void 0?0:p,h=t.pageSize,y=t.defaultPageSize,b=y===void 0?10:y,S=t.onChange,C=S===void 0?wC:S,$=t.hideOnSinglePage,w=t.align,R=t.showPrevNextJumpers,I=R===void 0?!0:R,_=t.showQuickJumper,O=t.showLessItems,j=t.showTitle,N=j===void 0?!0:j,T=t.onShowSizeChange,P=T===void 0?wC:T,B=t.locale,z=B===void 0?HM:B,D=t.style,A=t.totalBoundaryShowSizeChanger,W=A===void 0?50:A,q=t.disabled,V=t.simple,F=t.showTotal,Y=t.showSizeChanger,U=Y===void 0?g>W:Y,M=t.sizeChangerRender,H=t.pageSizeOptions,Q=t.itemRender,ne=Q===void 0?qM:Q,te=t.jumpPrevIcon,re=t.jumpNextIcon,fe=t.prevIcon,me=t.nextIcon,ue=J.useRef(null),Se=Fn(10,{value:h,defaultValue:b}),le=ie(Se,2),ce=le[0],ve=le[1],be=Fn(1,{value:c,defaultValue:m,postState:function(mt){return Math.max(1,Math.min(mt,di(void 0,ce,g)))}}),de=ie(be,2),se=de[0],ye=de[1],xe=J.useState(se),_e=ie(xe,2),Pe=_e[0],$e=_e[1];u.useEffect(function(){$e(se)},[se]);var Ee=Math.max(1,se-(O?3:5)),ze=Math.min(di(void 0,ce,g),se+(O?3:5));function Ie(We,mt){var _t=We||J.createElement("button",{type:"button","aria-label":mt,className:"".concat(r,"-item-link")});return typeof We=="function"&&(_t=J.createElement(We,K({},t))),_t}function Qe(We){var mt=We.target.value,_t=di(void 0,ce,g),sn;return mt===""?sn=mt:Number.isNaN(Number(mt))?sn=Pe:mt>=_t?sn=_t:sn=Number(mt),sn}function ot(We){return $C(We)&&We!==se&&$C(g)&&g>0}var xt=g>ce?_:!1;function dt(We){(We.keyCode===qe.UP||We.keyCode===qe.DOWN)&&We.preventDefault()}function Xe(We){var mt=Qe(We);switch(mt!==Pe&&$e(mt),We.keyCode){case qe.ENTER:pt(mt);break;case qe.UP:pt(mt-1);break;case qe.DOWN:pt(mt+1);break}}function ct(We){pt(Qe(We))}function Ge(We){var mt=di(We,ce,g),_t=se>mt&&mt!==0?mt:se;ve(We),$e(_t),P==null||P(se,We),ye(_t),C==null||C(_t,We)}function pt(We){if(ot(We)&&!q){var mt=di(void 0,ce,g),_t=We;return We>mt?_t=mt:We<1&&(_t=1),_t!==Pe&&$e(_t),ye(_t),C==null||C(_t,ce),_t}return se}var Ze=se>1,Le=se<di(void 0,ce,g);function tt(){Ze&&pt(se-1)}function Ne(){Le&&pt(se+1)}function Ve(){pt(Ee)}function kt(){pt(ze)}function vt(We,mt){if(We.key==="Enter"||We.charCode===qe.ENTER||We.keyCode===qe.ENTER){for(var _t=arguments.length,sn=new Array(_t>2?_t-2:0),Vn=2;Vn<_t;Vn++)sn[Vn-2]=arguments[Vn];mt.apply(void 0,sn)}}function Xt(We){vt(We,tt)}function Ut(We){vt(We,Ne)}function fn(We){vt(We,Ve)}function wn(We){vt(We,kt)}function Yt(We){var mt=ne(We,"prev",Ie(fe,"prev page"));return J.isValidElement(mt)?J.cloneElement(mt,{disabled:!Ze}):mt}function Lt(We){var mt=ne(We,"next",Ie(me,"next page"));return J.isValidElement(mt)?J.cloneElement(mt,{disabled:!Le}):mt}function wt(We){(We.type==="click"||We.keyCode===qe.ENTER)&&pt(Pe)}var Jt=null,Wt=so(t,{aria:!0,data:!0}),nt=F&&J.createElement("li",{className:"".concat(r,"-total-text")},F(g,[g===0?0:(se-1)*ce+1,se*ce>g?g:se*ce])),St=null,ut=di(void 0,ce,g);if($&&g<=ce)return null;var Te=[],Re={rootPrefixCls:r,onClick:pt,onKeyPress:vt,showTitle:N,itemRender:ne,page:-1},we=se-1>0?se-1:0,Be=se+1<ut?se+1:ut,Je=_&&_.goButton,et=ht(V)==="object"?V.readOnly:!V,Bt=Je,Ht=null;V&&(Je&&(typeof Je=="boolean"?Bt=J.createElement("button",{type:"button",onClick:wt,onKeyUp:wt},z.jump_to_confirm):Bt=J.createElement("span",{onClick:wt,onKeyUp:wt},Je),Bt=J.createElement("li",{title:N?"".concat(z.jump_to).concat(se,"/").concat(ut):null,className:"".concat(r,"-simple-pager")},Bt)),Ht=J.createElement("li",{title:N?"".concat(se,"/").concat(ut):null,className:"".concat(r,"-simple-pager")},et?Pe:J.createElement("input",{type:"text","aria-label":z.jump_to,value:Pe,disabled:q,onKeyDown:dt,onKeyUp:Xe,onChange:Xe,onBlur:ct,size:3}),J.createElement("span",{className:"".concat(r,"-slash")},"/"),ut));var jt=O?1:2;if(ut<=3+jt*2){ut||Te.push(J.createElement(ws,ke({},Re,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var zt=1;zt<=ut;zt+=1)Te.push(J.createElement(ws,ke({},Re,{key:zt,page:zt,active:se===zt})))}else{var Sn=O?z.prev_3:z.prev_5,vn=O?z.next_3:z.next_5,$n=ne(Ee,"jump-prev",Ie(te,"prev page")),Tn=ne(ze,"jump-next",Ie(re,"next page"));I&&(Jt=$n?J.createElement("li",{title:N?Sn:null,key:"prev",onClick:Ve,tabIndex:0,onKeyDown:fn,className:ee("".concat(r,"-jump-prev"),G({},"".concat(r,"-jump-prev-custom-icon"),!!te))},$n):null,St=Tn?J.createElement("li",{title:N?vn:null,key:"next",onClick:kt,tabIndex:0,onKeyDown:wn,className:ee("".concat(r,"-jump-next"),G({},"".concat(r,"-jump-next-custom-icon"),!!re))},Tn):null);var en=Math.max(1,se-jt),an=Math.min(se+jt,ut);se-1<=jt&&(an=1+jt*2),ut-se<=jt&&(en=ut-jt*2);for(var Ae=en;Ae<=an;Ae+=1)Te.push(J.createElement(ws,ke({},Re,{key:Ae,page:Ae,active:se===Ae})));if(se-1>=jt*2&&se!==3&&(Te[0]=J.cloneElement(Te[0],{className:ee("".concat(r,"-item-after-jump-prev"),Te[0].props.className)}),Te.unshift(Jt)),ut-se>=jt*2&&se!==ut-2){var Ke=Te[Te.length-1];Te[Te.length-1]=J.cloneElement(Ke,{className:ee("".concat(r,"-item-before-jump-next"),Ke.props.className)}),Te.push(St)}en!==1&&Te.unshift(J.createElement(ws,ke({},Re,{key:1,page:1}))),an!==ut&&Te.push(J.createElement(ws,ke({},Re,{key:ut,page:ut})))}var Et=Yt(we);if(Et){var ft=!Ze||!ut;Et=J.createElement("li",{title:N?z.prev_page:null,onClick:tt,tabIndex:ft?null:0,onKeyDown:Xt,className:ee("".concat(r,"-prev"),G({},"".concat(r,"-disabled"),ft)),"aria-disabled":ft},Et)}var at=Lt(Be);if(at){var Ye,$t;V?(Ye=!Le,$t=Ze?0:null):(Ye=!Le||!ut,$t=Ye?null:0),at=J.createElement("li",{title:N?z.next_page:null,onClick:Ne,tabIndex:$t,onKeyDown:Ut,className:ee("".concat(r,"-next"),G({},"".concat(r,"-disabled"),Ye)),"aria-disabled":Ye},at)}var Vt=ee(r,s,G(G(G(G(G({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),V),"".concat(r,"-disabled"),q));return J.createElement("ul",ke({className:Vt,style:D,ref:ue},Wt),nt,Et,V?Ht:Te,at,J.createElement(WM,{locale:z,rootPrefixCls:r,disabled:q,selectPrefixCls:l,changeSize:Ge,pageSize:ce,pageSizeOptions:H,quickGo:xt?pt:null,goButton:Bt,showSizeChanger:U,sizeChangerRender:M}))};const GM=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},KM=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Z(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
313
+ &${t}-mini ${t}-prev ${t}-item-link,
314
+ &${t}-mini ${t}-next ${t}-item-link
315
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM),input:Object.assign(Object.assign({},Uh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},XM=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Z(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:Z(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${Z(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Z(e.inputOutlineOffset)} 0 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},QM=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
316
+ ${t}-prev,
317
+ ${t}-jump-prev,
318
+ ${t}-jump-next
319
+ `]:{marginInlineEnd:e.marginXS},[`
320
+ ${t}-prev,
321
+ ${t}-next,
322
+ ${t}-jump-prev,
323
+ ${t}-jump-next
324
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Z(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Z(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Gh(e)),qh(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},af(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},YM=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Z(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Z(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},JM=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Z(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),YM(e)),QM(e)),XM(e)),KM(e)),GM(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ZM=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},$o(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Si(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Si(e)}}}},F2=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},of(e)),H2=e=>Kt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},rf(e)),e7=dn("Pagination",e=>{const t=H2(e);return[JM(t),ZM(t)]},F2),t7=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},n7=ac(["Pagination","bordered"],e=>{const t=H2(e);return t7(t)},F2);function EC(e){return u.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var r7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const o7=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:l,style:s,size:c,locale:d,responsive:m,showSizeChanger:p,selectComponentClass:g,pageSizeOptions:h}=e,y=r7(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:b}=Nh(m),[,S]=Br(),{getPrefixCls:C,direction:$,showSizeChanger:w,className:R,style:I}=yr("pagination"),_=C("pagination",n),[O,j,N]=e7(_),T=ra(c),P=T==="small"||!!(b&&!T&&m),[B]=Ca("Pagination",zS),z=Object.assign(Object.assign({},B),d),[D,A]=EC(p),[W,q]=EC(w),V=D??W,F=A??q,Y=g||_i,U=u.useMemo(()=>h?h.map(re=>Number(re)):void 0,[h]),M=re=>{var fe;const{disabled:me,size:ue,onSizeChange:Se,"aria-label":le,className:ce,options:ve}=re,{className:be,onChange:de}=F||{},se=(fe=ve.find(ye=>String(ye.value)===String(ue)))===null||fe===void 0?void 0:fe.value;return u.createElement(Y,Object.assign({disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ye=>ye.parentNode,"aria-label":le,options:ve},F,{value:se,onChange:(ye,xe)=>{Se==null||Se(ye),de==null||de(ye,xe)},size:P?"small":"middle",className:ee(ce,be)}))},H=u.useMemo(()=>{const re=u.createElement("span",{className:`${_}-item-ellipsis`},"•••"),fe=u.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},$==="rtl"?u.createElement(Qo,null):u.createElement(Ys,null)),me=u.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},$==="rtl"?u.createElement(Ys,null):u.createElement(Qo,null)),ue=u.createElement("a",{className:`${_}-item-link`},u.createElement("div",{className:`${_}-item-container`},$==="rtl"?u.createElement(xC,{className:`${_}-item-link-icon`}):u.createElement(SC,{className:`${_}-item-link-icon`}),re)),Se=u.createElement("a",{className:`${_}-item-link`},u.createElement("div",{className:`${_}-item-container`},$==="rtl"?u.createElement(SC,{className:`${_}-item-link-icon`}):u.createElement(xC,{className:`${_}-item-link-icon`}),re));return{prevIcon:fe,nextIcon:me,jumpPrevIcon:ue,jumpNextIcon:Se}},[$,_]),Q=C("select",r),ne=ee({[`${_}-${t}`]:!!t,[`${_}-mini`]:P,[`${_}-rtl`]:$==="rtl",[`${_}-bordered`]:S.wireframe},R,o,l,j,N),te=Object.assign(Object.assign({},I),s);return O(u.createElement(u.Fragment,null,S.wireframe&&u.createElement(n7,{prefixCls:_}),u.createElement(UM,Object.assign({},H,y,{style:te,prefixCls:_,selectPrefixCls:Q,className:ne,locale:z,pageSizeOptions:U,showSizeChanger:V,sizeChangerRender:M}))))},gd=100,V2=gd/5,W2=gd/2-V2/2,Op=W2*2*Math.PI,RC=50,kC=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return u.createElement("circle",{className:ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:W2,cx:RC,cy:RC,strokeWidth:V2,style:n})},a7=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[l,s]=u.useState(!1);on(()=>{e!==0&&s(!0)},[e!==0]);const c=Math.max(Math.min(e,100),0);if(!l)return null;const d={strokeDashoffset:`${Op/4}`,strokeDasharray:`${Op*c/100} ${Op*(100-c)/100}`};return u.createElement("span",{className:ee(r,`${n}-progress`,c<=0&&o)},u.createElement("svg",{viewBox:`0 0 ${gd} ${gd}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},u.createElement(kC,{dotClassName:n,hasCircleCls:!0}),u.createElement(kC,{dotClassName:n,style:d})))};function i7(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,l=`${o}-hidden`;return u.createElement(u.Fragment,null,u.createElement("span",{className:ee(o,n>0&&l)},u.createElement("span",{className:ee(r,`${t}-dot-spin`)},[1,2,3,4].map(s=>u.createElement("i",{className:`${t}-dot-item`,key:s})))),u.createElement(a7,{prefixCls:t,percent:n}))}function l7(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,l=`${n}-dot`;return r&&u.isValidElement(r)?Lr(r,{className:ee((t=r.props)===null||t===void 0?void 0:t.className,l),percent:o}):u.createElement(i7,{prefixCls:n,percent:o})}const s7=new qt("antSpinMove",{to:{opacity:1}}),c7=new qt("antRotate",{to:{transform:"rotate(405deg)"}}),u7=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Pn(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:s7,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:c7,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},d7=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},f7=dn("Spin",e=>{const t=Kt(e,{spinDotDefault:e.colorTextDescription});return u7(t)},d7),m7=200,_C=[[30,.05],[70,.03],[96,.01]];function p7(e,t){const[n,r]=u.useState(0),o=u.useRef(null),l=t==="auto";return u.useEffect(()=>(l&&e&&(r(0),o.current=setInterval(()=>{r(s=>{const c=100-s;for(let d=0;d<_C.length;d+=1){const[m,p]=_C[d];if(s<=m)return s+c*p}return s})},m7)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[l,e]),l?n:t}var g7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let q2;function h7(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Wl=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:l,rootClassName:s,size:c="default",tip:d,wrapperClassName:m,style:p,children:g,fullscreen:h=!1,indicator:y,percent:b}=e,S=g7(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:C,direction:$,className:w,style:R,indicator:I}=yr("spin"),_=C("spin",n),[O,j,N]=f7(_),[T,P]=u.useState(()=>r&&!h7(r,o)),B=p7(T,b);u.useEffect(()=>{if(r){const F=xz(o,()=>{P(!0)});return F(),()=>{var Y;(Y=F==null?void 0:F.cancel)===null||Y===void 0||Y.call(F)}}P(!1)},[o,r]);const z=u.useMemo(()=>typeof g<"u"&&!h,[g,h]),D=ee(_,w,{[`${_}-sm`]:c==="small",[`${_}-lg`]:c==="large",[`${_}-spinning`]:T,[`${_}-show-text`]:!!d,[`${_}-rtl`]:$==="rtl"},l,!h&&s,j,N),A=ee(`${_}-container`,{[`${_}-blur`]:T}),W=(t=y??I)!==null&&t!==void 0?t:q2,q=Object.assign(Object.assign({},R),p),V=u.createElement("div",Object.assign({},S,{style:q,className:D,"aria-live":"polite","aria-busy":T}),u.createElement(l7,{prefixCls:_,indicator:W,percent:B}),d&&(z||h)?u.createElement("div",{className:`${_}-text`},d):null);return O(z?u.createElement("div",Object.assign({},S,{className:ee(`${_}-nested-loading`,m,j,N)}),T&&u.createElement("div",{key:"loading"},V),u.createElement("div",{className:A,key:"container"},g)):h?u.createElement("div",{className:ee(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:T},s,j,N)},V):V)};Wl.setDefaultIndicator=e=>{q2=e};const Jh=J.createContext({});Jh.Consumer;var U2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v7=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,s=U2(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=u.useContext(Rt),d=c("list",t),m=ee(`${d}-item-meta`,n),p=J.createElement("div",{className:`${d}-item-meta-content`},o&&J.createElement("h4",{className:`${d}-item-meta-title`},o),l&&J.createElement("div",{className:`${d}-item-meta-description`},l));return J.createElement("div",Object.assign({},s,{className:m}),r&&J.createElement("div",{className:`${d}-item-meta-avatar`},r),(o||l)&&p)},y7=J.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:l,styles:s,className:c,classNames:d,colStyle:m}=e,p=U2(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:h}=u.useContext(Jh),{getPrefixCls:y,list:b}=u.useContext(Rt),S=j=>{var N,T;return ee((T=(N=b==null?void 0:b.item)===null||N===void 0?void 0:N.classNames)===null||T===void 0?void 0:T[j],d==null?void 0:d[j])},C=j=>{var N,T;return Object.assign(Object.assign({},(T=(N=b==null?void 0:b.item)===null||N===void 0?void 0:N.styles)===null||T===void 0?void 0:T[j]),s==null?void 0:s[j])},$=()=>{let j=!1;return u.Children.forEach(r,N=>{typeof N=="string"&&(j=!0)}),j&&u.Children.count(r)>1},w=()=>h==="vertical"?!!l:!$(),R=y("list",n),I=o&&o.length>0&&J.createElement("ul",{className:ee(`${R}-item-action`,S("actions")),key:"actions",style:C("actions")},o.map((j,N)=>J.createElement("li",{key:`${R}-item-action-${N}`},j,N!==o.length-1&&J.createElement("em",{className:`${R}-item-action-split`})))),_=g?"div":"li",O=J.createElement(_,Object.assign({},p,g?{}:{ref:t},{className:ee(`${R}-item`,{[`${R}-item-no-flex`]:!w()},c)}),h==="vertical"&&l?[J.createElement("div",{className:`${R}-item-main`,key:"content"},r,I),J.createElement("div",{className:ee(`${R}-item-extra`,S("extra")),key:"extra",style:C("extra")},l)]:[r,I,Lr(l,{key:"extra"})]);return g?J.createElement(Tz,{ref:t,flex:1,style:m},O):O}),G2=y7;G2.Meta=v7;const b7=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:l,itemPaddingLG:s,marginLG:c,borderRadiusLG:d}=e,m=Z(e.calc(d).sub(e.lineWidth).equal());return{[t]:{border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${n}-header`]:{borderRadius:`${m} ${m} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${m} ${m}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Z(o)} ${Z(c)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}}}},C7=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:l,margin:s}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Z(s)}`}}}}}},S7=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:l,marginLG:s,padding:c,itemPadding:d,colorPrimary:m,itemPaddingSM:p,itemPaddingLG:g,paddingXS:h,margin:y,colorText:b,colorTextDescription:S,motionDurationSlow:C,lineWidth:$,headerBg:w,footerBg:R,emptyTextPadding:I,metaMarginBottom:_,avatarMarginRight:O,titleMarginBottom:j,descriptionFontSize:N}=e;return{[t]:Object.assign(Object.assign({},Pn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:R},[`${t}-header, ${t}-footer`]:{paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:s,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:O},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${Z(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${C}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:S,fontSize:N,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Z(h)}`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:$,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Z(c)} 0`,color:S,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:I,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:y,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:_,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:j,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:c,marginInlineStart:"auto","> li":{padding:`0 ${Z(c)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:g},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},x7=e=>({contentWidth:220,itemPadding:`${Z(e.paddingContentVertical)} 0`,itemPaddingSM:`${Z(e.paddingContentVerticalSM)} ${Z(e.paddingContentHorizontal)}`,itemPaddingLG:`${Z(e.paddingContentVerticalLG)} ${Z(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),w7=dn("List",e=>{const t=Kt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[S7(t),b7(t),C7(t)]},x7);var $7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function E7(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:l=!0,className:s,rootClassName:c,style:d,children:m,itemLayout:p,loadMore:g,grid:h,dataSource:y=[],size:b,header:S,footer:C,loading:$=!1,rowKey:w,renderItem:R,locale:I}=e,_=$7(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),O=n&&typeof n=="object"?n:{},[j,N]=u.useState(O.defaultCurrent||1),[T,P]=u.useState(O.defaultPageSize||10),{getPrefixCls:B,direction:z,className:D,style:A}=yr("list"),{renderEmpty:W}=u.useContext(Rt),q={current:1,total:0,position:"bottom"},V=Ee=>(ze,Ie)=>{var Qe;N(ze),P(Ie),n&&((Qe=n==null?void 0:n[Ee])===null||Qe===void 0||Qe.call(n,ze,Ie))},F=V("onChange"),Y=V("onShowSizeChange"),U=(Ee,ze)=>{if(!R)return null;let Ie;return typeof w=="function"?Ie=w(Ee):w?Ie=Ee[w]:Ie=Ee.key,Ie||(Ie=`list-item-${ze}`),u.createElement(u.Fragment,{key:Ie},R(Ee,ze))},M=!!(g||n||C),H=B("list",r),[Q,ne,te]=w7(H);let re=$;typeof re=="boolean"&&(re={spinning:re});const fe=!!(re!=null&&re.spinning),me=ra(b);let ue="";switch(me){case"large":ue="lg";break;case"small":ue="sm";break}const Se=ee(H,{[`${H}-vertical`]:p==="vertical",[`${H}-${ue}`]:ue,[`${H}-split`]:l,[`${H}-bordered`]:o,[`${H}-loading`]:fe,[`${H}-grid`]:!!h,[`${H}-something-after-last-item`]:M,[`${H}-rtl`]:z==="rtl"},D,s,c,ne,te),le=yg(q,{total:y.length,current:j,pageSize:T},n||{}),ce=Math.ceil(le.total/le.pageSize);le.current=Math.min(le.current,ce);const ve=n&&u.createElement("div",{className:ee(`${H}-pagination`)},u.createElement(o7,Object.assign({align:"end"},le,{onChange:F,onShowSizeChange:Y})));let be=Fe(y);n&&y.length>(le.current-1)*le.pageSize&&(be=Fe(y).splice((le.current-1)*le.pageSize,le.pageSize));const de=Object.keys(h||{}).some(Ee=>["xs","sm","md","lg","xl","xxl"].includes(Ee)),se=Nh(de),ye=u.useMemo(()=>{for(let Ee=0;Ee<xi.length;Ee+=1){const ze=xi[Ee];if(se[ze])return ze}},[se]),xe=u.useMemo(()=>{if(!h)return;const Ee=ye&&h[ye]?h[ye]:h.column;if(Ee)return{width:`${100/Ee}%`,maxWidth:`${100/Ee}%`}},[JSON.stringify(h),ye]);let _e=fe&&u.createElement("div",{style:{minHeight:53}});if(be.length>0){const Ee=be.map(U);_e=h?u.createElement(Pz,{gutter:h.gutter},u.Children.map(Ee,ze=>u.createElement("div",{key:ze==null?void 0:ze.key,style:xe},ze))):u.createElement("ul",{className:`${H}-items`},Ee)}else!m&&!fe&&(_e=u.createElement("div",{className:`${H}-empty-text`},(I==null?void 0:I.emptyText)||(W==null?void 0:W("List"))||u.createElement(Lw,{componentName:"List"})));const Pe=le.position,$e=u.useMemo(()=>({grid:h,itemLayout:p}),[JSON.stringify(h),p]);return Q(u.createElement(Jh.Provider,{value:$e},u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A),d),className:Se},_),(Pe==="top"||Pe==="both")&&ve,S&&u.createElement("div",{className:`${H}-header`},S),u.createElement(Wl,Object.assign({},re),_e,m),C&&u.createElement("div",{className:`${H}-footer`},C),g||(Pe==="bottom"||Pe==="both")&&ve)))}const R7=u.forwardRef(E7),Zs=R7;Zs.Item=G2;const k7=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let So=null,vi=e=>e(),ec=[],tc={};function OC(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=tc,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:o}}const _7=J.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=u.useContext(Rt),l=tc.prefixCls||o("message"),s=u.useContext(VT),[c,d]=_x(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),s.message));return J.useImperativeHandle(t,()=>{const m=Object.assign({},c);return Object.keys(m).forEach(p=>{m[p]=(...g)=>(r(),c[p].apply(c,g))}),{instance:m,sync:r}}),d}),O7=J.forwardRef((e,t)=>{const[n,r]=J.useState(OC),o=()=>{r(OC)};J.useEffect(o,[]);const l=fx(),s=l.getRootPrefixCls(),c=l.getIconPrefixCls(),d=l.getTheme(),m=J.createElement(_7,{ref:t,sync:o,messageConfig:n});return J.createElement(na,{prefixCls:s,iconPrefixCls:c,theme:d},l.holderRender?l.holderRender(m):m)}),cf=()=>{if(!So){const e=document.createDocumentFragment(),t={fragment:e};So=t,vi(()=>{yh()(J.createElement(O7,{ref:r=>{const{instance:o,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=l,cf())})}}),e)});return}So.instance&&(ec.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{vi(()=>{const r=So.instance.open(Object.assign(Object.assign({},tc),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":vi(()=>{So==null||So.instance.destroy(e.key)});break;default:vi(()=>{var r;const o=(r=So.instance)[t].apply(r,Fe(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),ec=[])};function I7(e){tc=Object.assign(Object.assign({},tc),e),vi(()=>{var t;(t=So==null?void 0:So.sync)===null||t===void 0||t.call(So)})}function T7(e){const t=hh(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return ec.push(o),()=>{r?vi(()=>{r()}):o.skipped=!0}});return cf(),t}function j7(e,t){const n=hh(r=>{let o;const l={type:e,args:t,resolve:r,setCloseFn:s=>{o=s}};return ec.push(l),()=>{o?vi(()=>{o()}):l.skipped=!0}});return cf(),n}const N7=e=>{ec.push({type:"destroy",key:e}),cf()},P7=["success","info","warning","error","loading"],z7={open:T7,destroy:N7,config:I7,useMessage:Ik,_InternalPanelDoNotUseOrYouWillBeFired:xk},oo=z7;P7.forEach(e=>{oo[e]=(...t)=>j7(e,t)});var M7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const L7=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:l,title:s,children:c,footer:d}=e,m=M7(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=u.useContext(Rt),g=p(),h=t||p("modal"),y=Fo(g),[b,S,C]=lw(h,y),$=`${h}-confirm`;let w={};return l?w={closable:o??!1,title:"",footer:"",children:u.createElement(cw,Object.assign({},e,{prefixCls:h,confirmPrefixCls:$,rootPrefixCls:g,content:c}))}:w={closable:o??!0,title:s,footer:d!==null&&u.createElement(rw,Object.assign({},e)),children:c},b(u.createElement(Ux,Object.assign({prefixCls:h,className:ee(S,`${h}-pure-panel`,l&&$,l&&`${$}-${l}`,n,C,y)},m,{closeIcon:nw(h,r),closable:o},w)))},B7=yw(L7);function K2(e){return gc(mw(e))}const Xr=sw;Xr.useModal=HT;Xr.info=function(t){return gc(pw(t))};Xr.success=function(t){return gc(gw(t))};Xr.error=function(t){return gc(hw(t))};Xr.warning=K2;Xr.warn=K2;Xr.confirm=function(t){return gc(vw(t))};Xr.destroyAll=function(){for(;hi.length;){const t=hi.pop();t&&t()}};Xr.config=LT;Xr._InternalPanelDoNotUseOrYouWillBeFired=B7;var A7=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],X2=u.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,l=e.className,s=e.checked,c=e.defaultChecked,d=e.disabled,m=e.loadingIcon,p=e.checkedChildren,g=e.unCheckedChildren,h=e.onClick,y=e.onChange,b=e.onKeyDown,S=Pt(e,A7),C=Fn(!1,{value:s,defaultValue:c}),$=ie(C,2),w=$[0],R=$[1];function I(N,T){var P=w;return d||(P=N,R(P),y==null||y(P,T)),P}function _(N){N.which===qe.LEFT?I(!1,N):N.which===qe.RIGHT&&I(!0,N),b==null||b(N)}function O(N){var T=I(!w,N);h==null||h(T,N)}var j=ee(o,l,(n={},G(n,"".concat(o,"-checked"),w),G(n,"".concat(o,"-disabled"),d),n));return u.createElement("button",ke({},S,{type:"button",role:"switch","aria-checked":w,disabled:d,className:j,ref:t,onKeyDown:_,onClick:O}),m,u.createElement("span",{className:"".concat(o,"-inner")},u.createElement("span",{className:"".concat(o,"-inner-checked")},p),u.createElement("span",{className:"".concat(o,"-inner-unchecked")},g)))});X2.displayName="Switch";const D7=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:l,innerMaxMarginSM:s,handleSizeSM:c,calc:d}=e,m=`${t}-inner`,p=Z(d(c).add(d(r).mul(2)).equal()),g=Z(d(s).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Z(n),[`${t}-inner`]:{paddingInlineStart:s,paddingInlineEnd:l,[`${m}-checked, ${m}-unchecked`]:{minHeight:n},[`${m}-checked`]:{marginInlineStart:`calc(-100% + ${p} - ${g})`,marginInlineEnd:`calc(100% - ${p} + ${g})`},[`${m}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:c,height:c},[`${t}-loading-icon`]:{top:d(d(c).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:s,[`${m}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${m}-unchecked`]:{marginInlineStart:`calc(100% - ${p} + ${g})`,marginInlineEnd:`calc(-100% + ${p} - ${g})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Z(d(c).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${m}`]:{[`${m}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${m}`]:{[`${m}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},F7=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},H7=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:l,calc:s}=e,c=`${t}-handle`;return{[t]:{[c]:{position:"absolute",top:n,insetInlineStart:n,width:l,height:l,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:s(l).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${c}`]:{insetInlineStart:`calc(100% - ${Z(s(l).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${c}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${c}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},V7=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:l,handleSize:s,calc:c}=e,d=`${t}-inner`,m=Z(c(s).add(c(r).mul(2)).equal()),p=Z(c(l).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:l,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${d}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:o,paddingInlineEnd:l,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},W7=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Pn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Z(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),$o(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},q7=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,l=t*n,s=r/2,c=2,d=l-c*2,m=s-c*2;return{trackHeight:l,trackHeightSM:s,trackMinWidth:d*2+c*4,trackMinWidthSM:m*2+c*2,trackPadding:c,handleBg:o,handleSize:d,handleSizeSM:m,handleShadow:`0 2px 4px 0 ${new un("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+c+c*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+c+c*2}},U7=dn("Switch",e=>{const t=Kt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[W7(t),V7(t),H7(t),F7(t),D7(t)]},q7);var G7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const K7=u.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:l,className:s,rootClassName:c,style:d,checked:m,value:p,defaultChecked:g,defaultValue:h,onChange:y}=e,b=G7(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,C]=Fn(!1,{value:m??p,defaultValue:g??h}),{getPrefixCls:$,direction:w,switch:R}=u.useContext(Rt),I=u.useContext(Ga),_=(o??I)||l,O=$("switch",n),j=u.createElement("div",{className:`${O}-handle`},l&&u.createElement(ic,{className:`${O}-loading-icon`})),[N,T,P]=U7(O),B=ra(r),z=ee(R==null?void 0:R.className,{[`${O}-small`]:B==="small",[`${O}-loading`]:l,[`${O}-rtl`]:w==="rtl"},s,c,T,P),D=Object.assign(Object.assign({},R==null?void 0:R.style),d),A=(...W)=>{C(W[0]),y==null||y.apply(void 0,W)};return N(u.createElement(zd,{component:"Switch",disabled:_},u.createElement(X2,Object.assign({},b,{checked:S,onChange:A,prefixCls:O,className:z,style:D,disabled:_,ref:t,loadingIcon:j}))))}),js=K7;js.__ANT_SWITCH=!0;const X7=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:l}=e,s=l(r).sub(n).equal(),c=l(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Pn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:s,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:s}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Zh=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Kt(e,{tagFontSize:o,tagLineHeight:Z(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},ev=e=>({defaultBg:new un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Q2=dn("Tag",e=>{const t=Zh(e);return X7(t)},ev);var Q7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y7=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:l,children:s,icon:c,onChange:d,onClick:m}=e,p=Q7(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:h}=u.useContext(Rt),y=R=>{d==null||d(!l),m==null||m(R)},b=g("tag",n),[S,C,$]=Q2(b),w=ee(b,`${b}-checkable`,{[`${b}-checkable-checked`]:l},h==null?void 0:h.className,o,C,$);return S(u.createElement("span",Object.assign({},p,{ref:t,style:Object.assign(Object.assign({},r),h==null?void 0:h.style),className:w,onClick:y}),c,u.createElement("span",null,s)))}),J7=e=>jd(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:l})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Z7=ac(["Tag","preset"],e=>{const t=Zh(e);return J7(t)},ev);function e9(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ou=(e,t,n)=>{const r=e9(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},t9=ac(["Tag","status"],e=>{const t=Zh(e);return[Ou(t,"success","Success"),Ou(t,"processing","Info"),Ou(t,"error","Error"),Ou(t,"warning","Warning")]},ev);var n9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const r9=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:l,children:s,icon:c,color:d,onClose:m,bordered:p=!0,visible:g}=e,h=n9(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:b,tag:S}=u.useContext(Rt),[C,$]=u.useState(!0),w=Kn(h,["closeIcon","closable"]);u.useEffect(()=>{g!==void 0&&$(g)},[g]);const R=Jd(d),I=S6(d),_=R||I,O=Object.assign(Object.assign({backgroundColor:d&&!_?d:void 0},S==null?void 0:S.style),l),j=y("tag",n),[N,T,P]=Q2(j),B=ee(j,S==null?void 0:S.className,{[`${j}-${d}`]:_,[`${j}-has-color`]:d&&!_,[`${j}-hidden`]:!C,[`${j}-rtl`]:b==="rtl",[`${j}-borderless`]:!p},r,o,T,P),z=F=>{F.stopPropagation(),m==null||m(F),!F.defaultPrevented&&$(!1)},[,D]=gh(Pl(e),Pl(S),{closable:!1,closeIconRender:F=>{const Y=u.createElement("span",{className:`${j}-close-icon`,onClick:z},F);return Sx(F,Y,U=>({onClick:M=>{var H;(H=U==null?void 0:U.onClick)===null||H===void 0||H.call(U,M),z(M)},className:ee(U==null?void 0:U.className,`${j}-close-icon`)}))}}),A=typeof h.onClick=="function"||s&&s.type==="a",W=c||null,q=W?u.createElement(u.Fragment,null,W,s&&u.createElement("span",null,s)):s,V=u.createElement("span",Object.assign({},w,{ref:t,className:B,style:O}),q,D,R&&u.createElement(Z7,{key:"preset",prefixCls:j}),I&&u.createElement(t9,{key:"status",prefixCls:j}));return N(A?u.createElement(zd,{component:"Tag"},V):V)}),io=r9;io.CheckableTag=Y7;const Co=(e,t)=>new un(e).setA(t).toRgbString(),ml=(e,t)=>new un(e).lighten(t).toHexString(),o9=e=>{const t=Ci(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},a9=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Co(r,.85),colorTextSecondary:Co(r,.65),colorTextTertiary:Co(r,.45),colorTextQuaternary:Co(r,.25),colorFill:Co(r,.18),colorFillSecondary:Co(r,.12),colorFillTertiary:Co(r,.08),colorFillQuaternary:Co(r,.04),colorBgSolid:Co(r,.95),colorBgSolidHover:Co(r,1),colorBgSolidActive:Co(r,.9),colorBgElevated:ml(n,12),colorBgContainer:ml(n,8),colorBgLayout:ml(n,0),colorBgSpotlight:ml(n,26),colorBgBlur:Co(r,.04),colorBorder:ml(n,26),colorBorderSecondary:ml(n,19)}},i9=(e,t)=>{const n=Object.keys(mh).map(l=>{const s=Ci(e[l],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,d,m)=>(c[`${l}-${m+1}`]=s[m],c[`${l}${m+1}`]=s[m],c),{})}).reduce((l,s)=>(l=Object.assign(Object.assign({},l),s),l),{}),r=t??FS(e),o=DS(e,{generateColorPalettes:o9,generateNeutralColorPalettes:a9});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},l9={defaultSeed:nd.token,darkAlgorithm:i9};var s9={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"},c9=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:s9}))},u9=u.forwardRef(c9),d9={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"},f9=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:d9}))},m9=u.forwardRef(f9);const p9=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},g9=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
325
+ h${r}&,
326
+ div&-h${r},
327
+ div&-h${r} > textarea,
328
+ h${r}
329
+ `]=p9(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},h9=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},JS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},v9=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:ed[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"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}}),y9=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},b9=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),C9=()=>({"\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"}}),S9=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},g9(e)),{[`
330
+ & + h1${t},
331
+ & + h2${t},
332
+ & + h3${t},
333
+ & + h4${t},
334
+ & + h5${t}
335
+ `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),v9(e)),h9(e)),{[`
336
+ ${t}-expand,
337
+ ${t}-collapse,
338
+ ${t}-edit,
339
+ ${t}-copy
340
+ `]:Object.assign(Object.assign({},JS(e)),{marginInlineStart:e.marginXXS})}),y9(e)),b9(e)),C9()),{"&-rtl":{direction:"rtl"}})}},x9=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Y2=dn("Typography",S9,x9),w9=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:s,autoSize:c=!0,value:d,onSave:m,onCancel:p,onEnd:g,component:h,enterIcon:y=u.createElement(m9,null)}=e,b=u.useRef(null),S=u.useRef(!1),C=u.useRef(null),[$,w]=u.useState(d);u.useEffect(()=>{w(d)},[d]),u.useEffect(()=>{var A;if(!((A=b.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:W}=b.current.resizableTextArea;W.focus();const{length:q}=W.value;W.setSelectionRange(q,q)}},[]);const R=({target:A})=>{w(A.value.replace(/[\n\r]/g,""))},I=()=>{S.current=!0},_=()=>{S.current=!1},O=({keyCode:A})=>{S.current||(C.current=A)},j=()=>{m($.trim())},N=({keyCode:A,ctrlKey:W,altKey:q,metaKey:V,shiftKey:F})=>{C.current!==A||S.current||W||q||V||F||(A===qe.ENTER?(j(),g==null||g()):A===qe.ESC&&p())},T=()=>{j()},[P,B,z]=Y2(t),D=ee(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${h}`]:!!h},r,B,z);return P(u.createElement("div",{className:D,style:o},u.createElement(TM,{ref:b,maxLength:s,value:$,onChange:R,onKeyDown:O,onKeyUp:N,onCompositionStart:I,onCompositionEnd:_,onBlur:T,"aria-label":n,rows:1,autoSize:c}),y!==null?Lr(y,{className:`${t}-edit-content-confirm`}):null))};var Ip,IC;function $9(){return IC||(IC=1,Ip=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));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||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Ip}var Tp,TC;function E9(){if(TC)return Tp;TC=1;var e=$9(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function o(l,s){var c,d,m,p,g,h,y=!1;s||(s={}),c=s.debug||!1;try{m=e(),p=document.createRange(),g=document.getSelection(),h=document.createElement("span"),h.textContent=l,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(S){if(S.stopPropagation(),s.format)if(S.preventDefault(),typeof S.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var C=t[s.format]||t.default;window.clipboardData.setData(C,l)}else S.clipboardData.clearData(),S.clipboardData.setData(s.format,l);s.onCopy&&(S.preventDefault(),s.onCopy(S.clipboardData))}),document.body.appendChild(h),p.selectNodeContents(h),g.addRange(p);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");y=!0}catch(S){c&&console.error("unable to copy using execCommand: ",S),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(C){c&&console.error("unable to copy using clipboardData: ",C),c&&console.error("falling back to prompt"),d=r("message"in s?s.message:n),window.prompt(d,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(p):g.removeAllRanges()),h&&document.body.removeChild(h),m()}return y}return Tp=o,Tp}var R9=E9();const k9=nc(R9);var _9=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function c(p){try{m(r.next(p))}catch(g){s(g)}}function d(p){try{m(r.throw(p))}catch(g){s(g)}}function m(p){p.done?l(p.value):o(p.value).then(c,d)}m((r=r.apply(e,t||[])).next())})};const O9=({copyConfig:e,children:t})=>{const[n,r]=u.useState(!1),[o,l]=u.useState(!1),s=u.useRef(null),c=()=>{s.current&&clearTimeout(s.current)},d={};e.format&&(d.format=e.format),u.useEffect(()=>c,[]);const m=Dn(p=>_9(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const h=typeof e.text=="function"?yield e.text():e.text;k9(h||k7(t,!0).join("")||"",d),l(!1),r(!0),c(),s.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,p)}catch(h){throw l(!1),h}}));return{copied:n,copyLoading:o,onClick:m}};function jp(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const I9=e=>{const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current},T9=(e,t,n)=>u.useMemo(()=>e===!0?{title:t??n}:u.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var j9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const J2=u.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:s,children:c,direction:d,style:m}=e,p=j9(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:h,className:y,style:b}=yr("typography"),S=d??h,C=s?Eo(t,s):t,$=g("typography",n),[w,R,I]=Y2($),_=ee($,y,{[`${$}-rtl`]:S==="rtl"},o,l,R,I),O=Object.assign(Object.assign({},b),m);return w(u.createElement(r,Object.assign({className:_,style:O,ref:C},p),c))});var N9={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"},P9=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:N9}))},Qu=u.forwardRef(P9);function jC(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Np(e,t,n){return e===!0||e===void 0?t:e||n&&t}function z9(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const tv=e=>["string","number"].includes(typeof e),M9=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:s,onCopy:c,loading:d})=>{const m=jC(o),p=jC(l),{copied:g,copy:h}=n??{},y=t?g:h,b=Np(m[t?1:0],y),S=typeof b=="string"?b:y;return u.createElement(ea,{title:b},u.createElement("button",{type:"button",className:ee(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":S,tabIndex:s},t?Np(p[1],u.createElement(Hw,null),!0):Np(p[0],d?u.createElement(ic,null):u.createElement(Qu,null),!0)))},Iu=u.forwardRef(({style:e,children:t},n)=>{const r=u.useRef(null);return u.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),u.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),L9=e=>e.reduce((t,n)=>t+(tv(n)?String(n).length:1),0);function NC(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],c=tv(l)?String(l).length:1,d=n+c;if(d>t){const m=t-n;return r.push(String(l).slice(0,m)),r}r.push(l),n=d}return e}const Pp=0,zp=1,Mp=2,Lp=3,PC=4,Tu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function B9(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:s,miscDeps:c,onEllipsis:d}=e,m=u.useMemo(()=>Mr(r),[r]),p=u.useMemo(()=>L9(m),[r]),g=u.useMemo(()=>o(m,!1),[r]),[h,y]=u.useState(null),b=u.useRef(null),S=u.useRef(null),C=u.useRef(null),$=u.useRef(null),w=u.useRef(null),[R,I]=u.useState(!1),[_,O]=u.useState(Pp),[j,N]=u.useState(0),[T,P]=u.useState(null);on(()=>{O(t&&n&&p?zp:Pp)},[n,r,l,t,m]),on(()=>{var A,W,q,V;if(_===zp){O(Mp);const F=S.current&&getComputedStyle(S.current).whiteSpace;P(F)}else if(_===Mp){const F=!!(!((A=C.current)===null||A===void 0)&&A.isExceed());O(F?Lp:PC),y(F?[0,p]:null),I(F);const Y=((W=C.current)===null||W===void 0?void 0:W.getHeight())||0,U=l===1?0:((q=$.current)===null||q===void 0?void 0:q.getHeight())||0,M=((V=w.current)===null||V===void 0?void 0:V.getHeight())||0,H=Math.max(Y,U+M);N(H+1),d(F)}},[_]);const B=h?Math.ceil((h[0]+h[1])/2):0;on(()=>{var A;const[W,q]=h||[0,0];if(W!==q){const F=(((A=b.current)===null||A===void 0?void 0:A.getHeight())||0)>j;let Y=B;q-W===1&&(Y=F?W:q),y(F?[W,Y]:[Y,q])}},[h,B]);const z=u.useMemo(()=>{if(!t)return o(m,!1);if(_!==Lp||!h||h[0]!==h[1]){const A=o(m,!1);return[PC,Pp].includes(_)?A:u.createElement("span",{style:Object.assign(Object.assign({},Tu),{WebkitLineClamp:l})},A)}return o(s?m:NC(m,h[0]),R)},[s,_,h,m].concat(Fe(c))),D={width:n,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,z,_===Mp&&u.createElement(u.Fragment,null,u.createElement(Iu,{style:Object.assign(Object.assign(Object.assign({},D),Tu),{WebkitLineClamp:l}),ref:C},g),u.createElement(Iu,{style:Object.assign(Object.assign(Object.assign({},D),Tu),{WebkitLineClamp:l-1}),ref:$},g),u.createElement(Iu,{style:Object.assign(Object.assign(Object.assign({},D),Tu),{WebkitLineClamp:1}),ref:w},o([],!0))),_===Lp&&h&&h[0]!==h[1]&&u.createElement(Iu,{style:Object.assign(Object.assign({},D),{top:400}),ref:b},o(NC(m,B),!0)),_===zp&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const A9=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:u.createElement(ea,Object.assign({open:t?void 0:!1},r),n);var D9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function F9({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:s},c){let d=c;function m(p,g){g&&(d=u.createElement(p,{},d))}return m("strong",o),m("u",n),m("del",r),m("code",t),m("mark",e),m("kbd",l),m("i",s),d}const H9="...",zC=["delete","mark","code","underline","strong","keyboard","italic"],uf=u.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:s,disabled:c,children:d,ellipsis:m,editable:p,copyable:g,component:h,title:y}=e,b=D9(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:C}=u.useContext(Rt),[$]=Ca("Text"),w=u.useRef(null),R=u.useRef(null),I=S("typography",r),_=Kn(b,zC),[O,j]=jp(p),[N,T]=Fn(!1,{value:j.editing}),{triggerType:P=["icon"]}=j,B=Ne=>{var Ve;Ne&&((Ve=j.onStart)===null||Ve===void 0||Ve.call(j)),T(Ne)},z=I9(N);on(()=>{var Ne;!N&&z&&((Ne=R.current)===null||Ne===void 0||Ne.focus())},[N]);const D=Ne=>{Ne==null||Ne.preventDefault(),B(!0)},A=Ne=>{var Ve;(Ve=j.onChange)===null||Ve===void 0||Ve.call(j,Ne),B(!1)},W=()=>{var Ne;(Ne=j.onCancel)===null||Ne===void 0||Ne.call(j),B(!1)},[q,V]=jp(g),{copied:F,copyLoading:Y,onClick:U}=O9({copyConfig:V,children:d}),[M,H]=u.useState(!1),[Q,ne]=u.useState(!1),[te,re]=u.useState(!1),[fe,me]=u.useState(!1),[ue,Se]=u.useState(!0),[le,ce]=jp(m,{expandable:!1,symbol:Ne=>Ne?$==null?void 0:$.collapse:$==null?void 0:$.expand}),[ve,be]=Fn(ce.defaultExpanded||!1,{value:ce.expanded}),de=le&&(!ve||ce.expandable==="collapsible"),{rows:se=1}=ce,ye=u.useMemo(()=>de&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||O||q),[de,ce,O,q]);on(()=>{le&&!ye&&(H(l1("webkitLineClamp")),ne(l1("textOverflow")))},[ye,le]);const[xe,_e]=u.useState(de),Pe=u.useMemo(()=>ye?!1:se===1?Q:M,[ye,Q,M]);on(()=>{_e(Pe&&de)},[Pe,de]);const $e=de&&(xe?fe:te),Ee=de&&se===1&&xe,ze=de&&se>1&&xe,Ie=(Ne,Ve)=>{var kt;be(Ve.expanded),(kt=ce.onExpand)===null||kt===void 0||kt.call(ce,Ne,Ve)},[Qe,ot]=u.useState(0),xt=({offsetWidth:Ne})=>{ot(Ne)},dt=Ne=>{var Ve;re(Ne),te!==Ne&&((Ve=ce.onEllipsis)===null||Ve===void 0||Ve.call(ce,Ne))};u.useEffect(()=>{const Ne=w.current;if(le&&xe&&Ne){const Ve=z9(Ne);fe!==Ve&&me(Ve)}},[le,xe,d,ze,ue,Qe]),u.useEffect(()=>{const Ne=w.current;if(typeof IntersectionObserver>"u"||!Ne||!xe||!de)return;const Ve=new IntersectionObserver(()=>{Se(!!Ne.offsetParent)});return Ve.observe(Ne),()=>{Ve.disconnect()}},[xe,de]);const Xe=T9(ce.tooltip,j.text,d),ct=u.useMemo(()=>{if(!(!le||xe))return[j.text,d,y,Xe.title].find(tv)},[le,xe,y,Xe.title,$e]);if(N)return u.createElement(w9,{value:(n=j.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:A,onCancel:W,onEnd:j.onEnd,prefixCls:I,className:o,style:l,direction:C,component:h,maxLength:j.maxLength,autoSize:j.autoSize,enterIcon:j.enterIcon});const Ge=()=>{const{expandable:Ne,symbol:Ve}=ce;return Ne?u.createElement("button",{type:"button",key:"expand",className:`${I}-${ve?"collapse":"expand"}`,onClick:kt=>Ie(kt,{expanded:!ve}),"aria-label":ve?$.collapse:$==null?void 0:$.expand},typeof Ve=="function"?Ve(ve):Ve):null},pt=()=>{if(!O)return;const{icon:Ne,tooltip:Ve,tabIndex:kt}=j,vt=Mr(Ve)[0]||($==null?void 0:$.edit),Xt=typeof vt=="string"?vt:"";return P.includes("icon")?u.createElement(ea,{key:"edit",title:Ve===!1?"":vt},u.createElement("button",{type:"button",ref:R,className:`${I}-edit`,onClick:D,"aria-label":Xt,tabIndex:kt},Ne||u.createElement(u9,{role:"button"}))):null},Ze=()=>q?u.createElement(M9,Object.assign({key:"copy"},V,{prefixCls:I,copied:F,locale:$,onCopy:U,loading:Y,iconOnly:d==null})):null,Le=Ne=>[Ne&&Ge(),pt(),Ze()],tt=Ne=>[Ne&&!ve&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},H9),ce.suffix,Le(Ne)];return u.createElement(xo,{onResize:xt,disabled:!de},Ne=>u.createElement(A9,{tooltipProps:Xe,enableEllipsis:de,isEllipsis:$e},u.createElement(J2,Object.assign({className:ee({[`${I}-${s}`]:s,[`${I}-disabled`]:c,[`${I}-ellipsis`]:le,[`${I}-ellipsis-single-line`]:Ee,[`${I}-ellipsis-multiple-line`]:ze},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:ze?se:void 0}),component:h,ref:Eo(Ne,w,t),direction:C,onClick:P.includes("text")?D:void 0,"aria-label":ct==null?void 0:ct.toString(),title:y},_),u.createElement(B9,{enableMeasure:de&&!xe,text:d,rows:se,width:Qe,onEllipsis:dt,expanded:ve,miscDeps:[F,ve,Y,O,q,$].concat(Fe(zC.map(Ve=>e[Ve])))},(Ve,kt)=>F9(e,u.createElement(u.Fragment,null,Ve.length>0&&kt&&!ve&&ct?u.createElement("span",{key:"show-content","aria-hidden":!0},Ve):Ve,tt(kt)))))))});var V9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const W9=u.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,s=V9(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return u.createElement(uf,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),o)});var q9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const U9=u.forwardRef((e,t)=>{const{children:n}=e,r=q9(e,["children"]);return u.createElement(uf,Object.assign({ref:t},r,{component:"div"}),n)});var G9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const K9=(e,t)=>{const{ellipsis:n,children:r}=e,o=G9(e,["ellipsis","children"]),l=u.useMemo(()=>n&&typeof n=="object"?Kn(n,["expandable","rows"]):n,[n]);return u.createElement(uf,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},X9=u.forwardRef(K9);var Q9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Y9=[1,2,3,4,5],J9=u.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=Q9(e,["level","children"]),l=Y9.includes(n)?`h${n}`:"h1";return u.createElement(uf,Object.assign({ref:t},o,{component:l}),r)}),oa=J2;oa.Text=X9;oa.Link=W9;oa.Title=J9;oa.Paragraph=U9;var Z9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},eL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:Z9}))},tL=u.forwardRef(eL),nL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},rL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:nL}))},MC=u.forwardRef(rL),oL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},aL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:oL}))},Bp=u.forwardRef(aL),iL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},lL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:iL}))},sL=u.forwardRef(lL),cL={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},uL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:cL}))},dL=u.forwardRef(uL),fL={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},mL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:fL}))},pL=u.forwardRef(mL),gL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},hL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:gL}))},vL=u.forwardRef(hL),yL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},bL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:yL}))},LC=u.forwardRef(bL),CL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},SL=function(t,n){return u.createElement(gn,ke({},t,{ref:n,icon:CL}))},xL=u.forwardRef(SL);const BC=/command execution specialist|file search specialist|planning specialist|general-purpose agent/i;function hd(e){const t=e==null?void 0:e.system;return typeof t=="string"?t:Array.isArray(t)?t.map(n=>n&&n.text||"").join(""):""}function vr(e){if(!e)return!1;if(e.mainAgent){const r=hd(e.body||{});return!BC.test(r)}const t=e.body||{},n=t.tools;if(t.system&&Array.isArray(n)&&n.length>10){const r=n.some(s=>s.name==="Edit"),o=n.some(s=>s.name==="Bash"),l=n.some(s=>s.name==="Task"||s.name==="Agent");if(r&&o&&l){const s=hd(t);if(s.includes("You are Claude Code")&&!BC.test(s))return!0}}return!1}function Kg(e){return e?/^Base directory for this skill:/i.test(e.trim()):!1}function nv(e){if(!e)return!0;const t=e.trim();return!!(!t||/^<[a-zA-Z_][\w-]*[\s>]/i.test(t)||/^\[SUGGESTION MODE:/i.test(t)||/^Your response was cut off because it exceeded the output token limit/i.test(t)||/^Base directory for this skill:/i.test(t))}function Z2(e){if(!Array.isArray(e))return{commands:[],textBlocks:[],skillBlocks:[]};const t=e.some(l=>l.type==="text"&&/<command-message>/i.test(l.text||"")),n=[];if(t)for(const l of e){if(l.type!=="text")continue;const s=(l.text||"").match(/<command-name>\s*([^<]*)<\/command-name>/i);if(s){const c=s[1].trim();n.push(c.startsWith("/")?c:`/${c}`)}}let r=e.filter(l=>l.type==="text"&&!nv(l.text));t&&(r=r.filter(l=>!/<command-message>/i.test(l.text||"")));const o=r.filter(l=>Kg(l.text));return o.length>0&&(r=r.filter(l=>!Kg(l.text))),{commands:n,textBlocks:r,skillBlocks:o}}function e$(e,t){var y,b;const n=e[t];if(!vr(n))return null;const r=(b=(y=n.response)==null?void 0:y.body)==null?void 0:b.usage;if(!r)return null;const o=r.cache_creation_input_tokens||0,l=r.cache_read_input_tokens||0;if(o===0||o<=l)return null;let s=null;for(let S=t-1;S>=0;S--)if(vr(e[S])){s=e[S];break}if(!s)return null;if(n.timestamp-s.timestamp>300*1e3)return{reason:"ttl"};const d=bi(s.body),m=bi(n.body);if(!d||!m)return{reason:"key_change"};const p=[];d.model!==m.model&&p.push("model_change"),JSON.stringify(d.system)!==JSON.stringify(m.system)&&p.push("system_change"),JSON.stringify(d.tools)!==JSON.stringify(m.tools)&&p.push("tools_change");const g=d.messages||[],h=m.messages||[];if(h.length<g.length)p.push("msg_truncated");else{const S=Math.min(g.length,h.length);let C=!0;for(let $=0;$<S;$++)if(JSON.stringify(g[$])!==JSON.stringify(h[$])){C=!1;break}C||p.push("msg_modified")}return p.length===0?{reason:"key_change"}:{reason:p[0],reasons:p}}function vd(e){return e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):""}function t$(e){return e.content?typeof e.content=="string"?e.content:Array.isArray(e.content)?e.content.filter(t=>t.type==="text").map(t=>t.text).join(`
341
+ `):JSON.stringify(e.content):String(e.content??"")}const wL=[{match:/claude/i,name:"Claude",color:"#000000",svg:'<svg t="1771495509570" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1570" width="200" height="200"><path d="M198.4 678.4l198.4-115.2 6.4-12.8H243.2l-96-6.4-102.4-6.4-19.2-6.4-25.6-25.6v-12.8l19.2-12.8h32l64 6.4 96 6.4 70.4 6.4L384 512h19.2V492.8l-6.4-6.4-102.4-64-108.8-76.8-51.2-38.4-32-19.2-19.2-25.6-6.4-38.4 32-32h44.8l38.4 32 83.2 64L384 364.8l12.8 12.8 6.4-6.4-6.4-12.8L339.2 256l-64-108.8-25.6-38.4-6.4-25.6c0-12.8-6.4-19.2-6.4-32l32-44.8 19.2-6.4 44.8 6.4 19.2 12.8 25.6 57.6 44.8 96 64 128 19.2 38.4 6.4 38.4 6.4 12.8h6.4V384l6.4-70.4 12.8-89.6 12.8-115.2 6.4-32 19.2-38.4 32-19.2 25.6 12.8 19.2 32v19.2l-32 70.4-19.2 121.6-19.2 83.2h6.4l12.8-12.8 44.8-57.6 70.4-89.6 32-32 38.4-38.4 25.6-19.2h44.8l32 51.2-12.8 51.2-51.2 57.6-38.4 51.2-51.2 70.4-38.4 57.6v6.4h6.4l121.6-25.6 64-12.8 76.8-12.8 38.4 19.2 6.4 19.2-12.8 32-83.2 19.2-96 19.2-147.2 32 64 6.4h96l128 6.4 32 19.2 25.6 38.4-6.4 19.2-51.2 25.6-70.4-12.8-160-38.4-57.6-12.8h-6.4v6.4l44.8 44.8 83.2 76.8 108.8 102.4 6.4 25.6-12.8 19.2h-12.8l-96-70.4-38.4-32-83.2-70.4h-6.4v6.4l19.2 25.6 102.4 147.2 6.4 44.8-6.4 12.8-25.6 6.4-25.6-6.4-57.6-83.2-64-83.2-51.2-83.2-6.4 6.4-25.6 307.2-12.8 12.8-32 12.8-25.6-19.2-12.8-32 12.8-64 19.2-83.2 12.8-64 12.8-83.2 6.4-25.6h-6.4l-64 83.2-96 128-70.4 76.8-19.2 6.4-32-12.8v-25.6l19.2-25.6 102.4-128 64-83.2 38.4-51.2v-6.4l-268.8 172.8-51.2 12.8-19.2-19.2v-32l12.8-12.8 76.8-57.6z m0 0" fill="#D97757" p-id="1571"></path></svg>'},{match:/gpt|o1|o3|o4/i,name:"OpenAI",color:"#00000",svg:'<svg t="1771495569354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2752" width="200" height="200"><path d="M565.265178 954.519092c-22.289934 0-48.400999-8.151747-67.952455-14.838727a103.425292 103.425292 0 0 1-26.875292-11.272338c-12.737105-7.769634-15.411897-8.342804-19.806198-24.773669 21.971506-5.158528 81.581157-41.905075 103.871091-55.342721 148.896757-89.159735 119.028246-10.444426 119.028246-364.981743 15.029784 3.566389 82.791182 32.415932 82.791182 57.316972 0 133.102747 20.570425 273.847757-52.604243 354.91943-22.799418 25.47421-91.834527 58.972796-138.388646 58.972796z m-433.061569-299.321966c258.626916 136.860193 184.369594 157.048504 357.721593 52.094759 44.579867-27.193719 90.433445-49.292596 132.593263-77.568969v101.896839c-95.528287 22.226248-272.319304 227.038896-419.050754 100.686815l-25.856323-25.155782c-37.319718-43.943012-45.344094-72.410442-45.344094-151.889977z m375.744596-19.105658c-19.933569-13.310275-79.479535-51.330533-101.896839-57.316972v-133.739602a1158.312326 1158.312326 0 0 0 101.896839-57.316973c43.943012 10.189684 70.690933 47.063603 114.633945 57.316973v127.371049c-17.831947 12.10025-95.846715 58.718054-114.633945 63.749211z m-426.693016-178.31947c0-63.685525-4.26693-90.306074 38.84817-145.776166 23.945757-30.88748 47.509402-39.612396 82.090641-57.953828v261.110652c44.134069 23.372588 83.873836 49.037854 129.345301 74.448379l131.765351 78.396881c-59.545966 15.921381-63.685525 61.32916-109.602788 33.753328-104.699003-62.730242-272.38299-129.345301-272.38299-243.91556z m866.123138 127.37105c0 79.543221-47.573087 161.188063-121.002497 178.31947v-165.582365c0-82.791182 9.743885-84.574377-48.910483-116.608196L565.265178 362.371082c15.79401-23.62733 22.608361-19.105657 48.146256-34.835982 41.714019-25.47421 39.039227-16.112438 117.053995 28.785857 94.190891 54.196382 216.849212 100.559444 216.849212 228.885777z m-541.326961-197.425127v-95.528287c43.751956-23.181531 90.688187-50.94842 133.357489-76.804743 82.154327-49.547338 95.528287-63.303412 185.006449-63.303412 48.464684 0 102.533695 36.746548 125.651541 65.405034 42.223503 52.22213 39.930824 92.662439 39.930824 151.125751-31.078536-16.494551-192.393971-121.002497-222.899337-121.002498s-229.650003 123.422547-261.110652 140.108155z m-50.94842 159.213812c-16.36718-10.95391-63.112355-39.99451-82.791183-44.579867 0-168.320842-33.880699-314.606493 67.952455-390.519639 56.043262-41.714019 113.169178-53.814269 181.376375-30.696423 25.47421 8.661231 35.536523 20.888852 56.36169 26.429493-11.781822 16.048752-80.68956 50.311565-102.278953 63.303412-154.564769 93.235608-120.620384 7.451206-120.620384 376.063024z m-292.953415 121.002498c0 169.148754 115.143429 280.853165 274.293556 273.847756 59.800708-2.674792 26.811606-7.705949 69.417222 25.47421 97.820966 76.741057 228.822091 73.747838 319.637649 1.018969a251.939936 251.939936 0 0 0 52.604244-55.661149c58.20857-85.274918-10.95391-45.598836 81.96327-83.619094 130.236898-53.241099 199.399378-217.358696 128.64476-355.428914-27.448461-53.559526-40.249252-28.849543-28.276373-104.699003 18.723544-118.582447-63.176041-230.032116-157.621674-269.771884-98.90362-41.586648-129.090559 12.737105-178.892639-37.574459A161.888604 161.888604 0 0 0 580.103905 28.913674C474.003821-27.766443 331.284559 1.528898 258.428319 93.681853c-81.326415 102.979494 9.489143 54.705866-92.407697 98.648878C15.149614 257.353652-33.251385 439.175825 41.579107 561.06992c56.807488 92.598753 20.570425 4.967471 20.570424 106.800625z" fill="#EFA474" p-id="2753"></path></svg>'},{match:/gemini/i,name:"Gemini",color:"#4285F4",svg:'<svg t="1771495622863" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4556" width="200" height="200"><path d="M960 512.896A477.248 477.248 0 0 0 512.896 960h-1.792A477.184 477.184 0 0 0 64 512.896v-1.792A477.184 477.184 0 0 0 511.104 64h1.792A477.248 477.248 0 0 0 960 511.104z" fill="#448AFF" p-id="4557"></path></svg>'},{match:/qwen/i,name:"Qwen",color:"#00000",svg:'<svg t="1771495640319" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5634" width="200" height="200"><path d="M537.782857 57.161143c16.749714 29.44 33.426286 58.953143 50.102857 88.502857a7.68 7.68 0 0 0 6.692572 3.913143h236.873143c7.424 0 13.750857 4.681143 19.017142 13.933714l62.061715 109.677714c8.082286 14.372571 10.24 20.370286 1.024 35.693715a2262.893714 2262.893714 0 0 0-32.438857 55.478857l-15.652572 28.086857c-4.534857 8.338286-9.508571 11.922286-1.718857 21.833143l113.152 197.851428c7.314286 12.8 4.754286 21.065143-1.828571 32.841143-18.651429 33.499429-37.632 66.742857-56.978286 99.84-6.765714 11.593143-14.994286 16.018286-29.001143 15.798857a1833.398857 1833.398857 0 0 0-99.291429 0.658286 4.242286 4.242286 0 0 0-3.437714 2.157714 24571.830857 24571.830857 0 0 1-115.419428 202.24c-7.204571 12.507429-16.201143 15.469714-30.939429 15.506286-42.532571 0.146286-85.430857 0.182857-128.731429 0.109714a22.930286 22.930286 0 0 1-19.821714-11.556571l-56.978286-99.108571a3.84 3.84 0 0 0-3.547428-2.121143h-218.331429a76.288 76.288 0 0 1-34.377143-3.913143l-68.388571-118.198857a23.149714 23.149714 0 0 1-0.073143-23.04l51.492572-90.441143a8.448 8.448 0 0 0 0-8.411429 23594.496 23594.496 0 0 1-80.018286-139.593143L47.542857 425.325714c-6.838857-13.202286-7.387429-21.138286 4.022857-41.179428 19.858286-34.669714 39.570286-69.302857 59.209143-103.936 5.632-9.984 12.946286-14.262857 24.905143-14.262857 36.827429-0.182857 73.654857-0.182857 110.445714-0.073143 1.901714 0 3.657143-1.024 4.571429-2.669715l119.734857-208.859428a20.845714 20.845714 0 0 1 17.993143-10.496c22.381714-0.036571 44.946286 0 67.547428-0.256l43.410286-0.987429c14.555429-0.109714 30.866286 1.389714 38.4 14.518857z m-146.432 17.188571a2.56 2.56 0 0 0-2.194286 1.28l-122.331428 213.942857a6.692571 6.692571 0 0 1-5.741714 3.364572H138.788571c-2.377143 0-2.962286 1.060571-1.755428 3.145143l247.917714 433.334857c1.060571 1.792 0.548571 2.633143-1.462857 2.669714l-119.222857 0.658286a9.289143 9.289143 0 0 0-8.557714 4.937143l-56.32 98.56c-1.865143 3.328-0.914286 5.046857 2.925714 5.046857l243.858286 0.365714c1.974857 0 3.401143 0.841143 4.425142 2.56l59.867429 104.704c1.974857 3.474286 3.913143 3.510857 5.924571 0l213.577143-373.76 33.426286-58.953143a2.340571 2.340571 0 0 1 4.096 0l60.745143 107.958857a5.193143 5.193143 0 0 0 4.571428 2.633143l117.906286-0.841143a1.718857 1.718857 0 0 0 1.462857-2.56l-123.721143-217.014857a4.608 4.608 0 0 1 0-4.827428l12.507429-21.613715 47.798857-84.370285c1.024-1.755429 0.512-2.633143-1.499428-2.633143H392.521143c-2.486857 0-3.108571-1.097143-1.828572-3.291429l61.184-106.861714a4.571429 4.571429 0 0 0 0-4.864l-58.258285-102.253714a2.56 2.56 0 0 0-2.267429-1.316572z m268.361143 342.198857c1.974857 0 2.486857 0.841143 1.462857 2.56l-35.474286 62.500572-111.542857 195.620571a2.377143 2.377143 0 0 1-2.121143 1.243429 2.486857 2.486857 0 0 1-2.121142-1.243429l-147.346286-257.353143c-0.841143-1.462857-0.402286-2.230857 1.206857-2.304l9.216-0.512 286.793143-0.512h-0.073143z" fill="#7D5DED" p-id="5635"></path></svg>'},{match:/kimi|moonshot/i,name:"Kimi",color:"#00000",svg:'<svg t="1771495664798" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6649" width="200" height="200"><path d="M731.062857 590.262857v318.317714h-148.589714V443.977143a146.285714 146.285714 0 0 1-146.285714 146.285714l-214.491429-0.036571v318.354285H73.142857V165.814857h148.553143v275.858286h180.882286l119.771428-275.858286h167.753143l-67.84 156.269714a255.524571 255.524571 0 0 1-106.678857 119.588572h66.925714a148.553143 148.553143 0 0 1 148.516572 148.589714z m120.758857-473.965714a99.035429 99.035429 0 0 1 0 198.070857h-99.035428V215.332571a99.035429 99.035429 0 0 1 99.035428-99.035428z" fill="#F4F4F4" p-id="6650"></path></svg>'},{match:/glm|chatglm/i,name:"GLM",color:"#00000",svg:'<svg data-name="glm" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 217.2 200"> <!-- Generator: Adobe Illustrator 29.8.2, SVG Export Plug-In . SVG Version: 2.1.1 Build 3) --> <defs> <style> .st0 { fill: #fff; } </style> </defs> <path class="st0" d="M86.8,190.4H0L131.3,4.8h85.8L86.8,190.4h0ZM212.8,190h-107.9l14.9-21.6c2.3-3.3,6-5.2,9.9-5.2h83.1v26.8h0ZM99.4,26.3c-2.3,3.3-6,5.2-9.9,5.2H6.4V4.8h107.9l-14.9,21.6Z"/> </svg>'},{match:/minimax|abab/i,name:"MiniMax",color:"#00000",svg:'<svg viewBox="0 0 24 24" fill="#fff"><path d="M4 8l4-4 4 4 4-4 4 4v8l-4 4-4-4-4 4-4-4z" fill="none" stroke="#fff" stroke-width="1.5" stroke-linejoin="round"/></svg>'},{match:/deepseek/i,name:"DeepSeek",color:"#00000",svg:'<svg t="1771495947541" class="icon" viewBox="0 0 1391 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11539" width="200" height="200"><path d="M1326.70201318 112.02090779c-12.94676356-6.47485468-18.53640721 5.86654827-26.0997327 12.13814316-2.57756953 2.02376031-4.77807747 4.65435413-6.9785854 7.08168819-18.91788751 20.63528526-41.02017805 34.19182812-69.92725218 32.57311444-42.23384508-2.42733405-78.29772513 11.12773591-110.16384908 44.10589703-6.77679853-40.66668282-29.28560862-64.94444203-63.55255448-80.52327231-17.95608583-8.09209545-36.06388005-16.1856638-48.63358202-33.78825438-8.74900746-12.5431898-11.12773591-26.50330641-15.52727888-40.26016327-2.7823022-8.29535522-5.56460442-16.79249731-14.92044538-18.20942411-10.19244639-1.61871367-14.16337637 7.08168818-18.15934561 14.36516325-15.93232553 29.74073376-22.12880269 62.51710799-21.49692994 95.69705596 1.36684831 74.65672404 32.27117059 134.13819156 93.62469006 176.42358804 6.9800583 4.8546681 8.77551959 9.71080912 6.57501165 16.79102439-4.17271686 14.56695011-9.18056624 28.7303265-13.55506995 43.29727663-2.78377509 9.30723537-6.95501906 11.32952278-16.74241882 7.28347507-33.66158524-14.36516325-62.745407-35.60875491-88.46513227-61.30196806-43.62425973-43.09548975-83.0772755-90.64060097-132.26613965-127.86659667a581.67054343 581.67054343 0 0 0-35.07703915-24.48101901c-50.20074429-49.77065841 6.57501167-90.63912807 19.72650789-95.49526908 13.73181759-5.05792788 4.77955037-22.4572587-39.65480265-22.25547181s-85.07599655 15.3770434-136.87041526 35.60875491c-7.58541892 3.03416756-15.55379103 5.25971475-23.69596499 7.08168819-47.03990759-9.10544849-95.84876434-11.12773591-146.8596019-5.26118765-96.02551195 10.92594905-172.73103555 57.25739323-229.12678412 136.36373875-67.72674425 95.09022244-83.68558192 203.13015422-64.13582165 315.82149435 20.48504978 118.76262107 79.88992666 217.09027084 171.13736114 293.97106918 94.6350973 79.71317902 203.61031862 118.76262107 327.93607117 111.27735913 75.51542292-4.45256725 159.57953934-14.77020989 254.41642354-96.71040901 23.92426399 12.13961607 49.03715574 16.99575708 90.66564019 20.63675815 32.09295007 3.03416756 62.97223311-1.61871367 86.87145788-6.67664152 37.45429471-8.09209545 34.84874013-43.49906349 21.31870939-49.97244528-109.7838417-52.19946535-85.68283009-30.95587367-107.58333373-48.15194474 55.78891504-67.37324899 139.85303146-137.3770918 172.73103555-364.17669887 2.60408167-18.00616433 0.40357375-29.33568711 0-43.90263724-0.20325977-8.90218873 1.76894914-12.34287584 11.75960867-13.35328309 27.49014733-3.23742733 54.19671351-10.92594905 78.70277179-24.68280588 71.11440706-39.65480265 99.81822142-104.80250446 106.59649284-182.89844271 1.01188015-11.9363563-0.20178686-24.27775924-12.56970195-30.54935413M706.87018452 814.87993343c-106.36966673-85.37941333-157.98733782-113.5014334-179.30604722-112.28776638-19.92829476 1.21366703-16.33737217 24.48101902-11.96286844 39.65480264 4.5777635 14.97199677 10.57098089 25.2896394 18.94145384 38.44113563 5.76786417 8.70040186 9.76383341 21.64863831-5.78995762 31.35944742-34.26841876 21.64863831-93.82647692-7.28347506-96.60730623-8.69892897-69.3454579-41.67856295-127.33635378-96.710409-168.1797842-171.97249368-39.45154288-72.43117687-62.33888747-150.1220685-66.13306983-233.07267483-1.01188015-20.02992464 4.77955037-27.11161282 24.27923214-30.75408682a235.19659216 235.19659216 0 0 1 77.91771774-2.02228741c108.59668681 16.18713669 201.05631542 65.75453531 278.54394728 144.25552022 44.23256614 44.71125762 77.69089163 98.12439001 112.1861365 150.32385536 36.64567431 55.43394691 76.0986901 108.24024576 126.29943438 151.53604947 17.72778682 15.17378365 31.86465106 26.7065662 45.41972102 35.20370829-40.84343042 4.65435413-108.99878765 5.66476139-155.60860936-31.96628094m51.00936468-334.83953883c0-8.90218873 6.9815312-15.98387693 15.75557791-15.98387693q2.98408908 0.05155138 5.36134463 1.01188017a15.85720779 15.85720779 0 0 1 10.16740714 14.97199676 15.78061715 15.78061715 0 0 1-15.73053865 15.98387691 15.60386953 15.60386953 0 0 1-15.55379103-15.98387691m158.39238446 82.95060635c-10.1423679 4.24930749-20.30830215 7.89178146-30.09570191 8.29535522-15.12370514 0.81009328-31.66286419-5.46150162-40.61513142-13.15002332-13.96011661-11.93782919-23.92573689-18.61447073-28.09845373-39.45301577-1.79546129-8.90218873-0.81009328-22.65904557 0.78505403-30.54935414 3.59092258-16.99575708-0.40504665-27.92023321-12.13961606-37.8343021-9.55910075-8.09356835-21.72522894-10.31911553-35.07703915-10.31911552-4.98281013 0-9.55910075-2.22407429-12.94823645-4.04604774a13.27669246 13.27669246 0 0 1-5.76639128-18.61299783c1.39041466-2.8323807 8.16868608-9.71228202 9.7623605-10.92594905 18.13136058-10.52090241 39.04649623-7.08021529 58.36795748 0.81009328 17.93104659 7.48526194 31.46107731 21.24359167 51.01083757 40.6666828 19.92829476 23.46913885 23.51921733 29.94399353 34.84874013 47.54511123 8.97877936 13.75685685 17.14746545 27.92023321 22.71206987 44.10442409 3.41270206 10.11732865-0.98684091 18.41121097-12.74644958 23.46913885" fill="#4D6BFE" p-id="11540"></path></svg>'}];function $L(e){if(!e)return null;for(const t of wL)if(t.match.test(e))return{name:e.replace(/^claude-/,"").replace(/-\d{8,}$/,""),provider:t.name,color:t.color,svg:t.svg};return{name:e,provider:e,color:"#065f46",svg:hl("agent")}}function hl(e){return e==="user"?'<svg viewBox="0 0 24 24"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"/></svg>':e==="agent"?'<svg viewBox="0 0 24 24"><path d="M12 2a2 2 0 012 2c0 .74-.4 1.39-1 1.73V7h1a7 7 0 017 7h1a1 1 0 011 1v3a1 1 0 01-1 1h-1.17A7 7 0 0113 22h-2a7 7 0 01-6.83-3H3a1 1 0 01-1-1v-3a1 1 0 011-1h1a7 7 0 017-7h1V5.73c-.6-.34-1-.99-1-1.73a2 2 0 012-2zM9.5 13a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm5 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z"/></svg>':'<svg viewBox="0 0 24 24"><path d="M12 15.5A3.5 3.5 0 018.5 12 3.5 3.5 0 0112 8.5a3.5 3.5 0 013.5 3.5 3.5 3.5 0 01-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97s-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.49.49 0 0014 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1s.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.58 1.69-.98l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.66z"/></svg>'}function Gn(e){return e==null||e===0?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function bi(e){if(Array.isArray(e))return e.map(bi);if(e&&typeof e=="object"){const t={};for(const n of Object.keys(e))n.startsWith("_")||(t[n]=bi(e[n]));return t}return e}function EL(e){var n,r,o;const t={};for(const l of e){const s=(r=(n=l.response)==null?void 0:n.body)==null?void 0:r.usage;if(!s)continue;const c=((o=l.body)==null?void 0:o.model)||"unknown";t[c]||(t[c]={input:0,output:0,cacheCreation:0,cacheRead:0});const d=t[c];d.input+=s.input_tokens||0,d.output+=s.output_tokens||0,d.cacheCreation+=s.cache_creation_input_tokens||0,d.cacheRead+=s.cache_read_input_tokens||0}return t}function RL(e){var n,r,o;const t={ttl:{count:0,cacheCreate:0},system_change:{count:0,cacheCreate:0},tools_change:{count:0,cacheCreate:0},model_change:{count:0,cacheCreate:0},msg_truncated:{count:0,cacheCreate:0},msg_modified:{count:0,cacheCreate:0},key_change:{count:0,cacheCreate:0}};for(let l=0;l<e.length;l++){const s=e$(e,l);if(!s)continue;const c=((o=(r=(n=e[l].response)==null?void 0:n.body)==null?void 0:r.usage)==null?void 0:o.cache_creation_input_tokens)||0,d=s.reasons||[s.reason];for(const m of d)t[m]&&(t[m].count++,t[m].cacheCreate+=c)}return t}function kL(e){var n,r;const t={};for(const o of e){const l=(r=(n=o.response)==null?void 0:n.body)==null?void 0:r.content;if(Array.isArray(l))for(const s of l)s.type==="tool_use"&&s.name&&(t[s.name]=(t[s.name]||0)+1)}return Object.entries(t).sort((o,l)=>l[1]-o[1])}function _L(e){var n;const t={};for(const r of e){const o=(n=r.body)==null?void 0:n.messages;if(Array.isArray(o))for(const l of o){if(l.role!=="user")continue;const s=l.content;if(Array.isArray(s))for(const c of s){if(c.type!=="text"||!Kg(c.text))continue;const d=c.text.match(/^#\s+(.+)$/m),m=d?d[1]:"Skill";t[m]=(t[m]||0)+1}}}return Object.entries(t).sort((r,o)=>o[1]-r[1])}function yd(e){return typeof e!="string"?!1:e.includes("<system-reminder>")&&e.includes("# claudeMd")}function bd(e){return typeof e!="string"?!1:e.includes("<system-reminder>")&&e.includes("skills are available")}function OL(e){const t=e==null?void 0:e.messages;if(!Array.isArray(t))return!1;for(const n of t){const r=n==null?void 0:n.content;if(typeof r=="string"){if(yd(r))return!0}else if(Array.isArray(r)){for(const o of r)if(o.type==="text"&&yd(o.text))return!0}}return!1}function IL(e){const t=e==null?void 0:e.messages;if(!Array.isArray(t))return!1;for(const n of t){const r=n==null?void 0:n.content;if(typeof r=="string"){if(bd(r))return!0}else if(Array.isArray(r)){for(const o of r)if(o.type==="text"&&bd(o.text))return!0}}return!1}function TL(e){return e?e.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}function jL(e){const t=(e==null?void 0:e.url)||"";return!(e.isHeartbeat||e.isCountTokens||/\/api\/eval\/sdk-/.test(t)||/\/messages\/count_tokens/.test(t))}function ga(e){return e.filter(jL)}function AC(e,t){for(let n=t-1;n>=0;n--)if(vr(e[n])&&e[n].timestamp)return e[n].timestamp;return null}function rv(e){const t=e==null?void 0:e.content;if(typeof t=="string")return t;if(Array.isArray(t)){for(const n of t)if((n==null?void 0:n.type)==="text"&&n.text)return n.text}return""}function NL(e){const t=e.body||{},n=hd(t);if(/Extract any file paths/i.test(n)||/process Bash commands/i.test(n)||/command execution specialist/i.test(n))return"Bash";if(/file search specialist/i.test(n))return"Search";if(/planning specialist/i.test(n))return"Plan";if(/general-purpose agent/i.test(n))return"General";const r=t.messages||[];for(let o=r.length-1;o>=0;o--){if(r[o].role!=="user")continue;const l=rv(r[o]);if(/^Command:/m.test(l))return"Bash";break}return null}function PL(e){var r;const t=(r=e.body)==null?void 0:r.messages;if(!Array.isArray(t)||t.length!==1)return!1;const n=t[0];return n.role==="user"&&n.content==="count"}function zL(e,t){var d;const n=e.body||{},r=n.tools,o=n.messages||[];if(Array.isArray(r)&&r.length>0||o.length!==1||o[0].role!=="user")return!1;const l=rv(o[0]);if(!l||l.trim()==="count")return!1;const s=l.trim();if(/^Command:/m.test(l)||/^<policy_spec>/i.test(s)||/^<task-notification>/i.test(s))return!1;const c=hd(n);if(!c.includes("Claude Code")||/process Bash commands/i.test(c)||/Extract any file paths/i.test(c))return!1;if(t){const m=((d=t.body)==null?void 0:d.messages)||[],p=l.slice(0,80);if(m.some(h=>{const y=h==null?void 0:h.content;return typeof y=="string"?y.includes(p):Array.isArray(y)?y.some(b=>(b==null?void 0:b.type)==="text"&&b.text&&b.text.includes(p)):!1}))return!0}return!1}function wi(e,t){var r;if(vr(e))return{type:"MainAgent",subType:null};if(e.isCountTokens||PL(e))return{type:"Count",subType:null};if(zL(e,t)){const o=rv((((r=e.body)==null?void 0:r.messages)||[])[0]);return/^Implement the following plan:/i.test(o.trim())?{type:"Plan",subType:"Prompt"}:{type:"Preflight",subType:null}}return{type:"SubAgent",subType:NL(e)}}function Cd(e,t){return e==="Plan"&&t?`Plan:${t}`:e==="SubAgent"&&t?`SubAgent:${t}`:e}const ML={"ui.guide.title":{zh:"欢迎使用 CC Viewer",en:"Welcome to CC Viewer","zh-TW":"歡迎使用 CC Viewer",ko:"CC Viewer에 오신 것을 환영합니다",ja:"CC Viewer へようこそ",de:"Willkommen bei CC Viewer",es:"Bienvenido a CC Viewer",fr:"Bienvenue sur CC Viewer",it:"Benvenuto in CC Viewer",da:"Velkommen til CC Viewer",pl:"Witamy w CC Viewer",ru:"Добро пожаловать в CC Viewer",ar:"مرحبًا بك في CC Viewer",no:"Velkommen til CC Viewer","pt-BR":"Bem-vindo ao CC Viewer",th:"ยินดีต้อนรับสู่ CC Viewer",tr:"CC Viewer'a hoş geldiniz",uk:"Ласкаво просимо до CC Viewer"},"ui.guide.step1":{zh:"你可以先尝试在 Claude 中发起一轮对话。不知道说什么?可以问问:",en:"Try starting a conversation in Claude. Not sure what to say? Try asking:","zh-TW":"你可以先嘗試在 Claude 中發起一輪對話。不知道說什麼?可以問問:",ko:"Claude에서 대화를 시작해 보세요. 무슨 말을 해야 할지 모르겠다면:",ja:"まず Claude で会話を始めてみましょう。何を言えばいいかわからない場合:",de:"Starten Sie ein Gespräch in Claude. Nicht sicher, was Sie sagen sollen? Fragen Sie:",es:"Intenta iniciar una conversación en Claude. ¿No sabes qué decir? Prueba preguntar:",fr:"Essayez de lancer une conversation dans Claude. Vous ne savez pas quoi dire ? Demandez :",it:"Prova ad avviare una conversazione in Claude. Non sai cosa dire? Prova a chiedere:",da:"Prøv at starte en samtale i Claude. Ikke sikker på hvad du skal sige? Prøv at spørge:",pl:"Spróbuj rozpocząć rozmowę w Claude. Nie wiesz co powiedzieć? Zapytaj:",ru:"Попробуйте начать разговор в Claude. Не знаете, что сказать? Спросите:",ar:"جرّب بدء محادثة في Claude. لا تعرف ماذا تقول؟ جرّب أن تسأل:",no:"Prøv å starte en samtale i Claude. Usikker på hva du skal si? Prøv å spørre:","pt-BR":"Tente iniciar uma conversa no Claude. Não sabe o que dizer? Pergunte:",th:"ลองเริ่มบทสนทนาใน Claude ไม่รู้จะพูดอะไร? ลองถามว่า:",tr:"Claude'da bir sohbet başlatmayı deneyin. Ne söyleyeceğinizi bilmiyor musunuz? Şunu sorun:",uk:"Спробуйте розпочати розмову в Claude. Не знаєте, що сказати? Запитайте:"},"ui.guide.exampleQuestion":{zh:"看看我现在有多少 skill",en:"How many skills do I have right now?","zh-TW":"看看我現在有多少 skill",ko:"지금 내가 가진 skill이 몇 개인지 확인해줘",ja:"今いくつの skill があるか見てみて",de:"Wie viele Skills habe ich gerade?",es:"¿Cuántos skills tengo ahora mismo?",fr:"Combien de skills ai-je en ce moment ?",it:"Quanti skill ho in questo momento?",da:"Hvor mange skills har jeg lige nu?",pl:"Ile mam teraz skills?",ru:"Сколько у меня сейчас skills?",ar:"كم عدد الـ skills لديّ الآن؟",no:"Hvor mange skills har jeg nå?","pt-BR":"Quantos skills eu tenho agora?",th:"ตอนนี้ฉันมีกี่ skill?",tr:"Şu anda kaç tane skill'im var?",uk:"Скільки у мене зараз skills?"},"ui.guide.step2":{zh:"你能看到这段文字,说明服务已经启动。如果 Claude 有响应但这里没有变化,可以让 Claude 帮你排查:",en:"If you can see this, the service is running. If Claude responds but nothing shows here, ask Claude to help troubleshoot:","zh-TW":"你能看到這段文字,說明服務已經啟動。如果 Claude 有回應但這裡沒有變化,可以讓 Claude 幫你排查:",ko:"이 텍스트가 보이면 서비스가 실행 중입니다. Claude가 응답하지만 여기에 변화가 없다면 Claude에게 문제 해결을 요청하세요:",ja:"このテキストが見えていればサービスは起動しています。Claude が応答しているのにここに変化がない場合、Claude にトラブルシューティングを依頼してください:",de:"Wenn Sie diesen Text sehen, läuft der Dienst. Wenn Claude antwortet, aber hier nichts angezeigt wird, bitten Sie Claude um Hilfe:",es:"Si puedes ver este texto, el servicio está funcionando. Si Claude responde pero aquí no cambia nada, pide a Claude que te ayude:",fr:"Si vous voyez ce texte, le service fonctionne. Si Claude répond mais rien ne s'affiche ici, demandez à Claude de vous aider :",it:"Se puoi vedere questo testo, il servizio è in esecuzione. Se Claude risponde ma qui non cambia nulla, chiedi a Claude di aiutarti:",da:"Hvis du kan se denne tekst, kører tjenesten. Hvis Claude svarer, men intet vises her, bed Claude om hjælp:",pl:"Jeśli widzisz ten tekst, usługa działa. Jeśli Claude odpowiada, ale tutaj nic się nie zmienia, poproś Claude o pomoc:",ru:"Если вы видите этот текст, сервис запущен. Если Claude отвечает, но здесь ничего не меняется, попросите Claude помочь:",ar:"إذا كنت ترى هذا النص، فالخدمة تعمل. إذا كان Claude يستجيب ولكن لا شيء يظهر هنا، اطلب من Claude المساعدة:",no:"Hvis du kan se denne teksten, kjører tjenesten. Hvis Claude svarer men ingenting vises her, be Claude om hjelp:","pt-BR":"Se você pode ver este texto, o serviço está rodando. Se o Claude responde mas nada aparece aqui, peça ao Claude para ajudar:",th:"ถ้าคุณเห็นข้อความนี้ แสดงว่าบริการกำลังทำงาน หาก Claude ตอบกลับแต่ที่นี่ไม่มีการเปลี่ยนแปลง ให้ขอให้ Claude ช่วยแก้ไข:",tr:"Bu metni görebiliyorsanız, hizmet çalışıyor. Claude yanıt veriyor ama burada bir değişiklik olmuyorsa, Claude'dan yardım isteyin:",uk:"Якщо ви бачите цей текст, сервіс працює. Якщо Claude відповідає, але тут нічого не змінюється, попросіть Claude допомогти:"},"ui.guide.troubleshootCmd":{zh:"我已经启动了 cc-viewer,但是无法看到 cc-viewer 的请求,检查 npm 包中 cc-viewer 的实现,检查问题,并修复",en:"I've started cc-viewer but can't see any requests. Check the cc-viewer npm package implementation, find the issue, and fix it","zh-TW":"我已經啟動了 cc-viewer,但是無法看到 cc-viewer 的請求,檢查 npm 包中 cc-viewer 的實現,檢查問題,並修復",ko:"cc-viewer를 시작했지만 요청을 볼 수 없습니다. cc-viewer npm 패키지 구현을 확인하고 문제를 찾아 수정해 주세요",ja:"cc-viewer を起動しましたがリクエストが表示されません。cc-viewer npm パッケージの実装を確認し、問題を見つけて修正してください",de:"Ich habe cc-viewer gestartet, kann aber keine Anfragen sehen. Überprüfen Sie die cc-viewer npm-Paket-Implementierung, finden Sie das Problem und beheben Sie es",es:"He iniciado cc-viewer pero no puedo ver las solicitudes. Revisa la implementación del paquete npm cc-viewer, encuentra el problema y corrígelo",fr:"J'ai démarré cc-viewer mais je ne vois aucune requête. Vérifiez l'implémentation du package npm cc-viewer, trouvez le problème et corrigez-le",it:"Ho avviato cc-viewer ma non riesco a vedere le richieste. Controlla l'implementazione del pacchetto npm cc-viewer, trova il problema e risolvilo",da:"Jeg har startet cc-viewer, men kan ikke se nogen forespørgsler. Tjek cc-viewer npm-pakkens implementering, find problemet og ret det",pl:"Uruchomiłem cc-viewer, ale nie widzę żadnych żądań. Sprawdź implementację pakietu npm cc-viewer, znajdź problem i napraw go",ru:"Я запустил cc-viewer, но не вижу запросов. Проверьте реализацию npm-пакета cc-viewer, найдите проблему и исправьте её",ar:"لقد قمت بتشغيل cc-viewer ولكن لا أستطيع رؤية أي طلبات. تحقق من تنفيذ حزمة npm الخاصة بـ cc-viewer، وابحث عن المشكلة وأصلحها",no:"Jeg har startet cc-viewer, men kan ikke se noen forespørsler. Sjekk cc-viewer npm-pakkens implementering, finn problemet og fiks det","pt-BR":"Iniciei o cc-viewer mas não consigo ver as requisições. Verifique a implementação do pacote npm cc-viewer, encontre o problema e corrija",th:"ฉันเริ่ม cc-viewer แล้วแต่ไม่เห็นคำขอใดๆ ตรวจสอบการใช้งานแพ็กเกจ npm ของ cc-viewer หาปัญหาและแก้ไข",tr:"cc-viewer'ı başlattım ama istekleri göremiyorum. cc-viewer npm paketinin uygulamasını kontrol edin, sorunu bulun ve düzeltin",uk:"Я запустив cc-viewer, але не бачу жодних запитів. Перевірте реалізацію npm-пакету cc-viewer, знайдіть проблему та виправте її"},"ui.guide.step3":{zh:"在极端情况下,native 版本的 Claude 无法拦截。你可以尝试切回 npm 版本:",en:"In extreme cases, the native version of Claude cannot be intercepted. You can try switching back to the npm version:","zh-TW":"在極端情況下,native 版本的 Claude 無法攔截。你可以嘗試切回 npm 版本:",ko:"극단적인 경우 native 버전의 Claude는 가로챌 수 없습니다. npm 버전으로 전환해 보세요:",ja:"極端な場合、ネイティブ版の Claude はインターセプトできません。npm 版に切り替えてみてください:",de:"In extremen Fällen kann die native Version von Claude nicht abgefangen werden. Versuchen Sie, zur npm-Version zu wechseln:",es:"En casos extremos, la versión nativa de Claude no puede ser interceptada. Puedes intentar volver a la versión npm:",fr:"Dans les cas extrêmes, la version native de Claude ne peut pas être interceptée. Essayez de revenir à la version npm :",it:"In casi estremi, la versione nativa di Claude non può essere intercettata. Puoi provare a tornare alla versione npm:",da:"I ekstreme tilfælde kan den native version af Claude ikke opsnappes. Du kan prøve at skifte tilbage til npm-versionen:",pl:"W skrajnych przypadkach natywna wersja Claude nie może być przechwycona. Możesz spróbować przełączyć się na wersję npm:",ru:"В крайних случаях нативная версия Claude не может быть перехвачена. Попробуйте переключиться на npm-версию:",ar:"في الحالات القصوى، لا يمكن اعتراض النسخة الأصلية من Claude. يمكنك محاولة العودة إلى نسخة npm:",no:"I ekstreme tilfeller kan den native versjonen av Claude ikke fanges opp. Du kan prøve å bytte tilbake til npm-versjonen:","pt-BR":"Em casos extremos, a versão nativa do Claude não pode ser interceptada. Você pode tentar voltar para a versão npm:",th:"ในกรณีสุดขีด เวอร์ชัน native ของ Claude ไม่สามารถดักจับได้ คุณสามารถลองเปลี่ยนกลับไปใช้เวอร์ชัน npm:",tr:"Aşırı durumlarda, Claude'un native sürümü yakalanamaz. npm sürümüne geri dönmeyi deneyebilirsiniz:",uk:"У крайніх випадках нативну версію Claude неможливо перехопити. Спробуйте переключитися на npm-версію:"},"cli.alreadyWorking":{zh:"CC Viewer 已经能工作了",en:"CC Viewer is already working","zh-TW":"CC Viewer 已經能工作了",ko:"CC Viewer가 이미 작동 중입니다",ja:"CC Viewer は既に動作しています",de:"CC Viewer funktioniert bereits",es:"CC Viewer ya está funcionando",fr:"CC Viewer fonctionne déjà",it:"CC Viewer è già funzionante",da:"CC Viewer fungerer allerede",pl:"CC Viewer już działa",ru:"CC Viewer уже работает",ar:"CC Viewer يعمل بالفعل",no:"CC Viewer fungerer allerede","pt-BR":"CC Viewer já está funcionando",th:"CC Viewer ทำงานอยู่แล้ว",tr:"CC Viewer zaten çalışıyor",uk:"CC Viewer вже працює"},"cli.inject.success":{zh:"CC Viewer 安装成功",en:"CC Viewer installed successfully","zh-TW":"CC Viewer 安裝成功",ko:"CC Viewer 설치 성공",ja:"CC Viewer インストール成功",de:"CC Viewer erfolgreich installiert",es:"CC Viewer instalado correctamente",fr:"CC Viewer installé avec succès",it:"CC Viewer installato con successo",da:"CC Viewer installeret",pl:"CC Viewer zainstalowany pomyślnie",ru:"CC Viewer успешно установлен",ar:"تم تثبيت CC Viewer بنجاح",no:"CC Viewer installert","pt-BR":"CC Viewer instalado com sucesso",th:"ติดตั้ง CC Viewer สำเร็จ",tr:"CC Viewer başarıyla kuruldu",uk:"CC Viewer успішно встановлено"},"cli.inject.exists":{zh:"CC Viewer 已安装,无需重复操作",en:"CC Viewer already installed, no action needed","zh-TW":"CC Viewer 已安裝,無需重複操作",ko:"CC Viewer 이미 설치됨, 추가 작업 불필요",ja:"CC Viewer は既にインストール済み、操作不要",de:"CC Viewer bereits installiert, keine Aktion nötig",es:"CC Viewer ya instalado, no se requiere acción",fr:"CC Viewer déjà installé, aucune action nécessaire",it:"CC Viewer già installato, nessuna azione necessaria",da:"CC Viewer allerede installeret, ingen handling nødvendig",pl:"CC Viewer już zainstalowany, nie wymaga działania",ru:"CC Viewer уже установлен, действий не требуется",ar:"CC Viewer مثبت بالفعل، لا حاجة لأي إجراء",no:"CC Viewer allerede installert, ingen handling nødvendig","pt-BR":"CC Viewer já instalado, nenhuma ação necessária",th:"CC Viewer ติดตั้งแล้ว ไม่ต้องดำเนินการ",tr:"CC Viewer zaten kurulu, işlem gerekmiyor",uk:"CC Viewer вже встановлено, дій не потрібно"},"cli.inject.fail":{zh:"❌ 安装失败: {error}",en:"❌ Installation failed: {error}","zh-TW":"❌ 安裝失敗: {error}",ko:"❌ 설치 실패: {error}",ja:"❌ インストール失敗: {error}",de:"❌ Installation fehlgeschlagen: {error}",es:"❌ Instalación fallida: {error}",fr:"❌ Échec de l'installation : {error}",it:"❌ Installazione fallita: {error}",da:"❌ Installation mislykkedes: {error}",pl:"❌ Instalacja nie powiodła się: {error}",ru:"❌ Ошибка установки: {error}",ar:"❌ فشل التثبيت: {error}",no:"❌ Installasjon mislyktes: {error}","pt-BR":"❌ Falha na instalação: {error}",th:"❌ ติดตั้งล้มเหลว: {error}",tr:"❌ Kurulum başarısız: {error}",uk:"❌ Помилка встановлення: {error}"},"cli.inject.notFound":{zh:"❌ 找不到 Claude Code cli.js: {path}",en:"❌ Claude Code cli.js not found: {path}","zh-TW":"❌ 找不到 Claude Code cli.js: {path}",ko:"❌ Claude Code cli.js를 찾을 수 없음: {path}",ja:"❌ Claude Code cli.js が見つかりません: {path}",de:"❌ Claude Code cli.js nicht gefunden: {path}",es:"❌ Claude Code cli.js no encontrado: {path}",fr:"❌ Claude Code cli.js introuvable : {path}",it:"❌ Claude Code cli.js non trovato: {path}",da:"❌ Claude Code cli.js ikke fundet: {path}",pl:"❌ Nie znaleziono Claude Code cli.js: {path}",ru:"❌ Claude Code cli.js не найден: {path}",ar:"❌ لم يتم العثور على Claude Code cli.js: {path}",no:"❌ Claude Code cli.js ikke funnet: {path}","pt-BR":"❌ Claude Code cli.js não encontrado: {path}",th:"❌ ไม่พบ Claude Code cli.js: {path}",tr:"❌ Claude Code cli.js bulunamadı: {path}",uk:"❌ Claude Code cli.js не знайдено: {path}"},"cli.inject.notFoundHint":{zh:" 请确认 @anthropic-ai/claude-code 已安装",en:" Please make sure @anthropic-ai/claude-code is installed","zh-TW":" 請確認 @anthropic-ai/claude-code 已安裝",ko:" @anthropic-ai/claude-code가 설치되어 있는지 확인하세요",ja:" @anthropic-ai/claude-code がインストールされていることを確認してください",de:" Bitte stellen Sie sicher, dass @anthropic-ai/claude-code installiert ist",es:" Asegúrese de que @anthropic-ai/claude-code esté instalado",fr:" Veuillez vérifier que @anthropic-ai/claude-code est installé",it:" Assicurati che @anthropic-ai/claude-code sia installato",da:" Sørg for at @anthropic-ai/claude-code er installeret",pl:" Upewnij się, że @anthropic-ai/claude-code jest zainstalowany",ru:" Убедитесь, что @anthropic-ai/claude-code установлен",ar:" يرجى التأكد من تثبيت @anthropic-ai/claude-code",no:" Sørg for at @anthropic-ai/claude-code er installert","pt-BR":" Certifique-se de que @anthropic-ai/claude-code está instalado",th:" กรุณาตรวจสอบว่า @anthropic-ai/claude-code ถูกติดตั้งแล้ว",tr:" @anthropic-ai/claude-code'un kurulu olduğundan emin olun",uk:" Переконайтеся, що @anthropic-ai/claude-code встановлено"},"cli.hook.exists":{zh:"自动修复 hook 已存在于 {path}",en:"Auto-repair hook already exists in {path}","zh-TW":"自動修復 hook 已存在於 {path}",ko:"자동 복구 hook이 이미 {path}에 존재함",ja:"自動修復 hook は既に {path} に存在します",de:"Auto-Reparatur-Hook existiert bereits in {path}",es:"Hook de auto-reparación ya existe en {path}",fr:"Hook de réparation auto déjà présent dans {path}",it:"Hook di auto-riparazione già presente in {path}",da:"Auto-reparations-hook findes allerede i {path}",pl:"Hook auto-naprawy już istnieje w {path}",ru:"Hook автовосстановления уже существует в {path}",ar:"hook الإصلاح التلقائي موجود بالفعل في {path}",no:"Auto-reparasjons-hook finnes allerede i {path}","pt-BR":"Hook de auto-reparo já existe em {path}",th:"hook ซ่อมอัตโนมัติมีอยู่แล้วใน {path}",tr:"Otomatik onarım hook'u zaten {path} dosyasında mevcut",uk:"Hook автовідновлення вже існує в {path}"},"cli.hook.fail":{zh:"⚠️ shell hook 写入失败: {error}",en:"⚠️ Failed to write shell hook: {error}","zh-TW":"⚠️ shell hook 寫入失敗: {error}",ko:"⚠️ shell hook 작성 실패: {error}",ja:"⚠️ shell hook の書き込みに失敗: {error}",de:"⚠️ Shell-Hook konnte nicht geschrieben werden: {error}",es:"⚠️ Error al escribir el shell hook: {error}",fr:"⚠️ Échec de l'écriture du shell hook : {error}",it:"⚠️ Impossibile scrivere il shell hook: {error}",da:"⚠️ Kunne ikke skrive shell hook: {error}",pl:"⚠️ Nie udało się zapisać shell hook: {error}",ru:"⚠️ Не удалось записать shell hook: {error}",ar:"⚠️ فشل كتابة shell hook: {error}",no:"⚠️ Kunne ikke skrive shell hook: {error}","pt-BR":"⚠️ Falha ao escrever shell hook: {error}",th:"⚠️ เขียน shell hook ล้มเหลว: {error}",tr:"⚠️ Shell hook yazılamadı: {error}",uk:"⚠️ Не вдалося записати shell hook: {error}"},"cli.usage.hint":{zh:`
342
+ 如需卸载,请运行: ccv --uninstall`,en:`
343
+ To uninstall, run: ccv --uninstall`,"zh-TW":`
344
+ 如需卸載,請執行: ccv --uninstall`,ko:`
345
+ 제거하려면 실행: ccv --uninstall`,ja:`
346
+ アンインストールするには: ccv --uninstall`,de:`
347
+ Zum Deinstallieren: ccv --uninstall`,es:`
348
+ Para desinstalar, ejecute: ccv --uninstall`,fr:`
349
+ Pour désinstaller, exécutez : ccv --uninstall`,it:`
350
+ Per disinstallare, esegui: ccv --uninstall`,da:`
351
+ For at afinstallere, kør: ccv --uninstall`,pl:`
352
+ Aby odinstalować, uruchom: ccv --uninstall`,ru:`
353
+ Для удаления выполните: ccv --uninstall`,ar:`
354
+ لإلغاء التثبيت، قم بتشغيل: ccv --uninstall`,no:`
355
+ For å avinstallere, kjør: ccv --uninstall`,"pt-BR":`
356
+ Para desinstalar, execute: ccv --uninstall`,th:`
357
+ หากต้องการถอนการติดตั้ง ให้เรียกใช้: ccv --uninstall`,tr:`
358
+ Kaldırmak için çalıştırın: ccv --uninstall`,uk:`
359
+ Для видалення виконайте: ccv --uninstall`},"cli.help":{zh:`CC Viewer CLI
360
+
361
+ 用法:
362
+ ccv [options]
363
+ ccv run -- <command> [args...]
364
+
365
+ 选项:
366
+ -h, --help 显示帮助
367
+ -v, --version 显示版本
368
+ --uninstall 移除 CC Viewer 集成
369
+
370
+ 说明:
371
+ 直接运行 ccv 将安装/修复 Claude Code 的集成 Hook。`,en:`CC Viewer CLI
372
+
373
+ Usage:
374
+ ccv [options]
375
+ ccv run -- <command> [args...]
376
+
377
+ Options:
378
+ -h, --help Show help
379
+ -v, --version Show version
380
+ --uninstall Remove CC Viewer integration
381
+
382
+ Notes:
383
+ Running ccv without arguments installs/repairs the Claude Code hook.`,"zh-TW":`CC Viewer CLI
384
+
385
+ 用法:
386
+ ccv [options]
387
+ ccv run -- <command> [args...]
388
+
389
+ 選項:
390
+ -h, --help 顯示說明
391
+ -v, --version 顯示版本
392
+ --uninstall 移除 CC Viewer 整合
393
+
394
+ 說明:
395
+ 直接執行 ccv 會安裝/修復 Claude Code 的整合 Hook。`},"cli.usage.uninstallHint":{zh:"",en:"","zh-TW":"",ko:"",ja:"",de:"",es:"",fr:"",it:"",da:"",pl:"",ru:"",ar:"",no:"","pt-BR":"",th:"",tr:"",uk:""},"cli.uninstall.cliCleaned":{zh:"✅ cli.js 已清理",en:"✅ cli.js cleaned","zh-TW":"✅ cli.js 已清理",ko:"✅ cli.js 정리 완료",ja:"✅ cli.js をクリーンアップしました",de:"✅ cli.js bereinigt",es:"✅ cli.js limpiado",fr:"✅ cli.js nettoyé",it:"✅ cli.js pulito",da:"✅ cli.js renset",pl:"✅ cli.js wyczyszczony",ru:"✅ cli.js очищен",ar:"✅ تم تنظيف cli.js",no:"✅ cli.js renset","pt-BR":"✅ cli.js limpo",th:"✅ ล้าง cli.js แล้ว",tr:"✅ cli.js temizlendi",uk:"✅ cli.js очищено"},"cli.uninstall.cliNotFound":{zh:"⚠️ 未找到 Claude Code cli.js,跳过",en:"⚠️ Claude Code cli.js not found, skipped","zh-TW":"⚠️ 未找到 Claude Code cli.js,跳過",ko:"⚠️ Claude Code cli.js를 찾을 수 없음, 건너뜀",ja:"⚠️ Claude Code cli.js が見つかりません、スキップ",de:"⚠️ Claude Code cli.js nicht gefunden, übersprungen",es:"⚠️ Claude Code cli.js no encontrado, omitido",fr:"⚠️ Claude Code cli.js introuvable, ignoré",it:"⚠️ Claude Code cli.js non trovato, saltato",da:"⚠️ Claude Code cli.js ikke fundet, sprunget over",pl:"⚠️ Nie znaleziono Claude Code cli.js, pominięto",ru:"⚠️ Claude Code cli.js не найден, пропущено",ar:"⚠️ لم يتم العثور على Claude Code cli.js، تم التخطي",no:"⚠️ Claude Code cli.js ikke funnet, hoppet over","pt-BR":"⚠️ Claude Code cli.js não encontrado, ignorado",th:"⚠️ ไม่พบ Claude Code cli.js ข้ามไป",tr:"⚠️ Claude Code cli.js bulunamadı, atlandı",uk:"⚠️ Claude Code cli.js не знайдено, пропущено"},"cli.uninstall.cliFail":{zh:"❌ cli.js 清理失败",en:"❌ Failed to clean cli.js","zh-TW":"❌ cli.js 清理失敗",ko:"❌ cli.js 정리 실패",ja:"❌ cli.js のクリーンアップに失敗",de:"❌ cli.js Bereinigung fehlgeschlagen",es:"❌ Fallo al limpiar cli.js",fr:"❌ Échec du nettoyage de cli.js",it:"❌ Pulizia cli.js fallita",da:"❌ Rensning af cli.js mislykkedes",pl:"❌ Czyszczenie cli.js nie powiodło się",ru:"❌ Ошибка очистки cli.js",ar:"❌ فشل تنظيف cli.js",no:"❌ Rensing av cli.js mislyktes","pt-BR":"❌ Falha ao limpar cli.js",th:"❌ ล้าง cli.js ล้มเหลว",tr:"❌ cli.js temizleme başarısız",uk:"❌ Помилка очищення cli.js"},"cli.uninstall.hookRemoved":{zh:"✅ shell hook 已从 {path} 移除",en:"✅ Shell hook removed from {path}","zh-TW":"✅ shell hook 已從 {path} 移除",ko:"✅ shell hook이 {path}에서 제거됨",ja:"✅ shell hook を {path} から削除しました",de:"✅ Shell-Hook aus {path} entfernt",es:"✅ Shell hook eliminado de {path}",fr:"✅ Shell hook supprimé de {path}",it:"✅ Shell hook rimosso da {path}",da:"✅ Shell hook fjernet fra {path}",pl:"✅ Shell hook usunięty z {path}",ru:"✅ Shell hook удалён из {path}",ar:"✅ تم إزالة shell hook من {path}",no:"✅ Shell hook fjernet fra {path}","pt-BR":"✅ Shell hook removido de {path}",th:"✅ Shell hook ถูกลบออกจาก {path}",tr:"✅ Shell hook {path} dosyasından kaldırıldı",uk:"✅ Shell hook видалено з {path}"},"cli.uninstall.hookClean":{zh:"✅ {path} 中无需清理",en:"✅ No cleanup needed in {path}","zh-TW":"✅ {path} 中無需清理",ko:"✅ {path}에서 정리할 항목 없음",ja:"✅ {path} のクリーンアップは不要です",de:"✅ Keine Bereinigung in {path} nötig",es:"✅ No se necesita limpieza en {path}",fr:"✅ Aucun nettoyage nécessaire dans {path}",it:"✅ Nessuna pulizia necessaria in {path}",da:"✅ Ingen oprydning nødvendig i {path}",pl:"✅ Brak potrzeby czyszczenia w {path}",ru:"✅ Очистка в {path} не требуется",ar:"✅ لا حاجة للتنظيف في {path}",no:"✅ Ingen opprydding nødvendig i {path}","pt-BR":"✅ Nenhuma limpeza necessária em {path}",th:"✅ ไม่จำเป็นต้องล้างใน {path}",tr:"✅ {path} dosyasında temizlik gerekmiyor",uk:"✅ Очищення в {path} не потрібне"},"cli.uninstall.hookFail":{zh:"❌ shell hook 清理失败: {error}",en:"❌ Failed to clean shell hook: {error}","zh-TW":"❌ shell hook 清理失敗: {error}",ko:"❌ shell hook 정리 실패: {error}",ja:"❌ shell hook のクリーンアップに失敗: {error}",de:"❌ Shell-Hook-Bereinigung fehlgeschlagen: {error}",es:"❌ Error al limpiar el shell hook: {error}",fr:"❌ Échec du nettoyage du shell hook : {error}",it:"❌ Pulizia shell hook fallita: {error}",da:"❌ Kunne ikke rense shell hook: {error}",pl:"❌ Nie udało się wyczyścić shell hook: {error}",ru:"❌ Не удалось очистить shell hook: {error}",ar:"❌ فشل تنظيف shell hook: {error}",no:"❌ Kunne ikke rense shell hook: {error}","pt-BR":"❌ Falha ao limpar shell hook: {error}",th:"❌ ล้าง shell hook ล้มเหลว: {error}",tr:"❌ Shell hook temizlenemedi: {error}",uk:"❌ Не вдалося очистити shell hook: {error}"},"cli.uninstall.done":{zh:`
396
+ 🗑️ CC Viewer 集成已移除 (运行 'npm uninstall -g cc-viewer' 以彻底删除命令)`,en:`
397
+ 🗑️ CC Viewer integration removed (Run 'npm uninstall -g cc-viewer' to remove command)`,"zh-TW":`
398
+ 🗑️ CC Viewer 集成已移除 (運行 'npm uninstall -g cc-viewer' 以徹底刪除命令)`,ko:`
399
+ 🗑️ CC Viewer 통합 제거됨 ('npm uninstall -g cc-viewer'를 실행하여 명령 삭제)`,ja:`
400
+ 🗑️ CC Viewer 統合を削除しました (コマンドを完全に削除するには 'npm uninstall -g cc-viewer' を実行)`,de:`
401
+ 🗑️ CC Viewer-Integration entfernt (Führen Sie 'npm uninstall -g cc-viewer' aus, um den Befehl zu entfernen)`,es:`
402
+ 🗑️ Integración de CC Viewer eliminada (Ejecute 'npm uninstall -g cc-viewer' para eliminar el comando)`,fr:`
403
+ 🗑️ Intégration CC Viewer supprimée (Exécutez 'npm uninstall -g cc-viewer' pour supprimer la commande)`,it:`
404
+ 🗑️ Integrazione CC Viewer rimossa (Esegui 'npm uninstall -g cc-viewer' per rimuovere il comando)`,da:`
405
+ 🗑️ CC Viewer integration fjernet (Kør 'npm uninstall -g cc-viewer' for at fjerne kommandoen)`,pl:`
406
+ 🗑️ Integracja CC Viewer usunięta (Uruchom 'npm uninstall -g cc-viewer', aby usunąć polecenie)`,ru:`
407
+ 🗑️ Интеграция CC Viewer удалена (Запустите 'npm uninstall -g cc-viewer' для удаления команды)`,ar:`
408
+ 🗑️ تمت إزالة تكامل CC Viewer (قم بتشغيل 'npm uninstall -g cc-viewer' لإزالة الأمر)`,no:`
409
+ 🗑️ CC Viewer-integrasjon fjernet (Kjør 'npm uninstall -g cc-viewer' for å fjerne kommandoen)`,"pt-BR":`
410
+ 🗑️ Integração do CC Viewer removida (Execute 'npm uninstall -g cc-viewer' para remover o comando)`,th:`
411
+ 🗑️ การรวม CC Viewer ถูกลบออก (เรียกใช้ 'npm uninstall -g cc-viewer' เพื่อลบคำสั่ง)`,tr:`
412
+ 🗑️ CC Viewer entegrasyonu kaldırıldı (Komutu kaldırmak için 'npm uninstall -g cc-viewer' çalıştırın)`,uk:`
413
+ 🗑️ Інтеграцію CC Viewer видалено (Запустіть 'npm uninstall -g cc-viewer', щоб видалити команду)`},"server.started":{zh:`
414
+ Claude 请求监控服务已启动: http://{host}:{port}
415
+ `,en:`
416
+ CC Viewer started: http://{host}:{port}
417
+ `,"zh-TW":`
418
+ Claude 請求監控服務已啟動: http://{host}:{port}
419
+ `,ko:`
420
+ CC Viewer 시작됨: http://{host}:{port}
421
+ `,ja:`
422
+ CC Viewer 起動: http://{host}:{port}
423
+ `,de:`
424
+ CC Viewer gestartet: http://{host}:{port}
425
+ `,es:`
426
+ CC Viewer iniciado: http://{host}:{port}
427
+ `,fr:`
428
+ CC Viewer démarré : http://{host}:{port}
429
+ `,it:`
430
+ CC Viewer avviato: http://{host}:{port}
431
+ `,da:`
432
+ CC Viewer startet: http://{host}:{port}
433
+ `,pl:`
434
+ CC Viewer uruchomiony: http://{host}:{port}
435
+ `,ru:`
436
+ CC Viewer запущен: http://{host}:{port}
437
+ `,ar:`
438
+ تم تشغيل CC Viewer: http://{host}:{port}
439
+ `,no:`
440
+ CC Viewer startet: http://{host}:{port}
441
+ `,"pt-BR":`
442
+ CC Viewer iniciado: http://{host}:{port}
443
+ `,th:`
444
+ CC Viewer เริ่มทำงาน: http://{host}:{port}
445
+ `,tr:`
446
+ CC Viewer başlatıldı: http://{host}:{port}
447
+ `,uk:`
448
+ CC Viewer запущено: http://{host}:{port}
449
+ `},"server.reuse":{zh:`
450
+ CC Viewer 已在运行: http://{host}:{port}
451
+ `,en:`
452
+ CC Viewer already running: http://{host}:{port}
453
+ `,"zh-TW":`
454
+ CC Viewer 已在運行: http://{host}:{port}
455
+ `,ko:`
456
+ CC Viewer 이미 실행 중: http://{host}:{port}
457
+ `,ja:`
458
+ CC Viewer は既に実行中: http://{host}:{port}
459
+ `,de:`
460
+ CC Viewer läuft bereits: http://{host}:{port}
461
+ `,es:`
462
+ CC Viewer ya en ejecución: http://{host}:{port}
463
+ `,fr:`
464
+ CC Viewer déjà en cours d'exécution : http://{host}:{port}
465
+ `,it:`
466
+ CC Viewer già in esecuzione: http://{host}:{port}
467
+ `,da:`
468
+ CC Viewer kører allerede: http://{host}:{port}
469
+ `,pl:`
470
+ CC Viewer już działa: http://{host}:{port}
471
+ `,ru:`
472
+ CC Viewer уже запущен: http://{host}:{port}
473
+ `,ar:`
474
+ CC Viewer يعمل بالفعل: http://{host}:{port}
475
+ `,no:`
476
+ CC Viewer kjører allerede: http://{host}:{port}
477
+ `,"pt-BR":`
478
+ CC Viewer já em execução: http://{host}:{port}
479
+ `,th:`
480
+ CC Viewer กำลังทำงานอยู่แล้ว: http://{host}:{port}
481
+ `,tr:`
482
+ CC Viewer zaten çalışıyor: http://{host}:{port}
483
+ `,uk:`
484
+ CC Viewer вже працює: http://{host}:{port}
485
+ `},"server.portsBusy":{zh:"⚠️ 端口 {start}-{end} 均被占用,请求监控服务未启动",en:"⚠️ Ports {start}-{end} are all in use, monitoring service not started","zh-TW":"⚠️ 端口 {start}-{end} 均被佔用,請求監控服務未啟動",ko:"⚠️ 포트 {start}-{end} 모두 사용 중, 모니터링 서비스 미시작",ja:"⚠️ ポート {start}-{end} はすべて使用中、監視サービスは起動されませんでした",de:"⚠️ Ports {start}-{end} sind alle belegt, Überwachungsdienst nicht gestartet",es:"⚠️ Puertos {start}-{end} están todos en uso, servicio de monitoreo no iniciado",fr:"⚠️ Ports {start}-{end} tous occupés, service de surveillance non démarré",it:"⚠️ Porte {start}-{end} tutte in uso, servizio di monitoraggio non avviato",da:"⚠️ Porte {start}-{end} er alle i brug, overvågningstjeneste ikke startet",pl:"⚠️ Porty {start}-{end} są wszystkie zajęte, usługa monitorowania nie uruchomiona",ru:"⚠️ Порты {start}-{end} все заняты, служба мониторинга не запущена",ar:"⚠️ المنافذ {start}-{end} كلها مشغولة، لم يتم تشغيل خدمة المراقبة",no:"⚠️ Porter {start}-{end} er alle i bruk, overvåkningstjeneste ikke startet","pt-BR":"⚠️ Portas {start}-{end} estão todas em uso, serviço de monitoramento não iniciado",th:"⚠️ พอร์ต {start}-{end} ถูกใช้งานทั้งหมด บริการตรวจสอบไม่ได้เริ่มทำงาน",tr:"⚠️ {start}-{end} portları kullanımda, izleme servisi başlatılamadı",uk:"⚠️ Порти {start}-{end} всі зайняті, служба моніторингу не запущена"},"ui.requestList":{zh:"请求列表",en:"Requests","zh-TW":"請求列表",ko:"요청 목록",ja:"リクエスト一覧",de:"Anfragen",es:"Solicitudes",fr:"Requêtes",it:"Richieste",da:"Forespørgsler",pl:"Żądania",ru:"Запросы",ar:"الطلبات",no:"Forespørsler","pt-BR":"Requisições",th:"รายการคำขอ",tr:"İstekler",uk:"Запити"},"ui.totalRequests":{zh:"总请求数: {count}",en:"Total: {count}","zh-TW":"總請求數: {count}",ko:"총 요청 수: {count}",ja:"合計: {count}",de:"Gesamt: {count}",es:"Total: {count}",fr:"Total : {count}",it:"Totale: {count}",da:"Total: {count}",pl:"Łącznie: {count}",ru:"Всего: {count}",ar:"الإجمالي: {count}",no:"Totalt: {count}","pt-BR":"Total: {count}",th:"ทั้งหมด: {count}",tr:"Toplam: {count}",uk:"Всього: {count}"},"ui.waitingRequests":{zh:"等待请求...",en:"Waiting for requests...","zh-TW":"等待請求...",ko:"요청 대기 중...",ja:"リクエスト待機中...",de:"Warte auf Anfragen...",es:"Esperando solicitudes...",fr:"En attente de requêtes...",it:"In attesa di richieste...",da:"Venter på forespørgsler...",pl:"Oczekiwanie na żądania...",ru:"Ожидание запросов...",ar:"في انتظار الطلبات...",no:"Venter på forespørsler...","pt-BR":"Aguardando requisições...",th:"รอคำขอ...",tr:"İstekler bekleniyor...",uk:"Очікування запитів..."},"ui.importLocalLogs":{zh:"日志管理工具",en:"Log Management","zh-TW":"日誌管理工具",ko:"로그 관리 도구",ja:"ログ管理ツール",de:"Log-Verwaltung",es:"Gestión de logs",fr:"Gestion des logs",it:"Gestione log",da:"Loghåndtering",pl:"Zarządzanie logami",ru:"Управление логами",ar:"إدارة السجلات",no:"Loggadministrasjon","pt-BR":"Gerenciamento de logs",th:"จัดการบันทึก",tr:"Log yönetimi",uk:"Керування логами"},"ui.loadLocalJsonl":{zh:"直接选择加载本地jsonl文件",en:"Load local JSONL file","zh-TW":"直接選擇載入本地jsonl檔案",ko:"로컬 JSONL 파일 선택",ja:"ローカルJSONLファイルを選択",de:"Lokale JSONL-Datei auswählen",es:"Seleccionar archivo JSONL local",fr:"Sélectionner un fichier JSONL local",it:"Seleziona file JSONL locale",da:"Vælg lokal JSONL-fil",pl:"Wybierz lokalny plik JSONL",ru:"Выбрать локальный JSONL файл",ar:"اختيار ملف JSONL محلي",no:"Velg lokal JSONL-fil","pt-BR":"Selecionar arquivo JSONL local",th:"เลือกไฟล์ JSONL ในเครื่อง",tr:"Yerel JSONL dosyası seç",uk:"Вибрати локальний JSONL файл"},"ui.fileTooLarge":{zh:"文件大小不能超过 500MB",en:"File size cannot exceed 500MB","zh-TW":"檔案大小不能超過 500MB",ko:"파일 크기는 500MB를 초과할 수 없습니다",ja:"ファイルサイズは500MBを超えることはできません",de:"Dateigröße darf 500MB nicht überschreiten",es:"El tamaño del archivo no puede superar 500MB",fr:"La taille du fichier ne peut pas dépasser 500 Mo",it:"La dimensione del file non può superare 500MB",da:"Filstørrelsen må ikke overstige 500MB",pl:"Rozmiar pliku nie może przekraczać 500MB",ru:"Размер файла не может превышать 500МБ",ar:"حجم الملف لا يمكن أن يتجاوز 500 ميجابايت",no:"Filstørrelsen kan ikke overstige 500MB","pt-BR":"O tamanho do arquivo não pode exceder 500MB",th:"ขนาดไฟล์ต้องไม่เกิน 500MB",tr:"Dosya boyutu 500MB'ı aşamaz",uk:"Розмір файлу не може перевищувати 500МБ"},"ui.saveLog":{zh:"下载当前日志",en:"Download current log","zh-TW":"下載當前日誌",ko:"현재 로그 다운로드",ja:"現在のログをダウンロード",de:"Aktuelles Log herunterladen",es:"Descargar log actual",fr:"Télécharger le log actuel",it:"Scarica log corrente",da:"Download nuværende log",pl:"Pobierz bieżący log",ru:"Скачать текущий лог",ar:"تحميل السجل الحالي",no:"Last ned gjeldende logg","pt-BR":"Baixar log atual",th:"ดาวน์โหลดล็อกปัจจุบัน",tr:"Mevcut günlüğü indir",uk:"Завантажити поточний лог"},"ui.exportPrompts":{zh:"查看用户 Prompt",en:"Export user prompts","zh-TW":"匯出用戶 Prompt",ko:"사용자 Prompt 내보내기",ja:"ユーザー Prompt をエクスポート",de:"Benutzer-Prompts exportieren",es:"Exportar prompts de usuario",fr:"Exporter les prompts utilisateur",it:"Esporta prompt utente",da:"Eksportér bruger-prompts",pl:"Eksportuj prompty użytkownika",ru:"Экспорт пользовательских Prompt",ar:"تصدير Prompt المستخدم",no:"Eksporter bruker-prompts","pt-BR":"Exportar prompts do usuário",th:"ส่งออก Prompt ผู้ใช้",tr:"Kullanıcı Prompt'larını dışa aktar",uk:"Експорт Prompt користувача"},"ui.exportPromptsTxt":{zh:"导出到本地 .txt",en:"Export to local .txt","zh-TW":"匯出到本地 .txt",ko:"로컬 .txt로 내보내기",ja:"ローカル .txt にエクスポート",de:"Als lokale .txt exportieren",es:"Exportar a .txt local",fr:"Exporter en .txt local",it:"Esporta in .txt locale",da:"Eksportér til lokal .txt",pl:"Eksportuj do lokalnego .txt",ru:"Экспорт в локальный .txt",ar:"تصدير إلى ملف .txt محلي",no:"Eksporter til lokal .txt","pt-BR":"Exportar para .txt local",th:"ส่งออกเป็นไฟล์ .txt ในเครื่อง",tr:"Yerel .txt olarak dışa aktar",uk:"Експорт у локальний .txt"},"ui.tokenStats":{zh:"数据统计",en:"Data Stats","zh-TW":"數據統計",ko:"데이터 통계",ja:"データ統計",de:"Datenstatistik",es:"Estadísticas de datos",fr:"Statistiques de données",it:"Statistiche dati",da:"Datastatistik",pl:"Statystyki danych",ru:"Статистика данных",ar:"إحصائيات البيانات",no:"Datastatistikk","pt-BR":"Estatísticas de dados",th:"สถิติข้อมูล",tr:"Veri İstatistikleri",uk:"Статистика даних"},"ui.liveMonitoring":{zh:"实时监控中",en:"Live","zh-TW":"即時監控中",ko:"실시간 모니터링",ja:"リアルタイム監視中",de:"Live",es:"En vivo",fr:"En direct",it:"Live",da:"Live",pl:"Na żywo",ru:"Мониторинг",ar:"مباشر",no:"Live","pt-BR":"Ao vivo",th:"สด",tr:"Canlı",uk:"Моніторинг"},"ui.inflightRequests":{zh:"在途请求",en:"Inflight Requests","zh-TW":"在途請求",ko:"진행 중인 요청",ja:"処理中のリクエスト",de:"Laufende Anfragen",es:"Solicitudes en curso",fr:"Requêtes en cours",it:"Richieste in corso",da:"Igangværende forespørgsler",pl:"Trwające żądania",ru:"Текущие запросы",ar:"الطلبات الجارية",no:"Pågående forespørsler","pt-BR":"Requisições em andamento",th:"คำขอที่กำลังดำเนินการ",tr:"Devam Eden İstekler",uk:"Поточні запити"},"ui.noInflightRequests":{zh:"暂无在途请求",en:"No inflight requests","zh-TW":"暫無在途請求",ko:"진행 중인 요청 없음",ja:"処理中のリクエストなし",de:"Keine laufenden Anfragen",es:"Sin solicitudes en curso",fr:"Aucune requête en cours",it:"Nessuna richiesta in corso",da:"Ingen igangværende forespørgsler",pl:"Brak trwających żądań",ru:"Нет текущих запросов",ar:"لا توجد طلبات جارية",no:"Ingen pågående forespørsler","pt-BR":"Nenhuma requisição em andamento",th:"ไม่มีคำขอที่กำลังดำเนินการ",tr:"Devam eden istek yok",uk:"Немає поточних запитів"},"ui.historyLog":{zh:"历史日志: {file}",en:"History: {file}","zh-TW":"歷史日誌: {file}",ko:"기록: {file}",ja:"履歴: {file}",de:"Verlauf: {file}",es:"Historial: {file}",fr:"Historique : {file}",it:"Cronologia: {file}",da:"Historik: {file}",pl:"Historia: {file}",ru:"История: {file}",ar:"السجل: {file}",no:"Historikk: {file}","pt-BR":"Histórico: {file}",th:"ประวัติ: {file}",tr:"Geçmiş: {file}",uk:"Історія: {file}"},"ui.chatMode":{zh:"对话模式",en:"Chat mode","zh-TW":"對話模式",ko:"대화 모드",ja:"チャットモード",de:"Chat-Modus",es:"Modo chat",fr:"Mode conversation",it:"Modalità chat",da:"Chat-tilstand",pl:"Tryb czatu",ru:"Режим чата",ar:"وضع المحادثة",no:"Chat-modus","pt-BR":"Modo chat",th:"โหมดแชท",tr:"Sohbet modu",uk:"Режим чату"},"ui.rawMode":{zh:"回到原文模式",en:"Back to Raw","zh-TW":"回到原文模式",ko:"원문 모드로 돌아가기",ja:"Raw モードに戻る",de:"Zurück zum Rohmodus",es:"Volver al modo raw",fr:"Retour au mode brut",it:"Torna alla modalità raw",da:"Tilbage til rå tilstand",pl:"Powrót do trybu surowego",ru:"Вернуться в режим raw",ar:"العودة للوضع الخام",no:"Tilbake til rå modus","pt-BR":"Voltar ao modo raw",th:"กลับสู่โหมด Raw",tr:"Ham moda dön",uk:"Повернутися до режиму raw"},"ui.viewRequest":{zh:"查看请求",en:"View Request","zh-TW":"查看請求",ko:"요청 보기",ja:"リクエストを表示",de:"Anfrage anzeigen",es:"Ver solicitud",fr:"Voir la requête",it:"Visualizza richiesta",da:"Vis forespørgsel",pl:"Zobacz żądanie",ru:"Просмотр запроса",ar:"عرض الطلب",no:"Vis forespørsel","pt-BR":"Ver requisição",th:"ดูคำขอ",tr:"İsteği görüntüle",uk:"Переглянути запит"},"ui.viewInChat":{zh:"在对话中查看",en:"View in chat","zh-TW":"在對話中查看",ko:"대화에서 보기",ja:"チャットで表示",de:"Im Chat anzeigen",es:"Ver en chat",fr:"Voir dans le chat",it:"Vedi nella chat",da:"Vis i chat",pl:"Zobacz w czacie",ru:"Посмотреть в чате",ar:"عرض في المحادثة",no:"Vis i chat","pt-BR":"Ver no chat",th:"ดูในแชท",tr:"Sohbette görüntüle",uk:"Переглянути в чаті"},"ui.cannotMap":{zh:"无法映射到对话",en:"Cannot map to conversation","zh-TW":"無法映射到對話",ko:"대화에 매핑할 수 없습니다",ja:"会話にマッピングできません",de:"Kann nicht zur Konversation zugeordnet werden",es:"No se puede mapear a la conversación",fr:"Impossible de mapper à la conversation",it:"Impossibile mappare alla conversazione",da:"Kan ikke mappe til samtale",pl:"Nie można zmapować do rozmowy",ru:"Невозможно сопоставить с диалогом",ar:"لا يمكن الربط بالمحادثة",no:"Kan ikke tilordne til samtale","pt-BR":"Não é possível mapear para a conversa",th:"ไม่สามารถแมปไปยังการสนทนาได้",tr:"Konuşmaya eşlenemedi",uk:"Неможливо зіставити з діалогом"},"ui.cacheExpired":{zh:"已失效",en:"Expired","zh-TW":"已失效",ko:"만료됨",ja:"期限切れ",de:"Abgelaufen",es:"Expirado",fr:"Expiré",it:"Scaduto",da:"Udløbet",pl:"Wygasło",ru:"Истёк",ar:"منتهي الصلاحية",no:"Utløpt","pt-BR":"Expirado",th:"หมดอายุ",tr:"Süresi doldu",uk:"Закінчився"},"ui.cacheCountdown":{zh:"MainAgent 缓存{type}失效倒计时:",en:"MainAgent cache{type} expires in: ","zh-TW":"MainAgent 快取{type}失效倒數:",ko:"MainAgent cache{type} 만료 카운트다운: ",ja:"MainAgent cache{type} 期限切れまで: ",de:"MainAgent Cache{type} läuft ab in: ",es:"Cache{type} de MainAgent expira en: ",fr:"Cache{type} MainAgent expire dans : ",it:"Cache{type} MainAgent scade tra: ",da:"MainAgent cache{type} udløber om: ",pl:"Cache{type} MainAgent wygasa za: ",ru:"Cache{type} MainAgent истекает через: ",ar:"ينتهي cache{type} لـ MainAgent خلال: ",no:"MainAgent cache{type} utløper om: ","pt-BR":"Cache{type} do MainAgent expira em: ",th:"Cache{type} ของ MainAgent หมดอายุใน: ",tr:"MainAgent cache{type} süresi doluyor: ",uk:"Cache{type} MainAgent закінчується через: "},"ui.minuteSecond":{zh:"{m}分{s}秒",en:"{m}m{s}s","zh-TW":"{m}分{s}秒",ko:"{m}분{s}초",ja:"{m}分{s}秒",de:"{m}m{s}s",es:"{m}m{s}s",fr:"{m}m{s}s",it:"{m}m{s}s",da:"{m}m{s}s",pl:"{m}m{s}s",ru:"{m}м{s}с",ar:"{m}د{s}ث",no:"{m}m{s}s","pt-BR":"{m}m{s}s",th:"{m}นาที{s}วินาที",tr:"{m}dk{s}sn",uk:"{m}хв{s}с"},"ui.second":{zh:"{s}秒",en:"{s}s","zh-TW":"{s}秒",ko:"{s}초",ja:"{s}秒",de:"{s}s",es:"{s}s",fr:"{s}s",it:"{s}s",da:"{s}s",pl:"{s}s",ru:"{s}с",ar:"{s}ث",no:"{s}s","pt-BR":"{s}s",th:"{s}วินาที",tr:"{s}sn",uk:"{s}с"},"ui.hitRate":{zh:"命中率",en:"Hit rate","zh-TW":"命中率",ko:"적중률",ja:"ヒット率",de:"Trefferquote",es:"Tasa de aciertos",fr:"Taux de succès",it:"Tasso di successo",da:"Hitrate",pl:"Współczynnik trafień",ru:"Процент попаданий",ar:"معدل الإصابة",no:"Treffrate","pt-BR":"Taxa de acerto",th:"อัตราการเข้าถึง",tr:"İsabet oranı",uk:"Відсоток влучень"},"ui.userPrompt":{zh:"用户 Prompt",en:"User Prompt","zh-TW":"用戶 Prompt",ko:"사용자 Prompt",ja:"ユーザー Prompt",de:"Benutzer-Prompt",es:"Prompt de usuario",fr:"Prompt utilisateur",it:"Prompt utente",da:"Bruger-Prompt",pl:"Prompt użytkownika",ru:"Prompt пользователя",ar:"Prompt المستخدم",no:"Bruker-Prompt","pt-BR":"Prompt do usuário",th:"Prompt ผู้ใช้",tr:"Kullanıcı Prompt",uk:"Prompt користувача"},"ui.noPrompt":{zh:"暂无用户 Prompt",en:"No user prompts yet","zh-TW":"暫無用戶 Prompt",ko:"사용자 Prompt 없음",ja:"ユーザー Prompt はまだありません",de:"Noch keine Benutzer-Prompts",es:"Sin prompts de usuario aún",fr:"Aucun prompt utilisateur",it:"Nessun prompt utente",da:"Ingen bruger-prompts endnu",pl:"Brak promptów użytkownika",ru:"Нет пользовательских Prompt",ar:"لا توجد Prompt للمستخدم بعد",no:"Ingen bruker-prompts ennå","pt-BR":"Nenhum prompt de usuário ainda",th:"ยังไม่มี Prompt ผู้ใช้",tr:"Henüz kullanıcı Prompt'u yok",uk:"Немає Prompt користувача"},"ui.promptCountUnit":{zh:"条",en:"","zh-TW":"條",ko:"개",ja:"件",de:"",es:"",fr:"",it:"",da:"",pl:"",ru:"",ar:"",no:"","pt-BR":"",th:"",tr:"",uk:""},"ui.promptModeOriginal":{zh:"原文模式",en:"Original"},"ui.promptModeContext":{zh:"上下文模式",en:"Context"},"ui.promptModeText":{zh:"Text模式",en:"Text"},"ui.unknownTime":{zh:"未知时间",en:"Unknown time","zh-TW":"未知時間",ko:"알 수 없는 시간",ja:"不明な時刻",de:"Unbekannte Zeit",es:"Hora desconocida",fr:"Heure inconnue",it:"Ora sconosciuta",da:"Ukendt tid",pl:"Nieznany czas",ru:"Неизвестное время",ar:"وقت غير معروف",no:"Ukjent tid","pt-BR":"Hora desconhecida",th:"เวลาไม่ทราบ",tr:"Bilinmeyen zaman",uk:"Невідомий час"},"ui.logCount":{zh:"{count} 个日志",en:"{count} logs","zh-TW":"{count} 個日誌",ko:"{count}개 로그",ja:"{count} 件のログ",de:"{count} Logs",es:"{count} logs",fr:"{count} logs",it:"{count} log",da:"{count} logs",pl:"{count} logów",ru:"{count} логов",ar:"{count} سجلات",no:"{count} logger","pt-BR":"{count} logs",th:"{count} บันทึก",tr:"{count} log",uk:"{count} логів"},"ui.noLogs":{zh:"暂无日志文件",en:"No log files","zh-TW":"暫無日誌檔案",ko:"로그 파일 없음",ja:"ログファイルなし",de:"Keine Log-Dateien",es:"Sin archivos de log",fr:"Aucun fichier de log",it:"Nessun file di log",da:"Ingen logfiler",pl:"Brak plików logów",ru:"Нет файлов логов",ar:"لا توجد ملفات سجلات",no:"Ingen loggfiler","pt-BR":"Nenhum arquivo de log",th:"ไม่มีไฟล์บันทึก",tr:"Log dosyası yok",uk:"Немає файлів логів"},"ui.footer.contact":{zh:"如需帮助,请联系 @水映天辙(钉钉)",en:"Need help? Contact @水映天辙 (DingTalk)","zh-TW":"如需幫助,請聯繫 @水映天辙(釘釘)",ko:"도움이 필요하면 @水映天辙(DingTalk)에 연락하세요",ja:"ヘルプが必要な場合は @水映天辙(DingTalk) にご連絡ください",de:"Hilfe benötigt? Kontaktieren Sie @水映天辙 (DingTalk)",es:"¿Necesita ayuda? Contacte a @水映天辙 (DingTalk)",fr:"Besoin d'aide ? Contactez @水映天辙 (DingTalk)",it:"Hai bisogno di aiuto? Contatta @水映天辙 (DingTalk)",da:"Brug for hjælp? Kontakt @水映天辙 (DingTalk)",pl:"Potrzebujesz pomocy? Skontaktuj się z @水映天辙 (DingTalk)",ru:"Нужна помощь? Свяжитесь с @水映天辙 (DingTalk)",ar:"تحتاج مساعدة؟ تواصل مع @水映天辙 (DingTalk)",no:"Trenger du hjelp? Kontakt @水映天辙 (DingTalk)","pt-BR":"Precisa de ajuda? Entre em contato com @水映天辙 (DingTalk)",th:"ต้องการความช่วยเหลือ? ติดต่อ @水映天辙 (DingTalk)",tr:"Yardıma mı ihtiyacınız var? @水映天辙 (DingTalk) ile iletişime geçin",uk:"Потрібна допомога? Зв'яжіться з @水映天辙 (DingTalk)"},"ui.toolReturn":{zh:"工具返回",en:"Tool result","zh-TW":"工具返回",ko:"도구 결과",ja:"ツール結果",de:"Tool-Ergebnis",es:"Resultado de herramienta",fr:"Résultat d'outil",it:"Risultato strumento",da:"Værktøjsresultat",pl:"Wynik narzędzia",ru:"Результат инструмента",ar:"نتيجة الأداة",no:"Verktøyresultat","pt-BR":"Resultado da ferramenta",th:"ผลลัพธ์เครื่องมือ",tr:"Araç sonucu",uk:"Результат інструменту"},"ui.toolReturnNamed":{zh:"{name} 返回",en:"{name} result","zh-TW":"{name} 返回",ko:"{name} 결과",ja:"{name} 結果",de:"{name}-Ergebnis",es:"Resultado de {name}",fr:"Résultat de {name}",it:"Risultato di {name}",da:"{name}-resultat",pl:"Wynik {name}",ru:"Результат {name}",ar:"نتيجة {name}",no:"{name}-resultat","pt-BR":"Resultado de {name}",th:"ผลลัพธ์ {name}",tr:"{name} sonucu",uk:"Результат {name}"},"ui.lastResponse":{zh:"Last Response",en:"Last Response","zh-TW":"Last Response",ko:"Last Response",ja:"Last Response",de:"Last Response",es:"Last Response",fr:"Last Response",it:"Last Response",da:"Last Response",pl:"Last Response",ru:"Last Response",ar:"Last Response",no:"Last Response","pt-BR":"Last Response",th:"Last Response",tr:"Last Response",uk:"Last Response"},"ui.copySuccess":{zh:"复制成功",en:"Copied","zh-TW":"複製成功",ko:"복사됨",ja:"コピーしました",de:"Kopiert",es:"Copiado",fr:"Copié",it:"Copiato",da:"Kopieret",pl:"Skopiowano",ru:"Скопировано",ar:"تم النسخ",no:"Kopiert","pt-BR":"Copiado",th:"คัดลอกแล้ว",tr:"Kopyalandı",uk:"Скопійовано"},"ui.copy":{zh:"复制",en:"Copy","zh-TW":"複製",ko:"복사",ja:"コピー",de:"Kopieren",es:"Copiar",fr:"Copier",it:"Copia",da:"Kopiér",pl:"Kopiuj",ru:"Копировать",ar:"نسخ",no:"Kopier","pt-BR":"Copiar",th:"คัดลอก",tr:"Kopyala",uk:"Копіювати"},"ui.noHeaders":{zh:"无 Headers",en:"No Headers","zh-TW":"無 Headers",ko:"Headers 없음",ja:"Headers なし",de:"Keine Headers",es:"Sin Headers",fr:"Pas de Headers",it:"Nessun Header",da:"Ingen Headers",pl:"Brak Headers",ru:"Нет Headers",ar:"لا يوجد Headers",no:"Ingen Headers","pt-BR":"Sem Headers",th:"ไม่มี Headers",tr:"Header yok",uk:"Немає Headers"},"ui.noBody":{zh:"无 Body",en:"No Body","zh-TW":"無 Body",ko:"Body 없음",ja:"Body なし",de:"Kein Body",es:"Sin Body",fr:"Pas de Body",it:"Nessun Body",da:"Ingen Body",pl:"Brak Body",ru:"Нет Body",ar:"لا يوجد Body",no:"Ingen Body","pt-BR":"Sem Body",th:"ไม่มี Body",tr:"Body yok",uk:"Немає Body"},"ui.streamingResponse":{zh:"⚡ 流式响应 — 此请求使用了 SSE 流式传输,响应内容无法完整捕获。",en:"⚡ Streaming response — This request used SSE streaming, response content cannot be fully captured.","zh-TW":"⚡ 串流回應 — 此請求使用了 SSE 串流傳輸,回應內容無法完整擷取。",ko:"⚡ 스트리밍 응답 — 이 요청은 SSE 스트리밍을 사용하여 응답 내용을 완전히 캡처할 수 없습니다.",ja:"⚡ ストリーミングレスポンス — このリクエストは SSE ストリーミングを使用しており、レスポンス内容を完全にキャプチャできませんでした。",de:"⚡ Streaming-Antwort — Diese Anfrage nutzte SSE-Streaming, der Antwortinhalt konnte nicht vollständig erfasst werden.",es:"⚡ Respuesta en streaming — Esta solicitud usó streaming SSE, el contenido de la respuesta no se pudo capturar completamente.",fr:"⚡ Réponse en streaming — Cette requête a utilisé le streaming SSE, le contenu de la réponse n'a pas pu être entièrement capturé.",it:"⚡ Risposta in streaming — Questa richiesta ha utilizzato lo streaming SSE, il contenuto della risposta non può essere catturato completamente.",da:"⚡ Streaming-svar — Denne forespørgsel brugte SSE-streaming, svarindholdet kunne ikke fuldt indfanges.",pl:"⚡ Odpowiedź strumieniowa — To żądanie użyło strumieniowania SSE, treść odpowiedzi nie mogła zostać w pełni przechwycona.",ru:"⚡ Потоковый ответ — Этот запрос использовал SSE-потоковую передачу, содержимое ответа не может быть полностью захвачено.",ar:"⚡ استجابة متدفقة — استخدم هذا الطلب بث SSE، لا يمكن التقاط محتوى الاستجابة بالكامل.",no:"⚡ Strømmesvar — Denne forespørselen brukte SSE-strømming, svarinnholdet kunne ikke fanges fullstendig.","pt-BR":"⚡ Resposta em streaming — Esta requisição usou streaming SSE, o conteúdo da resposta não pôde ser totalmente capturado.",th:"⚡ การตอบกลับแบบสตรีม — คำขอนี้ใช้ SSE streaming เนื้อหาการตอบกลับไม่สามารถจับได้ทั้งหมด",tr:"⚡ Akış yanıtı — Bu istek SSE akışı kullandı, yanıt içeriği tam olarak yakalanamadı.",uk:"⚡ Потокова відповідь — Цей запит використовував SSE-потокову передачу, вміст відповіді не може бути повністю захоплений."},"ui.responseNotCaptured":{zh:"响应数据未捕获",en:"Response not captured","zh-TW":"回應資料未擷取",ko:"응답 데이터 미캡처",ja:"レスポンスデータ未キャプチャ",de:"Antwortdaten nicht erfasst",es:"Datos de respuesta no capturados",fr:"Données de réponse non capturées",it:"Dati di risposta non catturati",da:"Svardata ikke indfanget",pl:"Dane odpowiedzi nie przechwycone",ru:"Данные ответа не захвачены",ar:"لم يتم التقاط بيانات الاستجابة",no:"Svardata ikke fanget","pt-BR":"Dados de resposta não capturados",th:"ไม่ได้จับข้อมูลการตอบกลับ",tr:"Yanıt verileri yakalanamadı",uk:"Дані відповіді не захоплені"},"ui.expand":{zh:"▶ 展开",en:"▶ Expand","zh-TW":"▶ 展開",ko:"▶ 펼치기",ja:"▶ 展開",de:"▶ Aufklappen",es:"▶ Expandir",fr:"▶ Déplier",it:"▶ Espandi",da:"▶ Udvid",pl:"▶ Rozwiń",ru:"▶ Развернуть",ar:"▶ توسيع",no:"▶ Utvid","pt-BR":"▶ Expandir",th:"▶ ขยาย",tr:"▶ Genişlet",uk:"▶ Розгорнути"},"ui.collapse":{zh:"▼ 收起",en:"▼ Collapse","zh-TW":"▼ 收起",ko:"▼ 접기",ja:"▼ 折りたたむ",de:"▼ Zuklappen",es:"▼ Contraer",fr:"▼ Replier",it:"▼ Comprimi",da:"▼ Fold sammen",pl:"▼ Zwiń",ru:"▼ Свернуть",ar:"▼ طي",no:"▼ Skjul","pt-BR":"▼ Recolher",th:"▼ ย่อ",tr:"▼ Daralt",uk:"▼ Згорнути"},"ui.noChat":{zh:"暂无 MainAgent 对话数据",en:"No MainAgent conversation data","zh-TW":"暫無 MainAgent 對話資料",ko:"MainAgent 대화 데이터 없음",ja:"MainAgent の会話データがありません",de:"Keine MainAgent-Gesprächsdaten",es:"Sin datos de conversación de MainAgent",fr:"Aucune donnée de conversation MainAgent",it:"Nessun dato di conversazione MainAgent",da:"Ingen MainAgent samtaledata",pl:"Brak danych rozmowy MainAgent",ru:"Нет данных диалога MainAgent",ar:"لا توجد بيانات محادثة MainAgent",no:"Ingen MainAgent samtaledata","pt-BR":"Sem dados de conversa do MainAgent",th:"ไม่มีข้อมูลการสนทนา MainAgent",tr:"MainAgent konuşma verisi yok",uk:"Немає даних діалогу MainAgent"},"ui.diffWithPrev":{zh:"与上次请求的差异",en:"Diff with previous request","zh-TW":"與上次請求的差異",ko:"이전 요청과의 차이",ja:"前回リクエストとの差分",de:"Diff zur vorherigen Anfrage",es:"Diferencia con la solicitud anterior",fr:"Diff avec la requête précédente",it:"Diff con la richiesta precedente",da:"Diff med forrige anmodning",pl:"Różnica z poprzednim żądaniem",ru:"Отличия от предыдущего запроса",ar:"الفرق مع الطلب السابق",no:"Diff med forrige forespørsel","pt-BR":"Diff com a requisição anterior",th:"ความแตกต่างกับคำขอก่อนหน้า",tr:"Önceki istekle fark",uk:"Відмінності від попереднього запиту"},"ui.diffSessionChanged":{zh:"请求体大小减小,可能使用了 /clear、/compact 或 session 发生了变化",en:"Request body size decreased, possibly due to /clear, /compact, or session change","zh-TW":"請求體大小減小,可能使用了 /clear、/compact 或 session 發生了變化",ko:"요청 본문 크기가 줄었습니다. /clear, /compact 또는 세션 변경이 있었을 수 있습니다",ja:"リクエストボディのサイズが減少しました。/clear、/compact、またはセッション変更の可能性があります",de:"Anfragekörper wurde kleiner, möglicherweise durch /clear, /compact oder Sitzungswechsel",es:"El tamaño del cuerpo de la solicitud disminuyó, posiblemente debido a /clear, /compact o cambio de sesión",fr:"La taille du corps de la requête a diminué, possiblement dû à /clear, /compact ou un changement de session",it:"La dimensione del corpo della richiesta è diminuita, probabilmente a causa di /clear, /compact o cambio di sessione",da:"Anmodningens størrelse er reduceret, muligvis på grund af /clear, /compact eller sessionsændring",pl:"Rozmiar treści żądania zmniejszył się, prawdopodobnie z powodu /clear, /compact lub zmiany sesji",ru:"Размер тела запроса уменьшился, возможно из-за /clear, /compact или смены сессии",ar:"حجم نص الطلب انخفض، ربما بسبب /clear أو /compact أو تغيير الجلسة",no:"Forespørselens størrelse ble redusert, muligens på grunn av /clear, /compact eller sesjonsendring","pt-BR":"O tamanho do corpo da requisição diminuiu, possivelmente devido a /clear, /compact ou mudança de sessão",th:"ขนาดเนื้อหาคำขอลดลง อาจเกิดจาก /clear, /compact หรือการเปลี่ยนเซสชัน",tr:"İstek gövdesi boyutu küçüldü, muhtemelen /clear, /compact veya oturum değişikliği nedeniyle",uk:"Розмір тіла запиту зменшився, можливо через /clear, /compact або зміну сесії"},"ui.diffTooltip":{zh:"为了避免看冗长的全文,所以为大家简化展示了 MainAgent 的增量部分,通常只有 message 增加",en:"To avoid reading lengthy full text, only the incremental parts of MainAgent are shown — typically just new messages","zh-TW":"為了避免閱讀冗長的全文,簡化展示了 MainAgent 的增量部分,通常只有 message 增加",ko:"긴 전체 텍스트를 읽지 않도록 MainAgent의 증분 부분만 간략히 표시합니다. 일반적으로 message 추가만 있습니다",ja:"MainAgent の増分部分のみを簡略表示しています。長い全文を読む手間を省くため、通常は message の追加のみです",de:"Um das Lesen langer Volltexte zu vermeiden, werden nur die inkrementellen Teile des MainAgent angezeigt — in der Regel nur neue Nachrichten",es:"Para evitar leer textos completos extensos, solo se muestran las partes incrementales del MainAgent — normalmente solo mensajes nuevos",fr:"Pour éviter de lire de longs textes complets, seules les parties incrémentales du MainAgent sont affichées — généralement uniquement les nouveaux messages",it:"Per evitare di leggere lunghi testi completi, vengono mostrate solo le parti incrementali del MainAgent — di solito solo nuovi messaggi",da:"For at undgå at læse lange fuldtekster vises kun de inkrementelle dele af MainAgent — typisk kun nye beskeder",pl:"Aby uniknąć czytania długich pełnych tekstów, wyświetlane są tylko przyrostowe części MainAgent — zwykle tylko nowe wiadomości",ru:"Чтобы не читать длинный полный текст, отображаются только инкрементальные части MainAgent — обычно только новые сообщения",ar:"لتجنب قراءة النص الكامل الطويل، يتم عرض الأجزاء التزايدية فقط من MainAgent — عادةً فقط الرسائل الجديدة",no:"For å unngå å lese lange fulltekster vises kun de inkrementelle delene av MainAgent — vanligvis bare nye meldinger","pt-BR":"Para evitar ler textos completos longos, apenas as partes incrementais do MainAgent são exibidas — geralmente apenas novas mensagens",th:"เพื่อหลีกเลี่ยงการอ่านข้อความเต็มที่ยาว จึงแสดงเฉพาะส่วนที่เพิ่มขึ้นของ MainAgent เท่านั้น — โดยปกติจะมีเพียง message ใหม่",tr:"Uzun tam metinleri okumaktan kaçınmak için yalnızca MainAgent'ın artımlı kısımları gösterilir — genellikle yalnızca yeni mesajlar",uk:"Щоб не читати довгий повний текст, відображаються лише інкрементальні частини MainAgent — зазвичай лише нові повідомлення"},"cli.resume.prompt":{zh:"检测到1小时内的日志: {file}",en:"Recent log found (within 1 hour): {file}","zh-TW":"偵測到1小時內的日誌: {file}",ko:"1시간 이내 로그 감지: {file}",ja:"1時間以内のログを検出: {file}",de:"Kürzliches Log gefunden (innerhalb 1 Stunde): {file}",es:"Log reciente encontrado (dentro de 1 hora): {file}",fr:"Log récent trouvé (moins d'1 heure): {file}",it:"Log recente trovato (entro 1 ora): {file}",da:"Nylig log fundet (inden for 1 time): {file}",pl:"Znaleziono ostatni log (w ciągu 1 godziny): {file}",ru:"Обнаружен недавний лог (менее 1 часа): {file}",ar:"تم العثور على سجل حديث (خلال ساعة واحدة): {file}",no:"Nylig logg funnet (innen 1 time): {file}","pt-BR":"Log recente encontrado (dentro de 1 hora): {file}",th:"พบล็อกล่าสุด (ภายใน 1 ชั่วโมง): {file}",tr:"Son günlük bulundu (1 saat içinde): {file}",uk:"Знайдено нещодавній лог (менше 1 години): {file}"},"cli.resume.continue":{zh:"继续",en:"Continue","zh-TW":"繼續",ko:"계속",ja:"続行",de:"Fortsetzen",es:"Continuar",fr:"Continuer",it:"Continua",da:"Fortsæt",pl:"Kontynuuj",ru:"Продолжить",ar:"متابعة",no:"Fortsett","pt-BR":"Continuar",th:"ดำเนินการต่อ",tr:"Devam",uk:"Продовжити"},"cli.resume.new":{zh:"新开",en:"New","zh-TW":"新開",ko:"새로 시작",ja:"新規",de:"Neu",es:"Nuevo",fr:"Nouveau",it:"Nuovo",da:"Ny",pl:"Nowy",ru:"Новый",ar:"جديد",no:"Ny","pt-BR":"Novo",th:"ใหม่",tr:"Yeni",uk:"Новий"},"ui.resume.title":{zh:"检测到近期日志",en:"Recent Log Detected","zh-TW":"偵測到近期日誌",ko:"최근 로그 감지됨",ja:"最近のログを検出",de:"Kürzliches Log erkannt",es:"Log reciente detectado",fr:"Log récent détecté",it:"Log recente rilevato",da:"Nylig log fundet",pl:"Wykryto ostatni log",ru:"Обнаружен недавний лог",ar:"تم اكتشاف سجل حديث",no:"Nylig logg oppdaget","pt-BR":"Log recente detectado",th:"ตรวจพบล็อกล่าสุด",tr:"Son günlük tespit edildi",uk:"Виявлено нещодавній лог"},"ui.resume.message":{zh:"检测到1小时内的日志: {file},是否继续?",en:"Recent log found (within 1 hour): {file}. Continue?","zh-TW":"偵測到1小時內的日誌: {file},是否繼續?",ko:"1시간 이내 로그 감지: {file}. 계속하시겠습니까?",ja:"1時間以内のログを検出: {file}。続行しますか?",de:"Kürzliches Log gefunden (innerhalb 1 Stunde): {file}. Fortsetzen?",es:"Log reciente encontrado (dentro de 1 hora): {file}. ¿Continuar?",fr:"Log récent trouvé (moins d'1 heure): {file}. Continuer ?",it:"Log recente trovato (entro 1 ora): {file}. Continuare?",da:"Nylig log fundet (inden for 1 time): {file}. Fortsæt?",pl:"Znaleziono ostatni log (w ciągu 1 godziny): {file}. Kontynuować?",ru:"Обнаружен недавний лог (менее 1 часа): {file}. Продолжить?",ar:"تم العثور على سجل حديث (خلال ساعة واحدة): {file}. هل تريد المتابعة؟",no:"Nylig logg funnet (innen 1 time): {file}. Fortsette?","pt-BR":"Log recente encontrado (dentro de 1 hora): {file}. Continuar?",th:"พบล็อกล่าสุด (ภายใน 1 ชั่วโมง): {file} ต้องการดำเนินการต่อหรือไม่?",tr:"Son günlük bulundu (1 saat içinde): {file}. Devam edilsin mi?",uk:"Знайдено нещодавній лог (менше 1 години): {file}. Продовжити?"},"ui.resume.continue":{zh:"继续上次",en:"Continue","zh-TW":"繼續上次",ko:"이어서 계속",ja:"前回の続き",de:"Fortsetzen",es:"Continuar",fr:"Continuer",it:"Continua",da:"Fortsæt",pl:"Kontynuuj",ru:"Продолжить",ar:"متابعة",no:"Fortsett","pt-BR":"Continuar",th:"ดำเนินการต่อ",tr:"Devam et",uk:"Продовжити"},"ui.resume.new":{zh:"新开日志",en:"Start New","zh-TW":"新開日誌",ko:"새 로그 시작",ja:"新規ログ",de:"Neues Log",es:"Nuevo log",fr:"Nouveau log",it:"Nuovo log",da:"Ny log",pl:"Nowy log",ru:"Новый лог",ar:"سجل جديد",no:"Ny logg","pt-BR":"Novo log",th:"ล็อกใหม่",tr:"Yeni günlük",uk:"Новий лог"},"ui.settings":{zh:"设置",en:"Settings","zh-TW":"設定",ko:"설정",ja:"設定",de:"Einstellungen",es:"Configuración",fr:"Paramètres",it:"Impostazioni",da:"Indstillinger",pl:"Ustawienia",ru:"Настройки",ar:"الإعدادات",no:"Innstillinger","pt-BR":"Configurações",th:"ตั้งค่า",tr:"Ayarlar",uk:"Налаштування"},"ui.collapseToolResults":{zh:"折叠工具返回内容",en:"Collapse tool results","zh-TW":"摺疊工具回傳內容",ko:"도구 결과 접기",ja:"ツール結果を折りたたむ",de:"Werkzeugergebnisse einklappen",es:"Contraer resultados de herramientas",fr:"Réduire les résultats des outils",it:"Comprimi risultati strumenti",da:"Skjul værktøjsresultater",pl:"Zwiń wyniki narzędzi",ru:"Свернуть результаты инструментов",ar:"طي نتائج الأدوات",no:"Skjul verktøyresultater","pt-BR":"Recolher resultados de ferramentas",th:"ย่อผลลัพธ์เครื่องมือ",tr:"Araç sonuçlarını daralt",uk:"Згорнути результати інструментів"},"ui.expandThinking":{zh:'展开"思考过程"',en:'Expand "Thinking"',"zh-TW":'展開"思考過程"',ko:'"사고 과정" 펼치기',ja:'"思考プロセス"を展開',de:'"Denkprozess" aufklappen',es:'Expandir "Proceso de pensamiento"',fr:'Développer "Processus de réflexion"',it:'Espandi "Processo di pensiero"',da:'Udvid "Tænkeproces"',pl:'Rozwiń "Proces myślenia"',ru:'Развернуть "Процесс мышления"',ar:'توسيع "عملية التفكير"',no:'Utvid "Tenkeprosess"',"pt-BR":'Expandir "Processo de pensamento"',th:'ขยาย "กระบวนการคิด"',tr:'"Düşünce süreci"ni genişlet',uk:'Розгорнути "Процес мислення"'},"ui.expandDiff":{zh:"默认展开 Body Diff JSON",en:"Expand Body Diff JSON by default","zh-TW":"預設展開 Body Diff JSON",ko:"Body Diff JSON 기본 펼치기",ja:"Body Diff JSON をデフォルトで展開",de:"Body Diff JSON standardmäßig aufklappen",es:"Expandir Body Diff JSON por defecto",fr:"Développer Body Diff JSON par défaut",it:"Espandi Body Diff JSON per impostazione predefinita",da:"Udvid Body Diff JSON som standard",pl:"Domyślnie rozwiń Body Diff JSON",ru:"Разворачивать Body Diff JSON по умолчанию",ar:"توسيع Body Diff JSON افتراضيًا",no:"Utvid Body Diff JSON som standard","pt-BR":"Expandir Body Diff JSON por padrão",th:"ขยาย Body Diff JSON เป็นค่าเริ่มต้น",tr:"Body Diff JSON'u varsayılan olarak genişlet",uk:"Розгортати Body Diff JSON за замовчуванням"},"ui.globalSettings":{zh:"全局设置",en:"Global Settings","zh-TW":"全域設定",ko:"전역 설정",ja:"グローバル設定",de:"Globale Einstellungen",es:"Configuración global",fr:"Paramètres globaux",it:"Impostazioni globali",da:"Globale indstillinger",pl:"Ustawienia globalne",ru:"Глобальные настройки",ar:"الإعدادات العامة",no:"Globale innstillinger","pt-BR":"Configurações globais",th:"ตั้งค่าทั่วไป",tr:"Genel ayarlar",uk:"Глобальні налаштування"},"ui.filterIrrelevant":{zh:"过滤无关请求",en:"Filter irrelevant requests","zh-TW":"過濾無關請求",ko:"무관한 요청 필터링",ja:"無関係なリクエストをフィルタ",de:"Irrelevante Anfragen filtern",es:"Filtrar solicitudes irrelevantes",fr:"Filtrer les requêtes non pertinentes",it:"Filtra richieste irrilevanti",da:"Filtrer irrelevante forespørgsler",pl:"Filtruj nieistotne żądania",ru:"Фильтровать нерелевантные запросы",ar:"تصفية الطلبات غير ذات الصلة",no:"Filtrer irrelevante forespørsler","pt-BR":"Filtrar solicitações irrelevantes",th:"กรองคำขอที่ไม่เกี่ยวข้อง",tr:"İlgisiz istekleri filtrele",uk:"Фільтрувати нерелевантні запити"},"ui.thinking":{zh:"思考过程",en:"Thinking","zh-TW":"思考過程",ko:"사고 과정",ja:"思考プロセス",de:"Denkprozess",es:"Proceso de pensamiento",fr:"Processus de réflexion",it:"Processo di pensiero",da:"Tænkeproces",pl:"Proces myślenia",ru:"Процесс мышления",ar:"عملية التفكير",no:"Tenkeprosess","pt-BR":"Processo de pensamento",th:"กระบวนการคิด",tr:"Düşünce süreci",uk:"Процес мислення"},"ui.translate":{zh:"翻译",en:"Translate","zh-TW":"翻譯",ko:"번역",ja:"翻訳",de:"Übersetzen",es:"Traducir",fr:"Traduire",it:"Traduci",da:"Oversæt",pl:"Tłumacz",ru:"Перевести",ar:"ترجمة",no:"Oversett","pt-BR":"Traduzir",th:"แปล",tr:"Çevir",uk:"Перекласти"},"ui.translating":{zh:"翻译中…",en:"Translating…","zh-TW":"翻譯中…",ko:"번역 중…",ja:"翻訳中…",de:"Übersetze…",es:"Traduciendo…",fr:"Traduction…",it:"Traduzione…",da:"Oversætter…",pl:"Tłumaczenie…",ru:"Перевод…",ar:"جارٍ الترجمة…",no:"Oversetter…","pt-BR":"Traduzindo…",th:"กำลังแปล…",tr:"Çevriliyor…",uk:"Переклад…"},"ui.skillLoaded":{zh:"Skill 已加载",en:"Skill Loaded","zh-TW":"Skill 已載入",ko:"Skill 로드됨",ja:"Skill 読み込み済み",de:"Skill geladen",es:"Skill cargado",fr:"Skill chargé",it:"Skill caricato",da:"Skill indlæst",pl:"Skill załadowany",ru:"Skill загружен",ar:"تم تحميل Skill",no:"Skill lastet","pt-BR":"Skill carregado",th:"โหลด Skill แล้ว",tr:"Skill yüklendi",uk:"Skill завантажено"},"ui.cacheLoss.ttl":{zh:"缓存丢失:距上次 MainAgent 请求超过 5 分钟,缓存已过期",en:"Cache miss: over 5 minutes since last MainAgent request, cache expired","zh-TW":"快取遺失:距上次 MainAgent 請求超過 5 分鐘,快取已過期",ko:"캐시 손실: 마지막 MainAgent 요청 후 5분 초과, 캐시 만료",ja:"キャッシュミス:前回の MainAgent リクエストから5分以上経過、キャッシュ期限切れ",de:"Cache-Verlust: Über 5 Minuten seit letzter MainAgent-Anfrage, Cache abgelaufen",es:"Pérdida de caché: más de 5 minutos desde la última solicitud MainAgent, caché expirada",fr:"Perte de cache : plus de 5 minutes depuis la dernière requête MainAgent, cache expiré",it:"Cache persa: oltre 5 minuti dall'ultima richiesta MainAgent, cache scaduta",da:"Cache-tab: over 5 minutter siden sidste MainAgent-forespørgsel, cache udløbet",pl:"Utrata cache: ponad 5 minut od ostatniego żądania MainAgent, cache wygasł",ru:"Потеря кэша: прошло более 5 минут с последнего запроса MainAgent, кэш истёк",ar:"فقدان التخزين المؤقت: مرور أكثر من 5 دقائق منذ آخر طلب MainAgent، انتهت صلاحية التخزين المؤقت",no:"Cache-tap: over 5 minutter siden siste MainAgent-forespørsel, cache utløpt","pt-BR":"Perda de cache: mais de 5 minutos desde a última requisição MainAgent, cache expirado",th:"แคชหาย: เกิน 5 นาทีจากคำขอ MainAgent ล่าสุด แคชหมดอายุ",tr:"Önbellek kaybı: Son MainAgent isteğinden 5 dakikadan fazla geçti, önbellek süresi doldu",uk:"Втрата кешу: минуло понад 5 хвилин з останнього запиту MainAgent, кеш закінчився"},"ui.cacheLoss.systemChange":{zh:"缓存重建:system prompt 发生变更",en:"Cache rebuild: system prompt changed","zh-TW":"快取重建:system prompt 發生變更",ko:"캐시 재생성: 시스템 프롬프트 변경",ja:"キャッシュ再構築:システムプロンプトが変更されました",de:"Cache-Neuaufbau: System-Prompt geändert",es:"Reconstrucción de caché: el prompt del sistema cambió",fr:"Reconstruction du cache : le prompt système a changé",it:"Ricostruzione cache: il prompt di sistema è cambiato",da:"Cache-genopbygning: systemprompt ændret",pl:"Odbudowa cache: prompt systemowy zmieniony",ru:"Перестройка кэша: системный промпт изменён",ar:"إعادة بناء التخزين المؤقت: تم تغيير موجه النظام",no:"Cache-gjenoppbygging: systemprompt endret","pt-BR":"Reconstrução de cache: prompt do sistema alterado",th:"สร้างแคชใหม่: system prompt เปลี่ยนแปลง",tr:"Önbellek yeniden oluşturma: sistem istemi değişti",uk:"Перебудова кешу: системний промпт змінено"},"ui.cacheLoss.toolsChange":{zh:"缓存重建:工具定义发生变更",en:"Cache rebuild: tool definitions changed","zh-TW":"快取重建:工具定義發生變更",ko:"캐시 재생성: 도구 정의 변경",ja:"キャッシュ再構築:ツール定義が変更されました",de:"Cache-Neuaufbau: Tool-Definitionen geändert",es:"Reconstrucción de caché: las definiciones de herramientas cambiaron",fr:"Reconstruction du cache : les définitions d'outils ont changé",it:"Ricostruzione cache: le definizioni degli strumenti sono cambiate",da:"Cache-genopbygning: værktøjsdefinitioner ændret",pl:"Odbudowa cache: definicje narzędzi zmienione",ru:"Перестройка кэша: определения инструментов изменены",ar:"إعادة بناء التخزين المؤقت: تم تغيير تعريفات الأدوات",no:"Cache-gjenoppbygging: verktøydefinisjoner endret","pt-BR":"Reconstrução de cache: definições de ferramentas alteradas",th:"สร้างแคชใหม่: คำจำกัดความเครื่องมือเปลี่ยนแปลง",tr:"Önbellek yeniden oluşturma: araç tanımları değişti",uk:"Перебудова кешу: визначення інструментів змінено"},"ui.cacheLoss.modelChange":{zh:"缓存重建:模型切换",en:"Cache rebuild: model switched","zh-TW":"快取重建:模型切換",ko:"캐시 재생성: 모델 전환",ja:"キャッシュ再構築:モデルが切り替わりました",de:"Cache-Neuaufbau: Modell gewechselt",es:"Reconstrucción de caché: modelo cambiado",fr:"Reconstruction du cache : modèle changé",it:"Ricostruzione cache: modello cambiato",da:"Cache-genopbygning: model skiftet",pl:"Odbudowa cache: model zmieniony",ru:"Перестройка кэша: модель переключена",ar:"إعادة بناء التخزين المؤقت: تم تبديل النموذج",no:"Cache-gjenoppbygging: modell byttet","pt-BR":"Reconstrução de cache: modelo alterado",th:"สร้างแคชใหม่: เปลี่ยนโมเดล",tr:"Önbellek yeniden oluşturma: model değiştirildi",uk:"Перебудова кешу: модель переключено"},"ui.cacheLoss.msgTruncated":{zh:"缓存重建:消息栈被截断(上下文窗口溢出)",en:"Cache rebuild: message stack truncated (context window overflow)","zh-TW":"快取重建:訊息堆疊被截斷(上下文視窗溢出)",ko:"캐시 재생성: 메시지 스택 잘림 (컨텍스트 윈도우 오버플로)",ja:"キャッシュ再構築:メッセージスタックが切り詰められました(コンテキストウィンドウオーバーフロー)",de:"Cache-Neuaufbau: Nachrichtenstapel gekürzt (Kontextfenster-Überlauf)",es:"Reconstrucción de caché: pila de mensajes truncada (desbordamiento de ventana de contexto)",fr:"Reconstruction du cache : pile de messages tronquée (dépassement de la fenêtre de contexte)",it:"Ricostruzione cache: stack messaggi troncato (overflow finestra di contesto)",da:"Cache-genopbygning: beskedstakken afkortet (kontekstvindue-overløb)",pl:"Odbudowa cache: stos wiadomości obcięty (przepełnienie okna kontekstu)",ru:"Перестройка кэша: стек сообщений усечён (переполнение контекстного окна)",ar:"إعادة بناء التخزين المؤقت: تم اقتطاع مكدس الرسائل (تجاوز نافذة السياق)",no:"Cache-gjenoppbygging: meldingsstakken avkortet (kontekstvindu-overflyt)","pt-BR":"Reconstrução de cache: pilha de mensagens truncada (estouro da janela de contexto)",th:"สร้างแคชใหม่: สแต็กข้อความถูกตัด (context window ล้น)",tr:"Önbellek yeniden oluşturma: mesaj yığını kesildi (bağlam penceresi taşması)",uk:"Перебудова кешу: стек повідомлень обрізано (переповнення контекстного вікна)"},"ui.cacheLoss.msgModified":{zh:"缓存重建:历史消息内容被修改",en:"Cache rebuild: historical message content modified","zh-TW":"快取重建:歷史訊息內容被修改",ko:"캐시 재생성: 이전 메시지 내용 수정됨",ja:"キャッシュ再構築:過去のメッセージ内容が変更されました",de:"Cache-Neuaufbau: Historische Nachrichteninhalte geändert",es:"Reconstrucción de caché: contenido de mensajes históricos modificado",fr:"Reconstruction du cache : contenu des messages historiques modifié",it:"Ricostruzione cache: contenuto dei messaggi storici modificato",da:"Cache-genopbygning: historisk beskedindhold ændret",pl:"Odbudowa cache: treść historycznych wiadomości zmodyfikowana",ru:"Перестройка кэша: содержимое исторических сообщений изменено",ar:"إعادة بناء التخزين المؤقت: تم تعديل محتوى الرسائل السابقة",no:"Cache-gjenoppbygging: historisk meldingsinnhold endret","pt-BR":"Reconstrução de cache: conteúdo de mensagens históricas modificado",th:"สร้างแคชใหม่: เนื้อหาข้อความในประวัติถูกแก้ไข",tr:"Önbellek yeniden oluşturma: geçmiş mesaj içeriği değiştirildi",uk:"Перебудова кешу: вміст історичних повідомлень змінено"},"ui.cacheLoss.keyChange":{zh:"缓存重建:缓存键变更(原因未知)",en:"Cache rebuild: cache key changed (unknown reason)","zh-TW":"快取重建:快取鍵變更(原因未知)",ko:"캐시 재생성: 캐시 키 변경 (원인 불명)",ja:"キャッシュ再構築:キャッシュキーが変更されました(原因不明)",de:"Cache-Neuaufbau: Cache-Schlüssel geändert (Grund unbekannt)",es:"Reconstrucción de caché: clave de caché cambiada (razón desconocida)",fr:"Reconstruction du cache : clé de cache modifiée (raison inconnue)",it:"Ricostruzione cache: chiave cache cambiata (motivo sconosciuto)",da:"Cache-genopbygning: cache-nøgle ændret (ukendt årsag)",pl:"Odbudowa cache: klucz cache zmieniony (nieznana przyczyna)",ru:"Перестройка кэша: ключ кэша изменён (причина неизвестна)",ar:"إعادة بناء التخزين المؤقت: تم تغيير مفتاح التخزين المؤقت (سبب غير معروف)",no:"Cache-gjenoppbygging: cache-nøkkel endret (ukjent årsak)","pt-BR":"Reconstrução de cache: chave de cache alterada (motivo desconhecido)",th:"สร้างแคชใหม่: คีย์แคชเปลี่ยนแปลง (ไม่ทราบสาเหตุ)",tr:"Önbellek yeniden oluşturma: önbellek anahtarı değişti (bilinmeyen neden)",uk:"Перебудова кешу: ключ кешу змінено (причина невідома)"},"ui.cacheRebuildStats":{zh:"缓存重建统计",en:"Cache Rebuild Stats","zh-TW":"快取重建統計",ko:"캐시 재구축 통계",ja:"キャッシュ再構築統計",de:"Cache-Neuaufbau-Statistik",es:"Estadísticas de reconstrucción de caché",fr:"Statistiques de reconstruction du cache",it:"Statistiche ricostruzione cache",da:"Cache-genopbygningsstatistik",pl:"Statystyki przebudowy cache",ru:"Статистика перестройки кеша",ar:"إحصائيات إعادة بناء ذاكرة التخزين المؤقت",no:"Cache-gjenoppbyggingsstatistikk","pt-BR":"Estatísticas de reconstrução de cache",th:"สถิติการสร้างแคชใหม่",tr:"Önbellek Yeniden Oluşturma İstatistikleri",uk:"Статистика перебудови кешу"},"ui.cacheRebuild.reason":{zh:"原因",en:"Reason","zh-TW":"原因",ko:"원인",ja:"原因",de:"Ursache",es:"Razón",fr:"Raison",it:"Motivo",da:"Årsag",pl:"Przyczyna",ru:"Причина",ar:"السبب",no:"Årsak","pt-BR":"Razão",th:"สาเหตุ",tr:"Neden",uk:"Причина"},"ui.cacheRebuild.count":{zh:"次数",en:"Count","zh-TW":"次數",ko:"횟수",ja:"回数",de:"Anzahl",es:"Veces",fr:"Nombre",it:"Volte",da:"Antal",pl:"Liczba",ru:"Кол-во",ar:"العدد",no:"Antall","pt-BR":"Vezes",th:"จำนวน",tr:"Sayı",uk:"Кількість"},"ui.cacheRebuild.cacheCreate":{zh:"重建缓存量",en:"Cache Created","zh-TW":"重建快取量",ko:"재구축 캐시량",ja:"再構築キャッシュ量",de:"Cache erstellt",es:"Caché creado",fr:"Cache créé",it:"Cache creata",da:"Cache oprettet",pl:"Utworzony cache",ru:"Создано кеша",ar:"الذاكرة المؤقتة المُنشأة",no:"Cache opprettet","pt-BR":"Cache criado",th:"แคชที่สร้าง",tr:"Oluşturulan önbellek",uk:"Створено кешу"},"ui.cacheRebuild.ttl":{zh:"缓存过期",en:"Cache Expired","zh-TW":"快取過期",ko:"캐시 만료",ja:"キャッシュ期限切れ",de:"Cache abgelaufen",es:"Caché expirado",fr:"Cache expiré",it:"Cache scaduta",da:"Cache udløbet",pl:"Cache wygasł",ru:"Кеш истёк",ar:"انتهاء صلاحية الذاكرة المؤقتة",no:"Cache utløpt","pt-BR":"Cache expirado",th:"แคชหมดอายุ",tr:"Önbellek süresi doldu",uk:"Кеш закінчився"},"ui.cacheRebuild.systemChange":{zh:"System Prompt 变更",en:"System Prompt Changed","zh-TW":"System Prompt 變更",ko:"System Prompt 변경",ja:"System Prompt 変更",de:"System Prompt geändert",es:"System Prompt cambiado",fr:"System Prompt modifié",it:"System Prompt modificato",da:"System Prompt ændret",pl:"System Prompt zmieniony",ru:"System Prompt изменён",ar:"تغيير System Prompt",no:"System Prompt endret","pt-BR":"System Prompt alterado",th:"System Prompt เปลี่ยนแปลง",tr:"System Prompt değişti",uk:"System Prompt змінено"},"ui.cacheRebuild.toolsChange":{zh:"工具定义变更",en:"Tools Changed","zh-TW":"工具定義變更",ko:"도구 정의 변경",ja:"ツール定義変更",de:"Tools geändert",es:"Herramientas cambiadas",fr:"Outils modifiés",it:"Strumenti modificati",da:"Værktøjer ændret",pl:"Narzędzia zmienione",ru:"Инструменты изменены",ar:"تغيير الأدوات",no:"Verktøy endret","pt-BR":"Ferramentas alteradas",th:"เครื่องมือเปลี่ยนแปลง",tr:"Araçlar değişti",uk:"Інструменти змінено"},"ui.cacheRebuild.modelChange":{zh:"模型切换",en:"Model Switched","zh-TW":"模型切換",ko:"모델 전환",ja:"モデル切替",de:"Modell gewechselt",es:"Modelo cambiado",fr:"Modèle changé",it:"Modello cambiato",da:"Model skiftet",pl:"Model zmieniony",ru:"Модель переключена",ar:"تبديل النموذج",no:"Modell byttet","pt-BR":"Modelo alterado",th:"เปลี่ยนโมเดล",tr:"Model değiştirildi",uk:"Модель переключено"},"ui.cacheRebuild.msgTruncated":{zh:"消息栈被截断",en:"Messages Truncated","zh-TW":"訊息堆疊被截斷",ko:"메시지 스택 잘림",ja:"メッセージスタック切り詰め",de:"Nachrichten abgeschnitten",es:"Mensajes truncados",fr:"Messages tronqués",it:"Messaggi troncati",da:"Beskeder afkortet",pl:"Wiadomości obcięte",ru:"Сообщения обрезаны",ar:"اقتطاع الرسائل",no:"Meldinger avkortet","pt-BR":"Mensagens truncadas",th:"ข้อความถูกตัด",tr:"Mesajlar kesildi",uk:"Повідомлення обрізано"},"ui.cacheRebuild.msgModified":{zh:"历史消息修改",en:"Messages Modified","zh-TW":"歷史訊息修改",ko:"기록 메시지 수정",ja:"履歴メッセージ変更",de:"Nachrichten geändert",es:"Mensajes modificados",fr:"Messages modifiés",it:"Messaggi modificati",da:"Beskeder ændret",pl:"Wiadomości zmodyfikowane",ru:"Сообщения изменены",ar:"تعديل الرسائل",no:"Meldinger endret","pt-BR":"Mensagens modificadas",th:"ข้อความถูกแก้ไข",tr:"Mesajlar değiştirildi",uk:"Повідомлення змінено"},"ui.cacheRebuild.keyChange":{zh:"未知键变更",en:"Unknown Key Change","zh-TW":"未知鍵變更",ko:"알 수 없는 키 변경",ja:"不明なキー変更",de:"Unbekannte Schlüsseländerung",es:"Cambio de clave desconocido",fr:"Changement de clé inconnu",it:"Modifica chiave sconosciuta",da:"Ukendt nøgleændring",pl:"Nieznana zmiana klucza",ru:"Неизвестное изменение ключа",ar:"تغيير مفتاح غير معروف",no:"Ukjent nøkkelendring","pt-BR":"Alteração de chave desconhecida",th:"การเปลี่ยนแปลงคีย์ที่ไม่ทราบ",tr:"Bilinmeyen anahtar değişikliği",uk:"Невідома зміна ключа"},"ui.skillUsageStats":{zh:"Skill 使用统计",en:"Skill Usage Stats","zh-TW":"Skill 使用統計",ko:"Skill 사용 통계",ja:"Skill 使用統計",de:"Skill-Nutzungsstatistik",es:"Estadísticas de uso de Skills",fr:"Statistiques d'utilisation des Skills",it:"Statistiche utilizzo Skill",da:"Skill-brugsstatistik",pl:"Statystyki użycia Skill",ru:"Статистика использования Skill",ar:"إحصائيات استخدام Skill",no:"Skill-bruksstatistikk","pt-BR":"Estatísticas de uso de Skills",th:"สถิติการใช้ Skill",tr:"Skill Kullanım İstatistikleri",uk:"Статистика використання Skill"},"ui.toolUsageStats":{zh:"工具使用统计",en:"Tool Usage Stats","zh-TW":"工具使用統計",ko:"도구 사용 통계",ja:"ツール使用統計",de:"Tool-Nutzungsstatistik",es:"Estadísticas de uso de herramientas",fr:"Statistiques d'utilisation des outils",it:"Statistiche utilizzo strumenti",da:"Værktøjsbrugsstatistik",pl:"Statystyki użycia narzędzi",ru:"Статистика использования инструментов",ar:"إحصائيات استخدام الأدوات",no:"Verktøybruksstatistikk","pt-BR":"Estatísticas de uso de ferramentas",th:"สถิติการใช้เครื่องมือ",tr:"Araç Kullanım İstatistikleri",uk:"Статистика використання інструментів"},"ui.subAgentStats":{zh:"SubAgent 调用统计",en:"SubAgent Call Stats","zh-TW":"SubAgent 調用統計",ko:"SubAgent 호출 통계",ja:"SubAgent 呼び出し統計",de:"SubAgent-Aufrufstatistik",es:"Estadísticas de llamadas SubAgent",fr:"Statistiques d'appels SubAgent",it:"Statistiche chiamate SubAgent",da:"SubAgent-kaldsstatistik",pl:"Statystyki wywołań SubAgent",ru:"Статистика вызовов SubAgent",ar:"إحصائيات استدعاء SubAgent",no:"SubAgent-anropsstatistikk","pt-BR":"Estatísticas de chamadas SubAgent",th:"สถิติการเรียก SubAgent",tr:"SubAgent Çağrı İstatistikleri",uk:"Статистика викликів SubAgent"},"ui.mergeLogs":{zh:"合并日志",en:"Merge Logs","zh-TW":"合併日誌",ko:"로그 병합",ja:"ログを結合",de:"Logs zusammenführen",es:"Fusionar logs",fr:"Fusionner les logs",it:"Unisci log",da:"Flet logs",pl:"Scal logi",ru:"Объединить логи",ar:"دمج السجلات",no:"Slå sammen logger","pt-BR":"Mesclar logs",th:"รวมบันทึก",tr:"Logları birleştir",uk:"Об'єднати логи"},"ui.openLog":{zh:"打开",en:"Open","zh-TW":"開啟",ko:"열기",ja:"開く",de:"Öffnen",es:"Abrir",fr:"Ouvrir",it:"Apri",da:"Åbn",pl:"Otwórz",ru:"Открыть",ar:"فتح",no:"Åpne","pt-BR":"Abrir",th:"เปิด",tr:"Aç",uk:"Відкрити"},"ui.turns":{zh:"轮",en:"turns","zh-TW":"輪",ko:"턴",ja:"ターン",de:"Runden",es:"turnos",fr:"tours",it:"turni",da:"runder",pl:"tur",ru:"ходов",ar:"جولات",no:"runder","pt-BR":"turnos",th:"รอบ",tr:"tur",uk:"ходів"},"ui.mergeNotConsecutive":{zh:"请选择连续的日志文件",en:"Please select consecutive log files","zh-TW":"請選擇連續的日誌檔案",ko:"연속된 로그 파일을 선택하세요",ja:"連続したログファイルを選択してください",de:"Bitte wählen Sie aufeinanderfolgende Log-Dateien",es:"Seleccione archivos de log consecutivos",fr:"Veuillez sélectionner des fichiers de log consécutifs",it:"Seleziona file di log consecutivi",da:"Vælg venligst sammenhængende logfiler",pl:"Wybierz kolejne pliki logów",ru:"Выберите последовательные файлы логов",ar:"يرجى اختيار ملفات سجلات متتالية",no:"Velg sammenhengende loggfiler","pt-BR":"Selecione arquivos de log consecutivos",th:"กรุณาเลือกไฟล์บันทึกที่ต่อเนื่องกัน",tr:"Lütfen ardışık log dosyalarını seçin",uk:"Виберіть послідовні файли логів"},"ui.mergeTooLarge":{zh:"选中的日志文件总大小超过 500MB",en:"Selected log files exceed 500MB","zh-TW":"選中的日誌檔案總大小超過 500MB",ko:"선택한 로그 파일의 총 크기가 500MB를 초과합니다",ja:"選択したログファイルの合計サイズが 500MB を超えています",de:"Ausgewählte Log-Dateien überschreiten 500MB",es:"Los archivos de log seleccionados superan los 500MB",fr:"Les fichiers de log sélectionnés dépassent 500 Mo",it:"I file di log selezionati superano i 500MB",da:"Valgte logfiler overstiger 500MB",pl:"Wybrane pliki logów przekraczają 500MB",ru:"Выбранные файлы логов превышают 500МБ",ar:"ملفات السجلات المحددة تتجاوز 500 ميجابايت",no:"Valgte loggfiler overstiger 500MB","pt-BR":"Arquivos de log selecionados excedem 500MB",th:"ไฟล์บันทึกที่เลือกมีขนาดรวมเกิน 500MB",tr:"Seçilen log dosyaları 500MB'ı aşıyor",uk:"Вибрані файли логів перевищують 500МБ"},"ui.mergeSuccess":{zh:"日志合并成功",en:"Logs merged successfully","zh-TW":"日誌合併成功",ko:"로그 병합 성공",ja:"ログの結合に成功しました",de:"Logs erfolgreich zusammengeführt",es:"Logs fusionados correctamente",fr:"Logs fusionnés avec succès",it:"Log uniti con successo",da:"Logs flettet",pl:"Logi scalone pomyślnie",ru:"Логи успешно объединены",ar:"تم دمج السجلات بنجاح",no:"Logger slått sammen","pt-BR":"Logs mesclados com sucesso",th:"รวมบันทึกสำเร็จ",tr:"Loglar başarıyla birleştirildi",uk:"Логи успішно об'єднано"},"ui.mergeLatestNotAllowed":{zh:"最新的日志文件不允许被合并,以避免当前窗口日志丢失",en:"The latest log file cannot be merged to avoid losing the current session","zh-TW":"最新的日誌檔案不允許被合併,以避免當前視窗日誌遺失",ko:"현재 세션 손실을 방지하기 위해 최신 로그 파일은 병합할 수 없습니다",ja:"現在のセッションの損失を防ぐため、最新のログファイルは結合できません",de:"Die neueste Logdatei kann nicht zusammengeführt werden, um den Verlust der aktuellen Sitzung zu vermeiden",es:"El archivo de log más reciente no se puede fusionar para evitar perder la sesión actual",fr:"Le fichier de log le plus récent ne peut pas être fusionné pour éviter la perte de la session en cours",it:"Il file di log più recente non può essere unito per evitare la perdita della sessione corrente",da:"Den nyeste logfil kan ikke flettes for at undgå tab af den aktuelle session",pl:"Najnowszy plik logów nie może być scalony, aby uniknąć utraty bieżącej sesji",ru:"Последний файл логов не может быть объединён, чтобы избежать потери текущей сессии",ar:"لا يمكن دمج أحدث ملف سجل لتجنب فقدان الجلسة الحالية",no:"Den nyeste loggfilen kan ikke slås sammen for å unngå tap av gjeldende økt","pt-BR":"O arquivo de log mais recente não pode ser mesclado para evitar perda da sessão atual",th:"ไม่สามารถรวมไฟล์บันทึกล่าสุดเพื่อหลีกเลี่ยงการสูญเสียเซสชันปัจจุบัน",tr:"Mevcut oturumun kaybını önlemek için en son günlük dosyası birleştirilemez",uk:"Найновіший файл логів не може бути об'єднаний, щоб уникнути втрати поточної сесії"},"ui.projectStats":{zh:"项目统计",en:"Project Stats","zh-TW":"專案統計",ko:"프로젝트 통계",ja:"プロジェクト統計",de:"Projektstatistik",es:"Estadísticas del proyecto",fr:"Statistiques du projet",it:"Statistiche progetto",da:"Projektstatistik",pl:"Statystyki projektu",ru:"Статистика проекта",ar:"إحصائيات المشروع",no:"Prosjektstatistikk","pt-BR":"Estatísticas do projeto",th:"สถิติโปรเจกต์",tr:"Proje İstatistikleri",uk:"Статистика проєкту"},"ui.projectStats.totalRequests":{zh:"总请求数",en:"Total Requests","zh-TW":"總請求數",ko:"총 요청 수",ja:"リクエスト総数",de:"Gesamtanfragen",es:"Total de solicitudes",fr:"Total des requêtes",it:"Richieste totali",da:"Samlede forespørgsler",pl:"Łączna liczba żądań",ru:"Всего запросов",ar:"إجمالي الطلبات",no:"Totale forespørsler","pt-BR":"Total de requisições",th:"คำขอทั้งหมด",tr:"Toplam İstekler",uk:"Всього запитів"},"ui.projectStats.sessionCount":{zh:"会话轮次",en:"Sessions","zh-TW":"會話輪次",ko:"세션 수",ja:"セッション数",de:"Sitzungen",es:"Sesiones",fr:"Sessions",it:"Sessioni",da:"Sessioner",pl:"Sesje",ru:"Сессий",ar:"الجلسات",no:"Sesjoner","pt-BR":"Sessões",th:"เซสชัน",tr:"Oturumlar",uk:"Сесії"},"ui.projectStats.totalFiles":{zh:"会话文件数",en:"Session Files","zh-TW":"會話檔案數",ko:"세션 파일 수",ja:"セッションファイル数",de:"Sitzungsdateien",es:"Archivos de sesión",fr:"Fichiers de session",it:"File di sessione",da:"Sessionsfiler",pl:"Pliki sesji",ru:"Файлов сессий",ar:"ملفات الجلسات",no:"Sesjonsfiler","pt-BR":"Arquivos de sessão",th:"ไฟล์เซสชัน",tr:"Oturum Dosyaları",uk:"Файли сесій"},"ui.projectStats.modelUsage":{zh:"模型使用统计",en:"Model Usage","zh-TW":"模型使用統計",ko:"모델 사용 통계",ja:"モデル使用統計",de:"Modellnutzung",es:"Uso de modelos",fr:"Utilisation des modèles",it:"Utilizzo modelli",da:"Modelbrug",pl:"Użycie modeli",ru:"Использование моделей",ar:"استخدام النماذج",no:"Modellbruk","pt-BR":"Uso de modelos",th:"การใช้โมเดล",tr:"Model Kullanımı",uk:"Використання моделей"},"ui.projectStats.noData":{zh:"暂无统计数据",en:"No stats available","zh-TW":"暫無統計資料",ko:"통계 데이터 없음",ja:"統計データなし",de:"Keine Statistiken verfügbar",es:"Sin estadísticas disponibles",fr:"Aucune statistique disponible",it:"Nessuna statistica disponibile",da:"Ingen statistik tilgængelig",pl:"Brak dostępnych statystyk",ru:"Статистика недоступна",ar:"لا توجد إحصائيات متاحة",no:"Ingen statistikk tilgjengelig","pt-BR":"Sem estatísticas disponíveis",th:"ไม่มีข้อมูลสถิติ",tr:"İstatistik mevcut değil",uk:"Статистика недоступна"},"ui.projectStats.updatedAt":{zh:"更新于 {time}",en:"Updated at {time}","zh-TW":"更新於 {time}",ko:"{time}에 업데이트됨",ja:"{time} に更新",de:"Aktualisiert um {time}",es:"Actualizado a las {time}",fr:"Mis à jour à {time}",it:"Aggiornato alle {time}",da:"Opdateret {time}",pl:"Zaktualizowano {time}",ru:"Обновлено в {time}",ar:"تم التحديث في {time}",no:"Oppdatert {time}","pt-BR":"Atualizado em {time}",th:"อัปเดตเมื่อ {time}",tr:"{time} tarihinde güncellendi",uk:"Оновлено о {time}"},"ui.update.completed":{zh:"已更新到 v{version},下次启动生效",en:"Updated to v{version}, effective on next restart","zh-TW":"已更新到 v{version},下次啟動生效",ko:"v{version}으로 업데이트됨, 다음 시작 시 적용",ja:"v{version} に更新済み、次回起動時に有効",de:"Auf v{version} aktualisiert, wirksam beim nächsten Neustart",es:"Actualizado a v{version}, efectivo en el próximo reinicio",fr:"Mis à jour vers v{version}, effectif au prochain redémarrage",it:"Aggiornato a v{version}, effettivo al prossimo riavvio",da:"Opdateret til v{version}, træder i kraft ved næste genstart",pl:"Zaktualizowano do v{version}, obowiązuje po ponownym uruchomieniu",ru:"Обновлено до v{version}, вступит в силу при следующем запуске",ar:"تم التحديث إلى v{version}، سيسري عند إعادة التشغيل التالية",no:"Oppdatert til v{version}, trer i kraft ved neste omstart","pt-BR":"Atualizado para v{version}, efetivo na próxima reinicialização",th:"อัปเดตเป็น v{version} แล้ว มีผลเมื่อเริ่มใหม่",tr:"v{version} sürümüne güncellendi, bir sonraki başlatmada geçerli",uk:"Оновлено до v{version}, набуде чинності при наступному запуску"},"ui.update.majorAvailable":{zh:"新大版本 v{version} 可用,请手动更新: npm i -g cc-viewer@latest",en:"Major version v{version} available, update manually: npm i -g cc-viewer@latest","zh-TW":"新大版本 v{version} 可用,請手動更新: npm i -g cc-viewer@latest",ko:"새 메이저 버전 v{version} 사용 가능, 수동 업데이트: npm i -g cc-viewer@latest",ja:"メジャーバージョン v{version} が利用可能、手動更新: npm i -g cc-viewer@latest",de:"Hauptversion v{version} verfügbar, manuell aktualisieren: npm i -g cc-viewer@latest",es:"Versión principal v{version} disponible, actualice: npm i -g cc-viewer@latest",fr:"Version majeure v{version} disponible, mettez à jour : npm i -g cc-viewer@latest",it:"Versione principale v{version} disponibile, aggiornare: npm i -g cc-viewer@latest",da:"Hovedversion v{version} tilgængelig, opdater manuelt: npm i -g cc-viewer@latest",pl:"Główna wersja v{version} dostępna, zaktualizuj: npm i -g cc-viewer@latest",ru:"Доступна основная версия v{version}, обновите: npm i -g cc-viewer@latest",ar:"الإصدار الرئيسي v{version} متاح، حدّث يدويًا: npm i -g cc-viewer@latest",no:"Hovedversjon v{version} tilgjengelig, oppdater manuelt: npm i -g cc-viewer@latest","pt-BR":"Versão principal v{version} disponível, atualize: npm i -g cc-viewer@latest",th:"เวอร์ชันหลัก v{version} พร้อมใช้งาน อัปเดตด้วยตนเอง: npm i -g cc-viewer@latest",tr:"Ana sürüm v{version} mevcut, manuel güncelleyin: npm i -g cc-viewer@latest",uk:"Доступна основна версія v{version}, оновіть: npm i -g cc-viewer@latest"}},Rl={};for(const[e,t]of Object.entries(ML))for(const[n,r]of Object.entries(t))Rl[n]||(Rl[n]={}),Rl[n][e]=r;let ov="zh";const ju={zh:"zh","zh-cn":"zh","zh-hans":"zh","zh-tw":"zh-TW","zh-hk":"zh-TW","zh-hant":"zh-TW",en:"en",ko:"ko",de:"de",es:"es",fr:"fr",it:"it",da:"da",ja:"ja",pl:"pl",ru:"ru",ar:"ar",no:"no",nb:"no",nn:"no",pt:"pt-BR","pt-br":"pt-BR",th:"th",tr:"tr",uk:"uk"};function LL(e){if(!e)return"en";const t=e.toLowerCase().replace(/_/g,"-");if(ju[t])return ju[t];const n=t.split("-")[0];return ju[n]?ju[n]:"en"}function BL(){return typeof navigator<"u"&&navigator.language?LL(navigator.language):"en"}function av(e){ov=Rl[e]?e:"en"}function Ml(){return ov}function Oe(e,t){var r;let n=((r=Rl[ov])==null?void 0:r[e])||Rl.en[e]||e;if(t)for(const[o,l]of Object.entries(t))n=n.replaceAll(`{${o}}`,l);return n}av(BL());function iv(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Oi=iv();function n$(e){Oi=e}var mi={exec:()=>null};function ln(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(zr.caret,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,t)};return r}var AL=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),zr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},DL=/^(?:[ \t]*(?:\n|$))+/,FL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,HL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,VL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,lv=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,r$=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,o$=ln(r$).replace(/bull/g,lv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),WL=ln(r$).replace(/bull/g,lv).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qL=/^[^\n]+/,cv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,UL=ln(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",cv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),GL=ln(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,lv).getRegex(),df="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",uv=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,KL=ln("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",uv).replace("tag",df).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a$=ln(sv).replace("hr",bc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",df).getRegex(),XL=ln(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",a$).getRegex(),dv={blockquote:XL,code:FL,def:UL,fences:HL,heading:VL,hr:bc,html:KL,lheading:o$,list:GL,newline:DL,paragraph:a$,table:mi,text:qL},DC=ln("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",bc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",df).getRegex(),QL={...dv,lheading:WL,table:DC,paragraph:ln(sv).replace("hr",bc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",DC).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",df).getRegex()},YL={...dv,html:ln(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",uv).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:mi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ln(sv).replace("hr",bc).replace("heading",` *#{1,6} *[^
486
+ ]`).replace("lheading",o$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},JL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ZL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,i$=/^( {2,}|\\)\n(?!\s*$)/,eB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ff=/[\p{P}\p{S}]/u,fv=/[\s\p{P}\p{S}]/u,l$=/[^\s\p{P}\p{S}]/u,tB=ln(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,fv).getRegex(),s$=/(?!~)[\p{P}\p{S}]/u,nB=/(?!~)[\s\p{P}\p{S}]/u,rB=/(?:[^\s\p{P}\p{S}]|~)/u,c$=/(?![*_])[\p{P}\p{S}]/u,oB=/(?![*_])[\s\p{P}\p{S}]/u,aB=/(?:[^\s\p{P}\p{S}]|[*_])/u,iB=ln(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",AL?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),u$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,lB=ln(u$,"u").replace(/punct/g,ff).getRegex(),sB=ln(u$,"u").replace(/punct/g,s$).getRegex(),d$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",cB=ln(d$,"gu").replace(/notPunctSpace/g,l$).replace(/punctSpace/g,fv).replace(/punct/g,ff).getRegex(),uB=ln(d$,"gu").replace(/notPunctSpace/g,rB).replace(/punctSpace/g,nB).replace(/punct/g,s$).getRegex(),dB=ln("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,l$).replace(/punctSpace/g,fv).replace(/punct/g,ff).getRegex(),fB=ln(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,c$).getRegex(),mB="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",pB=ln(mB,"gu").replace(/notPunctSpace/g,aB).replace(/punctSpace/g,oB).replace(/punct/g,c$).getRegex(),gB=ln(/\\(punct)/,"gu").replace(/punct/g,ff).getRegex(),hB=ln(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),vB=ln(uv).replace("(?:-->|$)","-->").getRegex(),yB=ln("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",vB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Sd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,bB=ln(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Sd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),f$=ln(/^!?\[(label)\]\[(ref)\]/).replace("label",Sd).replace("ref",cv).getRegex(),m$=ln(/^!?\[(ref)\](?:\[\])?/).replace("ref",cv).getRegex(),CB=ln("reflink|nolink(?!\\()","g").replace("reflink",f$).replace("nolink",m$).getRegex(),FC=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,mv={_backpedal:mi,anyPunctuation:gB,autolink:hB,blockSkip:iB,br:i$,code:ZL,del:mi,delLDelim:mi,delRDelim:mi,emStrongLDelim:lB,emStrongRDelimAst:cB,emStrongRDelimUnd:dB,escape:JL,link:bB,nolink:m$,punctuation:tB,reflink:f$,reflinkSearch:CB,tag:yB,text:eB,url:mi},SB={...mv,link:ln(/^!?\[(label)\]\((.*?)\)/).replace("label",Sd).getRegex(),reflink:ln(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Sd).getRegex()},Xg={...mv,emStrongRDelimAst:uB,emStrongLDelim:sB,delLDelim:fB,delRDelim:pB,url:ln(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",FC).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ln(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",FC).getRegex()},xB={...Xg,br:ln(i$).replace("{2,}","*").getRegex(),text:ln(Xg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Nu={normal:dv,gfm:QL,pedantic:YL},$s={normal:mv,gfm:Xg,breaks:xB,pedantic:SB},wB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},HC=e=>wB[e];function Go(e,t){if(t){if(zr.escapeTest.test(e))return e.replace(zr.escapeReplace,HC)}else if(zr.escapeTestNoEncode.test(e))return e.replace(zr.escapeReplaceNoEncode,HC);return e}function VC(e){try{e=encodeURI(e).replace(zr.percentDecode,"%")}catch{return null}return e}function WC(e,t){var l;let n=e.replace(zr.findPipe,(s,c,d)=>{let m=!1,p=c;for(;--p>=0&&d[p]==="\\";)m=!m;return m?"|":" |"}),r=n.split(zr.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((l=r.at(-1))!=null&&l.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(zr.slashPipe,"|");return r}function Es(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function $B(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function EB(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let l=4-n%4;r+=" ".repeat(l),n+=l}else r+=o,n++;return r}function qC(e,t,n,r,o){let l=t.href,s=t.title||null,c=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:c,tokens:r.inlineTokens(c)};return r.state.inLink=!1,d}function RB(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
487
+ `).map(l=>{let s=l.match(n.other.beginningSpace);if(s===null)return l;let[c]=s;return c.length>=o.length?l.slice(o.length):l}).join(`
488
+ `)}var xd=class{constructor(e){Nt(this,"options");Nt(this,"rules");Nt(this,"lexer");this.options=e||Oi}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Es(n,`
489
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=RB(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Es(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Es(t[0],`
490
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Es(t[0],`
491
+ `).split(`
492
+ `),r="",o="",l=[];for(;n.length>0;){let s=!1,c=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))c.push(n[d]),s=!0;else if(!s)c.push(n[d]);else break;n=n.slice(d);let m=c.join(`
493
+ `),p=m.replace(this.rules.other.blockquoteSetextReplace,`
494
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
495
+ ${m}`:m,o=o?`${o}
496
+ ${p}`:p;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,l,!0),this.lexer.state.top=g,n.length===0)break;let h=l.at(-1);if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){let y=h,b=y.raw+`
497
+ `+n.join(`
498
+ `),S=this.blockquote(b);l[l.length-1]=S,r=r.substring(0,r.length-y.raw.length)+S.raw,o=o.substring(0,o.length-y.text.length)+S.text;break}else if((h==null?void 0:h.type)==="list"){let y=h,b=y.raw+`
499
+ `+n.join(`
500
+ `),S=this.list(b);l[l.length-1]=S,r=r.substring(0,r.length-h.raw.length)+S.raw,o=o.substring(0,o.length-y.raw.length)+S.raw,n=b.substring(l.at(-1).raw.length).split(`
501
+ `);continue}}return{type:"blockquote",raw:r,tokens:l,text:o}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),l=o.length>1,s={type:"list",raw:"",ordered:l,start:l?+o.slice(0,-1):"",loose:!1,items:[]};o=l?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=l?o:"[*+-]");let c=this.rules.other.listItemRegex(o),d=!1;for(;e;){let p=!1,g="",h="";if(!(t=c.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let y=EB(t[2].split(`
502
+ `,1)[0],t[1].length),b=e.split(`
503
+ `,1)[0],S=!y.trim(),C=0;if(this.options.pedantic?(C=2,h=y.trimStart()):S?C=t[1].length+1:(C=y.search(this.rules.other.nonSpaceChar),C=C>4?1:C,h=y.slice(C),C+=t[1].length),S&&this.rules.other.blankLine.test(b)&&(g+=b+`
504
+ `,e=e.substring(b.length+1),p=!0),!p){let $=this.rules.other.nextBulletRegex(C),w=this.rules.other.hrRegex(C),R=this.rules.other.fencesBeginRegex(C),I=this.rules.other.headingBeginRegex(C),_=this.rules.other.htmlBeginRegex(C),O=this.rules.other.blockquoteBeginRegex(C);for(;e;){let j=e.split(`
505
+ `,1)[0],N;if(b=j,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),N=b):N=b.replace(this.rules.other.tabCharGlobal," "),R.test(b)||I.test(b)||_.test(b)||O.test(b)||$.test(b)||w.test(b))break;if(N.search(this.rules.other.nonSpaceChar)>=C||!b.trim())h+=`
506
+ `+N.slice(C);else{if(S||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(y)||I.test(y)||w.test(y))break;h+=`
507
+ `+b}S=!b.trim(),g+=j+`
508
+ `,e=e.substring(j.length+1),y=N.slice(C)}}s.loose||(d?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(d=!0)),s.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),s.raw+=g}let m=s.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let p of s.items){if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),p.task){if(p.text=p.text.replace(this.rules.other.listReplaceTask,""),((n=p.tokens[0])==null?void 0:n.type)==="text"||((r=p.tokens[0])==null?void 0:r.type)==="paragraph"){p.tokens[0].raw=p.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),p.tokens[0].text=p.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let g=this.rules.other.listTaskCheckbox.exec(p.raw);if(g){let h={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};p.checked=h.checked,s.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=h.raw+p.tokens[0].raw,p.tokens[0].text=h.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(h)):p.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):p.tokens.unshift(h)}}if(!s.loose){let g=p.tokens.filter(y=>y.type==="space"),h=g.length>0&&g.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=h}}if(s.loose)for(let p of s.items){p.loose=!0;for(let g of p.tokens)g.type==="text"&&(g.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:o}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=WC(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
509
+ `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let c of r)this.rules.other.tableAlignRight.test(c)?l.align.push("right"):this.rules.other.tableAlignCenter.test(c)?l.align.push("center"):this.rules.other.tableAlignLeft.test(c)?l.align.push("left"):l.align.push(null);for(let c=0;c<n.length;c++)l.header.push({text:n[c],tokens:this.lexer.inline(n[c]),header:!0,align:l.align[c]});for(let c of o)l.rows.push(WC(c,l.header.length).map((d,m)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[m]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
510
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Es(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=$B(t[2],"()");if(l===-2)return;if(l>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),qC(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return qC(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,c=o,d=0,m=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+o);(r=m.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(s=[...l].length,r[3]||r[4]){c+=s;continue}else if((r[5]||r[6])&&o%3&&!((o+s)%3)){d+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c+d);let p=[...r[0]][0].length,g=e.slice(0,o+r.index+p+s);if(Math.min(o,s)%2){let y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}let h=g.slice(2,-2);return{type:"strong",raw:g,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,l,s,c=o,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+o);(r=d.exec(t))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l||(s=[...l].length,s!==o))continue;if(r[3]||r[4]){c+=s;continue}if(c-=s,c>0)continue;s=Math.min(s,s+c);let m=[...r[0]][0].length,p=e.slice(0,o+r.index+m+s),g=p.slice(o,-o);return{type:"del",raw:p,text:g,tokens:this.lexer.inlineTokens(g)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let l;do l=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(l!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},zo=class Qg{constructor(t){Nt(this,"tokens");Nt(this,"options");Nt(this,"state");Nt(this,"inlineQueue");Nt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Oi,this.options.tokenizer=this.options.tokenizer||new xd,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:zr,block:Nu.normal,inline:$s.normal};this.options.pedantic?(n.block=Nu.pedantic,n.inline=$s.pedantic):this.options.gfm&&(n.block=Nu.gfm,this.options.breaks?n.inline=$s.breaks:n.inline=$s.gfm),this.tokenizer.rules=n}static get rules(){return{block:Nu,inline:$s}}static lex(t,n){return new Qg(n).lex(t)}static lexInline(t,n){return new Qg(n).inlineTokens(t)}lex(t){t=t.replace(zr.carriageReturn,`
511
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var o,l,s;for(this.options.pedantic&&(t=t.replace(zr.tabCharGlobal," ").replace(zr.spaceLine,""));t;){let c;if((l=(o=this.options.extensions)==null?void 0:o.block)!=null&&l.some(m=>(c=m.call({lexer:this},t,n))?(t=t.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let m=n.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
512
+ `:n.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
513
+ `)?"":`
514
+ `)+c.raw,m.text+=`
515
+ `+c.text,this.inlineQueue.at(-1).src=m.text):n.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
516
+ `)?"":`
517
+ `)+c.raw,m.text+=`
518
+ `+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},n.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),n.push(c);continue}let d=t;if((s=this.options.extensions)!=null&&s.startBlock){let m=1/0,p=t.slice(1),g;this.options.extensions.startBlock.forEach(h=>{g=h.call({lexer:this},p),typeof g=="number"&&g>=0&&(m=Math.min(m,g))}),m<1/0&&m>=0&&(d=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(d))){let m=n.at(-1);r&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
519
+ `)?"":`
520
+ `)+c.raw,m.text+=`
521
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(c),r=d.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=n.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
522
+ `)?"":`
523
+ `)+c.raw,m.text+=`
524
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):n.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var d,m,p,g,h;let r=t,o=null;if(this.tokens.links){let y=Object.keys(this.tokens.links);if(y.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)y.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)l=o[2]?o[2].length:0,r=r.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((m=(d=this.options.hooks)==null?void 0:d.emStrongMask)==null?void 0:m.call({lexer:this},r))??r;let s=!1,c="";for(;t;){s||(c=""),s=!1;let y;if((g=(p=this.options.extensions)==null?void 0:p.inline)!=null&&g.some(S=>(y=S.call({lexer:this},t,n))?(t=t.substring(y.raw.length),n.push(y),!0):!1))continue;if(y=this.tokenizer.escape(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.tag(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.link(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(y.raw.length);let S=n.at(-1);y.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=y.raw,S.text+=y.text):n.push(y);continue}if(y=this.tokenizer.emStrong(t,r,c)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.codespan(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.br(t)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.del(t,r,c)){t=t.substring(y.raw.length),n.push(y);continue}if(y=this.tokenizer.autolink(t)){t=t.substring(y.raw.length),n.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(t))){t=t.substring(y.raw.length),n.push(y);continue}let b=t;if((h=this.options.extensions)!=null&&h.startInline){let S=1/0,C=t.slice(1),$;this.options.extensions.startInline.forEach(w=>{$=w.call({lexer:this},C),typeof $=="number"&&$>=0&&(S=Math.min(S,$))}),S<1/0&&S>=0&&(b=t.substring(0,S+1))}if(y=this.tokenizer.inlineText(b)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(c=y.raw.slice(-1)),s=!0;let S=n.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=y.raw,S.text+=y.text):n.push(y);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return n}},wd=class{constructor(e){Nt(this,"options");Nt(this,"parser");this.options=e||Oi}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match(zr.notSpaceStart))==null?void 0:l[0],o=e.replace(zr.endingNewline,"")+`
525
+ `;return r?'<pre><code class="language-'+Go(r)+'">'+(n?o:Go(o,!0))+`</code></pre>
526
+ `:"<pre><code>"+(n?o:Go(o,!0))+`</code></pre>
527
+ `}blockquote({tokens:e}){return`<blockquote>
528
+ ${this.parser.parse(e)}</blockquote>
529
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
530
+ `}hr(e){return`<hr>
531
+ `}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let c=e.items[s];r+=this.listitem(c)}let o=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
532
+ `+r+"</"+o+`>
533
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
534
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
535
+ `}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){let l=e.rows[o];n="";for(let s=0;s<l.length;s++)n+=this.tablecell(l[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
536
+ <thead>
537
+ `+t+`</thead>
538
+ `+r+`</table>
539
+ `}tablerow({text:e}){return`<tr>
540
+ ${e}</tr>
541
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
542
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Go(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=VC(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+Go(t)+'"'),l+=">"+r+"</a>",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=VC(e);if(o===null)return Go(n);e=o;let l=`<img src="${e}" alt="${Go(n)}"`;return t&&(l+=` title="${Go(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Go(e.text)}},pv=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Mo=class Yg{constructor(t){Nt(this,"options");Nt(this,"renderer");Nt(this,"textRenderer");this.options=t||Oi,this.options.renderer=this.options.renderer||new wd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pv}static parse(t,n){return new Yg(n).parse(t)}static parseInline(t,n){return new Yg(n).parseInline(t)}parse(t){var r,o;let n="";for(let l=0;l<t.length;l++){let s=t[l];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[s.type]){let d=s,m=this.options.extensions.renderers[d.type].call({parser:this},d);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){n+=m||"";continue}}let c=s;switch(c.type){case"space":{n+=this.renderer.space(c);break}case"hr":{n+=this.renderer.hr(c);break}case"heading":{n+=this.renderer.heading(c);break}case"code":{n+=this.renderer.code(c);break}case"table":{n+=this.renderer.table(c);break}case"blockquote":{n+=this.renderer.blockquote(c);break}case"list":{n+=this.renderer.list(c);break}case"checkbox":{n+=this.renderer.checkbox(c);break}case"html":{n+=this.renderer.html(c);break}case"def":{n+=this.renderer.def(c);break}case"paragraph":{n+=this.renderer.paragraph(c);break}case"text":{n+=this.renderer.text(c);break}default:{let d='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}parseInline(t,n=this.renderer){var o,l;let r="";for(let s=0;s<t.length;s++){let c=t[s];if((l=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&l[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){r+=m||"";continue}}let d=c;switch(d.type){case"escape":{r+=n.text(d);break}case"html":{r+=n.html(d);break}case"link":{r+=n.link(d);break}case"image":{r+=n.image(d);break}case"checkbox":{r+=n.checkbox(d);break}case"strong":{r+=n.strong(d);break}case"em":{r+=n.em(d);break}case"codespan":{r+=n.codespan(d);break}case"br":{r+=n.br(d);break}case"del":{r+=n.del(d);break}case"text":{r+=n.text(d);break}default:{let m='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}},zu,Ns=(zu=class{constructor(e){Nt(this,"options");Nt(this,"block");this.options=e||Oi}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?zo.lex:zo.lexInline}provideParser(){return this.block?Mo.parse:Mo.parseInline}},Nt(zu,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Nt(zu,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),zu),kB=class{constructor(...e){Nt(this,"defaults",iv());Nt(this,"options",this.setOptions);Nt(this,"parse",this.parseMarkdown(!0));Nt(this,"parseInline",this.parseMarkdown(!1));Nt(this,"Parser",Mo);Nt(this,"Renderer",wd);Nt(this,"TextRenderer",pv);Nt(this,"Lexer",zo);Nt(this,"Tokenizer",xd);Nt(this,"Hooks",Ns);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let s=l;for(let c of s.header)n=n.concat(this.walkTokens(c.tokens,t));for(let c of s.rows)for(let d of c)n=n.concat(this.walkTokens(d.tokens,t));break}case"list":{let s=l;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=l;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[s.type]?this.defaults.extensions.childTokens[s.type].forEach(c=>{let d=s[c].flat(1/0);n=n.concat(this.walkTokens(d,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let l=t.renderers[o.name];l?t.renderers[o.name]=function(...s){let c=o.renderer.apply(this,s);return c===!1&&(c=l.apply(this,s)),c}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[o.level];l?l.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new wd(this.defaults);for(let l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,c=n.renderer[s],d=o[s];o[s]=(...m)=>{let p=c.apply(o,m);return p===!1&&(p=d.apply(o,m)),p||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new xd(this.defaults);for(let l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,c=n.tokenizer[s],d=o[s];o[s]=(...m)=>{let p=c.apply(o,m);return p===!1&&(p=d.apply(o,m)),p}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Ns;for(let l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,c=n.hooks[s],d=o[s];Ns.passThroughHooks.has(l)?o[s]=m=>{if(this.defaults.async&&Ns.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await c.call(o,m);return d.call(o,g)})();let p=c.call(o,m);return d.call(o,p)}:o[s]=(...m)=>{if(this.defaults.async)return(async()=>{let g=await c.apply(o,m);return g===!1&&(g=await d.apply(o,m)),g})();let p=c.apply(o,m);return p===!1&&(p=d.apply(o,m)),p}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,l=n.walkTokens;r.walkTokens=function(s){let c=[];return c.push(l.call(this,s)),o&&(c=c.concat(o.call(this,s))),c}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return zo.lex(e,t??this.defaults)}parser(e,t){return Mo.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let s=o.hooks?await o.hooks.preprocess(t):t,c=await(o.hooks?await o.hooks.provideLexer():e?zo.lex:zo.lexInline)(s,o),d=o.hooks?await o.hooks.processAllTokens(c):c;o.walkTokens&&await Promise.all(this.walkTokens(d,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?Mo.parse:Mo.parseInline)(d,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(t=o.hooks.preprocess(t));let s=(o.hooks?o.hooks.provideLexer():e?zo.lex:zo.lexInline)(t,o);o.hooks&&(s=o.hooks.processAllTokens(s)),o.walkTokens&&this.walkTokens(s,o.walkTokens);let c=(o.hooks?o.hooks.provideParser():e?Mo.parse:Mo.parseInline)(s,o);return o.hooks&&(c=o.hooks.postprocess(c)),c}catch(s){return l(s)}}}onError(e,t){return n=>{if(n.message+=`
543
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Go(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},$i=new kB;function xn(e,t){return $i.parse(e,t)}xn.options=xn.setOptions=function(e){return $i.setOptions(e),xn.defaults=$i.defaults,n$(xn.defaults),xn};xn.getDefaults=iv;xn.defaults=Oi;xn.use=function(...e){return $i.use(...e),xn.defaults=$i.defaults,n$(xn.defaults),xn};xn.walkTokens=function(e,t){return $i.walkTokens(e,t)};xn.parseInline=$i.parseInline;xn.Parser=Mo;xn.parser=Mo.parse;xn.Renderer=wd;xn.TextRenderer=pv;xn.Lexer=zo;xn.lexer=zo.lex;xn.Tokenizer=xd;xn.Hooks=Ns;xn.parse=xn;xn.options;xn.setOptions;xn.use;xn.walkTokens;xn.parseInline;Mo.parse;zo.lex;function pi(e){if(!e)return"";try{return xn.parse(e,{breaks:!0})}catch{return vd(e)}}const _B="_helpBtn_cvsqb_1",OB="_modalBody_cvsqb_24",IB="_spinWrap_cvsqb_54",Ap={helpBtn:_B,modalBody:OB,spinWrap:IB},TB=new Set(["Tool-Bash","Tool-Read","Tool-Edit","Tool-Write","Tool-Glob","Tool-Grep","Tool-NotebookEdit","Tool-WebFetch","Tool-WebSearch","Tool-Task","Tool-Agent","Tool-TaskOutput","Tool-TaskStop","Tool-TaskCreate","Tool-TaskGet","Tool-TaskUpdate","Tool-TaskList","Tool-EnterPlanMode","Tool-ExitPlanMode","Tool-AskUserQuestion","Tool-Skill","Tool-getDiagnostics","Tool-executeCode","MainAgent","Tools","CacheRebuild","BodyDiffJSON","TranslateContextPollution"]);function kl({doc:e}){const[t,n]=u.useState(!1),[r,o]=u.useState(!1),[l,s]=u.useState(""),[c,d]=u.useState("");if(!e||!TB.has(e))return null;const m=u.useCallback(async()=>{n(!0),o(!0),s(""),d(e);const p=Ml();let g=null;try{const h=await fetch(`/api/concept?lang=${p}&doc=${encodeURIComponent(e)}`);h.ok&&(g=await h.text())}catch{}if(g){const h=g.match(/^#\s+(.+)/m);h&&d(h[1]),s(pi(g))}else s("<p>Document not found.</p>");o(!1)},[e]);return k.jsxs(k.Fragment,{children:[k.jsx("span",{className:Ap.helpBtn,onClick:p=>{p.stopPropagation(),m()},children:"?"}),k.jsx(Xr,{title:c,open:t,onCancel:()=>n(!1),footer:null,width:640,styles:{header:{background:"#1a1a1a"},body:{background:"#111",padding:"16px 24px 24px"},content:{background:"#1a1a1a",padding:"12px 20px"}},children:r?k.jsx("div",{className:Ap.spinWrap,children:k.jsx(Wl,{})}):k.jsx("div",{className:Ap.modalBody,dangerouslySetInnerHTML:{__html:l}})})]})}const jB="_headerBar_1ata5_2",NB="_titleText_1ata5_11",PB="_logoImage_1ata5_17",zB="_titleArrow_1ata5_25",MB="_tokenStatsTag_1ata5_31",LB="_tokenStatsIcon_1ata5_39",BB="_liveTag_1ata5_44",AB="_liveDotWrap_1ata5_48",DB="_liveSpinner_1ata5_70",FB="_liveSpinnerDiag_1ata5_75",HB="_inflightList_1ata5_90",VB="_inflightItem_1ata5_94",WB="_inflightTag_1ata5_106",qB="_inflightModel_1ata5_112",UB="_inflightTime_1ata5_117",GB="_liveTagHistory_1ata5_123",KB="_liveTagText_1ata5_129",XB="_countdownStrong_1ata5_134",QB="_langSelector_1ata5_139",YB="_settingsBtn_1ata5_150",JB="_settingsItem_1ata5_166",ZB="_settingsLabel_1ata5_173",eA="_tokenStatsEmpty_1ata5_178",tA="_tokenStatsContainer_1ata5_185",nA="_tokenStatsColumn_1ata5_191",rA="_toolStatsColumn_1ata5_195",oA="_modelCard_1ata5_200",aA="_modelCardSpaced_1ata5_207 _modelCard_1ata5_200",iA="_modelName_1ata5_213",lA="_statsTable_1ata5_223",sA="_th_1ata5_228",cA="_td_1ata5_238",uA="_label_1ata5_247",dA="_rowBorder_1ata5_257",fA="_rebuildTotalRow_1ata5_269",mA="_promptExportBar_1ata5_278",pA="_promptScrollArea_1ata5_282",gA="_promptEmpty_1ata5_287",hA="_promptTimestamp_1ata5_293",vA="_textPromptCard_1ata5_301",yA="_preText_1ata5_310",bA="_systemCollapse_1ata5_320",CA="_systemLabel_1ata5_327",SA="_preSys_1ata5_332",xA="_promptTextarea_1ata5_342",wA="_projectStatsCenter_1ata5_358",$A="_projectStatsEmpty_1ata5_364",EA="_projectStatsContent_1ata5_371",RA="_projectStatsUpdated_1ata5_377",kA="_projectStatsSummary_1ata5_383",_A="_projectStatCard_1ata5_389",OA="_projectStatValue_1ata5_397",IA="_projectStatLabel_1ata5_405",TA="_projectStatsSection_1ata5_411",jA="_projectStatsSectionTitle_1ata5_417",NA="_projectStatsModelCard_1ata5_425",PA="_projectStatsModelHeader_1ata5_432",zA="_projectStatsModelName_1ata5_441",MA="_projectStatsModelCount_1ata5_447",ge={headerBar:jB,titleText:NB,logoImage:PB,titleArrow:zB,tokenStatsTag:MB,tokenStatsIcon:LB,liveTag:BB,liveDotWrap:AB,liveSpinner:DB,liveSpinnerDiag:FB,inflightList:HB,inflightItem:VB,inflightTag:WB,inflightModel:qB,inflightTime:UB,liveTagHistory:GB,liveTagText:KB,countdownStrong:XB,langSelector:QB,settingsBtn:YB,settingsItem:JB,settingsLabel:ZB,tokenStatsEmpty:eA,tokenStatsContainer:tA,tokenStatsColumn:nA,toolStatsColumn:rA,modelCard:oA,modelCardSpaced:aA,modelName:iA,statsTable:lA,th:sA,td:cA,label:uA,rowBorder:dA,rebuildTotalRow:fA,promptExportBar:mA,promptScrollArea:pA,promptEmpty:gA,promptTimestamp:hA,textPromptCard:vA,preText:yA,systemCollapse:bA,systemLabel:CA,preSys:SA,promptTextarea:xA,projectStatsCenter:wA,projectStatsEmpty:$A,projectStatsContent:EA,projectStatsUpdated:RA,projectStatsSummary:kA,projectStatCard:_A,projectStatValue:OA,projectStatLabel:IA,projectStatsSection:TA,projectStatsSectionTitle:jA,projectStatsModelCard:NA,projectStatsModelHeader:PA,projectStatsModelName:zA,projectStatsModelCount:MA},UC=[{value:"zh",short:"zh",label:"简体中文"},{value:"en",short:"en",label:"English"},{value:"zh-TW",short:"zh-TW",label:"繁體中文"},{value:"ko",short:"ko",label:"한국어"},{value:"ja",short:"ja",label:"日本語"},{value:"de",short:"de",label:"Deutsch"},{value:"es",short:"es",label:"Español"},{value:"fr",short:"fr",label:"Français"},{value:"it",short:"it",label:"Italiano"},{value:"da",short:"da",label:"Dansk"},{value:"pl",short:"pl",label:"Polski"},{value:"ru",short:"ru",label:"Русский"},{value:"ar",short:"ar",label:"العربية"},{value:"no",short:"no",label:"Norsk"},{value:"pt-BR",short:"pt-BR",label:"Português (Brasil)"},{value:"th",short:"th",label:"ไทย"},{value:"tr",short:"tr",label:"Türkçe"},{value:"uk",short:"uk",label:"Українська"}],{Text:LA}=oa,xl=class xl extends J.Component{constructor(n){super(n);Nt(this,"handleShowPrompts",()=>{this.setState({promptModalVisible:!0,promptData:this.extractUserPrompts()})});Nt(this,"handleExportPromptsTxt",()=>{const n=this.state.promptData;if(!n||n.length===0)return;const r=[];for(const c of n){const d=[],m=c.timestamp?new Date(c.timestamp).toLocaleString():"";m&&d.push(`${m}:
544
+ `);const p=(c.segments||[]).filter(g=>g.type==="text").map(g=>g.content);p.length>0&&d.push(p.join(`
545
+ `)),r.push(d.join(`
546
+ `))}if(r.length===0)return;const o=new Blob([r.join(`
547
+
548
+
549
+
550
+ `)],{type:"text/plain;charset=utf-8"}),l=URL.createObjectURL(o),s=document.createElement("a");s.href=l,s.download=`user-prompts-${new Date().toISOString().slice(0,10)}.txt`,s.click(),URL.revokeObjectURL(l)});Nt(this,"handleShowProjectStats",()=>{this.setState({projectStatsVisible:!0,projectStatsLoading:!0}),fetch("/api/project-stats").then(n=>{if(!n.ok)throw new Error("not found");return n.json()}).then(n=>this.setState({projectStats:n,projectStatsLoading:!1})).catch(()=>this.setState({projectStats:null,projectStatsLoading:!1}))});this.state={countdownText:"",promptModalVisible:!1,promptData:[],promptViewMode:"original",settingsDrawerVisible:!1,globalSettingsVisible:!1,projectStatsVisible:!1,projectStats:null,projectStatsLoading:!1},this._rafId=null,this._expiredTimer=null,this.updateCountdown=this.updateCountdown.bind(this)}componentDidMount(){this.startCountdown()}componentDidUpdate(n){n.cacheExpireAt!==this.props.cacheExpireAt&&this.startCountdown()}componentWillUnmount(){this._rafId&&cancelAnimationFrame(this._rafId),this._expiredTimer&&clearTimeout(this._expiredTimer)}startCountdown(){if(this._rafId&&cancelAnimationFrame(this._rafId),this._expiredTimer&&clearTimeout(this._expiredTimer),!this.props.cacheExpireAt){this.setState({countdownText:""});return}this._rafId=requestAnimationFrame(this.updateCountdown)}updateCountdown(){const{cacheExpireAt:n}=this.props;if(!n){this.setState({countdownText:""});return}const r=Math.max(0,n-Date.now());if(r<=0){this.setState({countdownText:Oe("ui.cacheExpired")}),this._expiredTimer=setTimeout(()=>{this.setState({countdownText:""})},5e3);return}const o=Math.ceil(r/1e3);let l;if(o>=60){const s=Math.floor(o/60),c=o%60;l=Oe("ui.minuteSecond",{m:s,s:String(c).padStart(2,"0")})}else l=Oe("ui.second",{s:o});this.setState({countdownText:l}),this._rafId=requestAnimationFrame(this.updateCountdown)}static parseSegments(n){const r=[],o=/<([a-zA-Z_][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>/g;let l=0,s;for(;(s=o.exec(n))!==null;){const d=n.slice(l,s.index).trim();d&&r.push({type:"text",content:d});const m=s[1];if(l=s.index+s[0].length,xl.COMMAND_TAGS.has(m))continue;const p=new RegExp(`^<${m}(?:\\s[^>]*)?>([\\s\\S]*)<\\/${m}>$`),g=s[0].match(p),h=g?g[1].trim():s[0].trim();r.push({type:"system",content:h,label:m})}const c=n.slice(l).trim();return c&&r.push({type:"text",content:c}),r}static extractUserTexts(n){const r=[],o=[];let l=null;for(const s of n)if(s.role==="user"){if(typeof s.content=="string"){const c=s.content.trim();if(!c)continue;if(!nv(c)){if(/^Implement the following plan:/i.test(c))continue;r.push(c),o.push(c)}}else if(Array.isArray(s.content)){const{commands:c,textBlocks:d}=Z2(s.content);c.length>0&&(l=c[c.length-1]);const m=[];for(const g of d)/^Implement the following plan:/i.test((g.text||"").trim())||m.push(g.text.trim());const p=s.content.filter(g=>{var h;return g.type==="text"&&((h=g.text)==null?void 0:h.trim())}).map(g=>g.text.trim());m.length>0&&(r.push(m.join(`
551
+ `)),o.push(p.join(`
552
+ `)))}}return{userMsgs:r,fullTexts:o,slashCmd:l}}extractUserPrompts(){var c;const{requests:n=[]}=this.props,r=[],o=new Set;let l=null;const s=n.filter(d=>vr(d));for(let d=0;d<s.length;d++){const m=s[d],p=((c=m.body)==null?void 0:c.messages)||[],g=m.timestamp||"",{userMsgs:h,fullTexts:y,slashCmd:b}=xl.extractUserTexts(p);b&&b!=="/compact"&&b!==l&&r.push({type:"prompt",segments:[{type:"text",content:b}],timestamp:g}),l=b;for(let S=0;S<h.length;S++){const C=h[S];if(o.has(C))continue;o.add(C);const $=y[S]||C;r.push({type:"prompt",segments:xl.parseSegments($),timestamp:g})}}return r}renderTokenStats(){const{requests:n=[]}=this.props,r=EL(n),o=Object.keys(r),l=kL(n),s=_L(n);if(o.length===0&&l.length===0)return k.jsx("div",{className:ge.tokenStatsEmpty,children:"暂无 token 数据"});const c=k.jsx("div",{className:ge.tokenStatsColumn,children:o.map(g=>{const h=r[g],y=h.input+h.cacheCreation+h.cacheRead,b=y>0?(h.cacheRead/y*100).toFixed(1):"0.0";return k.jsxs("div",{className:o.length>1?ge.modelCardSpaced:ge.modelCard,children:[k.jsx("div",{className:ge.modelName,children:g}),k.jsx("table",{className:ge.statsTable,children:k.jsxs("tbody",{children:[k.jsxs("tr",{children:[k.jsx("td",{className:ge.label,children:"Token"}),k.jsx("td",{className:ge.th,children:"input"}),k.jsx("td",{className:ge.th,children:"output"})]}),k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label}),k.jsx("td",{className:ge.td,children:Gn(y)}),k.jsx("td",{className:ge.td,children:Gn(h.output)})]}),k.jsxs("tr",{children:[k.jsx("td",{className:ge.label,children:"Cache"}),k.jsx("td",{className:ge.th,children:"create"}),k.jsx("td",{className:ge.th,children:"read"})]}),k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label}),k.jsx("td",{className:ge.td,children:Gn(h.cacheCreation)}),k.jsx("td",{className:ge.td,children:Gn(h.cacheRead)})]}),k.jsxs("tr",{children:[k.jsx("td",{className:ge.label,children:Oe("ui.hitRate")}),k.jsxs("td",{colSpan:2,className:ge.td,children:[b,"%"]})]})]})})]},g)})}),d=this.renderCacheRebuildStats(),m=l.length>0?k.jsx("div",{className:ge.toolStatsColumn,children:k.jsxs("div",{className:ge.modelCard,children:[k.jsx("div",{className:ge.modelName,children:Oe("ui.toolUsageStats")}),k.jsxs("table",{className:ge.statsTable,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("td",{className:ge.th,style:{textAlign:"left"},children:"Tool"}),k.jsx("td",{className:ge.th,children:Oe("ui.cacheRebuild.count")})]})}),k.jsxs("tbody",{children:[l.map(([g,h])=>k.jsxs("tr",{className:ge.rowBorder,children:[k.jsxs("td",{className:ge.label,children:[g," ",k.jsx(kl,{doc:`Tool-${g}`})]}),k.jsx("td",{className:ge.td,children:h})]},g)),l.length>1&&k.jsxs("tr",{className:ge.rebuildTotalRow,children:[k.jsx("td",{className:ge.label,children:"Total"}),k.jsx("td",{className:ge.td,children:l.reduce((g,h)=>g+h[1],0)})]})]})]})]})}):null,p=s.length>0?k.jsx("div",{className:ge.toolStatsColumn,children:k.jsxs("div",{className:ge.modelCard,children:[k.jsx("div",{className:ge.modelName,children:Oe("ui.skillUsageStats")}),k.jsxs("table",{className:ge.statsTable,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("td",{className:ge.th,style:{textAlign:"left"},children:"Skill"}),k.jsx("td",{className:ge.th,children:Oe("ui.cacheRebuild.count")})]})}),k.jsxs("tbody",{children:[s.map(([g,h])=>k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label,children:g}),k.jsx("td",{className:ge.td,children:h})]},g)),s.length>1&&k.jsxs("tr",{className:ge.rebuildTotalRow,children:[k.jsx("td",{className:ge.label,children:"Total"}),k.jsx("td",{className:ge.td,children:s.reduce((g,h)=>g+h[1],0)})]})]})]})]})}):null;return k.jsxs("div",{className:ge.tokenStatsContainer,children:[c,d,m,p]})}renderCacheRebuildStats(){const{requests:n=[]}=this.props,r=RL(n),o=["ttl","system_change","tools_change","model_change","msg_truncated","msg_modified","key_change"],l={ttl:"ttl",system_change:"systemChange",tools_change:"toolsChange",model_change:"modelChange",msg_truncated:"msgTruncated",msg_modified:"msgModified",key_change:"keyChange"},s=o.filter(y=>r[y].count>0),c=s.reduce((y,b)=>y+r[b].count,0),d=s.reduce((y,b)=>y+r[b].cacheCreate,0),m={};for(let y=0;y<n.length;y++){const b=wi(n[y],n[y+1]);if(b.type==="SubAgent"){const S=b.subType||"Other";m[S]=(m[S]||0)+1}}const p=Object.entries(m).sort((y,b)=>b[1]-y[1]),g=s.length>0,h=p.length>0;return!g&&!h?null:k.jsxs("div",{className:ge.toolStatsColumn,children:[g&&k.jsxs("div",{className:h?ge.modelCardSpaced:ge.modelCard,children:[k.jsxs("div",{className:ge.modelName,children:["MainAgent",k.jsx(kl,{doc:"MainAgent"})," ",Oe("ui.cacheRebuildStats"),k.jsx(kl,{doc:"CacheRebuild"})]}),k.jsxs("table",{className:ge.statsTable,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("td",{className:ge.th,style:{textAlign:"left"},children:Oe("ui.cacheRebuild.reason")}),k.jsx("td",{className:ge.th,children:Oe("ui.cacheRebuild.count")}),k.jsx("td",{className:ge.th,children:Oe("ui.cacheRebuild.cacheCreate")})]})}),k.jsxs("tbody",{children:[s.map(y=>k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label,children:Oe(`ui.cacheRebuild.${l[y]}`)}),k.jsx("td",{className:ge.td,children:r[y].count}),k.jsx("td",{className:ge.td,children:Gn(r[y].cacheCreate)})]},y)),s.length>1&&k.jsxs("tr",{className:ge.rebuildTotalRow,children:[k.jsx("td",{className:ge.label,children:"Total"}),k.jsx("td",{className:ge.td,children:c}),k.jsx("td",{className:ge.td,children:Gn(d)})]})]})]})]}),h&&k.jsxs("div",{className:ge.modelCard,children:[k.jsx("div",{className:ge.modelName,children:Oe("ui.subAgentStats")}),k.jsxs("table",{className:ge.statsTable,children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx("td",{className:ge.th,style:{textAlign:"left"},children:"SubAgent"}),k.jsx("td",{className:ge.th,children:Oe("ui.cacheRebuild.count")})]})}),k.jsxs("tbody",{children:[p.map(([y,b])=>k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label,children:y}),k.jsx("td",{className:ge.td,children:b})]},y)),p.length>1&&k.jsxs("tr",{className:ge.rebuildTotalRow,children:[k.jsx("td",{className:ge.label,children:"Total"}),k.jsx("td",{className:ge.td,children:p.reduce((y,b)=>y+b[1],0)})]})]})]})]})]})}renderTextPrompt(n){return k.jsx("div",{className:ge.textPromptCard,children:n.segments.map((r,o)=>r.type==="text"?k.jsx("pre",{className:ge.preText,children:r.content},o):k.jsx(Os,{size:"small",className:ge.systemCollapse,items:[{key:`sys-${o}`,label:k.jsx("span",{className:ge.systemLabel,children:r.label}),children:k.jsx("pre",{className:ge.preSys,children:r.content})}]},o))})}renderOriginalPrompt(n){const r=n.segments.filter(o=>o.type==="text");return r.length===0?null:k.jsx("div",{className:ge.textPromptCard,children:r.map((o,l)=>k.jsx("pre",{className:ge.preText,children:o.content},l))})}buildTextModeContent(){const{promptData:n}=this.state,r=[];for(const o of n){const l=(o.segments||[]).filter(s=>s.type==="text").map(s=>s.content);l.length>0&&r.push(l.join(`
553
+ `))}return r.join(`
554
+
555
+
556
+ `)}renderProjectStatsContent(){const{projectStats:n,projectStatsLoading:r}=this.state;if(r)return k.jsx("div",{className:ge.projectStatsCenter,children:k.jsx(Wl,{})});if(!n)return k.jsx("div",{className:ge.projectStatsEmpty,children:Oe("ui.projectStats.noData")});const{summary:o,models:l,updatedAt:s}=n;l&&Object.entries(l).sort((m,p)=>p[1]-m[1]);const c={};if(n.files){for(const m of Object.values(n.files))if(m.models)for(const[p,g]of Object.entries(m.models))c[p]||(c[p]={input:0,output:0,cacheRead:0,cacheCreation:0,count:0}),c[p].input+=g.input_tokens||0,c[p].output+=g.output_tokens||0,c[p].cacheRead+=g.cache_read_input_tokens||0,c[p].cacheCreation+=g.cache_creation_input_tokens||0,c[p].count+=g.count||0}const d=Object.entries(c).sort((m,p)=>p[1].count-m[1].count);return k.jsxs("div",{className:ge.projectStatsContent,children:[s&&k.jsx("div",{className:ge.projectStatsUpdated,children:Oe("ui.projectStats.updatedAt",{time:new Date(s).toLocaleString()})}),k.jsxs("div",{className:ge.projectStatsSummary,children:[k.jsxs("div",{className:ge.projectStatCard,children:[k.jsx("div",{className:ge.projectStatValue,children:(o==null?void 0:o.requestCount)??0}),k.jsx("div",{className:ge.projectStatLabel,children:Oe("ui.projectStats.totalRequests")})]}),k.jsxs("div",{className:ge.projectStatCard,children:[k.jsx("div",{className:ge.projectStatValue,children:(o==null?void 0:o.sessionCount)??0}),k.jsx("div",{className:ge.projectStatLabel,children:Oe("ui.projectStats.sessionCount")})]}),k.jsxs("div",{className:ge.projectStatCard,children:[k.jsx("div",{className:ge.projectStatValue,children:(o==null?void 0:o.fileCount)??0}),k.jsx("div",{className:ge.projectStatLabel,children:Oe("ui.projectStats.totalFiles")})]}),k.jsxs("div",{className:ge.projectStatCard,children:[k.jsx("div",{className:ge.projectStatValue,children:Gn(o==null?void 0:o.input_tokens)}),k.jsx("div",{className:ge.projectStatLabel,children:"Input Tokens"})]}),k.jsxs("div",{className:ge.projectStatCard,children:[k.jsx("div",{className:ge.projectStatValue,children:Gn(o==null?void 0:o.output_tokens)}),k.jsx("div",{className:ge.projectStatLabel,children:"Output Tokens"})]})]}),d.length>0&&k.jsxs("div",{className:ge.projectStatsSection,children:[k.jsx("div",{className:ge.projectStatsSectionTitle,children:Oe("ui.projectStats.modelUsage")}),d.map(([m,p])=>{const g=p.input+p.cacheRead+p.cacheCreation,h=g>0?(p.cacheRead/g*100).toFixed(1):"0.0";return k.jsxs("div",{className:ge.projectStatsModelCard,children:[k.jsxs("div",{className:ge.projectStatsModelHeader,children:[k.jsx("span",{className:ge.projectStatsModelName,children:m}),k.jsxs("span",{className:ge.projectStatsModelCount,children:[p.count," reqs"]})]}),k.jsx("table",{className:ge.statsTable,children:k.jsxs("tbody",{children:[k.jsxs("tr",{children:[k.jsx("td",{className:ge.label,children:"Token"}),k.jsx("td",{className:ge.th,children:"input"}),k.jsx("td",{className:ge.th,children:"output"})]}),k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label}),k.jsx("td",{className:ge.td,children:Gn(g)}),k.jsx("td",{className:ge.td,children:Gn(p.output)})]}),k.jsxs("tr",{children:[k.jsx("td",{className:ge.label,children:"Cache"}),k.jsx("td",{className:ge.th,children:"create"}),k.jsx("td",{className:ge.th,children:"read"})]}),k.jsxs("tr",{className:ge.rowBorder,children:[k.jsx("td",{className:ge.label}),k.jsx("td",{className:ge.td,children:Gn(p.cacheCreation)}),k.jsx("td",{className:ge.td,children:Gn(p.cacheRead)})]}),k.jsxs("tr",{children:[k.jsx("td",{className:ge.label,children:Oe("ui.hitRate")}),k.jsxs("td",{colSpan:2,className:ge.td,children:[h,"%"]})]})]})})]},m)})]})]})}render(){var N;const{requestCount:n,requests:r=[],viewMode:o,cacheType:l,onToggleViewMode:s,onImportLocalLogs:c,onLangChange:d,isLocalLog:m,localLogFile:p,projectName:g,collapseToolResults:h,onCollapseToolResultsChange:y,expandThinking:b,onExpandThinkingChange:S,expandDiff:C,onExpandDiffChange:$,filterIrrelevant:w,onFilterIrrelevantChange:R,updateInfo:I,onDismissUpdate:_}=this.props,{countdownText:O}=this.state,j=[{key:"import-local",icon:k.jsx(pL,{}),label:Oe("ui.importLocalLogs"),onClick:c},{key:"export-prompts",icon:k.jsx(dL,{}),label:Oe("ui.exportPrompts"),onClick:this.handleShowPrompts},{type:"divider"},{key:"project-stats",icon:k.jsx(MC,{}),label:Oe("ui.projectStats"),onClick:this.handleShowProjectStats},{key:"global-settings",icon:k.jsx(LC,{}),label:Oe("ui.globalSettings"),onClick:()=>this.setState({globalSettingsVisible:!0})}];return k.jsxs("div",{className:ge.headerBar,children:[k.jsxs(ha,{size:"middle",children:[k.jsx(Gg,{menu:{items:j},trigger:["hover"],children:k.jsxs(LA,{strong:!0,className:ge.titleText,children:[k.jsx("img",{src:"/favicon.ico",alt:"Logo",className:ge.logoImage}),"CC-Viewer ",k.jsx(Sl,{className:ge.titleArrow})]})}),k.jsx(Dg,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:k.jsxs(io,{className:ge.tokenStatsTag,children:[k.jsx(sL,{className:ge.tokenStatsIcon}),Oe("ui.tokenStats")]})}),(()=>{const T=m?[]:(r||[]).filter(W=>!W.response),P=T.length>0,B=m?null:P?k.jsxs("svg",{className:ge.liveSpinner,width:"10",height:"10",viewBox:"0 0 10 10",children:[k.jsx("line",{x1:"5",y1:"1",x2:"5",y2:"9",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round"}),k.jsx("line",{x1:"1",y1:"5",x2:"9",y2:"5",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round"}),k.jsx("line",{x1:"2.2",y1:"2.2",x2:"7.8",y2:"7.8",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round",className:ge.liveSpinnerDiag}),k.jsx("line",{x1:"7.8",y1:"2.2",x2:"2.2",y2:"7.8",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round",className:ge.liveSpinnerDiag})]}):k.jsx(e2,{status:"processing",color:"green"}),z=!m&&!P,D=B&&k.jsx("span",{className:ge.liveDotWrap,children:z?k.jsx(ea,{title:Oe("ui.noInflightRequests"),placement:"bottom",children:B}):B}),A=k.jsxs(io,{color:m?void 0:"green",className:`${ge.liveTag} ${m?ge.liveTagHistory:""}`,children:[D,k.jsx("span",{className:ge.liveTagText,children:m?Oe("ui.historyLog",{file:p}):Oe("ui.liveMonitoring")+(g?`:${g}`:"")})]});if(P){const W=k.jsx("div",{className:ge.inflightList,children:T.map((q,V)=>{var Q;const F=wi(q),Y=Cd(F.type,F.subType),U=((Q=q.body)==null?void 0:Q.model)||"",M=U.includes("-")?U.split("-").slice(0,2).join("-"):U,H=new Date(q.timestamp).toLocaleTimeString("zh-CN");return k.jsxs("div",{className:ge.inflightItem,children:[k.jsx("span",{className:ge.inflightTag,children:Y}),k.jsx("span",{className:ge.inflightModel,children:M}),k.jsx("span",{className:ge.inflightTime,children:H})]},V)})});return k.jsx(Dg,{content:W,title:Oe("ui.inflightRequests"),placement:"bottom",children:A})}return A})(),I&&k.jsx(io,{color:I.type==="completed"?"green":"orange",closable:!0,onClose:()=>_&&_(),children:I.type==="completed"?Oe("ui.update.completed",{version:I.version}):Oe("ui.update.majorAvailable",{version:I.version})})]}),k.jsxs(ha,{size:"middle",children:[O&&k.jsxs(io,{color:O===Oe("ui.cacheExpired")?"red":"green",children:[Oe("ui.cacheCountdown",{type:l?`(${l})`:""}),k.jsx("strong",{className:ge.countdownStrong,children:O})]}),o==="chat"&&k.jsxs("span",{className:ge.settingsBtn,onClick:()=>this.setState({settingsDrawerVisible:!0}),children:[k.jsx(LC,{})," ",Oe("ui.settings")]}),k.jsx(Gg,{trigger:["hover"],placement:"bottom",menu:{items:UC.map(T=>({key:T.value,label:T.label,style:T.value===Ml()?{color:"#3b82f6"}:{}})),onClick:({key:T})=>{av(T),d&&d()}},children:k.jsx("span",{className:ge.langSelector,children:((N=UC.find(T=>T.value===Ml()))==null?void 0:N.short)||"zh"})}),k.jsx(Yn,{type:o==="raw"?"primary":"default",icon:o==="raw"?k.jsx(vL,{}):k.jsx(Ls,{}),onClick:s,children:Oe(o==="raw"?"ui.chatMode":"ui.rawMode")})]}),k.jsxs(Xr,{title:`${Oe("ui.userPrompt")} (${this.state.promptData.length}${Oe("ui.promptCountUnit")})`,open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:[k.jsx("div",{className:ge.promptExportBar,children:k.jsx(Yn,{icon:k.jsx(tL,{}),onClick:this.handleExportPromptsTxt,children:Oe("ui.exportPromptsTxt")})}),k.jsx(Xh,{activeKey:this.state.promptViewMode,onChange:T=>this.setState({promptViewMode:T}),size:"small",items:[{key:"original",label:Oe("ui.promptModeOriginal")},{key:"context",label:Oe("ui.promptModeContext")},{key:"text",label:Oe("ui.promptModeText")}]}),this.state.promptViewMode==="text"?k.jsx("textarea",{readOnly:!0,className:ge.promptTextarea,value:this.buildTextModeContent()}):k.jsxs("div",{className:ge.promptScrollArea,children:[this.state.promptData.length===0&&k.jsx("div",{className:ge.promptEmpty,children:Oe("ui.noPrompt")}),this.state.promptData.map((T,P)=>{const B=T.timestamp?new Date(T.timestamp).toLocaleString():Oe("ui.unknownTime");return k.jsxs("div",{children:[k.jsxs("div",{className:ge.promptTimestamp,children:[B,":"]}),this.state.promptViewMode==="original"?this.renderOriginalPrompt(T):this.renderTextPrompt(T)]},P)})]})]}),k.jsxs(Xu,{title:Oe("ui.settings"),placement:"right",width:320,open:this.state.settingsDrawerVisible,onClose:()=>this.setState({settingsDrawerVisible:!1}),children:[k.jsxs("div",{className:ge.settingsItem,children:[k.jsx("span",{className:ge.settingsLabel,children:Oe("ui.collapseToolResults")}),k.jsx(js,{checked:!!h,onChange:T=>y&&y(T)})]}),k.jsxs("div",{className:ge.settingsItem,children:[k.jsx("span",{className:ge.settingsLabel,children:Oe("ui.expandThinking")}),k.jsx(js,{checked:!!b,onChange:T=>S&&S(T)})]})]}),k.jsxs(Xu,{title:Oe("ui.globalSettings"),placement:"left",width:400,open:this.state.globalSettingsVisible,onClose:()=>this.setState({globalSettingsVisible:!1}),children:[k.jsxs("div",{className:ge.settingsItem,children:[k.jsx("span",{className:ge.settingsLabel,children:Oe("ui.filterIrrelevant")}),k.jsx(js,{checked:!!w,onChange:T=>R&&R(T)})]}),k.jsxs("div",{className:ge.settingsItem,children:[k.jsx("span",{className:ge.settingsLabel,children:Oe("ui.expandDiff")}),k.jsx(js,{checked:!!C,onChange:T=>$&&$(T)})]})]}),k.jsx(Xu,{title:k.jsxs("span",{children:[k.jsx(MC,{style:{marginRight:8}}),Oe("ui.projectStats")]}),placement:"left",width:400,open:this.state.projectStatsVisible,onClose:()=>this.setState({projectStatsVisible:!1}),children:this.renderProjectStatsContent()})]})}};Nt(xl,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let Jg=xl;const BA="_centerEmpty_ckz8l_1",AA="_scrollContainer_ckz8l_8",DA="_listItem_ckz8l_13",FA="_listItemActive_ckz8l_25",HA="_itemContent_ckz8l_34",VA="_itemHeader_ckz8l_39",WA="_tagNoMargin_ckz8l_47",qA="_modelName_ckz8l_52",UA="_time_ckz8l_56",GA="_detailRow_ckz8l_62",KA="_urlText_ckz8l_69",XA="_duration_ckz8l_78",QA="_statusOk_ckz8l_83",YA="_statusErr_ckz8l_89",JA="_statusDefault_ckz8l_94",ZA="_usageBox_ckz8l_99",eD="_cacheDot_ckz8l_109",tD="_cacheDotLoss_ckz8l_118",nD="_cacheDotNormal_ckz8l_123",An={centerEmpty:BA,scrollContainer:AA,listItem:DA,listItemActive:FA,itemContent:HA,itemHeader:VA,tagNoMargin:WA,modelName:qA,time:UA,detailRow:GA,urlText:KA,duration:XA,statusOk:QA,statusErr:YA,statusDefault:JA,usageBox:ZA,cacheDot:eD,cacheDotLoss:tD,cacheDotNormal:nD};class rD extends J.Component{constructor(t){super(t),this.activeItemRef=J.createRef()}componentDidMount(){this.scrollToSelected(!0)}componentDidUpdate(t){this.props.scrollCenter&&t.selectedIndex!==this.props.selectedIndex?this.scrollToSelected(!0):t.requests!==this.props.requests&&this.scrollToSelected(!1)}scrollToSelected(t){this.activeItemRef.current&&(this.activeItemRef.current.scrollIntoView({block:t?"center":"nearest",behavior:"instant"}),t&&this.props.onScrollDone&&this.props.onScrollDone())}render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?k.jsx("div",{className:An.centerEmpty,children:k.jsx(Lo,{description:Oe("ui.waitingRequests")})}):k.jsx("div",{className:An.scrollContainer,children:k.jsx(Zs,{dataSource:t,size:"small",split:!1,renderItem:(o,l)=>{var I,_,O;const s=new Date(o.timestamp).toLocaleTimeString("zh-CN"),c=l===n,d=o.response&&o.response.status<400,m=o.response&&o.response.status>=400,p=TL((I=o.body)==null?void 0:I.model),g=l+1<t.length?t[l+1]:null,{type:h,subType:y}=wi(o,g),b=(O=(_=o.response)==null?void 0:_.body)==null?void 0:O.usage,S=b?(b.input_tokens||0)+(b.cache_read_input_tokens||0)+(b.cache_creation_input_tokens||0):null,C=(b==null?void 0:b.output_tokens)||null,$=(b==null?void 0:b.cache_read_input_tokens)||0,w=(b==null?void 0:b.cache_creation_input_tokens)||0;let R=o.url;try{const j=new URL(o.url);R=j.host+j.pathname}catch{}return k.jsx(Zs.Item,{ref:c?this.activeItemRef:void 0,onClick:()=>r(l),className:`${An.listItem} ${c?An.listItemActive:""}`,children:k.jsxs("div",{className:An.itemContent,children:[k.jsxs("div",{className:An.itemHeader,children:[h==="MainAgent"?k.jsx(io,{color:"orange",className:An.tagNoMargin,children:"MainAgent"}):h==="Plan"?k.jsx(io,{className:An.tagNoMargin,style:{color:"#a33",borderColor:"#a33",backgroundColor:"#000"},children:Cd(h,y)}):h==="Count"||h==="Preflight"?k.jsx(io,{className:An.tagNoMargin,style:{color:"#666",borderColor:"#444",backgroundColor:"#000"},children:h}):k.jsx(io,{className:An.tagNoMargin,children:Cd(h,y)}),p&&k.jsx("span",{className:An.modelName,style:{color:h==="MainAgent"?"#d4822d":"#8c8c8c"},children:p}),k.jsx("span",{className:An.time,children:s})]}),k.jsxs("div",{className:An.detailRow,children:[k.jsx("span",{className:An.urlText,title:o.url,children:R}),o.duration&&k.jsxs("span",{className:An.duration,children:[o.duration,"ms"]}),o.response&&k.jsx("span",{className:d?An.statusOk:m?An.statusErr:An.statusDefault,children:o.response.status})]}),b&&k.jsxs("div",{className:An.usageBox,children:[k.jsxs("div",{children:["token: output:",Gn(C)||0,", input: ",Gn(S)||0]}),($>0||w>0)&&k.jsx("div",{children:(()=>{const j=e$(t,l),N={ttl:"ui.cacheLoss.ttl",system_change:"ui.cacheLoss.systemChange",tools_change:"ui.cacheLoss.toolsChange",model_change:"ui.cacheLoss.modelChange",msg_truncated:"ui.cacheLoss.msgTruncated",msg_modified:"ui.cacheLoss.msgModified",key_change:"ui.cacheLoss.keyChange"};let T;if(j){const B=(j.reasons||[j.reason]).map(z=>Oe(N[z]||N.key_change)).join(`
557
+ `);T=k.jsx(ea,{title:k.jsx("span",{style:{whiteSpace:"pre-line"},children:B}),children:k.jsx("span",{className:`${An.cacheDot} ${An.cacheDotLoss}`})})}else T=k.jsx("span",{className:`${An.cacheDot} ${An.cacheDotNormal}`});return k.jsxs(k.Fragment,{children:["cache",T,": ",$>0?`read:${Gn($)}`:"",$>0&&w>0?", ":"",w>0?`create:${Gn(w)}`:""]})})()})]})]})})}})})}}const oD=e=>typeof e=="boolean"||e instanceof Boolean,aD=e=>typeof e=="number"||e instanceof Number,iD=e=>typeof e=="bigint"||e instanceof BigInt,p$=e=>!!e&&e instanceof Date,lD=e=>typeof e=="string"||e instanceof String,sD=e=>Array.isArray(e),g$=e=>typeof e=="object"&&e!==null,h$=e=>!!e&&e instanceof Object&&typeof e=="function";function $d(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function cD(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function v$(e){let{field:t,value:n,data:r,lastElement:o,openBracket:l,closeBracket:s,level:c,style:d,shouldExpandNode:m,clickToExpandNode:p,outerRef:g,beforeExpandChange:h}=e;const y=u.useRef(!1),[b,S]=u.useState(()=>m(c,n,t)),C=u.useRef(null);u.useEffect(()=>{y.current?S(m(c,n,t)):y.current=!0},[m]);const $=u.useId();if(r.length===0)return uD({field:t,openBracket:l,closeBracket:s,lastElement:o,style:d});const w=b?d.collapseIcon:d.expandIcon,R=b?d.ariaLables.collapseJson:d.ariaLables.expandJson,I=c+1,_=r.length-1,O=T=>{b!==T&&(!h||h({level:c,value:n,field:t,newExpandValue:T}))&&S(T)},j=T=>{if(T.key==="ArrowRight"||T.key==="ArrowLeft")T.preventDefault(),O(T.key==="ArrowRight");else if(T.key==="ArrowUp"||T.key==="ArrowDown"){T.preventDefault();const P=T.key==="ArrowUp"?-1:1;if(!g.current)return;const B=g.current.querySelectorAll("[role=button]");let z=-1;for(let A=0;A<B.length;A++)if(B[A].tabIndex===0){z=A;break}if(z<0)return;const D=(z+P+B.length)%B.length;B[z].tabIndex=-1,B[D].tabIndex=0,B[D].focus()}},N=()=>{var T;O(!b);const P=C.current;if(!P)return;const B=(T=g.current)===null||T===void 0?void 0:T.querySelector('[role=button][tabindex="0"]');B&&(B.tabIndex=-1),P.tabIndex=0,P.focus()};return u.createElement("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":b,"aria-selected":void 0},u.createElement("span",{className:w,onClick:N,onKeyDown:j,role:"button","aria-label":R,"aria-expanded":b,"aria-controls":b?$:void 0,ref:C,tabIndex:c===0?0:-1}),(t||t==="")&&(p?u.createElement("span",{className:d.clickableLabel,onClick:N,onKeyDown:j},$d(t,d.quotesForFieldNames),":"):u.createElement("span",{className:d.label},$d(t,d.quotesForFieldNames),":")),u.createElement("span",{className:d.punctuation},l),b?u.createElement("ul",{id:$,role:"group",className:d.childFieldsContainer},r.map((T,P)=>u.createElement(Zg,{key:T[0]||P,field:T[0],value:T[1],style:d,lastElement:P===_,level:I,shouldExpandNode:m,clickToExpandNode:p,beforeExpandChange:h,outerRef:g}))):u.createElement("span",{className:d.collapsedContent,onClick:N,onKeyDown:j}),u.createElement("span",{className:d.punctuation},s),!o&&u.createElement("span",{className:d.punctuation},","))}function uD(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:l}=e;return u.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&u.createElement("span",{className:l.label},$d(t,l.quotesForFieldNames),":"),u.createElement("span",{className:l.punctuation},n),u.createElement("span",{className:l.punctuation},r),!o&&u.createElement("span",{className:l.punctuation},","))}function dD(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:l,clickToExpandNode:s,level:c,outerRef:d,beforeExpandChange:m}=e;return v$({field:t,value:n,lastElement:o||!1,level:c,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:l,clickToExpandNode:s,data:Object.keys(n).map(p=>[p,n[p]]),outerRef:d,beforeExpandChange:m})}function fD(e){let{field:t,value:n,style:r,lastElement:o,level:l,shouldExpandNode:s,clickToExpandNode:c,outerRef:d,beforeExpandChange:m}=e;return v$({field:t,value:n,lastElement:o||!1,level:l,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:c,data:n.map(p=>[void 0,p]),outerRef:d,beforeExpandChange:m})}function mD(e){let{field:t,value:n,style:r,lastElement:o}=e,l,s=r.otherValue;return n===null?(l="null",s=r.nullValue):n===void 0?(l="undefined",s=r.undefinedValue):lD(n)?(l=cD(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):oD(n)?(l=n?"true":"false",s=r.booleanValue):aD(n)?(l=n.toString(),s=r.numberValue):iD(n)?(l=`${n.toString()}n`,s=r.numberValue):p$(n)?l=n.toISOString():h$(n)?l="function() { }":l=n.toString(),u.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&u.createElement("span",{className:r.label},$d(t,r.quotesForFieldNames),":"),u.createElement("span",{className:s},l),!o&&u.createElement("span",{className:r.punctuation},","))}function Zg(e){const t=e.value;return sD(t)?u.createElement(fD,Object.assign({},e)):g$(t)&&!p$(t)&&!h$(t)?u.createElement(dD,Object.assign({},e)):u.createElement(mD,Object.assign({},e))}var bn={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const y$={collapseJson:"collapse JSON",expandJson:"expand JSON"},Dp={container:bn["container-light"],basicChildStyle:bn["basic-element-style"],childFieldsContainer:bn["child-fields-container"],label:bn["label-light"],clickableLabel:bn["clickable-label-light"],nullValue:bn["value-null-light"],undefinedValue:bn["value-undefined-light"],stringValue:bn["value-string-light"],booleanValue:bn["value-boolean-light"],numberValue:bn["value-number-light"],otherValue:bn["value-other-light"],punctuation:bn["punctuation-light"],collapseIcon:bn["collapse-icon-light"],expandIcon:bn["expand-icon-light"],collapsedContent:bn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:y$,stringifyStringValues:!1},pD={container:bn["container-dark"],basicChildStyle:bn["basic-element-style"],childFieldsContainer:bn["child-fields-container"],label:bn["label-dark"],clickableLabel:bn["clickable-label-dark"],nullValue:bn["value-null-dark"],undefinedValue:bn["value-undefined-dark"],stringValue:bn["value-string-dark"],booleanValue:bn["value-boolean-dark"],numberValue:bn["value-number-dark"],otherValue:bn["value-other-dark"],punctuation:bn["punctuation-dark"],collapseIcon:bn["collapse-icon-dark"],expandIcon:bn["expand-icon-dark"],collapsedContent:bn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:y$,stringifyStringValues:!1},gD=()=>!0,hD=e=>{let{data:t,style:n=Dp,shouldExpandNode:r=gD,clickToExpandNode:o=!1,beforeExpandChange:l,compactTopLevel:s,...c}=e;const d=u.useRef(null);return u.createElement("div",Object.assign({"aria-label":"JSON view"},c,{className:n.container,ref:d,role:"tree"}),s&&g$(t)?Object.entries(t).map(m=>{let[p,g]=m;return u.createElement(Zg,{key:p,field:p,value:g,style:{...Dp,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:d})}):u.createElement(Zg,{value:t,style:{...Dp,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:d,beforeExpandChange:l}))},vD="_container_1h2lr_1",yD={container:vD},bD={...pD,container:"rjv-container"};class GC extends J.Component{shouldComponentUpdate(t){return t.data!==this.props.data||t.defaultExpand!==this.props.defaultExpand||t.expandNode!==this.props.expandNode}render(){const{data:t,defaultExpand:n,expandNode:r}=this.props;if(t==null)return null;const o=typeof r=="function"?r:n==="all"?()=>!0:n==="root"?l=>l<2:l=>l<1;return k.jsx("div",{className:yD.container,children:k.jsx(hD,{data:t,shouldExpandNode:o,style:bD})})}}const CD="_container_y3z3z_1",SD="_emptyState_y3z3z_7",xD="_urlSection_y3z3z_14",wD="_urlLeft_y3z3z_21",$D="_tokenStatsBox_y3z3z_26",ED="_tokenGrid_y3z3z_33",RD="_tokenRows_y3z3z_43",kD="_tokenRow_y3z3z_43",_D="_tokenRowBorder_y3z3z_51",OD="_tokenLabel_y3z3z_55",ID="_tokenTd_y3z3z_62",TD="_tokenHitRate_y3z3z_71",jD="_tokenHitRateLabel_y3z3z_84",ND="_urlText_y3z3z_94",PD="_metaText_y3z3z_101",zD="_headersContainer_y3z3z_105",MD="_headerRow_y3z3z_109",LD="_headerKey_y3z3z_115",BD="_headerValue_y3z3z_120",AD="_streamingBox_y3z3z_125",DD="_rawTextPre_y3z3z_138",FD="_tabContent_y3z3z_151",HD="_bodyLabel_y3z3z_159",VD="_bodyHeader_y3z3z_163",WD="_diffSection_y3z3z_170",qD="_diffToggle_y3z3z_174",UD="_diffIcon_y3z3z_180",GD="_viewInChatBtn_y3z3z_185",KD="_reminderSelect_y3z3z_206",Tt={container:CD,emptyState:SD,urlSection:xD,urlLeft:wD,tokenStatsBox:$D,tokenGrid:ED,tokenRows:RD,tokenRow:kD,tokenRowBorder:_D,tokenLabel:OD,tokenTd:ID,tokenHitRate:TD,tokenHitRateLabel:jD,urlText:ND,metaText:PD,headersContainer:zD,headerRow:MD,headerKey:LD,headerValue:BD,streamingBox:AD,rawTextPre:DD,tabContent:FD,bodyLabel:HD,bodyHeader:VD,diffSection:WD,diffToggle:qD,diffIcon:UD,viewInChatBtn:GD,reminderSelect:KD},{Text:Gr,Paragraph:XD}=oa;class QD extends J.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json",diff:"json"},diffExpanded:!1,requestHeadersExpanded:!1,responseHeadersExpanded:!1,diffTooltipDismissed:!1,reminderFilters:null}}componentDidMount(){fetch("/api/preferences").then(t=>t.json()).then(t=>{t.diffTooltipDismissed&&this.setState({diffTooltipDismissed:!0})}).catch(()=>{})}dismissDiffTooltip(){this.setState({diffTooltipDismissed:!0}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({diffTooltipDismissed:!0})}).catch(()=>{})}shouldComponentUpdate(t,n){if(t.request!==this.props.request){const r=vr(t.request);this.setState({diffExpanded:r&&!!t.expandDiff,requestHeadersExpanded:!1,responseHeadersExpanded:!1,reminderFilters:null})}return t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||t.selectedIndex!==this.props.selectedIndex||t.expandDiff!==this.props.expandDiff||n.bodyViewMode!==this.state.bodyViewMode||n.diffExpanded!==this.state.diffExpanded||n.requestHeadersExpanded!==this.state.requestHeadersExpanded||n.responseHeadersExpanded!==this.state.responseHeadersExpanded||n.diffTooltipDismissed!==this.state.diffTooltipDismissed||n.reminderFilters!==this.state.reminderFilters}toggleBodyViewMode(t){this.setState(n=>({bodyViewMode:{...n.bodyViewMode,[t]:n.bodyViewMode[t]==="json"?"text":"json"}}))}copyBody(t){var s;const{request:n}=this.props;if(!n)return;let r;if(t==="diff"?r=this._lastDiffResult:r=t==="request"?n.body:(s=n.response)==null?void 0:s.body,r==null)return;const o=typeof r=="object"?bi(r):r,l=typeof o=="string"?o:JSON.stringify(o,null,2);navigator.clipboard.writeText(l).then(()=>oo.success(Oe("ui.copySuccess")))}renderHeaders(t){return!t||Object.keys(t).length===0?k.jsx(Gr,{type:"secondary",children:Oe("ui.noHeaders")}):k.jsx("div",{className:Tt.headersContainer,children:Object.entries(t).map(([n,r])=>k.jsxs("div",{className:Tt.headerRow,children:[k.jsx(Gr,{code:!0,className:Tt.headerKey,children:n}),n==="authorization"&&k.jsx(kl,{doc:"TranslateContextPollution"}),k.jsx(Gr,{type:"secondary",className:Tt.headerValue,children:String(r)})]},n))})}getRequestExpandNode(t,n){if(n!=="request"||!t||typeof t!="object")return;const{request:r,requests:o,selectedIndex:l}=this.props;if(!r)return;const s=o&&l!=null?o[l+1]:null,{type:c}=wi(r,s);let d=null;if(this.state.reminderFilters==="claudeMd"&&Array.isArray(t.messages)){d=new Set,d.add(t.messages);for(const g of t.messages){if(!g||typeof g!="object")continue;const h=g.content;if(typeof h=="string")yd(h)&&d.add(g);else if(Array.isArray(h)){let y=!1;for(const b of h)b&&b.type==="text"&&yd(b.text)&&(d.add(b),y=!0);y&&(d.add(g),d.add(h))}}}let m=null;if(this.state.reminderFilters==="skills"&&Array.isArray(t.messages)){m=new Set,m.add(t.messages);for(const g of t.messages){if(!g||typeof g!="object")continue;const h=g.content;if(typeof h=="string")bd(h)&&m.add(g);else if(Array.isArray(h)){let y=!1;for(const b of h)b&&b.type==="text"&&bd(b.text)&&(m.add(b),y=!0);y&&(m.add(g),m.add(h))}}}const p=d||m;if(c==="Preflight"){const g=new Set,h=y=>{y&&typeof y=="object"&&(g.add(y),Array.isArray(y)?y.forEach(h):Object.values(y).forEach(h))};return Array.isArray(t.messages)&&h(t.messages),Array.isArray(t.system)&&t.system.length>=3&&h(t.system[2]),(y,b,S)=>!!(y<2||g.has(b)||p&&p.has(b)||y===1&&S==="system")}if(c==="MainAgent"&&Array.isArray(t.messages)&&t.messages.length===1){const g=t.messages[0],h=g&&Array.isArray(g.content)?g.content:null,y=h&&h.length>0?h[h.length-1]:null,b=new Set,S=C=>{C&&typeof C=="object"&&(b.add(C),Array.isArray(C)?C.forEach(S):Object.values(C).forEach(S))};return y&&S(y),b.add(t.messages),g&&typeof g=="object"&&b.add(g),h&&b.add(h),(C,$,w)=>!!(C<2||b.has($)||p&&p.has($))}if(p)return(g,h,y)=>!!(g<2||p.has(h))}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return k.jsx(Gr,{type:"secondary",children:Oe("ui.noBody")});if(typeof t=="string"&&t.includes("Streaming Response"))return k.jsx("div",{className:Tt.streamingBox,children:k.jsx(Gr,{type:"secondary",children:Oe("ui.streamingResponse")})});const o=typeof t=="object"?bi(t):t,l=r[n]==="json",s=this.getRequestExpandNode(o,n);return k.jsx("div",{children:l?k.jsx(GC,{data:o,defaultExpand:n==="response"?"all":"root",expandNode:s}):k.jsx("pre",{className:Tt.rawTextPre,children:typeof o=="string"?o:JSON.stringify(o,null,2)})})}getPrevMainAgentRequest(){const{requests:t,selectedIndex:n}=this.props;if(!t||n==null)return null;for(let r=n-1;r>=0;r--)if(vr(t[r]))return t[r];return null}computeDiff(t,n){if(t==null||n==null||typeof t!="object"||typeof n!="object")return null;const r={},o=new Set([...Object.keys(t),...Object.keys(n)]);for(const l of o)if(!l.startsWith("_"))if(!(l in t))r[l]=n[l];else if(l in n){const s=JSON.stringify(t[l]),c=JSON.stringify(n[l]);s!==c&&(l==="messages"&&Array.isArray(t[l])&&Array.isArray(n[l])&&n[l].length>t[l].length?r[l]=n[l].slice(t[l].length):r[l]=n[l])}else continue;return Object.keys(r).length?r:null}render(){var h,y;const{request:t,currentTab:n,onTabChange:r}=this.props;if(!t)return k.jsx("div",{className:Tt.emptyState,children:k.jsx(Lo,{description:"选择一个请求查看详情"})});const o=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400;let s=null;if(vr(t)){const b=this.getPrevMainAgentRequest();if(b){const S=JSON.stringify(t.body).length,C=JSON.stringify(b.body).length;if(S<C)s=k.jsxs("div",{className:Tt.diffSection,children:[k.jsxs(ea,{title:this.state.diffTooltipDismissed?null:k.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[k.jsx("span",{style:{flex:1},children:Oe("ui.diffTooltip")}),k.jsx(Xa,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:w=>{w.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",k.jsxs(Gr,{strong:!0,className:Tt.diffToggle,onClick:()=>this.setState(w=>({diffExpanded:!w.diffExpanded})),children:["Body Diff JSON ",k.jsx(kl,{doc:"BodyDiffJSON"})," ",this.state.diffExpanded?k.jsx(Sl,{className:Tt.diffIcon}):k.jsx(Qo,{className:Tt.diffIcon})]})]}),this.state.diffExpanded&&k.jsx(Gr,{type:"secondary",children:Oe("ui.diffSessionChanged")})]});else{const w=bi(this.computeDiff(b.body,t.body));w&&(this._lastDiffResult=w,s=k.jsxs("div",{className:Tt.diffSection,children:[k.jsxs(ea,{title:this.state.diffTooltipDismissed?null:k.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[k.jsx("span",{style:{flex:1},children:Oe("ui.diffTooltip")}),k.jsx(Xa,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:R=>{R.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",k.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[k.jsxs(Gr,{strong:!0,className:Tt.diffToggle,onClick:()=>this.setState(R=>({diffExpanded:!R.diffExpanded})),children:["Body Diff JSON ",k.jsx(kl,{doc:"BodyDiffJSON"})," ",this.state.diffExpanded?k.jsx(Sl,{className:Tt.diffIcon}):k.jsx(Qo,{className:Tt.diffIcon})]}),this.state.diffExpanded&&k.jsxs(ha,{size:"small",style:{marginLeft:"auto"},children:[k.jsx(Yn,{size:"small",icon:this.state.bodyViewMode.diff==="json"?k.jsx(Ls,{}):k.jsx(Bp,{}),onClick:()=>this.toggleBodyViewMode("diff"),children:this.state.bodyViewMode.diff==="json"?"Text":"JSON"}),k.jsx(Yn,{size:"small",icon:k.jsx(Qu,{}),onClick:()=>this.copyBody("diff"),children:Oe("ui.copy")})]})]})]}),this.state.diffExpanded&&k.jsx(k.Fragment,{children:this.state.bodyViewMode.diff==="json"?k.jsx(GC,{data:w,defaultExpand:"all"}):k.jsx("pre",{className:Tt.rawTextPre,children:JSON.stringify(w,null,2)})})]}))}}}const c=OL(t.body),d=IL(t.body),m=[{key:"request",label:"Request",children:k.jsxs("div",{className:Tt.tabContent,children:[k.jsxs("div",{className:Tt.diffSection,children:[k.jsxs(Gr,{strong:!0,className:Tt.diffToggle,onClick:()=>this.setState(b=>({requestHeadersExpanded:!b.requestHeadersExpanded})),children:["Headers ",this.state.requestHeadersExpanded?k.jsx(Sl,{className:Tt.diffIcon}):k.jsx(Qo,{className:Tt.diffIcon})]}),this.state.requestHeadersExpanded&&this.renderHeaders(t.headers)]}),s,k.jsxs("div",{children:[k.jsxs("div",{className:Tt.bodyHeader,children:[k.jsx(Gr,{strong:!0,className:Tt.bodyLabel,children:"Body"}),k.jsxs(ha,{size:"small",children:[(c||d)&&k.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[k.jsx("span",{style:{color:"#888",fontSize:12,fontFamily:"monospace"},children:"system-reminder:"}),k.jsx(_i,{size:"small",className:Tt.reminderSelect,placeholder:"filter",value:this.state.reminderFilters||void 0,onChange:b=>this.setState({reminderFilters:b||null}),options:[{label:"CLAUDE.md",value:"claudeMd",disabled:!c},{label:"Skills",value:"skills",disabled:!d}],popupMatchSelectWidth:!1,allowClear:!0})]}),k.jsx(Yn,{size:"small",icon:this.state.bodyViewMode.request==="json"?k.jsx(Ls,{}):k.jsx(Bp,{}),onClick:()=>this.toggleBodyViewMode("request"),children:this.state.bodyViewMode.request==="json"?"Text":"JSON"}),k.jsx(Yn,{size:"small",icon:k.jsx(Qu,{}),onClick:()=>this.copyBody("request"),children:Oe("ui.copy")})]})]}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:k.jsx("div",{className:Tt.tabContent,children:t.response?k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:Tt.diffSection,children:[k.jsxs(Gr,{strong:!0,className:Tt.diffToggle,onClick:()=>this.setState(b=>({responseHeadersExpanded:!b.responseHeadersExpanded})),children:["Headers ",this.state.responseHeadersExpanded?k.jsx(Sl,{className:Tt.diffIcon}):k.jsx(Qo,{className:Tt.diffIcon})]}),this.state.responseHeadersExpanded&&this.renderHeaders(t.response.headers)]}),k.jsxs("div",{children:[k.jsxs("div",{className:Tt.bodyHeader,children:[k.jsx(Gr,{strong:!0,className:Tt.bodyLabel,children:"Body"}),k.jsxs(ha,{size:"small",children:[k.jsx(Yn,{size:"small",icon:this.state.bodyViewMode.response==="json"?k.jsx(Ls,{}):k.jsx(Bp,{}),onClick:()=>this.toggleBodyViewMode("response"),children:this.state.bodyViewMode.response==="json"?"Text":"JSON"}),k.jsx(Yn,{size:"small",icon:k.jsx(Qu,{}),onClick:()=>this.copyBody("response"),children:Oe("ui.copy")})]})]}),this.renderBody(t.response.body,"response")]})]}):k.jsx(Lo,{description:Oe("ui.responseNotCaptured")})})}],p=(y=(h=t.response)==null?void 0:h.body)==null?void 0:y.usage,g=p?(()=>{const b=p.input_tokens||0,S=p.output_tokens||0,C=p.cache_creation_input_tokens||0,$=p.cache_read_input_tokens||0,w=b+C+$,R=w>0?($/w*100).toFixed(1):"0.0";return{input:b,output:S,cacheCreate:C,cacheRead:$,hitRate:R}})():null;return k.jsxs("div",{className:Tt.container,children:[k.jsxs("div",{className:Tt.urlSection,children:[k.jsxs("div",{className:Tt.urlLeft,children:[k.jsx(XD,{className:Tt.urlText,ellipsis:{rows:2,expandable:!0},children:t.url}),k.jsxs(ha,{size:"small",wrap:!0,children:[k.jsx(io,{color:t.method==="POST"?"blue":"green",children:t.method}),k.jsxs(Gr,{type:"secondary",className:Tt.metaText,children:["🕐 ",o]}),t.duration&&k.jsxs(Gr,{type:"secondary",className:Tt.metaText,children:["⏱️ ",t.duration,"ms"]}),t.response&&k.jsxs(io,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),g&&k.jsx("div",{className:Tt.tokenStatsBox,children:k.jsxs("div",{className:Tt.tokenGrid,children:[k.jsxs("div",{className:Tt.tokenRows,children:[k.jsxs("div",{className:Tt.tokenRow,children:[k.jsx("span",{className:Tt.tokenLabel,children:"Token"}),k.jsxs("span",{className:Tt.tokenTd,children:["input: ",Gn(g.input)]}),k.jsxs("span",{className:Tt.tokenTd,children:["output: ",Gn(g.output)]})]}),k.jsxs("div",{className:`${Tt.tokenRow} ${Tt.tokenRowBorder}`,children:[k.jsx("span",{className:Tt.tokenLabel,children:"Cache"}),k.jsxs("span",{className:Tt.tokenTd,children:["create: ",Gn(g.cacheCreate)]}),k.jsxs("span",{className:Tt.tokenTd,children:["read: ",Gn(g.cacheRead)]})]})]}),k.jsxs("div",{className:Tt.tokenHitRate,children:[k.jsxs("div",{children:[g.hitRate,"%"]}),k.jsx("div",{className:Tt.tokenHitRateLabel,children:Oe("ui.hitRate")})]})]})})]}),k.jsx(Xh,{activeKey:n,onChange:r,items:m,size:"small",tabBarExtraContent:this.props.onViewInChat&&k.jsxs("button",{className:Tt.viewInChatBtn,onClick:this.props.onViewInChat,children:[Oe("ui.viewInChat"),k.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{marginLeft:4},children:k.jsx("path",{d:"M4.5 2.5L8 6L4.5 9.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})})]})}}const YD=["system-reminder","local-command-caveat","project-reminder","important-instruction-reminders","file-modified-reminder","todo-reminder","user-prompt-submit-hook","local-command-stdout","command-name","task-notification","environment_details","context"];function JD(e){if(!e)return{segments:[]};const t=new RegExp("<("+YD.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){const l=e.slice(r,o.index).trim();l&&n.push({type:"text",content:l})}n.push({type:"system-tag",tag:o[1],content:o[2].trim()}),r=o.index+o[0].length}if(r<e.length){const l=e.slice(r).trim();l&&n.push({type:"text",content:l})}return{segments:n}}function ZD(e){const{segments:t}=JD(e);return t.length===0?{segments:[]}:{segments:t}}const eF="_wrapper_1o255_1",tF="_header_1o255_5",nF="_filePath_1o255_12",rF="_toggle_1o255_18",oF="_code_1o255_25",Rs={wrapper:eF,header:tF,filePath:nF,toggle:rF,code:oF},{Text:KC}=oa;function aF({file_path:e,old_string:t,new_string:n}){const[r,o]=u.useState(!1),l=t.split(`
558
+ `),s=n.split(`
559
+ `),c=[];return l.forEach(d=>{c.push({type:"del",text:d})}),s.forEach(d=>{c.push({type:"add",text:d})}),k.jsxs("div",{className:`diff-view ${Rs.wrapper}`,children:[k.jsxs("div",{className:Rs.header,children:[k.jsxs(KC,{className:Rs.filePath,children:["Edit: ",e]}),k.jsx(KC,{className:Rs.toggle,onClick:()=>o(d=>!d),children:Oe(r?"ui.expand":"ui.collapse")})]}),!r&&k.jsx("pre",{className:Rs.code,children:c.map((d,m)=>k.jsxs("div",{className:d.type==="del"?"diff-line-del":"diff-line-add",children:[d.type==="del"?"- ":"+ ",d.text]},m))})]})}const iF="_plainResult_1uh60_1",lF="_plainTitle_1uh60_7",sF="_plainPre_1uh60_11",cF="_codeResult_1uh60_20",uF="_codeHeader_1uh60_27",dF="_codeTitle_1uh60_36",fF="_codeToggle_1uh60_41",mF="_codePre_1uh60_48",pF="_markdownBody_1uh60_57",Pr={plainResult:iF,plainTitle:lF,plainPre:sF,codeResult:cF,codeHeader:uF,codeTitle:dF,codeToggle:fF,codePre:mF,markdownBody:pF},{Text:pl}=oa,gl={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",css:"css",scss:"css",less:"css",html:"html",htm:"html",xml:"xml",svg:"xml",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",sh:"shell",bash:"shell",zsh:"shell",md:"markdown",sql:"sql"},gF=["Read","Grep","Glob","Bash","Write","Edit"];function hF(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const o=r.split(".").pop().toLowerCase();if(gl[o])return gl[o]}if(e==="Bash")return"shell-output";if(e==="Glob")return"file-list";if(e==="Grep"){const o=t.glob||"";if(o){const l=o.replace(/[{}*]/g,",").split(",").filter(Boolean);for(const s of l){const c=s.replace(/^\./,"").toLowerCase();if(gl[c])return gl[c]}}if(t.output_mode==="files_with_matches"||!t.output_mode)return"file-list";if(t.output_mode==="content"&&n){const l=n.match(/^[\w/.~-]+\.([\w]+):\d+/m);if(l&&gl[l[1].toLowerCase()])return gl[l[1].toLowerCase()]}return"shell-output"}return n?vF(n):null}function vF(e){const t=e.substring(0,2e3);return/^\s*[\[{]/.test(t)&&/[}\]]\s*$/.test(t.trimEnd())?"json":/^\s*<!DOCTYPE|^\s*<html|^\s*<\?xml/i.test(t)?"html":/^#!.*python/m.test(t)||/\bdef\s+\w+\s*\(.*\)\s*:/m.test(t)||/\bclass\s+\w+.*:/m.test(t)||/^\s*(from\s+\w+\s+import|import\s+\w+)/m.test(t)&&/:$/.test(t)?"python":/\bfn\s+\w+\s*\(/.test(t)&&/\blet\s+(mut\s+)?\w+/.test(t)?"rust":/^package\s+\w+/m.test(t)&&/\bfunc\s+/.test(t)?"go":/\bpublic\s+(class|interface|static)\b/.test(t)?"java":/\bdef\s+\w+/.test(t)&&/\bend\b/.test(t)&&!/;/.test(t)?"ruby":/^#!.*\b(bash|sh|zsh)\b/m.test(t)?"shell":/\b(const|let|var)\s+\w+\s*=/.test(t)&&(/=>/.test(t)||/\brequire\s*\(/.test(t))||/^\s*import\s+.*\s+from\s+['"]/.test(t)||/^\s*export\s+(default\s+)?(function|class|const)\b/m.test(t)?"javascript":/[.#][\w-]+\s*\{[\s\S]*?:\s*[\w#]/.test(t)?"css":/^[\w-]+\s*:(\s+\S|$)/m.test(t)&&!/[{;]/.test(t)?"yaml":/\b(SELECT|INSERT|UPDATE|DELETE|CREATE\s+TABLE)\b/i.test(t)?"sql":null}const yF={javascript:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(const|let|var|function|return|if|else|for|while|class|import|export|from|default|new|this|async|await|try|catch|throw|switch|case|break|continue|typeof|instanceof|in|of|null|undefined|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],typescript:null,python:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('''[\s\S]*?'''|"""[\s\S]*?"""|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|class|return|if|elif|else|for|while|import|from|as|try|except|finally|raise|with|yield|lambda|pass|break|continue|and|or|not|in|is|None|True|False|self|async|await)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],go:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`[^`]*`)/g,cls:"hl-string"},{pattern:/\b(func|return|if|else|for|range|switch|case|default|break|continue|go|defer|select|chan|map|struct|interface|package|import|var|const|type|nil|true|false|make|new|append|len|cap)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],rust:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(fn|let|mut|return|if|else|for|while|loop|match|struct|enum|impl|trait|pub|use|mod|crate|self|super|where|async|await|move|ref|true|false|Some|None|Ok|Err)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],java:[{pattern:/(\/\/.*$)/gm,cls:"hl-comment"},{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(public|private|protected|class|interface|extends|implements|return|if|else|for|while|switch|case|break|continue|new|this|super|static|final|void|int|long|double|float|boolean|char|String|import|package|try|catch|throw|throws|null|true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*[fFdDlL]?)\b/g,cls:"hl-number"}],ruby:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(def|end|class|module|return|if|elsif|else|unless|for|while|do|begin|rescue|ensure|raise|yield|block_given\?|nil|true|false|self|require|include|attr_accessor|attr_reader)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],css:[{pattern:/(\/\*[\s\S]*?\*\/)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/([.#][\w-]+)/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*(px|em|rem|%|vh|vw|s|ms)?)\b/g,cls:"hl-number"}],json:[{pattern:/("(?:[^"\\]|\\.)*")\s*:/g,cls:"hl-keyword"},{pattern:/:\s*("(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(true|false|null)\b/g,cls:"hl-keyword"},{pattern:/\b(-?\d+\.?\d*([eE][+-]?\d+)?)\b/g,cls:"hl-number"}],shell:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(if|then|else|elif|fi|for|while|do|done|case|esac|function|return|exit|export|source|alias|cd|ls|grep|find|echo|cat|mkdir|rm|cp|mv|chmod|sudo|apt|npm|pip|git)\b/g,cls:"hl-keyword"}],sql:[{pattern:/(--.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/\b(SELECT|FROM|WHERE|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER|TABLE|INDEX|JOIN|LEFT|RIGHT|INNER|OUTER|ON|AND|OR|NOT|IN|IS|NULL|AS|ORDER|BY|GROUP|HAVING|LIMIT|OFFSET|UNION|SET|VALUES|INTO|DISTINCT|COUNT|SUM|AVG|MAX|MIN|LIKE|BETWEEN|EXISTS|CASE|WHEN|THEN|ELSE|END)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],html:[{pattern:/(<!--[\s\S]*?-->)/g,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/(<\/?[\w-]+|\/?>)/g,cls:"hl-keyword"}],xml:null,yaml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*:/gm,cls:"hl-keyword"},{pattern:/\b(true|false|null|yes|no)\b/gi,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],markdown:[{pattern:/^(#{1,6}\s.*$)/gm,cls:"hl-keyword"},{pattern:/(`[^`]+`)/g,cls:"hl-string"},{pattern:/(\*\*[^*]+\*\*|__[^_]+__)/g,cls:"hl-keyword"},{pattern:/(\[[^\]]+\]\([^)]+\))/g,cls:"hl-string"}],toml:[{pattern:/(#.*$)/gm,cls:"hl-comment"},{pattern:/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,cls:"hl-string"},{pattern:/^([\w.-]+)\s*=/gm,cls:"hl-keyword"},{pattern:/(\[[\w.-]+\])/g,cls:"hl-keyword"},{pattern:/\b(true|false)\b/g,cls:"hl-keyword"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}]},bF=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],CF=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],SF=[{pattern:/^(.*\.(jsx?|tsx?|mjs|cjs))$/gm,cls:"hl-string"},{pattern:/^(.*\.(py|rb|go|rs|java|c|cpp|h))$/gm,cls:"hl-keyword"},{pattern:/^(.*\.(json|ya?ml|toml|xml|html?|css|scss|less|md))$/gm,cls:"hl-number"},{pattern:/^(.*\.(log|txt|csv|jsonl))$/gm,cls:"hl-comment"}];function xF(e,t){let n=t;n==="typescript"&&(n="javascript"),n==="xml"&&(n="html"),(n==="c"||n==="cpp")&&(n="javascript");let r;n==="shell-output"?r=CF:n==="file-list"?r=SF:r=yF[n]||bF;const o=/^(\s*\d+→)/gm,l=[];let s=e.replace(o,p=>{const g=l.length;return l.push(p),`L${g}`});const c=vd(s),d=[];let m=c;for(const p of r)p.pattern.lastIndex=0,m=m.replace(p.pattern,g=>{const h=d.length;return d.push(`<span class="${p.cls}">${g}</span>`),`P${h}`});return m=m.replace(/\x02P(\d+)\x02/g,(p,g)=>d[parseInt(g)]),m=m.replace(/\x01L(\d+)\x01/g,(p,g)=>`<span class="hl-linenum">${vd(l[parseInt(g)])}</span>`),m}function XC({toolName:e,toolInput:t,resultText:n,defaultCollapsed:r}){const[o,l]=u.useState(r??!1);u.useEffect(()=>{l(r??!1)},[r]);const s=gF.includes(e),c=s?hF(e,t,n):null,d=n.length>5e3?n.substring(0,5e3)+`
560
+ ... (truncated)`:n;let m=e?Oe("ui.toolReturnNamed",{name:e}):"Result";if(t){const g=t.file_path||t.path||"";if(g){const h=g.split("/");m=`${e}: ${h[h.length-1]}`}}if(!s)return e==="Task"?k.jsxs("div",{className:Pr.plainResult,children:[k.jsxs("div",{className:Pr.codeHeader,children:[k.jsx(pl,{type:"secondary",className:Pr.plainTitle,children:m}),k.jsx(pl,{className:Pr.codeToggle,onClick:()=>l(g=>!g),children:Oe(o?"ui.expand":"ui.collapse")})]}),!o&&k.jsx("div",{className:`chat-md ${Pr.markdownBody}`,dangerouslySetInnerHTML:{__html:pi(d)}})]}):k.jsxs("div",{className:Pr.plainResult,children:[k.jsxs("div",{className:Pr.codeHeader,children:[k.jsx(pl,{type:"secondary",className:Pr.plainTitle,children:m}),k.jsx(pl,{className:Pr.codeToggle,onClick:()=>l(g=>!g),children:Oe(o?"ui.expand":"ui.collapse")})]}),!o&&k.jsx("pre",{className:Pr.plainPre,children:d})]});const p=xF(d,c||"fallback");return k.jsxs("div",{className:`tool-result-code ${Pr.codeResult}`,children:[k.jsxs("div",{className:Pr.codeHeader,children:[k.jsxs(pl,{className:Pr.codeTitle,children:[m,c?` (${c})`:""]}),k.jsx(pl,{className:Pr.codeToggle,onClick:()=>l(g=>!g),children:Oe(o?"ui.expand":"ui.collapse")})]}),!o&&k.jsx("pre",{className:`code-highlight ${Pr.codePre}`,dangerouslySetInnerHTML:{__html:p}})]})}const wF="_tag_17wfp_1",$F="_tagActive_17wfp_22",EF="_tagLoading_17wfp_27",RF="_spinner_17wfp_32",Pu={tag:wF,tagActive:$F,tagLoading:EF,spinner:RF};function kF({text:e,onTranslated:t}){const[n,r]=u.useState("idle"),o=u.useRef(null),l=u.useCallback(c=>{if(c.stopPropagation(),n==="loading")return;if(n==="done"){r("idle"),t==null||t(null);return}if(o.current){r("done"),t==null||t(o.current);return}r("loading");const d=window.location.port||"7008",m=`${window.location.protocol}//${window.location.hostname}:${d}`;fetch(`${m}/api/translate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,to:Ml()})}).then(p=>{if(!p.ok)throw new Error(`HTTP ${p.status}`);return p.json()}).then(p=>{const g=p.text||"";o.current=g,r("done"),t==null||t(g)}).catch(()=>{r("idle")})},[n,e,t]),s=Oe(n==="loading"?"ui.translating":"ui.translate");return k.jsxs("span",{className:`${Pu.tag} ${n==="done"?Pu.tagActive:""} ${n==="loading"?Pu.tagLoading:""}`,onClick:l,children:[n==="loading"&&k.jsx("span",{className:Pu.spinner}),s]})}const _F="_avatar_c2gb9_3",OF="_avatarImg_c2gb9_13",IF="_messageRow_c2gb9_32",TF="_messageRowEnd_c2gb9_38",jF="_contentCol_c2gb9_47",NF="_contentColLimited_c2gb9_52",PF="_labelRow_c2gb9_60",zF="_labelRowEnd_c2gb9_67",MF="_labelRight_c2gb9_74",LF="_labelText_c2gb9_82",BF="_timeText_c2gb9_86",AF="_timeTextNoMargin_c2gb9_92",DF="_labelTextRight_c2gb9_98",FF="_bubbleUser_c2gb9_105 _bubble_c2gb9_21",HF="_bubbleAssistant_c2gb9_111 _bubble_c2gb9_21",VF="_bubbleHighlight_c2gb9_119",WF="_bubbleHighlightFading_c2gb9_123",qF="_borderSvg_c2gb9_128",UF="_borderSvgFading_c2gb9_137",GF="_borderRect_c2gb9_142",KF="_bubblePlan_c2gb9_151 _bubble_c2gb9_21",XF="_bubbleSubAgent_c2gb9_159 _bubble_c2gb9_21",QF="_bubbleSelection_c2gb9_165 _bubble_c2gb9_21",YF="_systemTagLabel_c2gb9_173",JF="_skillLabel_c2gb9_177",ZF="_systemTagPre_c2gb9_182",eH="_collapseMargin_c2gb9_190",tH="_collapseNoMargin_c2gb9_194",nH="_thinkingLabel_c2gb9_200",rH="_toolBox_c2gb9_206",oH="_toolLabel_c2gb9_215",aH="_codePre_c2gb9_221",iH="_pathTag_c2gb9_233",lH="_descSpan_c2gb9_240",sH="_secondarySpan_c2gb9_245",cH="_patternSpan_c2gb9_249",uH="_kvContainer_c2gb9_255",dH="_kvItem_c2gb9_260",fH="_kvKey_c2gb9_264",mH="_kvValue_c2gb9_268",pH="_toolResult_c2gb9_274",gH="_toolResultLabel_c2gb9_283",hH="_compactLabel_c2gb9_289",vH="_compactPre_c2gb9_294",yH="_viewRequestBtn_c2gb9_304",bH="_optionList_c2gb9_318",CH="_optionDesc_c2gb9_322",SH="_questionText_c2gb9_330",xH="_questionSpacing_c2gb9_336",wH="_option_c2gb9_318",Ue={avatar:_F,avatarImg:OF,messageRow:IF,messageRowEnd:TF,contentCol:jF,contentColLimited:NF,labelRow:PF,labelRowEnd:zF,labelRight:MF,labelText:LF,timeText:BF,timeTextNoMargin:AF,labelTextRight:DF,bubbleUser:FF,bubbleAssistant:HF,bubbleHighlight:VF,bubbleHighlightFading:WF,borderSvg:qF,borderSvgFading:UF,borderRect:GF,bubblePlan:KF,bubbleSubAgent:XF,bubbleSelection:QF,systemTagLabel:YF,skillLabel:JF,systemTagPre:ZF,collapseMargin:eH,collapseNoMargin:tH,thinkingLabel:nH,toolBox:rH,toolLabel:oH,codePre:aH,pathTag:iH,descSpan:lH,secondarySpan:sH,patternSpan:cH,kvContainer:uH,kvItem:dH,kvKey:fH,kvValue:mH,toolResult:pH,toolResultLabel:gH,compactLabel:hH,compactPre:vH,viewRequestBtn:yH,optionList:bH,optionDesc:CH,questionText:SH,questionSpacing:xH,option:wH},{Text:Kr}=oa;class Uo extends J.Component{constructor(n){super(n);Nt(this,"handleThinkingTranslated",(n,r)=>{this.setState(o=>({thinkingTranslated:{...o.thinkingTranslated,[n]:r?pi(r):null}}))});this.state={thinkingTranslated:{}}}formatTime(n){if(!n)return null;try{const r=new Date(n),o=l=>String(l).padStart(2,"0");return`${o(r.getMonth()+1)}-${o(r.getDate())} ${o(r.getHours())}:${o(r.getMinutes())}:${o(r.getSeconds())}`}catch{return null}}renderViewRequestBtn(){const{requestIndex:n,onViewRequest:r}=this.props;return n==null||!r?null:k.jsx("span",{className:Ue.viewRequestBtn,onClick:o=>{o.stopPropagation(),r(n)},children:Oe("ui.viewRequest")})}renderLabel(n,r){const{timestamp:o}=this.props,l=this.formatTime(o);return k.jsxs("div",{className:Ue.labelRow,children:[k.jsxs(Kr,{type:"secondary",className:Ue.labelText,children:[n,r||""]}),k.jsxs("span",{className:Ue.labelRight,children:[this.renderViewRequestBtn(),l&&k.jsx(Kr,{className:Ue.timeText,children:l})]})]})}renderUserAvatar(n){const{userProfile:r}=this.props;return r!=null&&r.avatar?k.jsx("img",{src:r.avatar,className:Ue.avatarImg,alt:r.name||"User"}):k.jsx("div",{className:Ue.avatar,style:{background:n},dangerouslySetInnerHTML:{__html:hl("user")}})}getUserName(){const{userProfile:n}=this.props;return(n==null?void 0:n.name)||"User"}renderSegments(n){return n.map((r,o)=>r.type==="system-tag"?k.jsx(Os,{ghost:!0,size:"small",items:[{key:"1",label:k.jsx(Kr,{type:"secondary",className:Ue.systemTagLabel,children:r.tag}),children:k.jsx("pre",{className:Ue.systemTagPre,children:r.content})}],className:Ue.collapseMargin},o):k.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:pi(r.content)}},o))}renderToolCall(n){if(typeof n.input=="string")try{const p=n.input.replace(/^\[object Object\]/,"");n={...n,input:JSON.parse(p)}}catch{}if(n.name==="Edit"&&n.input&&n.input.old_string!=null&&n.input.new_string!=null)return k.jsx(aF,{file_path:n.input.file_path||"",old_string:n.input.old_string,new_string:n.input.new_string},n.id);const r=n.input&&typeof n.input=="object"?n.input:{},o=(p,g)=>k.jsxs("div",{className:Ue.toolBox,children:[k.jsx(Kr,{strong:!0,className:Ue.toolLabel,children:p}),g]},n.id),l=(p,g)=>k.jsx("pre",{className:Ue.codePre,style:{color:g},children:p}),s=p=>k.jsx("span",{className:Ue.pathTag,children:p});if(n.name==="Bash"){const p=r.command||"",g=r.description||"";return o(k.jsxs(k.Fragment,{children:["Bash",g?k.jsxs("span",{className:Ue.descSpan,children:[" — ",g]}):""]}),l(p,"#c9d1d9"))}if(n.name==="Read"){const p=r.file_path||"",g=[];r.offset&&g.push(`offset: ${r.offset}`),r.limit&&g.push(`limit: ${r.limit}`);const h=g.length?` (${g.join(", ")})`:"";return o(k.jsxs(k.Fragment,{children:["Read: ",s(p),k.jsx("span",{className:Ue.secondarySpan,children:h})]}),null)}if(n.name==="Write"){const p=r.file_path||"",g=r.content||"",h=g.split(`
561
+ `),y=h.length>20?h.slice(0,20).join(`
562
+ `)+`
563
+ ... (${h.length} lines total)`:g;return o(k.jsxs(k.Fragment,{children:["Write: ",s(p)," ",k.jsxs("span",{className:Ue.secondarySpan,children:["(",h.length," lines)"]})]}),l(y,"#c9d1d9"))}if(n.name==="Glob"){const p=r.pattern||"",g=r.path||"";return o(k.jsxs(k.Fragment,{children:["Glob: ",k.jsx("span",{className:Ue.patternSpan,children:p}),g?k.jsxs("span",{className:Ue.secondarySpan,children:[" in ",g]}):""]}),null)}if(n.name==="Grep"){const p=r.pattern||"",g=r.path||"",h=[];r.glob&&h.push(`glob: ${r.glob}`),r.output_mode&&h.push(`mode: ${r.output_mode}`),r.head_limit&&h.push(`limit: ${r.head_limit}`);const y=h.length?` (${h.join(", ")})`:"";return o(k.jsxs(k.Fragment,{children:["Grep: ",k.jsxs("span",{className:Ue.patternSpan,children:["/",p,"/"]}),g?k.jsxs("span",{className:Ue.secondarySpan,children:[" in ",g]}):"",k.jsx("span",{className:Ue.secondarySpan,children:y})]}),null)}if(n.name==="Task"){const p=r.subagent_type||"",g=r.description||"";return o(k.jsxs(k.Fragment,{children:["Task(",p,g?": "+g:"",")"]}),null)}let c=n.name;const d=Object.keys(r);if(d.length===0)return o(c,null);const m=d.map(p=>{const g=r[p],h=typeof g=="string"?g:JSON.stringify(g),y=h.length>200?h.substring(0,200)+"...":h;return k.jsxs("div",{className:Ue.kvItem,children:[k.jsxs("span",{className:Ue.kvKey,children:[p,": "]}),k.jsx("span",{className:Ue.kvValue,children:y})]},p)});return o(c,k.jsx("div",{className:Ue.kvContainer,children:m}))}renderHighlightBubble(n,r){const{highlight:o}=this.props,l=`${n}${o==="active"?" "+Ue.bubbleHighlight:""}${o==="fading"?" "+Ue.bubbleHighlightFading:""}`,s=n===Ue.bubbleUser;return k.jsxs("div",{className:l,style:{position:"relative"},children:[(o==="active"||o==="fading")&&k.jsx("svg",{className:`${Ue.borderSvg}${o==="fading"?" "+Ue.borderSvgFading:""}`,preserveAspectRatio:"none",children:k.jsx("rect",{x:"0.5",y:"0.5",width:"calc(100% - 1px)",height:"calc(100% - 1px)",rx:"8",ry:"8",fill:"none",stroke:s?"#ffffff":"#1668dc",strokeWidth:"1",strokeDasharray:"6 4",className:Ue.borderRect})}),r]})}renderUserMessage(){const{text:n,timestamp:r}=this.props,o=this.formatTime(r),l=this.getUserName();return n&&n.includes("This session is being continued from a previous conversation that ran out of context")?k.jsxs("div",{className:Ue.messageRowEnd,children:[k.jsxs("div",{className:Ue.contentColLimited,children:[k.jsxs("div",{className:Ue.labelRow,children:[o&&k.jsx(Kr,{className:Ue.timeTextNoMargin,children:o}),this.renderViewRequestBtn(),k.jsxs(Kr,{type:"secondary",className:Ue.labelTextRight,children:[l," — /compact"]})]}),this.renderHighlightBubble(Ue.bubbleUser,k.jsx(Os,{ghost:!0,size:"small",items:[{key:"1",label:k.jsx(Kr,{className:Ue.compactLabel,children:"Compact Summary"}),children:k.jsx("pre",{className:Ue.compactPre,children:n})}],className:Ue.collapseNoMargin}))]}),this.renderUserAvatar("#1e40af")]}):k.jsxs("div",{className:Ue.messageRowEnd,children:[k.jsxs("div",{className:Ue.contentColLimited,children:[k.jsxs("div",{className:Ue.labelRow,children:[o&&k.jsx(Kr,{className:Ue.timeTextNoMargin,children:o}),this.renderViewRequestBtn(),k.jsx(Kr,{type:"secondary",className:Ue.labelTextRight,children:l})]}),this.renderHighlightBubble(Ue.bubbleUser,vd(n))]}),this.renderUserAvatar("#1e40af")]})}renderToolResult(n){return n?k.jsxs("div",{className:Ue.toolResult,children:[k.jsx(Kr,{type:"secondary",className:Ue.toolResultLabel,children:n.label}),k.jsx(XC,{toolName:n.toolName,toolInput:n.toolInput,resultText:n.resultText,defaultCollapsed:this.props.collapseToolResults})]}):null}renderAssistantContent(n,r={}){const o=n.filter(d=>d.type==="thinking"),l=n.filter(d=>d.type==="text"),s=n.filter(d=>d.type==="tool_use");let c=[];return o.forEach((d,m)=>{const g=this.state.thinkingTranslated[m]||pi(d.thinking||"");c.push(k.jsx(Os,{ghost:!0,size:"small",defaultActiveKey:this.props.expandThinking?["1"]:[],items:[{key:"1",label:k.jsxs("span",{children:[k.jsx(Kr,{type:"secondary",className:Ue.thinkingLabel,children:Oe("ui.thinking")}),k.jsx(kF,{text:d.thinking||"",onTranslated:h=>this.handleThinkingTranslated(m,h)})]}),children:k.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:g}})}],className:Ue.collapseMargin},`think-${m}-${this.props.expandThinking?"e":"c"}`))}),l.forEach((d,m)=>{if(d.text){const{segments:p}=ZD(d.text);c.push(k.jsx("div",{children:this.renderSegments(p)},`text-${m}`))}}),s.forEach(d=>{c.push(this.renderToolCall(d));const m=r[d.id];m&&c.push(k.jsx(J.Fragment,{children:this.renderToolResult(m)},`tr-${d.id}`))}),c}renderAssistantMessage(){const{content:n,toolResultMap:r={},modelInfo:o}=this.props,l=this.renderAssistantContent(n,r);return l.length===0?null:k.jsxs("div",{className:Ue.messageRow,children:[k.jsx("div",{className:Ue.avatar,style:{background:(o==null?void 0:o.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(o==null?void 0:o.svg)||hl("agent")}}),k.jsxs("div",{className:Ue.contentCol,children:[this.renderLabel((o==null?void 0:o.name)||"MainAgent"),this.renderHighlightBubble(Ue.bubbleAssistant,l)]})]})}renderSubAgentChatMessage(){const{content:n,toolResultMap:r={},label:o}=this.props,l=this.renderAssistantContent(n,r);return l.length===0?null:k.jsxs("div",{className:Ue.messageRowEnd,children:[k.jsxs("div",{className:Ue.contentColLimited,children:[k.jsxs("div",{className:Ue.labelRowEnd,children:[this.formatTime(this.props.timestamp)&&k.jsx(Kr,{className:Ue.timeText,children:this.formatTime(this.props.timestamp)}),this.renderViewRequestBtn(),k.jsx(Kr,{type:"secondary",className:Ue.labelTextRight,children:o||"SubAgent"})]}),this.renderHighlightBubble(Ue.bubbleAssistant,l)]}),k.jsx("div",{className:Ue.avatar,style:{background:"#4a1d96"},dangerouslySetInnerHTML:{__html:hl("sub")}})]})}renderSubAgentMessage(){const{label:n,resultText:r,toolName:o,toolInput:l}=this.props;return k.jsxs("div",{className:Ue.messageRow,children:[k.jsx("div",{className:Ue.avatar,style:{background:"#4a1d96"},dangerouslySetInnerHTML:{__html:hl("sub")}}),k.jsxs("div",{className:Ue.contentCol,children:[this.renderLabel(n),k.jsx("div",{className:Ue.bubbleSubAgent,children:k.jsx(XC,{toolName:o,toolInput:l,resultText:r})})]})]})}renderUserSelectionMessage(){const{questions:n,answers:r}=this.props,o=this.getUserName();return k.jsxs("div",{className:Ue.messageRowEnd,children:[k.jsxs("div",{className:Ue.contentColLimited,children:[this.renderLabel(o," — 选择"),k.jsx("div",{className:Ue.bubbleSelection,children:n&&n.map((l,s)=>{const c=(r==null?void 0:r[l.question])||"未选择";return k.jsxs("div",{className:s<n.length-1?Ue.questionSpacing:void 0,children:[k.jsx("div",{className:Ue.questionText,children:l.question}),k.jsx("div",{className:Ue.optionList,children:l.options&&l.options.map((d,m)=>{const p=c===d.label;return k.jsxs("div",{className:Ue.option,style:{color:p?"#e5e5e5":"#666",fontWeight:p?600:"normal"},children:[p?"● ":"○ ",d.label,d.description&&k.jsxs("span",{className:Ue.optionDesc,children:["— ",d.description]})]},m)})})]},s)})})]}),this.renderUserAvatar("#2ea043")]})}renderPlanPromptMessage(){const{text:n,timestamp:r,modelInfo:o}=this.props;this.formatTime(r);const l=(n||"").replace(/^Implement the following plan:\s*/i,"");return k.jsxs("div",{className:Ue.messageRow,children:[k.jsx("div",{className:Ue.avatar,style:{background:(o==null?void 0:o.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(o==null?void 0:o.svg)||hl("agent")}}),k.jsxs("div",{className:Ue.contentColLimited,children:[this.renderLabel((o==null?void 0:o.name)||"MainAgent"," (Plan)"),k.jsx("div",{className:Ue.bubblePlan,children:k.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:pi(l)}})})]})]})}renderSkillLoadedMessage(){const{text:n,skillName:r,timestamp:o}=this.props,l=this.formatTime(o);return k.jsxs("div",{className:Ue.messageRow,children:[k.jsx("div",{style:{width:32,flexShrink:0}}),k.jsx("div",{className:Ue.contentCol,children:k.jsx(Os,{ghost:!0,size:"small",items:[{key:"1",label:k.jsxs("span",{className:Ue.skillLabel,children:["📦 ",Oe("ui.skillLoaded"),": ",r,l&&k.jsx(Kr,{className:Ue.timeTextNoMargin,style:{marginLeft:8},children:l})]}),children:k.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:pi(n)}})}],className:Ue.collapseNoMargin})})]})}render(){const{role:n}=this.props;return n==="user"?this.renderUserMessage():n==="skill-loaded"?this.renderSkillLoadedMessage():n==="plan-prompt"?this.renderPlanPromptMessage():n==="user-selection"?this.renderUserSelectionMessage():n==="assistant"?this.renderAssistantMessage():n==="sub-agent-chat"?this.renderSubAgentChatMessage():n==="sub-agent"?this.renderSubAgentMessage():null}}const $H="_centerEmpty_1j3v3_1",EH="_container_1j3v3_8",RH="_sessionDividerText_1j3v3_16",kH="_lastResponseLabel_1j3v3_21",ks={centerEmpty:$H,container:EH,sessionDividerText:RH,lastResponseLabel:kH},{Text:QC}=oa,_H=20;function OH(){return 100+Math.random()*50}function YC(e){const t={};for(const r of e)if(r.role==="assistant"&&Array.isArray(r.content))for(const o of r.content)o.type==="tool_use"&&(t[o.id]=o);const n={};for(const r of e)if(r.role==="user"&&Array.isArray(r.content)){for(const o of r.content)if(o.type==="tool_result"){const l=t[o.tool_use_id];let s=Oe("ui.toolReturn"),c=null,d=null;if(l)if(c=l.name,d=l.input,l.name==="Task"&&l.input){const m=l.input.subagent_type||"",p=l.input.description||"";s=`SubAgent: ${m}${p?" — "+p:""}`}else s=Oe("ui.toolReturnNamed",{name:l.name});n[o.tool_use_id]={label:s,toolName:c,toolInput:d,resultText:t$(o)}}}return{toolUseMap:t,toolResultMap:n}}class IH extends J.Component{constructor(t){super(t),this.containerRef=J.createRef(),this.state={visibleCount:0,loading:!1,allItems:[],highlightTs:null,highlightFading:!1},this._queueTimer=null,this._prevItemsLen=0,this._scrollTargetIdx=null,this._scrollTargetRef=J.createRef(),this._scrollFadeTimer=null}componentDidMount(){this.startRender()}componentDidUpdate(t){if(t.mainAgentSessions!==this.props.mainAgentSessions)this.startRender();else if(t.collapseToolResults!==this.props.collapseToolResults||t.expandThinking!==this.props.expandThinking){const n=this.buildAllItems();this.setState({allItems:n,visibleCount:n.length})}}componentWillUnmount(){this._queueTimer&&clearTimeout(this._queueTimer),this._fadeClearTimer&&clearTimeout(this._fadeClearTimer),this._unbindScrollFade()}startRender(){this._queueTimer&&clearTimeout(this._queueTimer);const t=this.buildAllItems(),n=this._prevItemsLen;this._prevItemsLen=t.length;const r=t.length-n;if(r<=0||n>0&&r<=3){this.setState({allItems:t,visibleCount:t.length,loading:!1},()=>this.scrollToBottom());return}if(t.length>_H)this.setState({allItems:t,visibleCount:0,loading:!0}),this._queueTimer=setTimeout(()=>{this.setState({visibleCount:t.length,loading:!1},()=>this.scrollToBottom())},300);else{const o=Math.max(0,n);this.setState({allItems:t,visibleCount:o,loading:!1}),this.queueNext(o,t.length)}}queueNext(t,n){t>=n||(this._queueTimer=setTimeout(()=>{this.setState({visibleCount:t+1},()=>{this.scrollToBottom(),this.queueNext(t+1,n)})},OH()))}_isNearBottom(){const t=this.containerRef.current;return t?t.scrollHeight-t.scrollTop-t.clientHeight<=5:!0}scrollToBottom(){if(this._scrollTargetRef.current){const t=this._scrollTargetRef.current,n=this.containerRef.current;n&&t.offsetHeight>n.clientHeight?t.scrollIntoView({block:"start",behavior:"instant"}):t.scrollIntoView({block:"center",behavior:"instant"});const r=this.props.scrollToTimestamp;this._scrollTargetRef=J.createRef(),r&&(this.setState({highlightTs:r,highlightFading:!1}),this._bindScrollFade()),this.props.onScrollTsDone&&this.props.onScrollTsDone();return}if(this._isNearBottom()){const t=this.containerRef.current;t&&(t.scrollTop=t.scrollHeight)}}_bindScrollFade(){this._unbindScrollFade();const t=this.containerRef.current;t&&(this._scrollFadeIgnoreFirst=!0,this._onScrollFade=()=>{if(this._scrollFadeIgnoreFirst){this._scrollFadeIgnoreFirst=!1;return}this.setState({highlightFading:!0}),this._fadeClearTimer=setTimeout(()=>{this.setState({highlightTs:null,highlightFading:!1})},2e3),this._unbindScrollFade()},t.addEventListener("scroll",this._onScrollFade))}_unbindScrollFade(){this._onScrollFade&&this.containerRef.current&&(this.containerRef.current.removeEventListener("scroll",this._onScrollFade),this._onScrollFade=null)}renderSessionMessages(t,n,r,o){var h;const{userProfile:l,collapseToolResults:s,expandThinking:c,onViewRequest:d}=this.props,{toolUseMap:m,toolResultMap:p}=YC(t),g=[];for(let y=0;y<t.length;y++){const b=t[y],S=b.content,C=b._timestamp||null,$=C?o[C]:void 0,w=$!=null&&d?{requestIndex:$,onViewRequest:d}:{};if(b.role==="user"){if(Array.isArray(S)){const R=S.find(_=>_.type==="text"&&/^\[SUGGESTION MODE:/i.test((_.text||"").trim())),I=S.filter(_=>_.type==="tool_result");if(R&&I.length>0){let _=null,O={};for(const j of I){const N=m[j.tool_use_id];if(N&&N.name==="AskUserQuestion"&&((h=N.input)!=null&&h.questions)){_=N.input.questions;const T=t$(j);try{O=JSON.parse(T).answers||{}}catch{}break}}_&&g.push(k.jsx(Uo,{role:"user-selection",questions:_,answers:O,timestamp:C,userProfile:l,...w},`${n}-selection-${y}`))}else{const{commands:_,textBlocks:O,skillBlocks:j}=Z2(S);for(let N=0;N<_.length;N++)g.push(k.jsx(Uo,{role:"user",text:_[N],timestamp:C,userProfile:l,modelInfo:r,...w},`${n}-cmd-${y}-${N}`));for(const N of j){const T=N.text.match(/^#\s+(.+)$/m),P=T?T[1]:"Skill";g.push(k.jsx(Uo,{role:"skill-loaded",text:N.text,skillName:P,timestamp:C,...w},`${n}-skill-${y}`))}for(let N=0;N<O.length;N++){const T=/^Implement the following plan:/i.test((O[N].text||"").trim());g.push(k.jsx(Uo,{role:T?"plan-prompt":"user",text:O[N].text,timestamp:C,userProfile:l,modelInfo:r,...w},`${n}-user-${y}-${N}`))}}}else if(typeof S=="string"&&!nv(S)){const R=/^Implement the following plan:/i.test(S.trim());g.push(k.jsx(Uo,{role:R?"plan-prompt":"user",text:S,timestamp:C,userProfile:l,modelInfo:r,...w},`${n}-user-${y}`))}}else b.role==="assistant"&&(Array.isArray(S)?g.push(k.jsx(Uo,{role:"assistant",content:S,toolResultMap:p,timestamp:C,modelInfo:r,collapseToolResults:s,expandThinking:c,...w},`${n}-asst-${y}`)):typeof S=="string"&&g.push(k.jsx(Uo,{role:"assistant",content:[{type:"text",text:S}],toolResultMap:p,timestamp:C,modelInfo:r,collapseToolResults:s,expandThinking:c,...w},`${n}-asst-${y}`)))}return g}buildAllItems(){var b,S,C,$;const{mainAgentSessions:t,requests:n,collapseToolResults:r,expandThinking:o,onViewRequest:l}=this.props;if(!t||t.length===0)return[];const s={};if(n)for(let w=0;w<n.length;w++)vr(n[w])&&n[w].timestamp&&(s[n[w].timestamp]=w);let c=null;if(n){for(let w=n.length-1;w>=0;w--)if(vr(n[w])&&((b=n[w].body)!=null&&b.model)){c=n[w].body.model;break}}const d=$L(c),m=[],p={},g=[];if(n)for(let w=0;w<n.length;w++){const R=n[w];if(!R.timestamp)continue;const I=wi(R,n[w+1]);if(I.type==="SubAgent"){const _=(C=(S=R.response)==null?void 0:S.body)==null?void 0:C.content;if(Array.isArray(_)&&_.length>0){const O=YC((($=R.body)==null?void 0:$.messages)||[]).toolResultMap;g.push({timestamp:R.timestamp,content:_,toolResultMap:O,label:Cd(I.type,I.subType),requestIndex:w})}}}let h=0;t.forEach((w,R)=>{var _,O,j,N;R>0&&m.push(k.jsx(mC,{style:{borderColor:"#333",margin:"16px 0"},children:k.jsx(QC,{className:ks.sessionDividerText,children:"Session"})},`session-div-${R}`));const I=this.renderSessionMessages(w.messages,`s${R}`,d,s);for(const T of I){const P=T.props.timestamp;for(;h<g.length&&P&&g[h].timestamp<=P;){const B=g[h];B.timestamp&&(p[B.timestamp]=m.length),m.push(k.jsx(Uo,{role:"sub-agent-chat",content:B.content,toolResultMap:B.toolResultMap,label:B.label,timestamp:B.timestamp,collapseToolResults:r,expandThinking:o,requestIndex:B.requestIndex,onViewRequest:l},`sub-chat-${h}`)),h++}P&&(p[P]=m.length),m.push(T)}for(;h<g.length;){const T=g[h],P=R<t.length-1&&((O=(_=t[R+1].messages)==null?void 0:_[0])==null?void 0:O._timestamp);if(P&&T.timestamp>P)break;T.timestamp&&(p[T.timestamp]=m.length),m.push(k.jsx(Uo,{role:"sub-agent-chat",content:T.content,toolResultMap:T.toolResultMap,label:T.label,timestamp:T.timestamp,collapseToolResults:r,expandThinking:o,requestIndex:T.requestIndex,onViewRequest:l},`sub-chat-${h}`)),h++}if(R===t.length-1&&((N=(j=w.response)==null?void 0:j.body)!=null&&N.content)){const T=w.response.body.content;Array.isArray(T)&&(m.push(k.jsx(J.Fragment,{children:k.jsx(mC,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:k.jsx(QC,{type:"secondary",className:ks.lastResponseLabel,children:Oe("ui.lastResponse")})})},"resp-divider")),w.entryTimestamp&&(p[w.entryTimestamp]=m.length),m.push(k.jsx(Uo,{role:"assistant",content:T,timestamp:w.entryTimestamp,modelInfo:d,collapseToolResults:r,expandThinking:o,toolResultMap:{}},"resp-asst")))}});const{scrollToTimestamp:y}=this.props;return this._scrollTargetIdx=y&&p[y]!=null?p[y]:null,this._tsItemMap=p,m}render(){const{mainAgentSessions:t}=this.props,{allItems:n,visibleCount:r,loading:o}=this.state;if(!t||t.length===0)return k.jsx("div",{className:ks.centerEmpty,children:k.jsx(Lo,{description:Oe("ui.noChat")})});if(o)return k.jsx("div",{className:ks.centerEmpty,children:k.jsx(Wl,{size:"large"})});const l=this._scrollTargetIdx,{highlightTs:s,highlightFading:c}=this.state,d=s&&this._tsItemMap&&this._tsItemMap[s]!=null?this._tsItemMap[s]:null,m=n.slice(0,r);return k.jsx("div",{ref:this.containerRef,className:ks.container,children:m.map((p,g)=>{const h=g===l,y=g===d;let b=p;return y&&(b=J.cloneElement(b,{highlight:c?"fading":"active"})),h?k.jsx("div",{ref:this._scrollTargetRef,children:b},p.key+"-anchor"):b})})}}const TH="_resizer_yamj2_1",jH={resizer:TH};class NH extends J.Component{constructor(t){super(t),this.handleMouseDown=this.handleMouseDown.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}handleMouseDown(t){t.preventDefault(),document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}handleMouseMove(t){this.props.onResize&&this.props.onResize(t.clientX)}handleMouseUp(){document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}render(){return k.jsx("div",{onMouseDown:this.handleMouseDown,className:jH.resizer})}}const PH="_layout_16uf8_1",zH="_header_16uf8_6",MH="_content_16uf8_14",LH="_mainContainer_16uf8_19",BH="_leftPanel_16uf8_24",AH="_leftPanelHeader_16uf8_32",DH="_leftPanelCount_16uf8_43",FH="_leftPanelBody_16uf8_49",HH="_rightPanel_16uf8_54",VH="_modalActions_16uf8_60",WH="_spinCenter_16uf8_64",qH="_emptyCenter_16uf8_69",UH="_logCheckbox_16uf8_75",GH="_logListContainer_16uf8_79",KH="_logListItem_16uf8_85",XH="_logItemRow_16uf8_91",QH="_logFileName_16uf8_108",YH="_logFileIcon_16uf8_121",JH="_loadingOverlay_16uf8_127",ZH="_loadingText_16uf8_140",eV="_footer_16uf8_146",tV="_footerRight_16uf8_156",nV="_footerLink_16uf8_164",rV="_footerIcon_16uf8_176",oV="_footerDivider_16uf8_181",aV="_guideContainer_16uf8_189",iV="_guideContent_16uf8_197",lV="_guideIcon_16uf8_202",sV="_guideTitle_16uf8_207",cV="_guideStep_16uf8_214",uV="_guideStepNum_16uf8_220",dV="_guideStepBody_16uf8_235",fV="_guideText_16uf8_240",mV="_guideCode_16uf8_247",Ft={layout:PH,header:zH,content:MH,mainContainer:LH,leftPanel:BH,leftPanelHeader:AH,leftPanelCount:DH,leftPanelBody:FH,rightPanel:HH,modalActions:VH,spinCenter:WH,emptyCenter:qH,logCheckbox:UH,logListContainer:GH,logListItem:KH,logItemRow:XH,logFileName:QH,logFileIcon:YH,loadingOverlay:JH,loadingText:ZH,footer:eV,footerRight:tV,footerLink:nV,footerIcon:rV,footerDivider:oV,guideContainer:aV,guideContent:iV,guideIcon:lV,guideTitle:sV,guideStep:cV,guideStepNum:uV,guideStepBody:dV,guideText:fV,guideCode:mV};class pV extends J.Component{constructor(n){super(n);Nt(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n,scrollCenter:!1})});Nt(this,"handleViewRequest",n=>{this.setState({viewMode:"raw",selectedIndex:n,scrollCenter:!0})});Nt(this,"handleViewInChat",()=>{this.setState(n=>{const o=(n.showAll?n.requests:ga(n.requests))[n.selectedIndex];if(!o)return null;let l=null;if(vr(o)&&o.timestamp)l=o.timestamp;else{if(wi(o).type==="SubAgent"&&o.timestamp)l=o.timestamp;else{const c=n.requests.indexOf(o);c>=0&&(l=AC(n.requests,c))}l||oo.info(Oe("ui.cannotMap"))}return{viewMode:"chat",chatScrollToTs:l}})});Nt(this,"handleToggleViewMode",()=>{this.setState(n=>{const r=n.viewMode==="raw"?"chat":"raw";if(r==="raw"){if(n.selectedIndex===null){const s=n.showAll?n.requests:ga(n.requests);return{viewMode:r,selectedIndex:s.length>0?s.length-1:null,scrollCenter:!0}}return{viewMode:r,scrollCenter:!0}}const o=n.showAll?n.requests:ga(n.requests),l=n.selectedIndex!=null?o[n.selectedIndex]:null;if(l){let s=null;if(vr(l)&&l.timestamp)s=l.timestamp;else if(wi(l).type==="SubAgent"&&l.timestamp)s=l.timestamp;else{const d=n.requests.indexOf(l);d>=0&&(s=AC(n.requests,d)),s||oo.info(Oe("ui.cannotMap"))}return{viewMode:r,chatScrollToTs:s}}return{viewMode:r,chatScrollToTs:null}})});Nt(this,"handleLangChange",()=>{const n=Ml();this.setState({lang:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:n})}).catch(()=>{})});Nt(this,"handleCollapseToolResultsChange",n=>{this.setState({collapseToolResults:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collapseToolResults:n})}).catch(()=>{})});Nt(this,"handleExpandThinkingChange",n=>{this.setState({expandThinking:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expandThinking:n})}).catch(()=>{})});Nt(this,"handleExpandDiffChange",n=>{this.setState({expandDiff:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expandDiff:n})}).catch(()=>{})});Nt(this,"handleFilterIrrelevantChange",n=>{this.setState(r=>{const o=!n,l=o?r.requests:ga(r.requests);return{showAll:o,selectedIndex:l.length>0?l.length-1:null}}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filterIrrelevant:n})}).catch(()=>{})});Nt(this,"handleTabChange",n=>{this.setState({currentTab:n})});Nt(this,"handleResize",n=>{const r=this.mainContainerRef.current;if(!r)return;const o=r.getBoundingClientRect(),l=n-o.left;l>=250&&l<=800&&this.setState({leftPanelWidth:l})});Nt(this,"handleImportLocalLogs",()=>{this.setState({importModalVisible:!0,localLogsLoading:!0}),fetch("/api/local-logs").then(n=>n.json()).then(n=>{const{_currentProject:r,...o}=n;this.setState({localLogs:o,currentProject:r||"",localLogsLoading:!1})}).catch(()=>{this.setState({localLogs:{},localLogsLoading:!1})})});Nt(this,"handleCloseImportModal",()=>{this.setState({importModalVisible:!1,selectedLogs:new Set})});Nt(this,"handleToggleLogSelect",(n,r)=>{this.setState(o=>{const l=new Set(o.selectedLogs);return r?l.add(n):l.delete(n),{selectedLogs:l}})});Nt(this,"handleMergeLogs",()=>{const{selectedLogs:n,localLogs:r,currentProject:o}=this.state;if(n.size<2)return;const l=r[o];if(!l)return;const s=[];if(l.forEach((m,p)=>{n.has(m.file)&&s.push(p)}),s.sort((m,p)=>m-p),n.has(l[0].file)){oo.warning(Oe("ui.mergeLatestNotAllowed"));return}for(let m=1;m<s.length;m++)if(s[m]-s[m-1]!==1){oo.warning(Oe("ui.mergeNotConsecutive"));return}if(s.reduce((m,p)=>m+l[p].size,0)>500*1024*1024){oo.warning(Oe("ui.mergeTooLarge"));return}const d=s.map(m=>l[m].file).reverse();fetch("/api/merge-logs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:d})}).then(m=>m.json()).then(m=>{m.ok?(oo.success(Oe("ui.mergeSuccess")),this.setState({selectedLogs:new Set}),this.handleImportLocalLogs()):oo.error(m.error||"Merge failed")}).catch(()=>oo.error("Merge failed"))});Nt(this,"handleOpenLogFile",n=>{const r=window.location.port||window.location.host.split(":")[1]||"7008";window.open(`${window.location.protocol}//${window.location.hostname}:${r}?logfile=${encodeURIComponent(n)}`,"_blank"),this.setState({importModalVisible:!1})});Nt(this,"handleResumeChoice",n=>{fetch("/api/resume-choice",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({choice:n})}).catch(r=>console.error("resume-choice failed:",r))});Nt(this,"handleLoadLocalJsonlFile",()=>{const n=document.createElement("input");n.type="file",n.accept=".jsonl",n.onchange=r=>{const o=r.target.files[0];if(!o)return;if(o.size>500*1024*1024){oo.error(Oe("ui.fileTooLarge"));return}this.setState({fileLoading:!0,fileLoadingCount:0});const l=new FileReader;l.onload=s=>{try{const d=s.target.result.split(`
564
+ ---
565
+ `).filter(m=>m.trim()).map(m=>{try{return JSON.parse(m)}catch{return null}}).filter(Boolean);if(d.length===0){oo.error(Oe("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0});return}this.animateLoadingCount(d.length,()=>{let m=[];for(const g of d)vr(g)&&g.body&&Array.isArray(g.body.messages)&&(m=this.mergeMainAgentSessions(m,g));const p=ga(d);this._isLocalLog=!0,this._localLogFile=o.name,this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.setState({requests:d,selectedIndex:p.length>0?p.length-1:null,mainAgentSessions:m,importModalVisible:!1,fileLoading:!1,fileLoadingCount:0})})}catch{oo.error(Oe("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0})}},l.readAsText(o)},n.click()});const r=parseInt(localStorage.getItem("ccv_cacheExpireAt"),10)||null,o=localStorage.getItem("ccv_cacheType")||null,l=Date.now(),s=r&&r>l?r:null,c=s?o:null;this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:s,cacheType:c,leftPanelWidth:380,mainAgentSessions:[],importModalVisible:!1,localLogs:{},localLogsLoading:!1,showAll:!1,lang:Ml(),userProfile:null,projectName:"",resumeModalVisible:!1,resumeFileName:"",collapseToolResults:!0,expandThinking:!0,expandDiff:!1,fileLoading:!1,fileLoadingCount:0,selectedLogs:new Set,githubStars:null},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=J.createRef()}componentDidMount(){fetch("/api/preferences").then(o=>o.json()).then(o=>{o.lang&&(av(o.lang),this.setState({lang:o.lang})),o.collapseToolResults!==void 0&&this.setState({collapseToolResults:!!o.collapseToolResults}),o.expandThinking!==void 0&&this.setState({expandThinking:!!o.expandThinking}),o.expandDiff!==void 0&&this.setState({expandDiff:!!o.expandDiff});const l=o.filterIrrelevant!==void 0?!!o.filterIrrelevant:!0;this.setState({showAll:!l})}).catch(()=>{}),fetch("/api/user-profile").then(o=>o.json()).then(o=>this.setState({userProfile:o})).catch(()=>{}),fetch("/api/project-name").then(o=>o.json()).then(o=>this.setState({projectName:o.projectName||""})).catch(()=>{}),fetch("https://api.github.com/repos/weiesky/cc-viewer").then(o=>o.json()).then(o=>{o.stargazers_count!=null&&this.setState({githubStars:o.stargazers_count})}).catch(()=>{});const r=new URLSearchParams(window.location.search).get("logfile");r?this.loadLocalLogFile(r):this.initSSE()}componentWillUnmount(){this.eventSource&&this.eventSource.close(),this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._loadingCountTimer&&cancelAnimationFrame(this._loadingCountTimer)}animateLoadingCount(n,r){const o=Math.min(800,Math.max(300,n*.5)),l=performance.now(),s=c=>{const d=Math.min((c-l)/o,1),m=Math.round(d*n);this.setState({fileLoadingCount:m}),d<1?this._loadingCountTimer=requestAnimationFrame(s):(this._loadingCountTimer=null,r())};this._loadingCountTimer=requestAnimationFrame(s)}initSSE(){this.setState({fileLoading:!0,fileLoadingCount:0});try{this.eventSource=new EventSource("/events"),this.eventSource.onmessage=n=>this.handleEventMessage(n),this.eventSource.addEventListener("resume_prompt",n=>{try{const r=JSON.parse(n.data);this.setState({resumeModalVisible:!0,resumeFileName:r.recentFileName||""})}catch{}}),this.eventSource.addEventListener("resume_resolved",()=>{this.setState({resumeModalVisible:!1,resumeFileName:""})}),this.eventSource.addEventListener("update_completed",n=>{try{const r=JSON.parse(n.data);this.setState({updateInfo:{type:"completed",version:r.version}})}catch{}}),this.eventSource.addEventListener("update_major_available",n=>{try{const r=JSON.parse(n.data);this.setState({updateInfo:{type:"major",version:r.version}})}catch{}}),this.eventSource.addEventListener("full_reload",n=>{try{const r=JSON.parse(n.data);if(Array.isArray(r)){this.assignMessageTimestamps(r);const o=this.buildSessionsFromEntries(r),l=ga(r);r.length>0?this.animateLoadingCount(r.length,()=>{this.setState({requests:r,selectedIndex:l.length>0?l.length-1:null,mainAgentSessions:o,fileLoading:!1,fileLoadingCount:0})}):this.setState({requests:r,selectedIndex:null,mainAgentSessions:o,fileLoading:!1,fileLoadingCount:0})}else this.setState({fileLoading:!1,fileLoadingCount:0})}catch{this.setState({fileLoading:!1,fileLoadingCount:0})}}),this.eventSource.onerror=()=>console.error("SSE连接错误")}catch(n){console.error("EventSource初始化失败:",n),this.setState({fileLoading:!1,fileLoadingCount:0})}}loadLocalLogFile(n){this._isLocalLog=!0,this._localLogFile=n,this.setState({fileLoading:!0,fileLoadingCount:0}),fetch(`/api/local-log?file=${encodeURIComponent(n)}`).then(r=>r.json()).then(r=>{Array.isArray(r)?this.animateLoadingCount(r.length,()=>{this.assignMessageTimestamps(r);const o=this.buildSessionsFromEntries(r),l=ga(r);this.setState({requests:r,selectedIndex:l.length>0?l.length-1:null,mainAgentSessions:o,fileLoading:!1,fileLoadingCount:0})}):this.setState({fileLoading:!1,fileLoadingCount:0})}).catch(r=>{console.error("加载日志文件失败:",r),this.setState({fileLoading:!1,fileLoadingCount:0})})}handleEventMessage(n){try{const r=JSON.parse(n.data);this.setState(o=>{var g,h;const l=[...o.requests],s=l.findIndex(y=>y.timestamp===r.timestamp&&y.url===r.url);s>=0?l[s]=r:l.push(r);let c=o.cacheExpireAt,d=o.cacheType;if(vr(r)){const y=(h=(g=r.response)==null?void 0:g.body)==null?void 0:h.usage;if(y!=null&&y.cache_creation){const b=y.cache_creation,S=r.timestamp?new Date(r.timestamp).getTime():Date.now();let C=null,$=null;if(b.ephemeral_1h_input_tokens>0?(C=S+3600*1e3,$="1h"):b.ephemeral_5m_input_tokens>0&&(C=S+300*1e3,$="5m"),C&&C>Date.now()){c=C;const w=(y.cache_read_input_tokens||0)+(y.cache_creation_input_tokens||0);d=w>0?Gn(w):$,localStorage.setItem("ccv_cacheExpireAt",String(c)),localStorage.setItem("ccv_cacheType",d)}}}let m=o.mainAgentSessions;if(vr(r)&&r.body&&Array.isArray(r.body.messages)){const y=r.timestamp||new Date().toISOString(),b=m.length>0?m[m.length-1]:null,S=(b==null?void 0:b.messages)||[],C=r.body.messages,$=S.length,w=$>0&&C.length<$*.5&&$-C.length>4;for(let R=0;R<C.length;R++)!w&&R<$&&S[R]._timestamp?C[R]._timestamp=S[R]._timestamp:C[R]._timestamp||(C[R]._timestamp=y);m=this.mergeMainAgentSessions(o.mainAgentSessions,r)}return o.selectedIndex===null&&l.length>0&&(this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._autoSelectTimer=setTimeout(()=>{this.setState(y=>{if(y.selectedIndex===null&&y.requests.length>0){const b=y.showAll?y.requests:ga(y.requests);return b.length>0?{selectedIndex:b.length-1}:null}return null})},200)),{requests:l,cacheExpireAt:c,cacheType:d,mainAgentSessions:m}})}catch(r){console.error("处理事件消息失败:",r)}}assignMessageTimestamps(n){var l;let r=[],o=null;for(const s of n){if(!vr(s)||!s.body||!Array.isArray(s.body.messages))continue;const c=s.body.messages,d=c.length,m=((l=s.body.metadata)==null?void 0:l.user_id)||null,p=s.timestamp||new Date().toISOString(),g=r.length;g>0&&(d<g*.5&&g-d>4||o&&m&&m!==o)&&(r=[]);for(let y=r.length;y<d;y++)r.push(p);for(let y=0;y<d;y++)c[y]._timestamp=r[y];o=m}}buildSessionsFromEntries(n){let r=[];for(const o of n)vr(o)&&o.body&&Array.isArray(o.body.messages)&&(r=this.mergeMainAgentSessions(r,o));return r}mergeMainAgentSessions(n,r){var g;const o=r.body.messages,l=r.response,s=((g=r.body.metadata)==null?void 0:g.user_id)||null,c=r.timestamp||null;if(n.length===0)return[{userId:s,messages:o,response:l,entryTimestamp:c}];const d=n[n.length-1],m=d.messages?d.messages.length:0,p=m>0&&o.length<m*.5&&m-o.length>4;if(s&&s===d.userId&&!p){const h=[...n];return h[h.length-1]={userId:s,messages:o,response:l,entryTimestamp:c},h}else return[...n,{userId:s,messages:o,response:l,entryTimestamp:c}]}formatTimestamp(n){return!n||n.length<15?n:`${n.slice(0,4)}-${n.slice(4,6)}-${n.slice(6,8)} ${n.slice(9,11)}:${n.slice(11,13)}:${n.slice(13,15)}`}formatSize(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/(1024*1024)).toFixed(1)+" MB"}render(){const{requests:n,selectedIndex:r,viewMode:o,currentTab:l,cacheExpireAt:s,cacheType:c,leftPanelWidth:d,mainAgentSessions:m,showAll:p,fileLoading:g,fileLoadingCount:h}=this.state,y=p?n:ga(n),b=r!==null?y[r]:null;return k.jsxs(na,{theme:{algorithm:l9.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[g&&k.jsx("div",{className:Ft.loadingOverlay,children:k.jsxs("div",{className:Ft.loadingText,children:["Loading...(",h,")"]})}),k.jsxs(Wa,{className:Ft.layout,children:[k.jsx(Wa.Header,{className:Ft.header,children:k.jsx(Jg,{requestCount:y.length,requests:y,viewMode:o,cacheExpireAt:s,cacheType:c,onToggleViewMode:this.handleToggleViewMode,onLangChange:this.handleLangChange,onImportLocalLogs:this.handleImportLocalLogs,isLocalLog:!!this._isLocalLog,localLogFile:this._localLogFile,projectName:this.state.projectName,collapseToolResults:this.state.collapseToolResults,onCollapseToolResultsChange:this.handleCollapseToolResultsChange,expandThinking:this.state.expandThinking,onExpandThinkingChange:this.handleExpandThinkingChange,expandDiff:this.state.expandDiff,onExpandDiffChange:this.handleExpandDiffChange,filterIrrelevant:!this.state.showAll,onFilterIrrelevantChange:this.handleFilterIrrelevantChange,updateInfo:this.state.updateInfo,onDismissUpdate:()=>this.setState({updateInfo:null})})}),k.jsx(Wa.Content,{className:Ft.content,children:o==="raw"?y.length===0?k.jsx("div",{className:Ft.guideContainer,children:k.jsxs("div",{className:Ft.guideContent,children:[k.jsx("div",{className:Ft.guideIcon,children:k.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",children:[k.jsx("circle",{cx:"24",cy:"24",r:"23",stroke:"#333",strokeWidth:"2",strokeDasharray:"4 4"}),k.jsx("path",{d:"M16 24h16M24 16v16",stroke:"#555",strokeWidth:"2",strokeLinecap:"round"})]})}),k.jsx("h2",{className:Ft.guideTitle,children:Oe("ui.guide.title")}),k.jsxs("div",{className:Ft.guideStep,children:[k.jsx("div",{className:Ft.guideStepNum,children:"1"}),k.jsxs("div",{className:Ft.guideStepBody,children:[k.jsx("p",{className:Ft.guideText,children:Oe("ui.guide.step1")}),k.jsx("code",{className:Ft.guideCode,children:Oe("ui.guide.exampleQuestion")})]})]}),k.jsxs("div",{className:Ft.guideStep,children:[k.jsx("div",{className:Ft.guideStepNum,children:"2"}),k.jsxs("div",{className:Ft.guideStepBody,children:[k.jsx("p",{className:Ft.guideText,children:Oe("ui.guide.step2")}),k.jsx("code",{className:Ft.guideCode,children:Oe("ui.guide.troubleshootCmd")})]})]}),k.jsxs("div",{className:Ft.guideStep,children:[k.jsx("div",{className:Ft.guideStepNum,children:"3"}),k.jsxs("div",{className:Ft.guideStepBody,children:[k.jsx("p",{className:Ft.guideText,children:Oe("ui.guide.step3")}),k.jsx("code",{className:Ft.guideCode,children:"npm install -g @anthropic-ai/claude-code"})]})]})]})}):k.jsxs("div",{ref:this.mainContainerRef,className:Ft.mainContainer,children:[k.jsxs("div",{className:Ft.leftPanel,style:{width:d},children:[k.jsxs("div",{className:Ft.leftPanelHeader,children:[k.jsx("span",{children:Oe("ui.requestList")}),k.jsx("span",{className:Ft.leftPanelCount,children:Oe("ui.totalRequests",{count:y.length})})]}),k.jsx("div",{className:Ft.leftPanelBody,children:k.jsx(rD,{requests:y,selectedIndex:r,scrollCenter:this.state.scrollCenter,onSelect:this.handleSelectRequest,onScrollDone:()=>this.setState({scrollCenter:!1})})})]}),k.jsx(NH,{onResize:this.handleResize}),k.jsx("div",{className:Ft.rightPanel,children:k.jsx(QD,{request:b,requests:y,selectedIndex:r,currentTab:l,onTabChange:this.handleTabChange,onViewInChat:this.handleViewInChat,expandDiff:this.state.expandDiff})})]}):k.jsx(IH,{requests:y,mainAgentSessions:m,userProfile:this.state.userProfile,collapseToolResults:this.state.collapseToolResults,expandThinking:this.state.expandThinking,onViewRequest:this.handleViewRequest,scrollToTimestamp:this.state.chatScrollToTs,onScrollTsDone:()=>this.setState({chatScrollToTs:null})})}),k.jsx("div",{className:Ft.footer,children:k.jsxs("div",{className:Ft.footerRight,children:[k.jsxs("a",{href:"https://github.com/weiesky/cc-viewer",target:"_blank",rel:"noopener noreferrer",className:Ft.footerLink,children:[k.jsx("svg",{className:Ft.footerIcon,viewBox:"0 0 16 16",fill:"currentColor",children:k.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),"GitHub",this.state.githubStars!=null?` ★ ${this.state.githubStars}`:""]}),k.jsx("span",{className:Ft.footerDivider,children:"|"}),k.jsx("a",{href:"dingtalk://dingtalkclient/action/sendmsg?dingtalk_id=sthk5es",className:Ft.footerLink,children:Oe("ui.footer.contact")})]})})]}),k.jsx(Xr,{title:Oe("ui.resume.title"),open:this.state.resumeModalVisible,closable:!1,maskClosable:!1,keyboard:!1,footer:[k.jsx(Yn,{type:"primary",onClick:()=>this.handleResumeChoice("continue"),children:Oe("ui.resume.continue")},"continue"),k.jsx(Yn,{onClick:()=>this.handleResumeChoice("new"),children:Oe("ui.resume.new")},"new")],children:k.jsx("p",{children:Oe("ui.resume.message",{file:this.state.resumeFileName})})}),k.jsxs(Xr,{title:Oe("ui.importLocalLogs"),open:this.state.importModalVisible,onCancel:this.handleCloseImportModal,footer:null,width:1e3,styles:{body:{maxHeight:"60vh",overflow:"auto"}},children:[k.jsxs("div",{className:Ft.modalActions,children:[k.jsx(Yn,{icon:k.jsx(xL,{}),onClick:this.handleLoadLocalJsonlFile,children:Oe("ui.loadLocalJsonl")}),k.jsx(Yn,{size:"small",type:this.state.selectedLogs.size>1?"primary":"default",disabled:this.state.selectedLogs.size<2,onClick:this.handleMergeLogs,style:{marginLeft:8},children:Oe("ui.mergeLogs")})]}),this.state.localLogsLoading?k.jsx("div",{className:Ft.spinCenter,children:k.jsx(Wl,{})}):(()=>{const S=this.state.localLogs[this.state.currentProject];return!S||S.length===0?k.jsx("div",{className:Ft.emptyCenter,children:Oe("ui.noLogs")}):k.jsx("div",{className:Ft.logListContainer,children:k.jsx(Zs,{size:"small",dataSource:S,renderItem:C=>k.jsx(Zs.Item,{className:Ft.logListItem,onClick:()=>{const $=!this.state.selectedLogs.has(C.file);this.handleToggleLogSelect(C.file,$)},children:k.jsxs("div",{className:Ft.logItemRow,children:[k.jsxs("span",{children:[k.jsx(Qh,{className:Ft.logCheckbox,checked:this.state.selectedLogs.has(C.file)||!1,onClick:$=>$.stopPropagation(),onChange:$=>{$.stopPropagation(),this.handleToggleLogSelect(C.file,$.target.checked)}}),k.jsx(Ls,{className:Ft.logFileIcon}),k.jsx("span",{className:Ft.logFileName,children:this.formatTimestamp(C.timestamp)})]}),k.jsxs("span",{children:[k.jsxs(io,{style:{background:"#0a0a0a",border:"1px solid #444",color:"#999"},children:[C.turns||0," ",Oe("ui.turns")]}),k.jsx(io,{style:{background:"#0a0a0a",border:"1px solid #444",color:"#999"},children:this.formatSize(C.size)}),k.jsx(Yn,{size:"small",type:"primary",onClick:$=>{$.stopPropagation(),this.handleOpenLogFile(C.file)},children:Oe("ui.openLog")})]})]})})})})})()]})]})}}const gV=o4.createRoot(document.getElementById("root"));gV.render(k.jsx(pV,{}));