cc-viewer 1.0.13 → 1.0.15
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.
- package/README.md +3 -0
- package/dist/assets/index-B05wFUK_.css +1 -0
- package/dist/assets/index-DnNjgun1.js +514 -0
- package/dist/index.html +2 -2
- package/interceptor.js +65 -1
- package/locales/i18n.json +200 -0
- package/package.json +1 -1
- package/server.js +7 -0
- package/dist/assets/index-CYzeFMnR.js +0 -513
- package/dist/assets/index-DaWfq9ke.css +0 -1
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
var kE=Object.defineProperty;var ME=(e,t,n)=>t in e?kE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bt=(e,t,n)=>ME(e,typeof t!="symbol"?t+"":t,n);function AC(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 Gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pm={exports:{}},us={},Nm={exports:{}},Kt={};/**
|
|
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 py;function jE(){if(py)return Kt;py=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 v(z){return z===null||typeof z!="object"?null:(z=g&&z[g]||z["@@iterator"],typeof z=="function"?z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function b(z,F,Y){this.props=z,this.context=F,this.refs=C,this.updater=Y||y}b.prototype.isReactComponent={},b.prototype.setState=function(z,F){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,F,"setState")},b.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function w(){}w.prototype=b.prototype;function $(z,F,Y){this.props=z,this.context=F,this.refs=C,this.updater=Y||y}var R=$.prototype=new w;R.constructor=$,S(R,b.prototype),R.isPureReactComponent=!0;var O=Array.isArray,_=Object.prototype.hasOwnProperty,I={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(z,F,Y){var ne,te={},re=null,fe=null;if(F!=null)for(ne in F.ref!==void 0&&(fe=F.ref),F.key!==void 0&&(re=""+F.key),F)_.call(F,ne)&&!T.hasOwnProperty(ne)&&(te[ne]=F[ne]);var me=arguments.length-2;if(me===1)te.children=Y;else if(1<me){for(var ue=Array(me),Ce=0;Ce<me;Ce++)ue[Ce]=arguments[Ce+2];te.children=ue}if(z&&z.defaultProps)for(ne in me=z.defaultProps,me)te[ne]===void 0&&(te[ne]=me[ne]);return{$$typeof:e,type:z,key:re,ref:fe,props:te,_owner:I.current}}function P(z,F){return{$$typeof:e,type:z.type,key:F,ref:z.ref,props:z.props,_owner:z._owner}}function k(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function A(z){var F={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(Y){return F[Y]})}var M=/\/+/g;function D(z,F){return typeof z=="object"&&z!==null&&z.key!=null?A(""+z.key):F.toString(36)}function B(z,F,Y,ne,te){var re=typeof z;(re==="undefined"||re==="boolean")&&(z=null);var fe=!1;if(z===null)fe=!0;else switch(re){case"string":case"number":fe=!0;break;case"object":switch(z.$$typeof){case e:case t:fe=!0}}if(fe)return fe=z,te=te(fe),z=ne===""?"."+D(fe,0):ne,O(te)?(Y="",z!=null&&(Y=z.replace(M,"$&/")+"/"),B(te,F,Y,"",function(Ce){return Ce})):te!=null&&(k(te)&&(te=P(te,Y+(!te.key||fe&&fe.key===te.key?"":(""+te.key).replace(M,"$&/")+"/")+z)),F.push(te)),1;if(fe=0,ne=ne===""?".":ne+":",O(z))for(var me=0;me<z.length;me++){re=z[me];var ue=ne+D(re,me);fe+=B(re,F,Y,ue,te)}else if(ue=v(z),typeof ue=="function")for(z=ue.call(z),me=0;!(re=z.next()).done;)re=re.value,ue=ne+D(re,me++),fe+=B(re,F,Y,ue,te);else if(re==="object")throw F=String(z),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return fe}function U(z,F,Y){if(z==null)return z;var ne=[],te=0;return B(z,ne,"","",function(re){return F.call(Y,re,te++)}),ne}function W(z){if(z._status===-1){var F=z._result;F=F(),F.then(function(Y){(z._status===0||z._status===-1)&&(z._status=1,z._result=Y)},function(Y){(z._status===0||z._status===-1)&&(z._status=2,z._result=Y)}),z._status===-1&&(z._status=0,z._result=F)}if(z._status===1)return z._result.default;throw z._result}var V={current:null},H={transition:null},Q={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:H,ReactCurrentOwner:I};function q(){throw Error("act(...) is not supported in production builds of React.")}return Kt.Children={map:U,forEach:function(z,F,Y){U(z,function(){F.apply(this,arguments)},Y)},count:function(z){var F=0;return U(z,function(){F++}),F},toArray:function(z){return U(z,function(F){return F})||[]},only:function(z){if(!k(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Kt.Component=b,Kt.Fragment=n,Kt.Profiler=o,Kt.PureComponent=$,Kt.StrictMode=r,Kt.Suspense=d,Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,Kt.act=q,Kt.cloneElement=function(z,F,Y){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var ne=S({},z.props),te=z.key,re=z.ref,fe=z._owner;if(F!=null){if(F.ref!==void 0&&(re=F.ref,fe=I.current),F.key!==void 0&&(te=""+F.key),z.type&&z.type.defaultProps)var me=z.type.defaultProps;for(ue in F)_.call(F,ue)&&!T.hasOwnProperty(ue)&&(ne[ue]=F[ue]===void 0&&me!==void 0?me[ue]:F[ue])}var ue=arguments.length-2;if(ue===1)ne.children=Y;else if(1<ue){me=Array(ue);for(var Ce=0;Ce<ue;Ce++)me[Ce]=arguments[Ce+2];ne.children=me}return{$$typeof:e,type:z.type,key:te,ref:re,props:ne,_owner:fe}},Kt.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:l,_context:z},z.Consumer=z},Kt.createElement=N,Kt.createFactory=function(z){var F=N.bind(null,z);return F.type=z,F},Kt.createRef=function(){return{current:null}},Kt.forwardRef=function(z){return{$$typeof:c,render:z}},Kt.isValidElement=k,Kt.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:W}},Kt.memo=function(z,F){return{$$typeof:m,type:z,compare:F===void 0?null:F}},Kt.startTransition=function(z){var F=H.transition;H.transition={};try{z()}finally{H.transition=F}},Kt.unstable_act=q,Kt.useCallback=function(z,F){return V.current.useCallback(z,F)},Kt.useContext=function(z){return V.current.useContext(z)},Kt.useDebugValue=function(){},Kt.useDeferredValue=function(z){return V.current.useDeferredValue(z)},Kt.useEffect=function(z,F){return V.current.useEffect(z,F)},Kt.useId=function(){return V.current.useId()},Kt.useImperativeHandle=function(z,F,Y){return V.current.useImperativeHandle(z,F,Y)},Kt.useInsertionEffect=function(z,F){return V.current.useInsertionEffect(z,F)},Kt.useLayoutEffect=function(z,F){return V.current.useLayoutEffect(z,F)},Kt.useMemo=function(z,F){return V.current.useMemo(z,F)},Kt.useReducer=function(z,F,Y){return V.current.useReducer(z,F,Y)},Kt.useRef=function(z){return V.current.useRef(z)},Kt.useState=function(z){return V.current.useState(z)},Kt.useSyncExternalStore=function(z,F,Y){return V.current.useSyncExternalStore(z,F,Y)},Kt.useTransition=function(){return V.current.useTransition()},Kt.version="18.3.1",Kt}var gy;function Hg(){return gy||(gy=1,Nm.exports=jE()),Nm.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 hy;function zE(){if(hy)return us;hy=1;var e=Hg(),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={},v=null,y=null;m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+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:v,ref:y,props:g,_owner:o.current}}return us.Fragment=n,us.jsx=s,us.jsxs=s,us}var vy;function LE(){return vy||(vy=1,Pm.exports=zE()),Pm.exports}var L=LE(),u=Hg();const J=Gs(u),gd=AC({__proto__:null,default:J},[u]);var cu={},km={exports:{}},Wr={},Mm={exports:{}},jm={};/**
|
|
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 yy;function AE(){return yy||(yy=1,(function(e){function t(H,Q){var q=H.length;H.push(Q);e:for(;0<q;){var z=q-1>>>1,F=H[z];if(0<o(F,Q))H[z]=Q,H[q]=F,q=z;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Q=H[0],q=H.pop();if(q!==Q){H[0]=q;e:for(var z=0,F=H.length,Y=F>>>1;z<Y;){var ne=2*(z+1)-1,te=H[ne],re=ne+1,fe=H[re];if(0>o(te,q))re<F&&0>o(fe,te)?(H[z]=fe,H[re]=q,z=re):(H[z]=te,H[ne]=q,z=ne);else if(re<F&&0>o(fe,q))H[z]=fe,H[re]=q,z=re;else break e}}return Q}function o(H,Q){var q=H.sortIndex-Q.sortIndex;return q!==0?q:H.id-Q.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,v=3,y=!1,S=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,$=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(H){for(var Q=n(m);Q!==null;){if(Q.callback===null)r(m);else if(Q.startTime<=H)r(m),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=n(m)}}function O(H){if(C=!1,R(H),!S)if(n(d)!==null)S=!0,W(_);else{var Q=n(m);Q!==null&&V(O,Q.startTime-H)}}function _(H,Q){S=!1,C&&(C=!1,w(N),N=-1),y=!0;var q=v;try{for(R(Q),g=n(d);g!==null&&(!(g.expirationTime>Q)||H&&!A());){var z=g.callback;if(typeof z=="function"){g.callback=null,v=g.priorityLevel;var F=z(g.expirationTime<=Q);Q=e.unstable_now(),typeof F=="function"?g.callback=F:g===n(d)&&r(d),R(Q)}else r(d);g=n(d)}if(g!==null)var Y=!0;else{var ne=n(m);ne!==null&&V(O,ne.startTime-Q),Y=!1}return Y}finally{g=null,v=q,y=!1}}var I=!1,T=null,N=-1,P=5,k=-1;function A(){return!(e.unstable_now()-k<P)}function M(){if(T!==null){var H=e.unstable_now();k=H;var Q=!0;try{Q=T(!0,H)}finally{Q?D():(I=!1,T=null)}}else I=!1}var D;if(typeof $=="function")D=function(){$(M)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,U=B.port2;B.port1.onmessage=M,D=function(){U.postMessage(null)}}else D=function(){b(M,0)};function W(H){T=H,I||(I=!0,D())}function V(H,Q){N=b(function(){H(e.unstable_now())},Q)}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(H){H.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,W(_))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(H){switch(v){case 1:case 2:case 3:var Q=3;break;default:Q=v}var q=v;v=Q;try{return H()}finally{v=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,Q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var q=v;v=H;try{return Q()}finally{v=q}},e.unstable_scheduleCallback=function(H,Q,q){var z=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?z+q:z):q=z,H){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=q+F,H={id:p++,callback:Q,priorityLevel:H,startTime:q,expirationTime:F,sortIndex:-1},q>z?(H.sortIndex=q,t(m,H),n(d)===null&&H===n(m)&&(C?(w(N),N=-1):C=!0,V(O,q-z))):(H.sortIndex=F,t(d,H),S||y||(S=!0,W(_))),H},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(H){var Q=v;return function(){var q=v;v=Q;try{return H.apply(this,arguments)}finally{v=q}}}})(jm)),jm}var by;function BE(){return by||(by=1,Mm.exports=AE()),Mm.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 Cy;function DE(){if(Cy)return Wr;Cy=1;var e=Hg(),t=BE();function n(i){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+i,f=1;f<arguments.length;f++)a+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+i+"; visit "+a+" 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(i,a){s(i,a),s(i+"Capture",a)}function s(i,a){for(o[i]=a,i=0;i<a.length;i++)r.add(a[i])}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 v(i){return d.call(g,i)?!0:d.call(p,i)?!1:m.test(i)?g[i]=!0:(p[i]=!0,!1)}function y(i,a,f,h){if(f!==null&&f.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return h?!1:f!==null?!f.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function S(i,a,f,h){if(a===null||typeof a>"u"||y(i,a,f,h))return!0;if(h)return!1;if(f!==null)switch(f.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function C(i,a,f,h,x,E,j){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=h,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=i,this.type=a,this.sanitizeURL=E,this.removeEmptyString=j}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){b[i]=new C(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0];b[a]=new C(a,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){b[i]=new C(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){b[i]=new C(i,2,!1,i,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(i){b[i]=new C(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){b[i]=new C(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){b[i]=new C(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){b[i]=new C(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){b[i]=new C(i,5,!1,i.toLowerCase(),null,!1,!1)});var w=/[\-:]([a-z])/g;function $(i){return i[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(i){var a=i.replace(w,$);b[a]=new C(a,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var a=i.replace(w,$);b[a]=new C(a,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(w,$);b[a]=new C(a,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){b[i]=new C(i,1,!1,i.toLowerCase(),null,!1,!1)}),b.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){b[i]=new C(i,1,!1,i.toLowerCase(),null,!0,!0)});function R(i,a,f,h){var x=b.hasOwnProperty(a)?b[a]:null;(x!==null?x.type!==0:h||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(S(a,f,x,h)&&(f=null),h||x===null?v(a)&&(f===null?i.removeAttribute(a):i.setAttribute(a,""+f)):x.mustUseProperty?i[x.propertyName]=f===null?x.type===3?!1:"":f:(a=x.attributeName,h=x.attributeNamespace,f===null?i.removeAttribute(a):(x=x.type,f=x===3||x===4&&f===!0?"":""+f,h?i.setAttributeNS(h,a,f):i.setAttribute(a,f))))}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),I=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),A=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),H=Symbol.iterator;function Q(i){return i===null||typeof i!="object"?null:(i=H&&i[H]||i["@@iterator"],typeof i=="function"?i:null)}var q=Object.assign,z;function F(i){if(z===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);z=a&&a[1]||""}return`
|
|
34
|
+
`+z+i}var Y=!1;function ne(i,a){if(!i||Y)return"";Y=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(be){var h=be}Reflect.construct(i,[],a)}else{try{a.call()}catch(be){h=be}i.call(a.prototype)}else{try{throw Error()}catch(be){h=be}i()}}catch(be){if(be&&h&&typeof be.stack=="string"){for(var x=be.stack.split(`
|
|
35
|
+
`),E=h.stack.split(`
|
|
36
|
+
`),j=x.length-1,X=E.length-1;1<=j&&0<=X&&x[j]!==E[X];)X--;for(;1<=j&&0<=X;j--,X--)if(x[j]!==E[X]){if(j!==1||X!==1)do if(j--,X--,0>X||x[j]!==E[X]){var oe=`
|
|
37
|
+
`+x[j].replace(" at new "," at ");return i.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",i.displayName)),oe}while(1<=j&&0<=X);break}}}finally{Y=!1,Error.prepareStackTrace=f}return(i=i?i.displayName||i.name:"")?F(i):""}function te(i){switch(i.tag){case 5:return F(i.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return i=ne(i.type,!1),i;case 11:return i=ne(i.type.render,!1),i;case 1:return i=ne(i.type,!0),i;default:return""}}function re(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case T:return"Fragment";case I:return"Portal";case P:return"Profiler";case N:return"StrictMode";case D:return"Suspense";case B:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case A:return(i.displayName||"Context")+".Consumer";case k:return(i._context.displayName||"Context")+".Provider";case M:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case U:return a=i.displayName||null,a!==null?a:re(i.type)||"Memo";case W:a=i._payload,i=i._init;try{return re(i(a))}catch{}}return null}function fe(i){var a=i.type;switch(i.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=a.render,i=i.displayName||i.name||"",a.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(a);case 8:return a===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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function me(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function ue(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ce(i){var a=ue(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),h=""+i[a];if(!i.hasOwnProperty(a)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var x=f.get,E=f.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return x.call(this)},set:function(j){h=""+j,E.call(this,j)}}),Object.defineProperty(i,a,{enumerable:f.enumerable}),{getValue:function(){return h},setValue:function(j){h=""+j},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function le(i){i._valueTracker||(i._valueTracker=Ce(i))}function ce(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var f=a.getValue(),h="";return i&&(h=ue(i)?i.checked?"true":"false":i.value),i=h,i!==f?(a.setValue(i),!0):!1}function he(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function ye(i,a){var f=a.checked;return q({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??i._wrapperState.initialChecked})}function de(i,a){var f=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;f=me(a.value!=null?a.value:f),i._wrapperState={initialChecked:h,initialValue:f,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function se(i,a){a=a.checked,a!=null&&R(i,"checked",a,!1)}function ve(i,a){se(i,a);var f=me(a.value),h=a.type;if(f!=null)h==="number"?(f===0&&i.value===""||i.value!=f)&&(i.value=""+f):i.value!==""+f&&(i.value=""+f);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}a.hasOwnProperty("value")?Oe(i,a.type,f):a.hasOwnProperty("defaultValue")&&Oe(i,a.type,me(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(i.defaultChecked=!!a.defaultChecked)}function Se(i,a,f){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+i._wrapperState.initialValue,f||a===i.value||(i.value=a),i.defaultValue=a}f=i.name,f!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,f!==""&&(i.name=f)}function Oe(i,a,f){(a!=="number"||he(i.ownerDocument)!==i)&&(f==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+f&&(i.defaultValue=""+f))}var Ne=Array.isArray;function we(i,a,f,h){if(i=i.options,a){a={};for(var x=0;x<f.length;x++)a["$"+f[x]]=!0;for(f=0;f<i.length;f++)x=a.hasOwnProperty("$"+i[f].value),i[f].selected!==x&&(i[f].selected=x),x&&h&&(i[f].defaultSelected=!0)}else{for(f=""+me(f),a=null,x=0;x<i.length;x++){if(i[x].value===f){i[x].selected=!0,h&&(i[x].defaultSelected=!0);return}a!==null||i[x].disabled||(a=i[x])}a!==null&&(a.selected=!0)}}function $e(i,a){if(a.dangerouslySetInnerHTML!=null)throw Error(n(91));return q({},a,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function ke(i,a){var f=a.value;if(f==null){if(f=a.children,a=a.defaultValue,f!=null){if(a!=null)throw Error(n(92));if(Ne(f)){if(1<f.length)throw Error(n(93));f=f[0]}a=f}a==null&&(a=""),f=a}i._wrapperState={initialValue:me(f)}}function Ie(i,a){var f=me(a.value),h=me(a.defaultValue);f!=null&&(f=""+f,f!==i.value&&(i.value=f),a.defaultValue==null&&i.defaultValue!==f&&(i.defaultValue=f)),h!=null&&(i.defaultValue=""+h)}function Ge(i){var a=i.textContent;a===i._wrapperState.initialValue&&a!==""&&a!==null&&(i.value=a)}function tt(i){switch(i){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 St(i,a){return i==null||i==="http://www.w3.org/1999/xhtml"?tt(a):i==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var ut,Ue=(function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,f,h,x){MSApp.execUnsafeLocalFunction(function(){return i(a,f,h,x)})}:i})(function(i,a){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=a;else{for(ut=ut||document.createElement("div"),ut.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=ut.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;a.firstChild;)i.appendChild(a.firstChild)}});function st(i,a){if(a){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=a;return}}i.textContent=a}var We={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mt=["Webkit","ms","Moz","O"];Object.keys(We).forEach(function(i){mt.forEach(function(a){a=a+i.charAt(0).toUpperCase()+i.substring(1),We[a]=We[i]})});function Ye(i,a,f){return a==null||typeof a=="boolean"||a===""?"":f||typeof a!="number"||a===0||We.hasOwnProperty(i)&&We[i]?(""+a).trim():a+"px"}function je(i,a){i=i.style;for(var f in a)if(a.hasOwnProperty(f)){var h=f.indexOf("--")===0,x=Ye(f,a[f],h);f==="float"&&(f="cssFloat"),h?i.setProperty(f,x):i[f]=x}}var Je=q({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 Pe(i,a){if(a){if(Je[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(n(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(n(61))}if(a.style!=null&&typeof a.style!="object")throw Error(n(62))}}function He(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){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 Rt=null;function ht(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Gt=null,qt=null,dn=null;function Sn(i){if(i=Xl(i)){if(typeof Gt!="function")throw Error(n(280));var a=i.stateNode;a&&(a=$c(a),Gt(i.stateNode,i.type,a))}}function Yt(i){qt?dn?dn.push(i):dn=[i]:qt=i}function jt(){if(qt){var i=qt,a=dn;if(dn=qt=null,Sn(i),a)for(i=0;i<a.length;i++)Sn(a[i])}}function xt(i,a){return i(a)}function Qt(){}var Vt=!1;function Ze(i,a,f){if(Vt)return i(a,f);Vt=!0;try{return xt(i,a,f)}finally{Vt=!1,(qt!==null||dn!==null)&&(Qt(),jt())}}function Ct(i,a){var f=i.stateNode;if(f===null)return null;var h=$c(f);if(h===null)return null;f=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(n(231,a,typeof f));return f}var ct=!1;if(c)try{var _e={};Object.defineProperty(_e,"passive",{get:function(){ct=!0}}),window.addEventListener("test",_e,_e),window.removeEventListener("test",_e,_e)}catch{ct=!1}function Ee(i,a,f,h,x,E,j,X,oe){var be=Array.prototype.slice.call(arguments,3);try{a.apply(f,be)}catch(Me){this.onError(Me)}}var xe=!1,ze=null,Xe=!1,Qe=null,zt={onError:function(i){xe=!0,ze=i}};function Ht(i,a,f,h,x,E,j,X,oe){xe=!1,ze=null,Ee.apply(zt,arguments)}function Tt(i,a,f,h,x,E,j,X,oe){if(Ht.apply(this,arguments),xe){if(xe){var be=ze;xe=!1,ze=null}else throw Error(n(198));Xe||(Xe=!0,Qe=be)}}function Pt(i){var a=i,f=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(f=a.return),i=a.return;while(i)}return a.tag===3?f:null}function bn(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function hn(i){if(Pt(i)!==i)throw Error(n(188))}function xn(i){var a=i.alternate;if(!a){if(a=Pt(i),a===null)throw Error(n(188));return a!==i?null:i}for(var f=i,h=a;;){var x=f.return;if(x===null)break;var E=x.alternate;if(E===null){if(h=x.return,h!==null){f=h;continue}break}if(x.child===E.child){for(E=x.child;E;){if(E===f)return hn(x),i;if(E===h)return hn(x),a;E=E.sibling}throw Error(n(188))}if(f.return!==h.return)f=x,h=E;else{for(var j=!1,X=x.child;X;){if(X===f){j=!0,f=x,h=E;break}if(X===h){j=!0,h=x,f=E;break}X=X.sibling}if(!j){for(X=E.child;X;){if(X===f){j=!0,f=E,h=x;break}if(X===h){j=!0,h=E,f=x;break}X=X.sibling}if(!j)throw Error(n(189))}}if(f.alternate!==h)throw Error(n(190))}if(f.tag!==3)throw Error(n(188));return f.stateNode.current===f?i:a}function Tn(i){return i=xn(i),i!==null?Zt(i):null}function Zt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var a=Zt(i);if(a!==null)return a;i=i.sibling}return null}var on=t.unstable_scheduleCallback,Le=t.unstable_cancelCallback,qe=t.unstable_shouldYield,$t=t.unstable_requestPaint,dt=t.unstable_now,nt=t.unstable_getCurrentPriorityLevel,Ke=t.unstable_ImmediatePriority,wt=t.unstable_UserBlockingPriority,Ft=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,ft=t.unstable_IdlePriority,Ot=null,ln=null;function Vn(i){if(ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(Ot,i,void 0,(i.current.flags&128)===128)}catch{}}var On=Math.clz32?Math.clz32:vr,hr=Math.log,Jn=Math.LN2;function vr(i){return i>>>=0,i===0?32:31-(hr(i)/Jn|0)|0}var Zn=64,dr=4194304;function yr(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function tn(i,a){var f=i.pendingLanes;if(f===0)return 0;var h=0,x=i.suspendedLanes,E=i.pingedLanes,j=f&268435455;if(j!==0){var X=j&~x;X!==0?h=yr(X):(E&=j,E!==0&&(h=yr(E)))}else j=f&~x,j!==0?h=yr(j):E!==0&&(h=yr(E));if(h===0)return 0;if(a!==0&&a!==h&&(a&x)===0&&(x=h&-h,E=a&-a,x>=E||x===16&&(E&4194240)!==0))return a;if((h&4)!==0&&(h|=f&16),a=i.entangledLanes,a!==0)for(i=i.entanglements,a&=h;0<a;)f=31-On(a),x=1<<f,h|=i[f],a&=~x;return h}function ot(i,a){switch(i){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(i,a){for(var f=i.suspendedLanes,h=i.pingedLanes,x=i.expirationTimes,E=i.pendingLanes;0<E;){var j=31-On(E),X=1<<j,oe=x[j];oe===-1?((X&f)===0||(X&h)!==0)&&(x[j]=ot(X,a)):oe<=a&&(i.expiredLanes|=X),E&=~X}}function Jt(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function nn(){var i=Zn;return Zn<<=1,(Zn&4194240)===0&&(Zn=64),i}function fn(i){for(var a=[],f=0;31>f;f++)a.push(i);return a}function gn(i,a,f){i.pendingLanes|=a,a!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,a=31-On(a),i[a]=f}function fr(i,a){var f=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a,a=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0<f;){var x=31-On(f),E=1<<x;a[x]=0,h[x]=-1,i[x]=-1,f&=~E}}function Wn(i,a){var f=i.entangledLanes|=a;for(i=i.entanglements;f;){var h=31-On(f),x=1<<h;x&a|i[h]&a&&(i[h]|=a),f&=~x}}var Dt=0;function er(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var or,Lr,ir,hi,wa,$a=!1,Zo=[],jn=null,br=null,_r=null,Ar=new Map,io=new Map,Gr=[],Ea="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 Ra(i,a){switch(i){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":br=null;break;case"mouseover":case"mouseout":_r=null;break;case"pointerover":case"pointerout":Ar.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":io.delete(a.pointerId)}}function it(i,a,f,h,x,E){return i===null||i.nativeEvent!==E?(i={blockedOn:a,domEventName:f,eventSystemFlags:h,nativeEvent:E,targetContainers:[x]},a!==null&&(a=Xl(a),a!==null&&Lr(a)),i):(i.eventSystemFlags|=h,a=i.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),i)}function Nt(i,a,f,h,x){switch(a){case"focusin":return jn=it(jn,i,a,f,h,x),!0;case"dragenter":return br=it(br,i,a,f,h,x),!0;case"mouseover":return _r=it(_r,i,a,f,h,x),!0;case"pointerover":var E=x.pointerId;return Ar.set(E,it(Ar.get(E)||null,i,a,f,h,x)),!0;case"gotpointercapture":return E=x.pointerId,io.set(E,it(io.get(E)||null,i,a,f,h,x)),!0}return!1}function En(i){var a=Ki(i.target);if(a!==null){var f=Pt(a);if(f!==null){if(a=f.tag,a===13){if(a=bn(f),a!==null){i.blockedOn=a,wa(i.priority,function(){ir(f)});return}}else if(a===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function In(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var f=rf(i.domEventName,i.eventSystemFlags,a[0],i.nativeEvent);if(f===null){f=i.nativeEvent;var h=new f.constructor(f.type,f);Rt=h,f.target.dispatchEvent(h),Rt=null}else return a=Xl(f),a!==null&&Lr(a),i.blockedOn=f,!1;a.shift()}return!0}function Rn(i,a,f){In(i)&&f.delete(a)}function Oa(){$a=!1,jn!==null&&In(jn)&&(jn=null),br!==null&&In(br)&&(br=null),_r!==null&&In(_r)&&(_r=null),Ar.forEach(Rn),io.forEach(Rn)}function ei(i,a){i.blockedOn===a&&(i.blockedOn=null,$a||($a=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Oa)))}function vi(i){function a(x){return ei(x,i)}if(0<Zo.length){ei(Zo[0],i);for(var f=1;f<Zo.length;f++){var h=Zo[f];h.blockedOn===i&&(h.blockedOn=null)}}for(jn!==null&&ei(jn,i),br!==null&&ei(br,i),_r!==null&&ei(_r,i),Ar.forEach(a),io.forEach(a),f=0;f<Gr.length;f++)h=Gr[f],h.blockedOn===i&&(h.blockedOn=null);for(;0<Gr.length&&(f=Gr[0],f.blockedOn===null);)En(f),f.blockedOn===null&&Gr.shift()}var wo=O.ReactCurrentBatchConfig,dc=!0;function o$(i,a,f,h){var x=Dt,E=wo.transition;wo.transition=null;try{Dt=1,nf(i,a,f,h)}finally{Dt=x,wo.transition=E}}function i$(i,a,f,h){var x=Dt,E=wo.transition;wo.transition=null;try{Dt=4,nf(i,a,f,h)}finally{Dt=x,wo.transition=E}}function nf(i,a,f,h){if(dc){var x=rf(i,a,f,h);if(x===null)Sf(i,a,h,fc,f),Ra(i,h);else if(Nt(x,i,a,f,h))h.stopPropagation();else if(Ra(i,h),a&4&&-1<Ea.indexOf(i)){for(;x!==null;){var E=Xl(x);if(E!==null&&or(E),E=rf(i,a,f,h),E===null&&Sf(i,a,h,fc,f),E===x)break;x=E}x!==null&&h.stopPropagation()}else Sf(i,a,h,null,f)}}var fc=null;function rf(i,a,f,h){if(fc=null,i=ht(h),i=Ki(i),i!==null)if(a=Pt(i),a===null)i=null;else if(f=a.tag,f===13){if(i=bn(a),i!==null)return i;i=null}else if(f===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null);return fc=i,null}function ev(i){switch(i){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(nt()){case Ke:return 1;case wt:return 4;case Ft:case Fe:return 16;case ft:return 536870912;default:return 16}default:return 16}}var yi=null,of=null,mc=null;function tv(){if(mc)return mc;var i,a=of,f=a.length,h,x="value"in yi?yi.value:yi.textContent,E=x.length;for(i=0;i<f&&a[i]===x[i];i++);var j=f-i;for(h=1;h<=j&&a[f-h]===x[E-h];h++);return mc=x.slice(i,1<h?1-h:void 0)}function pc(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function gc(){return!0}function nv(){return!1}function Kr(i){function a(f,h,x,E,j){this._reactName=f,this._targetInst=x,this.type=h,this.nativeEvent=E,this.target=j,this.currentTarget=null;for(var X in i)i.hasOwnProperty(X)&&(f=i[X],this[X]=f?f(E):E[X]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?gc:nv,this.isPropagationStopped=nv,this}return q(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=gc)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=gc)},persist:function(){},isPersistent:gc}),a}var Ia={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},af=Kr(Ia),Al=q({},Ia,{view:0,detail:0}),a$=Kr(Al),lf,sf,Bl,hc=q({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uf,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Bl&&(Bl&&i.type==="mousemove"?(lf=i.screenX-Bl.screenX,sf=i.screenY-Bl.screenY):sf=lf=0,Bl=i),lf)},movementY:function(i){return"movementY"in i?i.movementY:sf}}),rv=Kr(hc),l$=q({},hc,{dataTransfer:0}),s$=Kr(l$),c$=q({},Al,{relatedTarget:0}),cf=Kr(c$),u$=q({},Ia,{animationName:0,elapsedTime:0,pseudoElement:0}),d$=Kr(u$),f$=q({},Ia,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),m$=Kr(f$),p$=q({},Ia,{data:0}),ov=Kr(p$),g$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h$={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"},v$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y$(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=v$[i])?!!a[i]:!1}function uf(){return y$}var b$=q({},Al,{key:function(i){if(i.key){var a=g$[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=pc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?h$[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uf,charCode:function(i){return i.type==="keypress"?pc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?pc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),C$=Kr(b$),S$=q({},hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iv=Kr(S$),x$=q({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uf}),w$=Kr(x$),$$=q({},Ia,{propertyName:0,elapsedTime:0,pseudoElement:0}),E$=Kr($$),R$=q({},hc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),O$=Kr(R$),I$=[9,13,27,32],df=c&&"CompositionEvent"in window,Dl=null;c&&"documentMode"in document&&(Dl=document.documentMode);var _$=c&&"TextEvent"in window&&!Dl,av=c&&(!df||Dl&&8<Dl&&11>=Dl),lv=" ",sv=!1;function cv(i,a){switch(i){case"keyup":return I$.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uv(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var _a=!1;function T$(i,a){switch(i){case"compositionend":return uv(a);case"keypress":return a.which!==32?null:(sv=!0,lv);case"textInput":return i=a.data,i===lv&&sv?null:i;default:return null}}function P$(i,a){if(_a)return i==="compositionend"||!df&&cv(i,a)?(i=tv(),mc=of=yi=null,_a=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return av&&a.locale!=="ko"?null:a.data;default:return null}}var N$={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 dv(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!N$[i.type]:a==="textarea"}function fv(i,a,f,h){Yt(h),a=Sc(a,"onChange"),0<a.length&&(f=new af("onChange","change",null,f,h),i.push({event:f,listeners:a}))}var Hl=null,Fl=null;function k$(i){Tv(i,0)}function vc(i){var a=Ma(i);if(ce(a))return i}function M$(i,a){if(i==="change")return a}var mv=!1;if(c){var ff;if(c){var mf="oninput"in document;if(!mf){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),mf=typeof pv.oninput=="function"}ff=mf}else ff=!1;mv=ff&&(!document.documentMode||9<document.documentMode)}function gv(){Hl&&(Hl.detachEvent("onpropertychange",hv),Fl=Hl=null)}function hv(i){if(i.propertyName==="value"&&vc(Fl)){var a=[];fv(a,Fl,i,ht(i)),Ze(k$,a)}}function j$(i,a,f){i==="focusin"?(gv(),Hl=a,Fl=f,Hl.attachEvent("onpropertychange",hv)):i==="focusout"&&gv()}function z$(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return vc(Fl)}function L$(i,a){if(i==="click")return vc(a)}function A$(i,a){if(i==="input"||i==="change")return vc(a)}function B$(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var $o=typeof Object.is=="function"?Object.is:B$;function Vl(i,a){if($o(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var f=Object.keys(i),h=Object.keys(a);if(f.length!==h.length)return!1;for(h=0;h<f.length;h++){var x=f[h];if(!d.call(a,x)||!$o(i[x],a[x]))return!1}return!0}function vv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function yv(i,a){var f=vv(i);i=0;for(var h;f;){if(f.nodeType===3){if(h=i+f.textContent.length,i<=a&&h>=a)return{node:f,offset:a-i};i=h}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=vv(f)}}function bv(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?bv(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Cv(){for(var i=window,a=he();a instanceof i.HTMLIFrameElement;){try{var f=typeof a.contentWindow.location.href=="string"}catch{f=!1}if(f)i=a.contentWindow;else break;a=he(i.document)}return a}function pf(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function D$(i){var a=Cv(),f=i.focusedElem,h=i.selectionRange;if(a!==f&&f&&f.ownerDocument&&bv(f.ownerDocument.documentElement,f)){if(h!==null&&pf(f)){if(a=h.start,i=h.end,i===void 0&&(i=a),"selectionStart"in f)f.selectionStart=a,f.selectionEnd=Math.min(i,f.value.length);else if(i=(a=f.ownerDocument||document)&&a.defaultView||window,i.getSelection){i=i.getSelection();var x=f.textContent.length,E=Math.min(h.start,x);h=h.end===void 0?E:Math.min(h.end,x),!i.extend&&E>h&&(x=h,h=E,E=x),x=yv(f,E);var j=yv(f,h);x&&j&&(i.rangeCount!==1||i.anchorNode!==x.node||i.anchorOffset!==x.offset||i.focusNode!==j.node||i.focusOffset!==j.offset)&&(a=a.createRange(),a.setStart(x.node,x.offset),i.removeAllRanges(),E>h?(i.addRange(a),i.extend(j.node,j.offset)):(a.setEnd(j.node,j.offset),i.addRange(a)))}}for(a=[],i=f;i=i.parentNode;)i.nodeType===1&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<a.length;f++)i=a[f],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var H$=c&&"documentMode"in document&&11>=document.documentMode,Ta=null,gf=null,Wl=null,hf=!1;function Sv(i,a,f){var h=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;hf||Ta==null||Ta!==he(h)||(h=Ta,"selectionStart"in h&&pf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Wl&&Vl(Wl,h)||(Wl=h,h=Sc(gf,"onSelect"),0<h.length&&(a=new af("onSelect","select",null,a,f),i.push({event:a,listeners:h}),a.target=Ta)))}function yc(i,a){var f={};return f[i.toLowerCase()]=a.toLowerCase(),f["Webkit"+i]="webkit"+a,f["Moz"+i]="moz"+a,f}var Pa={animationend:yc("Animation","AnimationEnd"),animationiteration:yc("Animation","AnimationIteration"),animationstart:yc("Animation","AnimationStart"),transitionend:yc("Transition","TransitionEnd")},vf={},xv={};c&&(xv=document.createElement("div").style,"AnimationEvent"in window||(delete Pa.animationend.animation,delete Pa.animationiteration.animation,delete Pa.animationstart.animation),"TransitionEvent"in window||delete Pa.transitionend.transition);function bc(i){if(vf[i])return vf[i];if(!Pa[i])return i;var a=Pa[i],f;for(f in a)if(a.hasOwnProperty(f)&&f in xv)return vf[i]=a[f];return i}var wv=bc("animationend"),$v=bc("animationiteration"),Ev=bc("animationstart"),Rv=bc("transitionend"),Ov=new Map,Iv="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 bi(i,a){Ov.set(i,a),l(a,[i])}for(var yf=0;yf<Iv.length;yf++){var bf=Iv[yf],F$=bf.toLowerCase(),V$=bf[0].toUpperCase()+bf.slice(1);bi(F$,"on"+V$)}bi(wv,"onAnimationEnd"),bi($v,"onAnimationIteration"),bi(Ev,"onAnimationStart"),bi("dblclick","onDoubleClick"),bi("focusin","onFocus"),bi("focusout","onBlur"),bi(Rv,"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 ql="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(" "),W$=new Set("cancel close invalid load scroll toggle".split(" ").concat(ql));function _v(i,a,f){var h=i.type||"unknown-event";i.currentTarget=f,Tt(h,a,void 0,i),i.currentTarget=null}function Tv(i,a){a=(a&4)!==0;for(var f=0;f<i.length;f++){var h=i[f],x=h.event;h=h.listeners;e:{var E=void 0;if(a)for(var j=h.length-1;0<=j;j--){var X=h[j],oe=X.instance,be=X.currentTarget;if(X=X.listener,oe!==E&&x.isPropagationStopped())break e;_v(x,X,be),E=oe}else for(j=0;j<h.length;j++){if(X=h[j],oe=X.instance,be=X.currentTarget,X=X.listener,oe!==E&&x.isPropagationStopped())break e;_v(x,X,be),E=oe}}}if(Xe)throw i=Qe,Xe=!1,Qe=null,i}function Pn(i,a){var f=a[Of];f===void 0&&(f=a[Of]=new Set);var h=i+"__bubble";f.has(h)||(Pv(a,i,2,!1),f.add(h))}function Cf(i,a,f){var h=0;a&&(h|=4),Pv(f,i,h,a)}var Cc="_reactListening"+Math.random().toString(36).slice(2);function Ul(i){if(!i[Cc]){i[Cc]=!0,r.forEach(function(f){f!=="selectionchange"&&(W$.has(f)||Cf(f,!1,i),Cf(f,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Cc]||(a[Cc]=!0,Cf("selectionchange",!1,a))}}function Pv(i,a,f,h){switch(ev(a)){case 1:var x=o$;break;case 4:x=i$;break;default:x=nf}f=x.bind(null,a,f,i),x=void 0,!ct||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),h?x!==void 0?i.addEventListener(a,f,{capture:!0,passive:x}):i.addEventListener(a,f,!0):x!==void 0?i.addEventListener(a,f,{passive:x}):i.addEventListener(a,f,!1)}function Sf(i,a,f,h,x){var E=h;if((a&1)===0&&(a&2)===0&&h!==null)e:for(;;){if(h===null)return;var j=h.tag;if(j===3||j===4){var X=h.stateNode.containerInfo;if(X===x||X.nodeType===8&&X.parentNode===x)break;if(j===4)for(j=h.return;j!==null;){var oe=j.tag;if((oe===3||oe===4)&&(oe=j.stateNode.containerInfo,oe===x||oe.nodeType===8&&oe.parentNode===x))return;j=j.return}for(;X!==null;){if(j=Ki(X),j===null)return;if(oe=j.tag,oe===5||oe===6){h=E=j;continue e}X=X.parentNode}}h=h.return}Ze(function(){var be=E,Me=ht(f),Ae=[];e:{var Te=Ov.get(i);if(Te!==void 0){var at=af,vt=i;switch(i){case"keypress":if(pc(f)===0)break e;case"keydown":case"keyup":at=C$;break;case"focusin":vt="focus",at=cf;break;case"focusout":vt="blur",at=cf;break;case"beforeblur":case"afterblur":at=cf;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":at=rv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":at=s$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":at=w$;break;case wv:case $v:case Ev:at=d$;break;case Rv:at=E$;break;case"scroll":at=a$;break;case"wheel":at=O$;break;case"copy":case"cut":case"paste":at=m$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":at=iv}var yt=(a&4)!==0,qn=!yt&&i==="scroll",pe=yt?Te!==null?Te+"Capture":null:Te;yt=[];for(var ie=be,ge;ie!==null;){ge=ie;var De=ge.stateNode;if(ge.tag===5&&De!==null&&(ge=De,pe!==null&&(De=Ct(ie,pe),De!=null&&yt.push(Gl(ie,De,ge)))),qn)break;ie=ie.return}0<yt.length&&(Te=new at(Te,vt,null,f,Me),Ae.push({event:Te,listeners:yt}))}}if((a&7)===0){e:{if(Te=i==="mouseover"||i==="pointerover",at=i==="mouseout"||i==="pointerout",Te&&f!==Rt&&(vt=f.relatedTarget||f.fromElement)&&(Ki(vt)||vt[ti]))break e;if((at||Te)&&(Te=Me.window===Me?Me:(Te=Me.ownerDocument)?Te.defaultView||Te.parentWindow:window,at?(vt=f.relatedTarget||f.toElement,at=be,vt=vt?Ki(vt):null,vt!==null&&(qn=Pt(vt),vt!==qn||vt.tag!==5&&vt.tag!==6)&&(vt=null)):(at=null,vt=be),at!==vt)){if(yt=rv,De="onMouseLeave",pe="onMouseEnter",ie="mouse",(i==="pointerout"||i==="pointerover")&&(yt=iv,De="onPointerLeave",pe="onPointerEnter",ie="pointer"),qn=at==null?Te:Ma(at),ge=vt==null?Te:Ma(vt),Te=new yt(De,ie+"leave",at,f,Me),Te.target=qn,Te.relatedTarget=ge,De=null,Ki(Me)===be&&(yt=new yt(pe,ie+"enter",vt,f,Me),yt.target=ge,yt.relatedTarget=qn,De=yt),qn=De,at&&vt)t:{for(yt=at,pe=vt,ie=0,ge=yt;ge;ge=Na(ge))ie++;for(ge=0,De=pe;De;De=Na(De))ge++;for(;0<ie-ge;)yt=Na(yt),ie--;for(;0<ge-ie;)pe=Na(pe),ge--;for(;ie--;){if(yt===pe||pe!==null&&yt===pe.alternate)break t;yt=Na(yt),pe=Na(pe)}yt=null}else yt=null;at!==null&&Nv(Ae,Te,at,yt,!1),vt!==null&&qn!==null&&Nv(Ae,qn,vt,yt,!0)}}e:{if(Te=be?Ma(be):window,at=Te.nodeName&&Te.nodeName.toLowerCase(),at==="select"||at==="input"&&Te.type==="file")var bt=M$;else if(dv(Te))if(mv)bt=A$;else{bt=z$;var It=j$}else(at=Te.nodeName)&&at.toLowerCase()==="input"&&(Te.type==="checkbox"||Te.type==="radio")&&(bt=L$);if(bt&&(bt=bt(i,be))){fv(Ae,bt,f,Me);break e}It&&It(i,Te,be),i==="focusout"&&(It=Te._wrapperState)&&It.controlled&&Te.type==="number"&&Oe(Te,"number",Te.value)}switch(It=be?Ma(be):window,i){case"focusin":(dv(It)||It.contentEditable==="true")&&(Ta=It,gf=be,Wl=null);break;case"focusout":Wl=gf=Ta=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,Sv(Ae,f,Me);break;case"selectionchange":if(H$)break;case"keydown":case"keyup":Sv(Ae,f,Me)}var _t;if(df)e:{switch(i){case"compositionstart":var Lt="onCompositionStart";break e;case"compositionend":Lt="onCompositionEnd";break e;case"compositionupdate":Lt="onCompositionUpdate";break e}Lt=void 0}else _a?cv(i,f)&&(Lt="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Lt="onCompositionStart");Lt&&(av&&f.locale!=="ko"&&(_a||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&_a&&(_t=tv()):(yi=Me,of="value"in yi?yi.value:yi.textContent,_a=!0)),It=Sc(be,Lt),0<It.length&&(Lt=new ov(Lt,i,null,f,Me),Ae.push({event:Lt,listeners:It}),_t?Lt.data=_t:(_t=uv(f),_t!==null&&(Lt.data=_t)))),(_t=_$?T$(i,f):P$(i,f))&&(be=Sc(be,"onBeforeInput"),0<be.length&&(Me=new ov("onBeforeInput","beforeinput",null,f,Me),Ae.push({event:Me,listeners:be}),Me.data=_t))}Tv(Ae,a)})}function Gl(i,a,f){return{instance:i,listener:a,currentTarget:f}}function Sc(i,a){for(var f=a+"Capture",h=[];i!==null;){var x=i,E=x.stateNode;x.tag===5&&E!==null&&(x=E,E=Ct(i,f),E!=null&&h.unshift(Gl(i,E,x)),E=Ct(i,a),E!=null&&h.push(Gl(i,E,x))),i=i.return}return h}function Na(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Nv(i,a,f,h,x){for(var E=a._reactName,j=[];f!==null&&f!==h;){var X=f,oe=X.alternate,be=X.stateNode;if(oe!==null&&oe===h)break;X.tag===5&&be!==null&&(X=be,x?(oe=Ct(f,E),oe!=null&&j.unshift(Gl(f,oe,X))):x||(oe=Ct(f,E),oe!=null&&j.push(Gl(f,oe,X)))),f=f.return}j.length!==0&&i.push({event:a,listeners:j})}var q$=/\r\n?/g,U$=/\u0000|\uFFFD/g;function kv(i){return(typeof i=="string"?i:""+i).replace(q$,`
|
|
38
|
+
`).replace(U$,"")}function xc(i,a,f){if(a=kv(a),kv(i)!==a&&f)throw Error(n(425))}function wc(){}var xf=null,wf=null;function $f(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Ef=typeof setTimeout=="function"?setTimeout:void 0,G$=typeof clearTimeout=="function"?clearTimeout:void 0,Mv=typeof Promise=="function"?Promise:void 0,K$=typeof queueMicrotask=="function"?queueMicrotask:typeof Mv<"u"?function(i){return Mv.resolve(null).then(i).catch(X$)}:Ef;function X$(i){setTimeout(function(){throw i})}function Rf(i,a){var f=a,h=0;do{var x=f.nextSibling;if(i.removeChild(f),x&&x.nodeType===8)if(f=x.data,f==="/$"){if(h===0){i.removeChild(x),vi(a);return}h--}else f!=="$"&&f!=="$?"&&f!=="$!"||h++;f=x}while(f);vi(a)}function Ci(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return i}function jv(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(a===0)return i;a--}else f==="/$"&&a++}i=i.previousSibling}return null}var ka=Math.random().toString(36).slice(2),Bo="__reactFiber$"+ka,Kl="__reactProps$"+ka,ti="__reactContainer$"+ka,Of="__reactEvents$"+ka,Y$="__reactListeners$"+ka,Q$="__reactHandles$"+ka;function Ki(i){var a=i[Bo];if(a)return a;for(var f=i.parentNode;f;){if(a=f[ti]||f[Bo]){if(f=a.alternate,a.child!==null||f!==null&&f.child!==null)for(i=jv(i);i!==null;){if(f=i[Bo])return f;i=jv(i)}return a}i=f,f=i.parentNode}return null}function Xl(i){return i=i[Bo]||i[ti],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function Ma(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function $c(i){return i[Kl]||null}var If=[],ja=-1;function Si(i){return{current:i}}function Nn(i){0>ja||(i.current=If[ja],If[ja]=null,ja--)}function _n(i,a){ja++,If[ja]=i.current,i.current=a}var xi={},Cr=Si(xi),Br=Si(!1),Xi=xi;function za(i,a){var f=i.type.contextTypes;if(!f)return xi;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var x={},E;for(E in f)x[E]=a[E];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=a,i.__reactInternalMemoizedMaskedChildContext=x),x}function Dr(i){return i=i.childContextTypes,i!=null}function Ec(){Nn(Br),Nn(Cr)}function zv(i,a,f){if(Cr.current!==xi)throw Error(n(168));_n(Cr,a),_n(Br,f)}function Lv(i,a,f){var h=i.stateNode;if(a=a.childContextTypes,typeof h.getChildContext!="function")return f;h=h.getChildContext();for(var x in h)if(!(x in a))throw Error(n(108,fe(i)||"Unknown",x));return q({},f,h)}function Rc(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||xi,Xi=Cr.current,_n(Cr,i),_n(Br,Br.current),!0}function Av(i,a,f){var h=i.stateNode;if(!h)throw Error(n(169));f?(i=Lv(i,a,Xi),h.__reactInternalMemoizedMergedChildContext=i,Nn(Br),Nn(Cr),_n(Cr,i)):Nn(Br),_n(Br,f)}var ni=null,Oc=!1,_f=!1;function Bv(i){ni===null?ni=[i]:ni.push(i)}function J$(i){Oc=!0,Bv(i)}function wi(){if(!_f&&ni!==null){_f=!0;var i=0,a=Dt;try{var f=ni;for(Dt=1;i<f.length;i++){var h=f[i];do h=h(!0);while(h!==null)}ni=null,Oc=!1}catch(x){throw ni!==null&&(ni=ni.slice(i+1)),on(Ke,wi),x}finally{Dt=a,_f=!1}}return null}var La=[],Aa=0,Ic=null,_c=0,ao=[],lo=0,Yi=null,ri=1,oi="";function Qi(i,a){La[Aa++]=_c,La[Aa++]=Ic,Ic=i,_c=a}function Dv(i,a,f){ao[lo++]=ri,ao[lo++]=oi,ao[lo++]=Yi,Yi=i;var h=ri;i=oi;var x=32-On(h)-1;h&=~(1<<x),f+=1;var E=32-On(a)+x;if(30<E){var j=x-x%5;E=(h&(1<<j)-1).toString(32),h>>=j,x-=j,ri=1<<32-On(a)+x|f<<x|h,oi=E+i}else ri=1<<E|f<<x|h,oi=i}function Tf(i){i.return!==null&&(Qi(i,1),Dv(i,1,0))}function Pf(i){for(;i===Ic;)Ic=La[--Aa],La[Aa]=null,_c=La[--Aa],La[Aa]=null;for(;i===Yi;)Yi=ao[--lo],ao[lo]=null,oi=ao[--lo],ao[lo]=null,ri=ao[--lo],ao[lo]=null}var Xr=null,Yr=null,Mn=!1,Eo=null;function Hv(i,a){var f=fo(5,null,null,0);f.elementType="DELETED",f.stateNode=a,f.return=i,a=i.deletions,a===null?(i.deletions=[f],i.flags|=16):a.push(f)}function Fv(i,a){switch(i.tag){case 5:var f=i.type;return a=a.nodeType!==1||f.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(i.stateNode=a,Xr=i,Yr=Ci(a.firstChild),!0):!1;case 6:return a=i.pendingProps===""||a.nodeType!==3?null:a,a!==null?(i.stateNode=a,Xr=i,Yr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(f=Yi!==null?{id:ri,overflow:oi}:null,i.memoizedState={dehydrated:a,treeContext:f,retryLane:1073741824},f=fo(18,null,null,0),f.stateNode=a,f.return=i,i.child=f,Xr=i,Yr=null,!0):!1;default:return!1}}function Nf(i){return(i.mode&1)!==0&&(i.flags&128)===0}function kf(i){if(Mn){var a=Yr;if(a){var f=a;if(!Fv(i,a)){if(Nf(i))throw Error(n(418));a=Ci(f.nextSibling);var h=Xr;a&&Fv(i,a)?Hv(h,f):(i.flags=i.flags&-4097|2,Mn=!1,Xr=i)}}else{if(Nf(i))throw Error(n(418));i.flags=i.flags&-4097|2,Mn=!1,Xr=i}}}function Vv(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Xr=i}function Tc(i){if(i!==Xr)return!1;if(!Mn)return Vv(i),Mn=!0,!1;var a;if((a=i.tag!==3)&&!(a=i.tag!==5)&&(a=i.type,a=a!=="head"&&a!=="body"&&!$f(i.type,i.memoizedProps)),a&&(a=Yr)){if(Nf(i))throw Wv(),Error(n(418));for(;a;)Hv(i,a),a=Ci(a.nextSibling)}if(Vv(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8){var f=i.data;if(f==="/$"){if(a===0){Yr=Ci(i.nextSibling);break e}a--}else f!=="$"&&f!=="$!"&&f!=="$?"||a++}i=i.nextSibling}Yr=null}}else Yr=Xr?Ci(i.stateNode.nextSibling):null;return!0}function Wv(){for(var i=Yr;i;)i=Ci(i.nextSibling)}function Ba(){Yr=Xr=null,Mn=!1}function Mf(i){Eo===null?Eo=[i]:Eo.push(i)}var Z$=O.ReactCurrentBatchConfig;function Yl(i,a,f){if(i=f.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(n(309));var h=f.stateNode}if(!h)throw Error(n(147,i));var x=h,E=""+i;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===E?a.ref:(a=function(j){var X=x.refs;j===null?delete X[E]:X[E]=j},a._stringRef=E,a)}if(typeof i!="string")throw Error(n(284));if(!f._owner)throw Error(n(290,i))}return i}function Pc(i,a){throw i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i))}function qv(i){var a=i._init;return a(i._payload)}function Uv(i){function a(pe,ie){if(i){var ge=pe.deletions;ge===null?(pe.deletions=[ie],pe.flags|=16):ge.push(ie)}}function f(pe,ie){if(!i)return null;for(;ie!==null;)a(pe,ie),ie=ie.sibling;return null}function h(pe,ie){for(pe=new Map;ie!==null;)ie.key!==null?pe.set(ie.key,ie):pe.set(ie.index,ie),ie=ie.sibling;return pe}function x(pe,ie){return pe=Pi(pe,ie),pe.index=0,pe.sibling=null,pe}function E(pe,ie,ge){return pe.index=ge,i?(ge=pe.alternate,ge!==null?(ge=ge.index,ge<ie?(pe.flags|=2,ie):ge):(pe.flags|=2,ie)):(pe.flags|=1048576,ie)}function j(pe){return i&&pe.alternate===null&&(pe.flags|=2),pe}function X(pe,ie,ge,De){return ie===null||ie.tag!==6?(ie=Em(ge,pe.mode,De),ie.return=pe,ie):(ie=x(ie,ge),ie.return=pe,ie)}function oe(pe,ie,ge,De){var bt=ge.type;return bt===T?Me(pe,ie,ge.props.children,De,ge.key):ie!==null&&(ie.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===W&&qv(bt)===ie.type)?(De=x(ie,ge.props),De.ref=Yl(pe,ie,ge),De.return=pe,De):(De=tu(ge.type,ge.key,ge.props,null,pe.mode,De),De.ref=Yl(pe,ie,ge),De.return=pe,De)}function be(pe,ie,ge,De){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ge.containerInfo||ie.stateNode.implementation!==ge.implementation?(ie=Rm(ge,pe.mode,De),ie.return=pe,ie):(ie=x(ie,ge.children||[]),ie.return=pe,ie)}function Me(pe,ie,ge,De,bt){return ie===null||ie.tag!==7?(ie=ia(ge,pe.mode,De,bt),ie.return=pe,ie):(ie=x(ie,ge),ie.return=pe,ie)}function Ae(pe,ie,ge){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return ie=Em(""+ie,pe.mode,ge),ie.return=pe,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case _:return ge=tu(ie.type,ie.key,ie.props,null,pe.mode,ge),ge.ref=Yl(pe,null,ie),ge.return=pe,ge;case I:return ie=Rm(ie,pe.mode,ge),ie.return=pe,ie;case W:var De=ie._init;return Ae(pe,De(ie._payload),ge)}if(Ne(ie)||Q(ie))return ie=ia(ie,pe.mode,ge,null),ie.return=pe,ie;Pc(pe,ie)}return null}function Te(pe,ie,ge,De){var bt=ie!==null?ie.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return bt!==null?null:X(pe,ie,""+ge,De);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case _:return ge.key===bt?oe(pe,ie,ge,De):null;case I:return ge.key===bt?be(pe,ie,ge,De):null;case W:return bt=ge._init,Te(pe,ie,bt(ge._payload),De)}if(Ne(ge)||Q(ge))return bt!==null?null:Me(pe,ie,ge,De,null);Pc(pe,ge)}return null}function at(pe,ie,ge,De,bt){if(typeof De=="string"&&De!==""||typeof De=="number")return pe=pe.get(ge)||null,X(ie,pe,""+De,bt);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case _:return pe=pe.get(De.key===null?ge:De.key)||null,oe(ie,pe,De,bt);case I:return pe=pe.get(De.key===null?ge:De.key)||null,be(ie,pe,De,bt);case W:var It=De._init;return at(pe,ie,ge,It(De._payload),bt)}if(Ne(De)||Q(De))return pe=pe.get(ge)||null,Me(ie,pe,De,bt,null);Pc(ie,De)}return null}function vt(pe,ie,ge,De){for(var bt=null,It=null,_t=ie,Lt=ie=0,sr=null;_t!==null&&Lt<ge.length;Lt++){_t.index>Lt?(sr=_t,_t=null):sr=_t.sibling;var mn=Te(pe,_t,ge[Lt],De);if(mn===null){_t===null&&(_t=sr);break}i&&_t&&mn.alternate===null&&a(pe,_t),ie=E(mn,ie,Lt),It===null?bt=mn:It.sibling=mn,It=mn,_t=sr}if(Lt===ge.length)return f(pe,_t),Mn&&Qi(pe,Lt),bt;if(_t===null){for(;Lt<ge.length;Lt++)_t=Ae(pe,ge[Lt],De),_t!==null&&(ie=E(_t,ie,Lt),It===null?bt=_t:It.sibling=_t,It=_t);return Mn&&Qi(pe,Lt),bt}for(_t=h(pe,_t);Lt<ge.length;Lt++)sr=at(_t,pe,Lt,ge[Lt],De),sr!==null&&(i&&sr.alternate!==null&&_t.delete(sr.key===null?Lt:sr.key),ie=E(sr,ie,Lt),It===null?bt=sr:It.sibling=sr,It=sr);return i&&_t.forEach(function(Ni){return a(pe,Ni)}),Mn&&Qi(pe,Lt),bt}function yt(pe,ie,ge,De){var bt=Q(ge);if(typeof bt!="function")throw Error(n(150));if(ge=bt.call(ge),ge==null)throw Error(n(151));for(var It=bt=null,_t=ie,Lt=ie=0,sr=null,mn=ge.next();_t!==null&&!mn.done;Lt++,mn=ge.next()){_t.index>Lt?(sr=_t,_t=null):sr=_t.sibling;var Ni=Te(pe,_t,mn.value,De);if(Ni===null){_t===null&&(_t=sr);break}i&&_t&&Ni.alternate===null&&a(pe,_t),ie=E(Ni,ie,Lt),It===null?bt=Ni:It.sibling=Ni,It=Ni,_t=sr}if(mn.done)return f(pe,_t),Mn&&Qi(pe,Lt),bt;if(_t===null){for(;!mn.done;Lt++,mn=ge.next())mn=Ae(pe,mn.value,De),mn!==null&&(ie=E(mn,ie,Lt),It===null?bt=mn:It.sibling=mn,It=mn);return Mn&&Qi(pe,Lt),bt}for(_t=h(pe,_t);!mn.done;Lt++,mn=ge.next())mn=at(_t,pe,Lt,mn.value,De),mn!==null&&(i&&mn.alternate!==null&&_t.delete(mn.key===null?Lt:mn.key),ie=E(mn,ie,Lt),It===null?bt=mn:It.sibling=mn,It=mn);return i&&_t.forEach(function(NE){return a(pe,NE)}),Mn&&Qi(pe,Lt),bt}function qn(pe,ie,ge,De){if(typeof ge=="object"&&ge!==null&&ge.type===T&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case _:e:{for(var bt=ge.key,It=ie;It!==null;){if(It.key===bt){if(bt=ge.type,bt===T){if(It.tag===7){f(pe,It.sibling),ie=x(It,ge.props.children),ie.return=pe,pe=ie;break e}}else if(It.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===W&&qv(bt)===It.type){f(pe,It.sibling),ie=x(It,ge.props),ie.ref=Yl(pe,It,ge),ie.return=pe,pe=ie;break e}f(pe,It);break}else a(pe,It);It=It.sibling}ge.type===T?(ie=ia(ge.props.children,pe.mode,De,ge.key),ie.return=pe,pe=ie):(De=tu(ge.type,ge.key,ge.props,null,pe.mode,De),De.ref=Yl(pe,ie,ge),De.return=pe,pe=De)}return j(pe);case I:e:{for(It=ge.key;ie!==null;){if(ie.key===It)if(ie.tag===4&&ie.stateNode.containerInfo===ge.containerInfo&&ie.stateNode.implementation===ge.implementation){f(pe,ie.sibling),ie=x(ie,ge.children||[]),ie.return=pe,pe=ie;break e}else{f(pe,ie);break}else a(pe,ie);ie=ie.sibling}ie=Rm(ge,pe.mode,De),ie.return=pe,pe=ie}return j(pe);case W:return It=ge._init,qn(pe,ie,It(ge._payload),De)}if(Ne(ge))return vt(pe,ie,ge,De);if(Q(ge))return yt(pe,ie,ge,De);Pc(pe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,ie!==null&&ie.tag===6?(f(pe,ie.sibling),ie=x(ie,ge),ie.return=pe,pe=ie):(f(pe,ie),ie=Em(ge,pe.mode,De),ie.return=pe,pe=ie),j(pe)):f(pe,ie)}return qn}var Da=Uv(!0),Gv=Uv(!1),Nc=Si(null),kc=null,Ha=null,jf=null;function zf(){jf=Ha=kc=null}function Lf(i){var a=Nc.current;Nn(Nc),i._currentValue=a}function Af(i,a,f){for(;i!==null;){var h=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),i===f)break;i=i.return}}function Fa(i,a){kc=i,jf=Ha=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&a)!==0&&(Hr=!0),i.firstContext=null)}function so(i){var a=i._currentValue;if(jf!==i)if(i={context:i,memoizedValue:a,next:null},Ha===null){if(kc===null)throw Error(n(308));Ha=i,kc.dependencies={lanes:0,firstContext:i}}else Ha=Ha.next=i;return a}var Ji=null;function Bf(i){Ji===null?Ji=[i]:Ji.push(i)}function Kv(i,a,f,h){var x=a.interleaved;return x===null?(f.next=f,Bf(a)):(f.next=x.next,x.next=f),a.interleaved=f,ii(i,h)}function ii(i,a){i.lanes|=a;var f=i.alternate;for(f!==null&&(f.lanes|=a),f=i,i=i.return;i!==null;)i.childLanes|=a,f=i.alternate,f!==null&&(f.childLanes|=a),f=i,i=i.return;return f.tag===3?f.stateNode:null}var $i=!1;function Df(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xv(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function ai(i,a){return{eventTime:i,lane:a,tag:0,payload:null,callback:null,next:null}}function Ei(i,a,f){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(sn&2)!==0){var x=h.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),h.pending=a,ii(i,f)}return x=h.interleaved,x===null?(a.next=a,Bf(h)):(a.next=x.next,x.next=a),h.interleaved=a,ii(i,f)}function Mc(i,a,f){if(a=a.updateQueue,a!==null&&(a=a.shared,(f&4194240)!==0)){var h=a.lanes;h&=i.pendingLanes,f|=h,a.lanes=f,Wn(i,f)}}function Yv(i,a){var f=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,f===h)){var x=null,E=null;if(f=f.firstBaseUpdate,f!==null){do{var j={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};E===null?x=E=j:E=E.next=j,f=f.next}while(f!==null);E===null?x=E=a:E=E.next=a}else x=E=a;f={baseState:h.baseState,firstBaseUpdate:x,lastBaseUpdate:E,shared:h.shared,effects:h.effects},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=a:i.next=a,f.lastBaseUpdate=a}function jc(i,a,f,h){var x=i.updateQueue;$i=!1;var E=x.firstBaseUpdate,j=x.lastBaseUpdate,X=x.shared.pending;if(X!==null){x.shared.pending=null;var oe=X,be=oe.next;oe.next=null,j===null?E=be:j.next=be,j=oe;var Me=i.alternate;Me!==null&&(Me=Me.updateQueue,X=Me.lastBaseUpdate,X!==j&&(X===null?Me.firstBaseUpdate=be:X.next=be,Me.lastBaseUpdate=oe))}if(E!==null){var Ae=x.baseState;j=0,Me=be=oe=null,X=E;do{var Te=X.lane,at=X.eventTime;if((h&Te)===Te){Me!==null&&(Me=Me.next={eventTime:at,lane:0,tag:X.tag,payload:X.payload,callback:X.callback,next:null});e:{var vt=i,yt=X;switch(Te=a,at=f,yt.tag){case 1:if(vt=yt.payload,typeof vt=="function"){Ae=vt.call(at,Ae,Te);break e}Ae=vt;break e;case 3:vt.flags=vt.flags&-65537|128;case 0:if(vt=yt.payload,Te=typeof vt=="function"?vt.call(at,Ae,Te):vt,Te==null)break e;Ae=q({},Ae,Te);break e;case 2:$i=!0}}X.callback!==null&&X.lane!==0&&(i.flags|=64,Te=x.effects,Te===null?x.effects=[X]:Te.push(X))}else at={eventTime:at,lane:Te,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Me===null?(be=Me=at,oe=Ae):Me=Me.next=at,j|=Te;if(X=X.next,X===null){if(X=x.shared.pending,X===null)break;Te=X,X=Te.next,Te.next=null,x.lastBaseUpdate=Te,x.shared.pending=null}}while(!0);if(Me===null&&(oe=Ae),x.baseState=oe,x.firstBaseUpdate=be,x.lastBaseUpdate=Me,a=x.shared.interleaved,a!==null){x=a;do j|=x.lane,x=x.next;while(x!==a)}else E===null&&(x.shared.lanes=0);ta|=j,i.lanes=j,i.memoizedState=Ae}}function Qv(i,a,f){if(i=a.effects,a.effects=null,i!==null)for(a=0;a<i.length;a++){var h=i[a],x=h.callback;if(x!==null){if(h.callback=null,h=f,typeof x!="function")throw Error(n(191,x));x.call(h)}}}var Ql={},Do=Si(Ql),Jl=Si(Ql),Zl=Si(Ql);function Zi(i){if(i===Ql)throw Error(n(174));return i}function Hf(i,a){switch(_n(Zl,a),_n(Jl,i),_n(Do,Ql),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:St(null,"");break;default:i=i===8?a.parentNode:a,a=i.namespaceURI||null,i=i.tagName,a=St(a,i)}Nn(Do),_n(Do,a)}function Va(){Nn(Do),Nn(Jl),Nn(Zl)}function Jv(i){Zi(Zl.current);var a=Zi(Do.current),f=St(a,i.type);a!==f&&(_n(Jl,i),_n(Do,f))}function Ff(i){Jl.current===i&&(Nn(Do),Nn(Jl))}var zn=Si(0);function zc(i){for(var a=i;a!==null;){if(a.tag===13){var f=a.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Vf=[];function Wf(){for(var i=0;i<Vf.length;i++)Vf[i]._workInProgressVersionPrimary=null;Vf.length=0}var Lc=O.ReactCurrentDispatcher,qf=O.ReactCurrentBatchConfig,ea=0,Ln=null,tr=null,ar=null,Ac=!1,es=!1,ts=0,eE=0;function Sr(){throw Error(n(321))}function Uf(i,a){if(a===null)return!1;for(var f=0;f<a.length&&f<i.length;f++)if(!$o(i[f],a[f]))return!1;return!0}function Gf(i,a,f,h,x,E){if(ea=E,Ln=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Lc.current=i===null||i.memoizedState===null?oE:iE,i=f(h,x),es){E=0;do{if(es=!1,ts=0,25<=E)throw Error(n(301));E+=1,ar=tr=null,a.updateQueue=null,Lc.current=aE,i=f(h,x)}while(es)}if(Lc.current=Hc,a=tr!==null&&tr.next!==null,ea=0,ar=tr=Ln=null,Ac=!1,a)throw Error(n(300));return i}function Kf(){var i=ts!==0;return ts=0,i}function Ho(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ar===null?Ln.memoizedState=ar=i:ar=ar.next=i,ar}function co(){if(tr===null){var i=Ln.alternate;i=i!==null?i.memoizedState:null}else i=tr.next;var a=ar===null?Ln.memoizedState:ar.next;if(a!==null)ar=a,tr=i;else{if(i===null)throw Error(n(310));tr=i,i={memoizedState:tr.memoizedState,baseState:tr.baseState,baseQueue:tr.baseQueue,queue:tr.queue,next:null},ar===null?Ln.memoizedState=ar=i:ar=ar.next=i}return ar}function ns(i,a){return typeof a=="function"?a(i):a}function Xf(i){var a=co(),f=a.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var h=tr,x=h.baseQueue,E=f.pending;if(E!==null){if(x!==null){var j=x.next;x.next=E.next,E.next=j}h.baseQueue=x=E,f.pending=null}if(x!==null){E=x.next,h=h.baseState;var X=j=null,oe=null,be=E;do{var Me=be.lane;if((ea&Me)===Me)oe!==null&&(oe=oe.next={lane:0,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null}),h=be.hasEagerState?be.eagerState:i(h,be.action);else{var Ae={lane:Me,action:be.action,hasEagerState:be.hasEagerState,eagerState:be.eagerState,next:null};oe===null?(X=oe=Ae,j=h):oe=oe.next=Ae,Ln.lanes|=Me,ta|=Me}be=be.next}while(be!==null&&be!==E);oe===null?j=h:oe.next=X,$o(h,a.memoizedState)||(Hr=!0),a.memoizedState=h,a.baseState=j,a.baseQueue=oe,f.lastRenderedState=h}if(i=f.interleaved,i!==null){x=i;do E=x.lane,Ln.lanes|=E,ta|=E,x=x.next;while(x!==i)}else x===null&&(f.lanes=0);return[a.memoizedState,f.dispatch]}function Yf(i){var a=co(),f=a.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var h=f.dispatch,x=f.pending,E=a.memoizedState;if(x!==null){f.pending=null;var j=x=x.next;do E=i(E,j.action),j=j.next;while(j!==x);$o(E,a.memoizedState)||(Hr=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),f.lastRenderedState=E}return[E,h]}function Zv(){}function e0(i,a){var f=Ln,h=co(),x=a(),E=!$o(h.memoizedState,x);if(E&&(h.memoizedState=x,Hr=!0),h=h.queue,Qf(r0.bind(null,f,h,i),[i]),h.getSnapshot!==a||E||ar!==null&&ar.memoizedState.tag&1){if(f.flags|=2048,rs(9,n0.bind(null,f,h,x,a),void 0,null),lr===null)throw Error(n(349));(ea&30)!==0||t0(f,a,x)}return x}function t0(i,a,f){i.flags|=16384,i={getSnapshot:a,value:f},a=Ln.updateQueue,a===null?(a={lastEffect:null,stores:null},Ln.updateQueue=a,a.stores=[i]):(f=a.stores,f===null?a.stores=[i]:f.push(i))}function n0(i,a,f,h){a.value=f,a.getSnapshot=h,o0(a)&&i0(i)}function r0(i,a,f){return f(function(){o0(a)&&i0(i)})}function o0(i){var a=i.getSnapshot;i=i.value;try{var f=a();return!$o(i,f)}catch{return!0}}function i0(i){var a=ii(i,1);a!==null&&_o(a,i,1,-1)}function a0(i){var a=Ho();return typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:i},a.queue=i,i=i.dispatch=rE.bind(null,Ln,i),[a.memoizedState,i]}function rs(i,a,f,h){return i={tag:i,create:a,destroy:f,deps:h,next:null},a=Ln.updateQueue,a===null?(a={lastEffect:null,stores:null},Ln.updateQueue=a,a.lastEffect=i.next=i):(f=a.lastEffect,f===null?a.lastEffect=i.next=i:(h=f.next,f.next=i,i.next=h,a.lastEffect=i)),i}function l0(){return co().memoizedState}function Bc(i,a,f,h){var x=Ho();Ln.flags|=i,x.memoizedState=rs(1|a,f,void 0,h===void 0?null:h)}function Dc(i,a,f,h){var x=co();h=h===void 0?null:h;var E=void 0;if(tr!==null){var j=tr.memoizedState;if(E=j.destroy,h!==null&&Uf(h,j.deps)){x.memoizedState=rs(a,f,E,h);return}}Ln.flags|=i,x.memoizedState=rs(1|a,f,E,h)}function s0(i,a){return Bc(8390656,8,i,a)}function Qf(i,a){return Dc(2048,8,i,a)}function c0(i,a){return Dc(4,2,i,a)}function u0(i,a){return Dc(4,4,i,a)}function d0(i,a){if(typeof a=="function")return i=i(),a(i),function(){a(null)};if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function f0(i,a,f){return f=f!=null?f.concat([i]):null,Dc(4,4,d0.bind(null,a,i),f)}function Jf(){}function m0(i,a){var f=co();a=a===void 0?null:a;var h=f.memoizedState;return h!==null&&a!==null&&Uf(a,h[1])?h[0]:(f.memoizedState=[i,a],i)}function p0(i,a){var f=co();a=a===void 0?null:a;var h=f.memoizedState;return h!==null&&a!==null&&Uf(a,h[1])?h[0]:(i=i(),f.memoizedState=[i,a],i)}function g0(i,a,f){return(ea&21)===0?(i.baseState&&(i.baseState=!1,Hr=!0),i.memoizedState=f):($o(f,a)||(f=nn(),Ln.lanes|=f,ta|=f,i.baseState=!0),a)}function tE(i,a){var f=Dt;Dt=f!==0&&4>f?f:4,i(!0);var h=qf.transition;qf.transition={};try{i(!1),a()}finally{Dt=f,qf.transition=h}}function h0(){return co().memoizedState}function nE(i,a,f){var h=_i(i);if(f={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null},v0(i))y0(a,f);else if(f=Kv(i,a,f,h),f!==null){var x=Pr();_o(f,i,h,x),b0(f,a,h)}}function rE(i,a,f){var h=_i(i),x={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null};if(v0(i))y0(a,x);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var j=a.lastRenderedState,X=E(j,f);if(x.hasEagerState=!0,x.eagerState=X,$o(X,j)){var oe=a.interleaved;oe===null?(x.next=x,Bf(a)):(x.next=oe.next,oe.next=x),a.interleaved=x;return}}catch{}finally{}f=Kv(i,a,x,h),f!==null&&(x=Pr(),_o(f,i,h,x),b0(f,a,h))}}function v0(i){var a=i.alternate;return i===Ln||a!==null&&a===Ln}function y0(i,a){es=Ac=!0;var f=i.pending;f===null?a.next=a:(a.next=f.next,f.next=a),i.pending=a}function b0(i,a,f){if((f&4194240)!==0){var h=a.lanes;h&=i.pendingLanes,f|=h,a.lanes=f,Wn(i,f)}}var Hc={readContext:so,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},oE={readContext:so,useCallback:function(i,a){return Ho().memoizedState=[i,a===void 0?null:a],i},useContext:so,useEffect:s0,useImperativeHandle:function(i,a,f){return f=f!=null?f.concat([i]):null,Bc(4194308,4,d0.bind(null,a,i),f)},useLayoutEffect:function(i,a){return Bc(4194308,4,i,a)},useInsertionEffect:function(i,a){return Bc(4,2,i,a)},useMemo:function(i,a){var f=Ho();return a=a===void 0?null:a,i=i(),f.memoizedState=[i,a],i},useReducer:function(i,a,f){var h=Ho();return a=f!==void 0?f(a):a,h.memoizedState=h.baseState=a,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:a},h.queue=i,i=i.dispatch=nE.bind(null,Ln,i),[h.memoizedState,i]},useRef:function(i){var a=Ho();return i={current:i},a.memoizedState=i},useState:a0,useDebugValue:Jf,useDeferredValue:function(i){return Ho().memoizedState=i},useTransition:function(){var i=a0(!1),a=i[0];return i=tE.bind(null,i[1]),Ho().memoizedState=i,[a,i]},useMutableSource:function(){},useSyncExternalStore:function(i,a,f){var h=Ln,x=Ho();if(Mn){if(f===void 0)throw Error(n(407));f=f()}else{if(f=a(),lr===null)throw Error(n(349));(ea&30)!==0||t0(h,a,f)}x.memoizedState=f;var E={value:f,getSnapshot:a};return x.queue=E,s0(r0.bind(null,h,E,i),[i]),h.flags|=2048,rs(9,n0.bind(null,h,E,f,a),void 0,null),f},useId:function(){var i=Ho(),a=lr.identifierPrefix;if(Mn){var f=oi,h=ri;f=(h&~(1<<32-On(h)-1)).toString(32)+f,a=":"+a+"R"+f,f=ts++,0<f&&(a+="H"+f.toString(32)),a+=":"}else f=eE++,a=":"+a+"r"+f.toString(32)+":";return i.memoizedState=a},unstable_isNewReconciler:!1},iE={readContext:so,useCallback:m0,useContext:so,useEffect:Qf,useImperativeHandle:f0,useInsertionEffect:c0,useLayoutEffect:u0,useMemo:p0,useReducer:Xf,useRef:l0,useState:function(){return Xf(ns)},useDebugValue:Jf,useDeferredValue:function(i){var a=co();return g0(a,tr.memoizedState,i)},useTransition:function(){var i=Xf(ns)[0],a=co().memoizedState;return[i,a]},useMutableSource:Zv,useSyncExternalStore:e0,useId:h0,unstable_isNewReconciler:!1},aE={readContext:so,useCallback:m0,useContext:so,useEffect:Qf,useImperativeHandle:f0,useInsertionEffect:c0,useLayoutEffect:u0,useMemo:p0,useReducer:Yf,useRef:l0,useState:function(){return Yf(ns)},useDebugValue:Jf,useDeferredValue:function(i){var a=co();return tr===null?a.memoizedState=i:g0(a,tr.memoizedState,i)},useTransition:function(){var i=Yf(ns)[0],a=co().memoizedState;return[i,a]},useMutableSource:Zv,useSyncExternalStore:e0,useId:h0,unstable_isNewReconciler:!1};function Ro(i,a){if(i&&i.defaultProps){a=q({},a),i=i.defaultProps;for(var f in i)a[f]===void 0&&(a[f]=i[f]);return a}return a}function Zf(i,a,f,h){a=i.memoizedState,f=f(h,a),f=f==null?a:q({},a,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var Fc={isMounted:function(i){return(i=i._reactInternals)?Pt(i)===i:!1},enqueueSetState:function(i,a,f){i=i._reactInternals;var h=Pr(),x=_i(i),E=ai(h,x);E.payload=a,f!=null&&(E.callback=f),a=Ei(i,E,x),a!==null&&(_o(a,i,x,h),Mc(a,i,x))},enqueueReplaceState:function(i,a,f){i=i._reactInternals;var h=Pr(),x=_i(i),E=ai(h,x);E.tag=1,E.payload=a,f!=null&&(E.callback=f),a=Ei(i,E,x),a!==null&&(_o(a,i,x,h),Mc(a,i,x))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var f=Pr(),h=_i(i),x=ai(f,h);x.tag=2,a!=null&&(x.callback=a),a=Ei(i,x,h),a!==null&&(_o(a,i,h,f),Mc(a,i,h))}};function C0(i,a,f,h,x,E,j){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,E,j):a.prototype&&a.prototype.isPureReactComponent?!Vl(f,h)||!Vl(x,E):!0}function S0(i,a,f){var h=!1,x=xi,E=a.contextType;return typeof E=="object"&&E!==null?E=so(E):(x=Dr(a)?Xi:Cr.current,h=a.contextTypes,E=(h=h!=null)?za(i,x):xi),a=new a(f,E),i.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Fc,i.stateNode=a,a._reactInternals=i,h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=x,i.__reactInternalMemoizedMaskedChildContext=E),a}function x0(i,a,f,h){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(f,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(f,h),a.state!==i&&Fc.enqueueReplaceState(a,a.state,null)}function em(i,a,f,h){var x=i.stateNode;x.props=f,x.state=i.memoizedState,x.refs={},Df(i);var E=a.contextType;typeof E=="object"&&E!==null?x.context=so(E):(E=Dr(a)?Xi:Cr.current,x.context=za(i,E)),x.state=i.memoizedState,E=a.getDerivedStateFromProps,typeof E=="function"&&(Zf(i,a,E,f),x.state=i.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(a=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),a!==x.state&&Fc.enqueueReplaceState(x,x.state,null),jc(i,f,x,h),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308)}function Wa(i,a){try{var f="",h=a;do f+=te(h),h=h.return;while(h);var x=f}catch(E){x=`
|
|
39
|
+
Error generating stack: `+E.message+`
|
|
40
|
+
`+E.stack}return{value:i,source:a,stack:x,digest:null}}function tm(i,a,f){return{value:i,source:null,stack:f??null,digest:a??null}}function nm(i,a){try{console.error(a.value)}catch(f){setTimeout(function(){throw f})}}var lE=typeof WeakMap=="function"?WeakMap:Map;function w0(i,a,f){f=ai(-1,f),f.tag=3,f.payload={element:null};var h=a.value;return f.callback=function(){Xc||(Xc=!0,vm=h),nm(i,a)},f}function $0(i,a,f){f=ai(-1,f),f.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var x=a.value;f.payload=function(){return h(x)},f.callback=function(){nm(i,a)}}var E=i.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(f.callback=function(){nm(i,a),typeof h!="function"&&(Oi===null?Oi=new Set([this]):Oi.add(this));var j=a.stack;this.componentDidCatch(a.value,{componentStack:j!==null?j:""})}),f}function E0(i,a,f){var h=i.pingCache;if(h===null){h=i.pingCache=new lE;var x=new Set;h.set(a,x)}else x=h.get(a),x===void 0&&(x=new Set,h.set(a,x));x.has(f)||(x.add(f),i=SE.bind(null,i,a,f),a.then(i,i))}function R0(i){do{var a;if((a=i.tag===13)&&(a=i.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return i;i=i.return}while(i!==null);return null}function O0(i,a,f,h,x){return(i.mode&1)===0?(i===a?i.flags|=65536:(i.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(a=ai(-1,1),a.tag=2,Ei(f,a,1))),f.lanes|=1),i):(i.flags|=65536,i.lanes=x,i)}var sE=O.ReactCurrentOwner,Hr=!1;function Tr(i,a,f,h){a.child=i===null?Gv(a,null,f,h):Da(a,i.child,f,h)}function I0(i,a,f,h,x){f=f.render;var E=a.ref;return Fa(a,x),h=Gf(i,a,f,h,E,x),f=Kf(),i!==null&&!Hr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,li(i,a,x)):(Mn&&f&&Tf(a),a.flags|=1,Tr(i,a,h,x),a.child)}function _0(i,a,f,h,x){if(i===null){var E=f.type;return typeof E=="function"&&!$m(E)&&E.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(a.tag=15,a.type=E,T0(i,a,E,h,x)):(i=tu(f.type,null,h,a,a.mode,x),i.ref=a.ref,i.return=a,a.child=i)}if(E=i.child,(i.lanes&x)===0){var j=E.memoizedProps;if(f=f.compare,f=f!==null?f:Vl,f(j,h)&&i.ref===a.ref)return li(i,a,x)}return a.flags|=1,i=Pi(E,h),i.ref=a.ref,i.return=a,a.child=i}function T0(i,a,f,h,x){if(i!==null){var E=i.memoizedProps;if(Vl(E,h)&&i.ref===a.ref)if(Hr=!1,a.pendingProps=h=E,(i.lanes&x)!==0)(i.flags&131072)!==0&&(Hr=!0);else return a.lanes=i.lanes,li(i,a,x)}return rm(i,a,f,h,x)}function P0(i,a,f){var h=a.pendingProps,x=h.children,E=i!==null?i.memoizedState:null;if(h.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},_n(Ua,Qr),Qr|=f;else{if((f&1073741824)===0)return i=E!==null?E.baseLanes|f:f,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:i,cachePool:null,transitions:null},a.updateQueue=null,_n(Ua,Qr),Qr|=i,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=E!==null?E.baseLanes:f,_n(Ua,Qr),Qr|=h}else E!==null?(h=E.baseLanes|f,a.memoizedState=null):h=f,_n(Ua,Qr),Qr|=h;return Tr(i,a,x,f),a.child}function N0(i,a){var f=a.ref;(i===null&&f!==null||i!==null&&i.ref!==f)&&(a.flags|=512,a.flags|=2097152)}function rm(i,a,f,h,x){var E=Dr(f)?Xi:Cr.current;return E=za(a,E),Fa(a,x),f=Gf(i,a,f,h,E,x),h=Kf(),i!==null&&!Hr?(a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~x,li(i,a,x)):(Mn&&h&&Tf(a),a.flags|=1,Tr(i,a,f,x),a.child)}function k0(i,a,f,h,x){if(Dr(f)){var E=!0;Rc(a)}else E=!1;if(Fa(a,x),a.stateNode===null)Wc(i,a),S0(a,f,h),em(a,f,h,x),h=!0;else if(i===null){var j=a.stateNode,X=a.memoizedProps;j.props=X;var oe=j.context,be=f.contextType;typeof be=="object"&&be!==null?be=so(be):(be=Dr(f)?Xi:Cr.current,be=za(a,be));var Me=f.getDerivedStateFromProps,Ae=typeof Me=="function"||typeof j.getSnapshotBeforeUpdate=="function";Ae||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(X!==h||oe!==be)&&x0(a,j,h,be),$i=!1;var Te=a.memoizedState;j.state=Te,jc(a,h,j,x),oe=a.memoizedState,X!==h||Te!==oe||Br.current||$i?(typeof Me=="function"&&(Zf(a,f,Me,h),oe=a.memoizedState),(X=$i||C0(a,f,X,h,Te,oe,be))?(Ae||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(a.flags|=4194308)):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=oe),j.props=h,j.state=oe,j.context=be,h=X):(typeof j.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{j=a.stateNode,Xv(i,a),X=a.memoizedProps,be=a.type===a.elementType?X:Ro(a.type,X),j.props=be,Ae=a.pendingProps,Te=j.context,oe=f.contextType,typeof oe=="object"&&oe!==null?oe=so(oe):(oe=Dr(f)?Xi:Cr.current,oe=za(a,oe));var at=f.getDerivedStateFromProps;(Me=typeof at=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(X!==Ae||Te!==oe)&&x0(a,j,h,oe),$i=!1,Te=a.memoizedState,j.state=Te,jc(a,h,j,x);var vt=a.memoizedState;X!==Ae||Te!==vt||Br.current||$i?(typeof at=="function"&&(Zf(a,f,at,h),vt=a.memoizedState),(be=$i||C0(a,f,be,h,Te,vt,oe)||!1)?(Me||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(h,vt,oe),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(h,vt,oe)),typeof j.componentDidUpdate=="function"&&(a.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof j.componentDidUpdate!="function"||X===i.memoizedProps&&Te===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||X===i.memoizedProps&&Te===i.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=vt),j.props=h,j.state=vt,j.context=oe,h=be):(typeof j.componentDidUpdate!="function"||X===i.memoizedProps&&Te===i.memoizedState||(a.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||X===i.memoizedProps&&Te===i.memoizedState||(a.flags|=1024),h=!1)}return om(i,a,f,h,E,x)}function om(i,a,f,h,x,E){N0(i,a);var j=(a.flags&128)!==0;if(!h&&!j)return x&&Av(a,f,!1),li(i,a,E);h=a.stateNode,sE.current=a;var X=j&&typeof f.getDerivedStateFromError!="function"?null:h.render();return a.flags|=1,i!==null&&j?(a.child=Da(a,i.child,null,E),a.child=Da(a,null,X,E)):Tr(i,a,X,E),a.memoizedState=h.state,x&&Av(a,f,!0),a.child}function M0(i){var a=i.stateNode;a.pendingContext?zv(i,a.pendingContext,a.pendingContext!==a.context):a.context&&zv(i,a.context,!1),Hf(i,a.containerInfo)}function j0(i,a,f,h,x){return Ba(),Mf(x),a.flags|=256,Tr(i,a,f,h),a.child}var im={dehydrated:null,treeContext:null,retryLane:0};function am(i){return{baseLanes:i,cachePool:null,transitions:null}}function z0(i,a,f){var h=a.pendingProps,x=zn.current,E=!1,j=(a.flags&128)!==0,X;if((X=j)||(X=i!==null&&i.memoizedState===null?!1:(x&2)!==0),X?(E=!0,a.flags&=-129):(i===null||i.memoizedState!==null)&&(x|=1),_n(zn,x&1),i===null)return kf(a),i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((a.mode&1)===0?a.lanes=1:i.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(j=h.children,i=h.fallback,E?(h=a.mode,E=a.child,j={mode:"hidden",children:j},(h&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=j):E=nu(j,h,0,null),i=ia(i,h,f,null),E.return=a,i.return=a,E.sibling=i,a.child=E,a.child.memoizedState=am(f),a.memoizedState=im,i):lm(a,j));if(x=i.memoizedState,x!==null&&(X=x.dehydrated,X!==null))return cE(i,a,j,h,X,x,f);if(E){E=h.fallback,j=a.mode,x=i.child,X=x.sibling;var oe={mode:"hidden",children:h.children};return(j&1)===0&&a.child!==x?(h=a.child,h.childLanes=0,h.pendingProps=oe,a.deletions=null):(h=Pi(x,oe),h.subtreeFlags=x.subtreeFlags&14680064),X!==null?E=Pi(X,E):(E=ia(E,j,f,null),E.flags|=2),E.return=a,h.return=a,h.sibling=E,a.child=h,h=E,E=a.child,j=i.child.memoizedState,j=j===null?am(f):{baseLanes:j.baseLanes|f,cachePool:null,transitions:j.transitions},E.memoizedState=j,E.childLanes=i.childLanes&~f,a.memoizedState=im,h}return E=i.child,i=E.sibling,h=Pi(E,{mode:"visible",children:h.children}),(a.mode&1)===0&&(h.lanes=f),h.return=a,h.sibling=null,i!==null&&(f=a.deletions,f===null?(a.deletions=[i],a.flags|=16):f.push(i)),a.child=h,a.memoizedState=null,h}function lm(i,a){return a=nu({mode:"visible",children:a},i.mode,0,null),a.return=i,i.child=a}function Vc(i,a,f,h){return h!==null&&Mf(h),Da(a,i.child,null,f),i=lm(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function cE(i,a,f,h,x,E,j){if(f)return a.flags&256?(a.flags&=-257,h=tm(Error(n(422))),Vc(i,a,j,h)):a.memoizedState!==null?(a.child=i.child,a.flags|=128,null):(E=h.fallback,x=a.mode,h=nu({mode:"visible",children:h.children},x,0,null),E=ia(E,x,j,null),E.flags|=2,h.return=a,E.return=a,h.sibling=E,a.child=h,(a.mode&1)!==0&&Da(a,i.child,null,j),a.child.memoizedState=am(j),a.memoizedState=im,E);if((a.mode&1)===0)return Vc(i,a,j,null);if(x.data==="$!"){if(h=x.nextSibling&&x.nextSibling.dataset,h)var X=h.dgst;return h=X,E=Error(n(419)),h=tm(E,h,void 0),Vc(i,a,j,h)}if(X=(j&i.childLanes)!==0,Hr||X){if(h=lr,h!==null){switch(j&-j){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&(h.suspendedLanes|j))!==0?0:x,x!==0&&x!==E.retryLane&&(E.retryLane=x,ii(i,x),_o(h,i,x,-1))}return wm(),h=tm(Error(n(421))),Vc(i,a,j,h)}return x.data==="$?"?(a.flags|=128,a.child=i.child,a=xE.bind(null,i),x._reactRetry=a,null):(i=E.treeContext,Yr=Ci(x.nextSibling),Xr=a,Mn=!0,Eo=null,i!==null&&(ao[lo++]=ri,ao[lo++]=oi,ao[lo++]=Yi,ri=i.id,oi=i.overflow,Yi=a),a=lm(a,h.children),a.flags|=4096,a)}function L0(i,a,f){i.lanes|=a;var h=i.alternate;h!==null&&(h.lanes|=a),Af(i.return,a,f)}function sm(i,a,f,h,x){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:f,tailMode:x}:(E.isBackwards=a,E.rendering=null,E.renderingStartTime=0,E.last=h,E.tail=f,E.tailMode=x)}function A0(i,a,f){var h=a.pendingProps,x=h.revealOrder,E=h.tail;if(Tr(i,a,h.children,f),h=zn.current,(h&2)!==0)h=h&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&L0(i,f,a);else if(i.tag===19)L0(i,f,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}if(_n(zn,h),(a.mode&1)===0)a.memoizedState=null;else switch(x){case"forwards":for(f=a.child,x=null;f!==null;)i=f.alternate,i!==null&&zc(i)===null&&(x=f),f=f.sibling;f=x,f===null?(x=a.child,a.child=null):(x=f.sibling,f.sibling=null),sm(a,!1,x,f,E);break;case"backwards":for(f=null,x=a.child,a.child=null;x!==null;){if(i=x.alternate,i!==null&&zc(i)===null){a.child=x;break}i=x.sibling,x.sibling=f,f=x,x=i}sm(a,!0,f,null,E);break;case"together":sm(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Wc(i,a){(a.mode&1)===0&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=2)}function li(i,a,f){if(i!==null&&(a.dependencies=i.dependencies),ta|=a.lanes,(f&a.childLanes)===0)return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,f=Pi(i,i.pendingProps),a.child=f,f.return=a;i.sibling!==null;)i=i.sibling,f=f.sibling=Pi(i,i.pendingProps),f.return=a;f.sibling=null}return a.child}function uE(i,a,f){switch(a.tag){case 3:M0(a),Ba();break;case 5:Jv(a);break;case 1:Dr(a.type)&&Rc(a);break;case 4:Hf(a,a.stateNode.containerInfo);break;case 10:var h=a.type._context,x=a.memoizedProps.value;_n(Nc,h._currentValue),h._currentValue=x;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(_n(zn,zn.current&1),a.flags|=128,null):(f&a.child.childLanes)!==0?z0(i,a,f):(_n(zn,zn.current&1),i=li(i,a,f),i!==null?i.sibling:null);_n(zn,zn.current&1);break;case 19:if(h=(f&a.childLanes)!==0,(i.flags&128)!==0){if(h)return A0(i,a,f);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),_n(zn,zn.current),h)break;return null;case 22:case 23:return a.lanes=0,P0(i,a,f)}return li(i,a,f)}var B0,cm,D0,H0;B0=function(i,a){for(var f=a.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break;for(;f.sibling===null;){if(f.return===null||f.return===a)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},cm=function(){},D0=function(i,a,f,h){var x=i.memoizedProps;if(x!==h){i=a.stateNode,Zi(Do.current);var E=null;switch(f){case"input":x=ye(i,x),h=ye(i,h),E=[];break;case"select":x=q({},x,{value:void 0}),h=q({},h,{value:void 0}),E=[];break;case"textarea":x=$e(i,x),h=$e(i,h),E=[];break;default:typeof x.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=wc)}Pe(f,h);var j;f=null;for(be in x)if(!h.hasOwnProperty(be)&&x.hasOwnProperty(be)&&x[be]!=null)if(be==="style"){var X=x[be];for(j in X)X.hasOwnProperty(j)&&(f||(f={}),f[j]="")}else be!=="dangerouslySetInnerHTML"&&be!=="children"&&be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&be!=="autoFocus"&&(o.hasOwnProperty(be)?E||(E=[]):(E=E||[]).push(be,null));for(be in h){var oe=h[be];if(X=x!=null?x[be]:void 0,h.hasOwnProperty(be)&&oe!==X&&(oe!=null||X!=null))if(be==="style")if(X){for(j in X)!X.hasOwnProperty(j)||oe&&oe.hasOwnProperty(j)||(f||(f={}),f[j]="");for(j in oe)oe.hasOwnProperty(j)&&X[j]!==oe[j]&&(f||(f={}),f[j]=oe[j])}else f||(E||(E=[]),E.push(be,f)),f=oe;else be==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,X=X?X.__html:void 0,oe!=null&&X!==oe&&(E=E||[]).push(be,oe)):be==="children"?typeof oe!="string"&&typeof oe!="number"||(E=E||[]).push(be,""+oe):be!=="suppressContentEditableWarning"&&be!=="suppressHydrationWarning"&&(o.hasOwnProperty(be)?(oe!=null&&be==="onScroll"&&Pn("scroll",i),E||X===oe||(E=[])):(E=E||[]).push(be,oe))}f&&(E=E||[]).push("style",f);var be=E;(a.updateQueue=be)&&(a.flags|=4)}},H0=function(i,a,f,h){f!==h&&(a.flags|=4)};function os(i,a){if(!Mn)switch(i.tailMode){case"hidden":a=i.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var h=null;f!==null;)f.alternate!==null&&(h=f),f=f.sibling;h===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function xr(i){var a=i.alternate!==null&&i.alternate.child===i.child,f=0,h=0;if(a)for(var x=i.child;x!==null;)f|=x.lanes|x.childLanes,h|=x.subtreeFlags&14680064,h|=x.flags&14680064,x.return=i,x=x.sibling;else for(x=i.child;x!==null;)f|=x.lanes|x.childLanes,h|=x.subtreeFlags,h|=x.flags,x.return=i,x=x.sibling;return i.subtreeFlags|=h,i.childLanes=f,a}function dE(i,a,f){var h=a.pendingProps;switch(Pf(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xr(a),null;case 1:return Dr(a.type)&&Ec(),xr(a),null;case 3:return h=a.stateNode,Va(),Nn(Br),Nn(Cr),Wf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(Tc(a)?a.flags|=4:i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Eo!==null&&(Cm(Eo),Eo=null))),cm(i,a),xr(a),null;case 5:Ff(a);var x=Zi(Zl.current);if(f=a.type,i!==null&&a.stateNode!=null)D0(i,a,f,h,x),i.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!h){if(a.stateNode===null)throw Error(n(166));return xr(a),null}if(i=Zi(Do.current),Tc(a)){h=a.stateNode,f=a.type;var E=a.memoizedProps;switch(h[Bo]=a,h[Kl]=E,i=(a.mode&1)!==0,f){case"dialog":Pn("cancel",h),Pn("close",h);break;case"iframe":case"object":case"embed":Pn("load",h);break;case"video":case"audio":for(x=0;x<ql.length;x++)Pn(ql[x],h);break;case"source":Pn("error",h);break;case"img":case"image":case"link":Pn("error",h),Pn("load",h);break;case"details":Pn("toggle",h);break;case"input":de(h,E),Pn("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!E.multiple},Pn("invalid",h);break;case"textarea":ke(h,E),Pn("invalid",h)}Pe(f,E),x=null;for(var j in E)if(E.hasOwnProperty(j)){var X=E[j];j==="children"?typeof X=="string"?h.textContent!==X&&(E.suppressHydrationWarning!==!0&&xc(h.textContent,X,i),x=["children",X]):typeof X=="number"&&h.textContent!==""+X&&(E.suppressHydrationWarning!==!0&&xc(h.textContent,X,i),x=["children",""+X]):o.hasOwnProperty(j)&&X!=null&&j==="onScroll"&&Pn("scroll",h)}switch(f){case"input":le(h),Se(h,E,!0);break;case"textarea":le(h),Ge(h);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(h.onclick=wc)}h=x,a.updateQueue=h,h!==null&&(a.flags|=4)}else{j=x.nodeType===9?x:x.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=tt(f)),i==="http://www.w3.org/1999/xhtml"?f==="script"?(i=j.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=j.createElement(f,{is:h.is}):(i=j.createElement(f),f==="select"&&(j=i,h.multiple?j.multiple=!0:h.size&&(j.size=h.size))):i=j.createElementNS(i,f),i[Bo]=a,i[Kl]=h,B0(i,a,!1,!1),a.stateNode=i;e:{switch(j=He(f,h),f){case"dialog":Pn("cancel",i),Pn("close",i),x=h;break;case"iframe":case"object":case"embed":Pn("load",i),x=h;break;case"video":case"audio":for(x=0;x<ql.length;x++)Pn(ql[x],i);x=h;break;case"source":Pn("error",i),x=h;break;case"img":case"image":case"link":Pn("error",i),Pn("load",i),x=h;break;case"details":Pn("toggle",i),x=h;break;case"input":de(i,h),x=ye(i,h),Pn("invalid",i);break;case"option":x=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},x=q({},h,{value:void 0}),Pn("invalid",i);break;case"textarea":ke(i,h),x=$e(i,h),Pn("invalid",i);break;default:x=h}Pe(f,x),X=x;for(E in X)if(X.hasOwnProperty(E)){var oe=X[E];E==="style"?je(i,oe):E==="dangerouslySetInnerHTML"?(oe=oe?oe.__html:void 0,oe!=null&&Ue(i,oe)):E==="children"?typeof oe=="string"?(f!=="textarea"||oe!=="")&&st(i,oe):typeof oe=="number"&&st(i,""+oe):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(o.hasOwnProperty(E)?oe!=null&&E==="onScroll"&&Pn("scroll",i):oe!=null&&R(i,E,oe,j))}switch(f){case"input":le(i),Se(i,h,!1);break;case"textarea":le(i),Ge(i);break;case"option":h.value!=null&&i.setAttribute("value",""+me(h.value));break;case"select":i.multiple=!!h.multiple,E=h.value,E!=null?we(i,!!h.multiple,E,!1):h.defaultValue!=null&&we(i,!!h.multiple,h.defaultValue,!0);break;default:typeof x.onClick=="function"&&(i.onclick=wc)}switch(f){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return xr(a),null;case 6:if(i&&a.stateNode!=null)H0(i,a,i.memoizedProps,h);else{if(typeof h!="string"&&a.stateNode===null)throw Error(n(166));if(f=Zi(Zl.current),Zi(Do.current),Tc(a)){if(h=a.stateNode,f=a.memoizedProps,h[Bo]=a,(E=h.nodeValue!==f)&&(i=Xr,i!==null))switch(i.tag){case 3:xc(h.nodeValue,f,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&xc(h.nodeValue,f,(i.mode&1)!==0)}E&&(a.flags|=4)}else h=(f.nodeType===9?f:f.ownerDocument).createTextNode(h),h[Bo]=a,a.stateNode=h}return xr(a),null;case 13:if(Nn(zn),h=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Mn&&Yr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)Wv(),Ba(),a.flags|=98560,E=!1;else if(E=Tc(a),h!==null&&h.dehydrated!==null){if(i===null){if(!E)throw Error(n(318));if(E=a.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(n(317));E[Bo]=a}else Ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;xr(a),E=!1}else Eo!==null&&(Cm(Eo),Eo=null),E=!0;if(!E)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=f,a):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(a.child.flags|=8192,(a.mode&1)!==0&&(i===null||(zn.current&1)!==0?nr===0&&(nr=3):wm())),a.updateQueue!==null&&(a.flags|=4),xr(a),null);case 4:return Va(),cm(i,a),i===null&&Ul(a.stateNode.containerInfo),xr(a),null;case 10:return Lf(a.type._context),xr(a),null;case 17:return Dr(a.type)&&Ec(),xr(a),null;case 19:if(Nn(zn),E=a.memoizedState,E===null)return xr(a),null;if(h=(a.flags&128)!==0,j=E.rendering,j===null)if(h)os(E,!1);else{if(nr!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(j=zc(i),j!==null){for(a.flags|=128,os(E,!1),h=j.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),a.subtreeFlags=0,h=f,f=a.child;f!==null;)E=f,i=h,E.flags&=14680066,j=E.alternate,j===null?(E.childLanes=0,E.lanes=i,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=j.childLanes,E.lanes=j.lanes,E.child=j.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=j.memoizedProps,E.memoizedState=j.memoizedState,E.updateQueue=j.updateQueue,E.type=j.type,i=j.dependencies,E.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),f=f.sibling;return _n(zn,zn.current&1|2),a.child}i=i.sibling}E.tail!==null&&dt()>Ga&&(a.flags|=128,h=!0,os(E,!1),a.lanes=4194304)}else{if(!h)if(i=zc(j),i!==null){if(a.flags|=128,h=!0,f=i.updateQueue,f!==null&&(a.updateQueue=f,a.flags|=4),os(E,!0),E.tail===null&&E.tailMode==="hidden"&&!j.alternate&&!Mn)return xr(a),null}else 2*dt()-E.renderingStartTime>Ga&&f!==1073741824&&(a.flags|=128,h=!0,os(E,!1),a.lanes=4194304);E.isBackwards?(j.sibling=a.child,a.child=j):(f=E.last,f!==null?f.sibling=j:a.child=j,E.last=j)}return E.tail!==null?(a=E.tail,E.rendering=a,E.tail=a.sibling,E.renderingStartTime=dt(),a.sibling=null,f=zn.current,_n(zn,h?f&1|2:f&1),a):(xr(a),null);case 22:case 23:return xm(),h=a.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(a.flags|=8192),h&&(a.mode&1)!==0?(Qr&1073741824)!==0&&(xr(a),a.subtreeFlags&6&&(a.flags|=8192)):xr(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function fE(i,a){switch(Pf(a),a.tag){case 1:return Dr(a.type)&&Ec(),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return Va(),Nn(Br),Nn(Cr),Wf(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 5:return Ff(a),null;case 13:if(Nn(zn),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Ba()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return Nn(zn),null;case 4:return Va(),null;case 10:return Lf(a.type._context),null;case 22:case 23:return xm(),null;case 24:return null;default:return null}}var qc=!1,wr=!1,mE=typeof WeakSet=="function"?WeakSet:Set,pt=null;function qa(i,a){var f=i.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(h){Dn(i,a,h)}else f.current=null}function um(i,a,f){try{f()}catch(h){Dn(i,a,h)}}var F0=!1;function pE(i,a){if(xf=dc,i=Cv(),pf(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var h=f.getSelection&&f.getSelection();if(h&&h.rangeCount!==0){f=h.anchorNode;var x=h.anchorOffset,E=h.focusNode;h=h.focusOffset;try{f.nodeType,E.nodeType}catch{f=null;break e}var j=0,X=-1,oe=-1,be=0,Me=0,Ae=i,Te=null;t:for(;;){for(var at;Ae!==f||x!==0&&Ae.nodeType!==3||(X=j+x),Ae!==E||h!==0&&Ae.nodeType!==3||(oe=j+h),Ae.nodeType===3&&(j+=Ae.nodeValue.length),(at=Ae.firstChild)!==null;)Te=Ae,Ae=at;for(;;){if(Ae===i)break t;if(Te===f&&++be===x&&(X=j),Te===E&&++Me===h&&(oe=j),(at=Ae.nextSibling)!==null)break;Ae=Te,Te=Ae.parentNode}Ae=at}f=X===-1||oe===-1?null:{start:X,end:oe}}else f=null}f=f||{start:0,end:0}}else f=null;for(wf={focusedElem:i,selectionRange:f},dc=!1,pt=a;pt!==null;)if(a=pt,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,pt=i;else for(;pt!==null;){a=pt;try{var vt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(vt!==null){var yt=vt.memoizedProps,qn=vt.memoizedState,pe=a.stateNode,ie=pe.getSnapshotBeforeUpdate(a.elementType===a.type?yt:Ro(a.type,yt),qn);pe.__reactInternalSnapshotBeforeUpdate=ie}break;case 3:var ge=a.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(De){Dn(a,a.return,De)}if(i=a.sibling,i!==null){i.return=a.return,pt=i;break}pt=a.return}return vt=F0,F0=!1,vt}function is(i,a,f){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var x=h=h.next;do{if((x.tag&i)===i){var E=x.destroy;x.destroy=void 0,E!==void 0&&um(a,f,E)}x=x.next}while(x!==h)}}function Uc(i,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&i)===i){var h=f.create;f.destroy=h()}f=f.next}while(f!==a)}}function dm(i){var a=i.ref;if(a!==null){var f=i.stateNode;switch(i.tag){case 5:i=f;break;default:i=f}typeof a=="function"?a(i):a.current=i}}function V0(i){var a=i.alternate;a!==null&&(i.alternate=null,V0(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&(delete a[Bo],delete a[Kl],delete a[Of],delete a[Y$],delete a[Q$])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function W0(i){return i.tag===5||i.tag===3||i.tag===4}function q0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||W0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function fm(i,a,f){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?f.nodeType===8?f.parentNode.insertBefore(i,a):f.insertBefore(i,a):(f.nodeType===8?(a=f.parentNode,a.insertBefore(i,f)):(a=f,a.appendChild(i)),f=f._reactRootContainer,f!=null||a.onclick!==null||(a.onclick=wc));else if(h!==4&&(i=i.child,i!==null))for(fm(i,a,f),i=i.sibling;i!==null;)fm(i,a,f),i=i.sibling}function mm(i,a,f){var h=i.tag;if(h===5||h===6)i=i.stateNode,a?f.insertBefore(i,a):f.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(mm(i,a,f),i=i.sibling;i!==null;)mm(i,a,f),i=i.sibling}var mr=null,Oo=!1;function Ri(i,a,f){for(f=f.child;f!==null;)U0(i,a,f),f=f.sibling}function U0(i,a,f){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Ot,f)}catch{}switch(f.tag){case 5:wr||qa(f,a);case 6:var h=mr,x=Oo;mr=null,Ri(i,a,f),mr=h,Oo=x,mr!==null&&(Oo?(i=mr,f=f.stateNode,i.nodeType===8?i.parentNode.removeChild(f):i.removeChild(f)):mr.removeChild(f.stateNode));break;case 18:mr!==null&&(Oo?(i=mr,f=f.stateNode,i.nodeType===8?Rf(i.parentNode,f):i.nodeType===1&&Rf(i,f),vi(i)):Rf(mr,f.stateNode));break;case 4:h=mr,x=Oo,mr=f.stateNode.containerInfo,Oo=!0,Ri(i,a,f),mr=h,Oo=x;break;case 0:case 11:case 14:case 15:if(!wr&&(h=f.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){x=h=h.next;do{var E=x,j=E.destroy;E=E.tag,j!==void 0&&((E&2)!==0||(E&4)!==0)&&um(f,a,j),x=x.next}while(x!==h)}Ri(i,a,f);break;case 1:if(!wr&&(qa(f,a),h=f.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=f.memoizedProps,h.state=f.memoizedState,h.componentWillUnmount()}catch(X){Dn(f,a,X)}Ri(i,a,f);break;case 21:Ri(i,a,f);break;case 22:f.mode&1?(wr=(h=wr)||f.memoizedState!==null,Ri(i,a,f),wr=h):Ri(i,a,f);break;default:Ri(i,a,f)}}function G0(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var f=i.stateNode;f===null&&(f=i.stateNode=new mE),a.forEach(function(h){var x=wE.bind(null,i,h);f.has(h)||(f.add(h),h.then(x,x))})}}function Io(i,a){var f=a.deletions;if(f!==null)for(var h=0;h<f.length;h++){var x=f[h];try{var E=i,j=a,X=j;e:for(;X!==null;){switch(X.tag){case 5:mr=X.stateNode,Oo=!1;break e;case 3:mr=X.stateNode.containerInfo,Oo=!0;break e;case 4:mr=X.stateNode.containerInfo,Oo=!0;break e}X=X.return}if(mr===null)throw Error(n(160));U0(E,j,x),mr=null,Oo=!1;var oe=x.alternate;oe!==null&&(oe.return=null),x.return=null}catch(be){Dn(x,a,be)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)K0(a,i),a=a.sibling}function K0(i,a){var f=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Io(a,i),Fo(i),h&4){try{is(3,i,i.return),Uc(3,i)}catch(yt){Dn(i,i.return,yt)}try{is(5,i,i.return)}catch(yt){Dn(i,i.return,yt)}}break;case 1:Io(a,i),Fo(i),h&512&&f!==null&&qa(f,f.return);break;case 5:if(Io(a,i),Fo(i),h&512&&f!==null&&qa(f,f.return),i.flags&32){var x=i.stateNode;try{st(x,"")}catch(yt){Dn(i,i.return,yt)}}if(h&4&&(x=i.stateNode,x!=null)){var E=i.memoizedProps,j=f!==null?f.memoizedProps:E,X=i.type,oe=i.updateQueue;if(i.updateQueue=null,oe!==null)try{X==="input"&&E.type==="radio"&&E.name!=null&&se(x,E),He(X,j);var be=He(X,E);for(j=0;j<oe.length;j+=2){var Me=oe[j],Ae=oe[j+1];Me==="style"?je(x,Ae):Me==="dangerouslySetInnerHTML"?Ue(x,Ae):Me==="children"?st(x,Ae):R(x,Me,Ae,be)}switch(X){case"input":ve(x,E);break;case"textarea":Ie(x,E);break;case"select":var Te=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!E.multiple;var at=E.value;at!=null?we(x,!!E.multiple,at,!1):Te!==!!E.multiple&&(E.defaultValue!=null?we(x,!!E.multiple,E.defaultValue,!0):we(x,!!E.multiple,E.multiple?[]:"",!1))}x[Kl]=E}catch(yt){Dn(i,i.return,yt)}}break;case 6:if(Io(a,i),Fo(i),h&4){if(i.stateNode===null)throw Error(n(162));x=i.stateNode,E=i.memoizedProps;try{x.nodeValue=E}catch(yt){Dn(i,i.return,yt)}}break;case 3:if(Io(a,i),Fo(i),h&4&&f!==null&&f.memoizedState.isDehydrated)try{vi(a.containerInfo)}catch(yt){Dn(i,i.return,yt)}break;case 4:Io(a,i),Fo(i);break;case 13:Io(a,i),Fo(i),x=i.child,x.flags&8192&&(E=x.memoizedState!==null,x.stateNode.isHidden=E,!E||x.alternate!==null&&x.alternate.memoizedState!==null||(hm=dt())),h&4&&G0(i);break;case 22:if(Me=f!==null&&f.memoizedState!==null,i.mode&1?(wr=(be=wr)||Me,Io(a,i),wr=be):Io(a,i),Fo(i),h&8192){if(be=i.memoizedState!==null,(i.stateNode.isHidden=be)&&!Me&&(i.mode&1)!==0)for(pt=i,Me=i.child;Me!==null;){for(Ae=pt=Me;pt!==null;){switch(Te=pt,at=Te.child,Te.tag){case 0:case 11:case 14:case 15:is(4,Te,Te.return);break;case 1:qa(Te,Te.return);var vt=Te.stateNode;if(typeof vt.componentWillUnmount=="function"){h=Te,f=Te.return;try{a=h,vt.props=a.memoizedProps,vt.state=a.memoizedState,vt.componentWillUnmount()}catch(yt){Dn(h,f,yt)}}break;case 5:qa(Te,Te.return);break;case 22:if(Te.memoizedState!==null){Q0(Ae);continue}}at!==null?(at.return=Te,pt=at):Q0(Ae)}Me=Me.sibling}e:for(Me=null,Ae=i;;){if(Ae.tag===5){if(Me===null){Me=Ae;try{x=Ae.stateNode,be?(E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(X=Ae.stateNode,oe=Ae.memoizedProps.style,j=oe!=null&&oe.hasOwnProperty("display")?oe.display:null,X.style.display=Ye("display",j))}catch(yt){Dn(i,i.return,yt)}}}else if(Ae.tag===6){if(Me===null)try{Ae.stateNode.nodeValue=be?"":Ae.memoizedProps}catch(yt){Dn(i,i.return,yt)}}else if((Ae.tag!==22&&Ae.tag!==23||Ae.memoizedState===null||Ae===i)&&Ae.child!==null){Ae.child.return=Ae,Ae=Ae.child;continue}if(Ae===i)break e;for(;Ae.sibling===null;){if(Ae.return===null||Ae.return===i)break e;Me===Ae&&(Me=null),Ae=Ae.return}Me===Ae&&(Me=null),Ae.sibling.return=Ae.return,Ae=Ae.sibling}}break;case 19:Io(a,i),Fo(i),h&4&&G0(i);break;case 21:break;default:Io(a,i),Fo(i)}}function Fo(i){var a=i.flags;if(a&2){try{e:{for(var f=i.return;f!==null;){if(W0(f)){var h=f;break e}f=f.return}throw Error(n(160))}switch(h.tag){case 5:var x=h.stateNode;h.flags&32&&(st(x,""),h.flags&=-33);var E=q0(i);mm(i,E,x);break;case 3:case 4:var j=h.stateNode.containerInfo,X=q0(i);fm(i,X,j);break;default:throw Error(n(161))}}catch(oe){Dn(i,i.return,oe)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function gE(i,a,f){pt=i,X0(i)}function X0(i,a,f){for(var h=(i.mode&1)!==0;pt!==null;){var x=pt,E=x.child;if(x.tag===22&&h){var j=x.memoizedState!==null||qc;if(!j){var X=x.alternate,oe=X!==null&&X.memoizedState!==null||wr;X=qc;var be=wr;if(qc=j,(wr=oe)&&!be)for(pt=x;pt!==null;)j=pt,oe=j.child,j.tag===22&&j.memoizedState!==null?J0(x):oe!==null?(oe.return=j,pt=oe):J0(x);for(;E!==null;)pt=E,X0(E),E=E.sibling;pt=x,qc=X,wr=be}Y0(i)}else(x.subtreeFlags&8772)!==0&&E!==null?(E.return=x,pt=E):Y0(i)}}function Y0(i){for(;pt!==null;){var a=pt;if((a.flags&8772)!==0){var f=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:wr||Uc(5,a);break;case 1:var h=a.stateNode;if(a.flags&4&&!wr)if(f===null)h.componentDidMount();else{var x=a.elementType===a.type?f.memoizedProps:Ro(a.type,f.memoizedProps);h.componentDidUpdate(x,f.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var E=a.updateQueue;E!==null&&Qv(a,E,h);break;case 3:var j=a.updateQueue;if(j!==null){if(f=null,a.child!==null)switch(a.child.tag){case 5:f=a.child.stateNode;break;case 1:f=a.child.stateNode}Qv(a,j,f)}break;case 5:var X=a.stateNode;if(f===null&&a.flags&4){f=X;var oe=a.memoizedProps;switch(a.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(a.memoizedState===null){var be=a.alternate;if(be!==null){var Me=be.memoizedState;if(Me!==null){var Ae=Me.dehydrated;Ae!==null&&vi(Ae)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}wr||a.flags&512&&dm(a)}catch(Te){Dn(a,a.return,Te)}}if(a===i){pt=null;break}if(f=a.sibling,f!==null){f.return=a.return,pt=f;break}pt=a.return}}function Q0(i){for(;pt!==null;){var a=pt;if(a===i){pt=null;break}var f=a.sibling;if(f!==null){f.return=a.return,pt=f;break}pt=a.return}}function J0(i){for(;pt!==null;){var a=pt;try{switch(a.tag){case 0:case 11:case 15:var f=a.return;try{Uc(4,a)}catch(oe){Dn(a,f,oe)}break;case 1:var h=a.stateNode;if(typeof h.componentDidMount=="function"){var x=a.return;try{h.componentDidMount()}catch(oe){Dn(a,x,oe)}}var E=a.return;try{dm(a)}catch(oe){Dn(a,E,oe)}break;case 5:var j=a.return;try{dm(a)}catch(oe){Dn(a,j,oe)}}}catch(oe){Dn(a,a.return,oe)}if(a===i){pt=null;break}var X=a.sibling;if(X!==null){X.return=a.return,pt=X;break}pt=a.return}}var hE=Math.ceil,Gc=O.ReactCurrentDispatcher,pm=O.ReactCurrentOwner,uo=O.ReactCurrentBatchConfig,sn=0,lr=null,Gn=null,pr=0,Qr=0,Ua=Si(0),nr=0,as=null,ta=0,Kc=0,gm=0,ls=null,Fr=null,hm=0,Ga=1/0,si=null,Xc=!1,vm=null,Oi=null,Yc=!1,Ii=null,Qc=0,ss=0,ym=null,Jc=-1,Zc=0;function Pr(){return(sn&6)!==0?dt():Jc!==-1?Jc:Jc=dt()}function _i(i){return(i.mode&1)===0?1:(sn&2)!==0&&pr!==0?pr&-pr:Z$.transition!==null?(Zc===0&&(Zc=nn()),Zc):(i=Dt,i!==0||(i=window.event,i=i===void 0?16:ev(i.type)),i)}function _o(i,a,f,h){if(50<ss)throw ss=0,ym=null,Error(n(185));gn(i,f,h),((sn&2)===0||i!==lr)&&(i===lr&&((sn&2)===0&&(Kc|=f),nr===4&&Ti(i,pr)),Vr(i,h),f===1&&sn===0&&(a.mode&1)===0&&(Ga=dt()+500,Oc&&wi()))}function Vr(i,a){var f=i.callbackNode;et(i,a);var h=tn(i,i===lr?pr:0);if(h===0)f!==null&&Le(f),i.callbackNode=null,i.callbackPriority=0;else if(a=h&-h,i.callbackPriority!==a){if(f!=null&&Le(f),a===1)i.tag===0?J$(ey.bind(null,i)):Bv(ey.bind(null,i)),K$(function(){(sn&6)===0&&wi()}),f=null;else{switch(er(h)){case 1:f=Ke;break;case 4:f=wt;break;case 16:f=Ft;break;case 536870912:f=ft;break;default:f=Ft}f=sy(f,Z0.bind(null,i))}i.callbackPriority=a,i.callbackNode=f}}function Z0(i,a){if(Jc=-1,Zc=0,(sn&6)!==0)throw Error(n(327));var f=i.callbackNode;if(Ka()&&i.callbackNode!==f)return null;var h=tn(i,i===lr?pr:0);if(h===0)return null;if((h&30)!==0||(h&i.expiredLanes)!==0||a)a=eu(i,h);else{a=h;var x=sn;sn|=2;var E=ny();(lr!==i||pr!==a)&&(si=null,Ga=dt()+500,ra(i,a));do try{bE();break}catch(X){ty(i,X)}while(!0);zf(),Gc.current=E,sn=x,Gn!==null?a=0:(lr=null,pr=0,a=nr)}if(a!==0){if(a===2&&(x=Jt(i),x!==0&&(h=x,a=bm(i,x))),a===1)throw f=as,ra(i,0),Ti(i,h),Vr(i,dt()),f;if(a===6)Ti(i,h);else{if(x=i.current.alternate,(h&30)===0&&!vE(x)&&(a=eu(i,h),a===2&&(E=Jt(i),E!==0&&(h=E,a=bm(i,E))),a===1))throw f=as,ra(i,0),Ti(i,h),Vr(i,dt()),f;switch(i.finishedWork=x,i.finishedLanes=h,a){case 0:case 1:throw Error(n(345));case 2:oa(i,Fr,si);break;case 3:if(Ti(i,h),(h&130023424)===h&&(a=hm+500-dt(),10<a)){if(tn(i,0)!==0)break;if(x=i.suspendedLanes,(x&h)!==h){Pr(),i.pingedLanes|=i.suspendedLanes&x;break}i.timeoutHandle=Ef(oa.bind(null,i,Fr,si),a);break}oa(i,Fr,si);break;case 4:if(Ti(i,h),(h&4194240)===h)break;for(a=i.eventTimes,x=-1;0<h;){var j=31-On(h);E=1<<j,j=a[j],j>x&&(x=j),h&=~E}if(h=x,h=dt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*hE(h/1960))-h,10<h){i.timeoutHandle=Ef(oa.bind(null,i,Fr,si),h);break}oa(i,Fr,si);break;case 5:oa(i,Fr,si);break;default:throw Error(n(329))}}}return Vr(i,dt()),i.callbackNode===f?Z0.bind(null,i):null}function bm(i,a){var f=ls;return i.current.memoizedState.isDehydrated&&(ra(i,a).flags|=256),i=eu(i,a),i!==2&&(a=Fr,Fr=f,a!==null&&Cm(a)),i}function Cm(i){Fr===null?Fr=i:Fr.push.apply(Fr,i)}function vE(i){for(var a=i;;){if(a.flags&16384){var f=a.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var h=0;h<f.length;h++){var x=f[h],E=x.getSnapshot;x=x.value;try{if(!$o(E(),x))return!1}catch{return!1}}}if(f=a.child,a.subtreeFlags&16384&&f!==null)f.return=a,a=f;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ti(i,a){for(a&=~gm,a&=~Kc,i.suspendedLanes|=a,i.pingedLanes&=~a,i=i.expirationTimes;0<a;){var f=31-On(a),h=1<<f;i[f]=-1,a&=~h}}function ey(i){if((sn&6)!==0)throw Error(n(327));Ka();var a=tn(i,0);if((a&1)===0)return Vr(i,dt()),null;var f=eu(i,a);if(i.tag!==0&&f===2){var h=Jt(i);h!==0&&(a=h,f=bm(i,h))}if(f===1)throw f=as,ra(i,0),Ti(i,a),Vr(i,dt()),f;if(f===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=a,oa(i,Fr,si),Vr(i,dt()),null}function Sm(i,a){var f=sn;sn|=1;try{return i(a)}finally{sn=f,sn===0&&(Ga=dt()+500,Oc&&wi())}}function na(i){Ii!==null&&Ii.tag===0&&(sn&6)===0&&Ka();var a=sn;sn|=1;var f=uo.transition,h=Dt;try{if(uo.transition=null,Dt=1,i)return i()}finally{Dt=h,uo.transition=f,sn=a,(sn&6)===0&&wi()}}function xm(){Qr=Ua.current,Nn(Ua)}function ra(i,a){i.finishedWork=null,i.finishedLanes=0;var f=i.timeoutHandle;if(f!==-1&&(i.timeoutHandle=-1,G$(f)),Gn!==null)for(f=Gn.return;f!==null;){var h=f;switch(Pf(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Ec();break;case 3:Va(),Nn(Br),Nn(Cr),Wf();break;case 5:Ff(h);break;case 4:Va();break;case 13:Nn(zn);break;case 19:Nn(zn);break;case 10:Lf(h.type._context);break;case 22:case 23:xm()}f=f.return}if(lr=i,Gn=i=Pi(i.current,null),pr=Qr=a,nr=0,as=null,gm=Kc=ta=0,Fr=ls=null,Ji!==null){for(a=0;a<Ji.length;a++)if(f=Ji[a],h=f.interleaved,h!==null){f.interleaved=null;var x=h.next,E=f.pending;if(E!==null){var j=E.next;E.next=x,h.next=j}f.pending=h}Ji=null}return i}function ty(i,a){do{var f=Gn;try{if(zf(),Lc.current=Hc,Ac){for(var h=Ln.memoizedState;h!==null;){var x=h.queue;x!==null&&(x.pending=null),h=h.next}Ac=!1}if(ea=0,ar=tr=Ln=null,es=!1,ts=0,pm.current=null,f===null||f.return===null){nr=1,as=a,Gn=null;break}e:{var E=i,j=f.return,X=f,oe=a;if(a=pr,X.flags|=32768,oe!==null&&typeof oe=="object"&&typeof oe.then=="function"){var be=oe,Me=X,Ae=Me.tag;if((Me.mode&1)===0&&(Ae===0||Ae===11||Ae===15)){var Te=Me.alternate;Te?(Me.updateQueue=Te.updateQueue,Me.memoizedState=Te.memoizedState,Me.lanes=Te.lanes):(Me.updateQueue=null,Me.memoizedState=null)}var at=R0(j);if(at!==null){at.flags&=-257,O0(at,j,X,E,a),at.mode&1&&E0(E,be,a),a=at,oe=be;var vt=a.updateQueue;if(vt===null){var yt=new Set;yt.add(oe),a.updateQueue=yt}else vt.add(oe);break e}else{if((a&1)===0){E0(E,be,a),wm();break e}oe=Error(n(426))}}else if(Mn&&X.mode&1){var qn=R0(j);if(qn!==null){(qn.flags&65536)===0&&(qn.flags|=256),O0(qn,j,X,E,a),Mf(Wa(oe,X));break e}}E=oe=Wa(oe,X),nr!==4&&(nr=2),ls===null?ls=[E]:ls.push(E),E=j;do{switch(E.tag){case 3:E.flags|=65536,a&=-a,E.lanes|=a;var pe=w0(E,oe,a);Yv(E,pe);break e;case 1:X=oe;var ie=E.type,ge=E.stateNode;if((E.flags&128)===0&&(typeof ie.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(Oi===null||!Oi.has(ge)))){E.flags|=65536,a&=-a,E.lanes|=a;var De=$0(E,X,a);Yv(E,De);break e}}E=E.return}while(E!==null)}oy(f)}catch(bt){a=bt,Gn===f&&f!==null&&(Gn=f=f.return);continue}break}while(!0)}function ny(){var i=Gc.current;return Gc.current=Hc,i===null?Hc:i}function wm(){(nr===0||nr===3||nr===2)&&(nr=4),lr===null||(ta&268435455)===0&&(Kc&268435455)===0||Ti(lr,pr)}function eu(i,a){var f=sn;sn|=2;var h=ny();(lr!==i||pr!==a)&&(si=null,ra(i,a));do try{yE();break}catch(x){ty(i,x)}while(!0);if(zf(),sn=f,Gc.current=h,Gn!==null)throw Error(n(261));return lr=null,pr=0,nr}function yE(){for(;Gn!==null;)ry(Gn)}function bE(){for(;Gn!==null&&!qe();)ry(Gn)}function ry(i){var a=ly(i.alternate,i,Qr);i.memoizedProps=i.pendingProps,a===null?oy(i):Gn=a,pm.current=null}function oy(i){var a=i;do{var f=a.alternate;if(i=a.return,(a.flags&32768)===0){if(f=dE(f,a,Qr),f!==null){Gn=f;return}}else{if(f=fE(f,a),f!==null){f.flags&=32767,Gn=f;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{nr=6,Gn=null;return}}if(a=a.sibling,a!==null){Gn=a;return}Gn=a=i}while(a!==null);nr===0&&(nr=5)}function oa(i,a,f){var h=Dt,x=uo.transition;try{uo.transition=null,Dt=1,CE(i,a,f,h)}finally{uo.transition=x,Dt=h}return null}function CE(i,a,f,h){do Ka();while(Ii!==null);if((sn&6)!==0)throw Error(n(327));f=i.finishedWork;var x=i.finishedLanes;if(f===null)return null;if(i.finishedWork=null,i.finishedLanes=0,f===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var E=f.lanes|f.childLanes;if(fr(i,E),i===lr&&(Gn=lr=null,pr=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||Yc||(Yc=!0,sy(Ft,function(){return Ka(),null})),E=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||E){E=uo.transition,uo.transition=null;var j=Dt;Dt=1;var X=sn;sn|=4,pm.current=null,pE(i,f),K0(f,i),D$(wf),dc=!!xf,wf=xf=null,i.current=f,gE(f),$t(),sn=X,Dt=j,uo.transition=E}else i.current=f;if(Yc&&(Yc=!1,Ii=i,Qc=x),E=i.pendingLanes,E===0&&(Oi=null),Vn(f.stateNode),Vr(i,dt()),a!==null)for(h=i.onRecoverableError,f=0;f<a.length;f++)x=a[f],h(x.value,{componentStack:x.stack,digest:x.digest});if(Xc)throw Xc=!1,i=vm,vm=null,i;return(Qc&1)!==0&&i.tag!==0&&Ka(),E=i.pendingLanes,(E&1)!==0?i===ym?ss++:(ss=0,ym=i):ss=0,wi(),null}function Ka(){if(Ii!==null){var i=er(Qc),a=uo.transition,f=Dt;try{if(uo.transition=null,Dt=16>i?16:i,Ii===null)var h=!1;else{if(i=Ii,Ii=null,Qc=0,(sn&6)!==0)throw Error(n(331));var x=sn;for(sn|=4,pt=i.current;pt!==null;){var E=pt,j=E.child;if((pt.flags&16)!==0){var X=E.deletions;if(X!==null){for(var oe=0;oe<X.length;oe++){var be=X[oe];for(pt=be;pt!==null;){var Me=pt;switch(Me.tag){case 0:case 11:case 15:is(8,Me,E)}var Ae=Me.child;if(Ae!==null)Ae.return=Me,pt=Ae;else for(;pt!==null;){Me=pt;var Te=Me.sibling,at=Me.return;if(V0(Me),Me===be){pt=null;break}if(Te!==null){Te.return=at,pt=Te;break}pt=at}}}var vt=E.alternate;if(vt!==null){var yt=vt.child;if(yt!==null){vt.child=null;do{var qn=yt.sibling;yt.sibling=null,yt=qn}while(yt!==null)}}pt=E}}if((E.subtreeFlags&2064)!==0&&j!==null)j.return=E,pt=j;else e:for(;pt!==null;){if(E=pt,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:is(9,E,E.return)}var pe=E.sibling;if(pe!==null){pe.return=E.return,pt=pe;break e}pt=E.return}}var ie=i.current;for(pt=ie;pt!==null;){j=pt;var ge=j.child;if((j.subtreeFlags&2064)!==0&&ge!==null)ge.return=j,pt=ge;else e:for(j=ie;pt!==null;){if(X=pt,(X.flags&2048)!==0)try{switch(X.tag){case 0:case 11:case 15:Uc(9,X)}}catch(bt){Dn(X,X.return,bt)}if(X===j){pt=null;break e}var De=X.sibling;if(De!==null){De.return=X.return,pt=De;break e}pt=X.return}}if(sn=x,wi(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(Ot,i)}catch{}h=!0}return h}finally{Dt=f,uo.transition=a}}return!1}function iy(i,a,f){a=Wa(f,a),a=w0(i,a,1),i=Ei(i,a,1),a=Pr(),i!==null&&(gn(i,1,a),Vr(i,a))}function Dn(i,a,f){if(i.tag===3)iy(i,i,f);else for(;a!==null;){if(a.tag===3){iy(a,i,f);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Oi===null||!Oi.has(h))){i=Wa(f,i),i=$0(a,i,1),a=Ei(a,i,1),i=Pr(),a!==null&&(gn(a,1,i),Vr(a,i));break}}a=a.return}}function SE(i,a,f){var h=i.pingCache;h!==null&&h.delete(a),a=Pr(),i.pingedLanes|=i.suspendedLanes&f,lr===i&&(pr&f)===f&&(nr===4||nr===3&&(pr&130023424)===pr&&500>dt()-hm?ra(i,0):gm|=f),Vr(i,a)}function ay(i,a){a===0&&((i.mode&1)===0?a=1:(a=dr,dr<<=1,(dr&130023424)===0&&(dr=4194304)));var f=Pr();i=ii(i,a),i!==null&&(gn(i,a,f),Vr(i,f))}function xE(i){var a=i.memoizedState,f=0;a!==null&&(f=a.retryLane),ay(i,f)}function wE(i,a){var f=0;switch(i.tag){case 13:var h=i.stateNode,x=i.memoizedState;x!==null&&(f=x.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(a),ay(i,f)}var ly;ly=function(i,a,f){if(i!==null)if(i.memoizedProps!==a.pendingProps||Br.current)Hr=!0;else{if((i.lanes&f)===0&&(a.flags&128)===0)return Hr=!1,uE(i,a,f);Hr=(i.flags&131072)!==0}else Hr=!1,Mn&&(a.flags&1048576)!==0&&Dv(a,_c,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;Wc(i,a),i=a.pendingProps;var x=za(a,Cr.current);Fa(a,f),x=Gf(null,a,h,i,x,f);var E=Kf();return a.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Dr(h)?(E=!0,Rc(a)):E=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Df(a),x.updater=Fc,a.stateNode=x,x._reactInternals=a,em(a,h,i,f),a=om(null,a,h,!0,E,f)):(a.tag=0,Mn&&E&&Tf(a),Tr(null,a,x,f),a=a.child),a;case 16:h=a.elementType;e:{switch(Wc(i,a),i=a.pendingProps,x=h._init,h=x(h._payload),a.type=h,x=a.tag=EE(h),i=Ro(h,i),x){case 0:a=rm(null,a,h,i,f);break e;case 1:a=k0(null,a,h,i,f);break e;case 11:a=I0(null,a,h,i,f);break e;case 14:a=_0(null,a,h,Ro(h.type,i),f);break e}throw Error(n(306,h,""))}return a;case 0:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Ro(h,x),rm(i,a,h,x,f);case 1:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Ro(h,x),k0(i,a,h,x,f);case 3:e:{if(M0(a),i===null)throw Error(n(387));h=a.pendingProps,E=a.memoizedState,x=E.element,Xv(i,a),jc(a,h,null,f);var j=a.memoizedState;if(h=j.element,E.isDehydrated)if(E={element:h,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){x=Wa(Error(n(423)),a),a=j0(i,a,h,f,x);break e}else if(h!==x){x=Wa(Error(n(424)),a),a=j0(i,a,h,f,x);break e}else for(Yr=Ci(a.stateNode.containerInfo.firstChild),Xr=a,Mn=!0,Eo=null,f=Gv(a,null,h,f),a.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Ba(),h===x){a=li(i,a,f);break e}Tr(i,a,h,f)}a=a.child}return a;case 5:return Jv(a),i===null&&kf(a),h=a.type,x=a.pendingProps,E=i!==null?i.memoizedProps:null,j=x.children,$f(h,x)?j=null:E!==null&&$f(h,E)&&(a.flags|=32),N0(i,a),Tr(i,a,j,f),a.child;case 6:return i===null&&kf(a),null;case 13:return z0(i,a,f);case 4:return Hf(a,a.stateNode.containerInfo),h=a.pendingProps,i===null?a.child=Da(a,null,h,f):Tr(i,a,h,f),a.child;case 11:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Ro(h,x),I0(i,a,h,x,f);case 7:return Tr(i,a,a.pendingProps,f),a.child;case 8:return Tr(i,a,a.pendingProps.children,f),a.child;case 12:return Tr(i,a,a.pendingProps.children,f),a.child;case 10:e:{if(h=a.type._context,x=a.pendingProps,E=a.memoizedProps,j=x.value,_n(Nc,h._currentValue),h._currentValue=j,E!==null)if($o(E.value,j)){if(E.children===x.children&&!Br.current){a=li(i,a,f);break e}}else for(E=a.child,E!==null&&(E.return=a);E!==null;){var X=E.dependencies;if(X!==null){j=E.child;for(var oe=X.firstContext;oe!==null;){if(oe.context===h){if(E.tag===1){oe=ai(-1,f&-f),oe.tag=2;var be=E.updateQueue;if(be!==null){be=be.shared;var Me=be.pending;Me===null?oe.next=oe:(oe.next=Me.next,Me.next=oe),be.pending=oe}}E.lanes|=f,oe=E.alternate,oe!==null&&(oe.lanes|=f),Af(E.return,f,a),X.lanes|=f;break}oe=oe.next}}else if(E.tag===10)j=E.type===a.type?null:E.child;else if(E.tag===18){if(j=E.return,j===null)throw Error(n(341));j.lanes|=f,X=j.alternate,X!==null&&(X.lanes|=f),Af(j,f,a),j=E.sibling}else j=E.child;if(j!==null)j.return=E;else for(j=E;j!==null;){if(j===a){j=null;break}if(E=j.sibling,E!==null){E.return=j.return,j=E;break}j=j.return}E=j}Tr(i,a,x.children,f),a=a.child}return a;case 9:return x=a.type,h=a.pendingProps.children,Fa(a,f),x=so(x),h=h(x),a.flags|=1,Tr(i,a,h,f),a.child;case 14:return h=a.type,x=Ro(h,a.pendingProps),x=Ro(h.type,x),_0(i,a,h,x,f);case 15:return T0(i,a,a.type,a.pendingProps,f);case 17:return h=a.type,x=a.pendingProps,x=a.elementType===h?x:Ro(h,x),Wc(i,a),a.tag=1,Dr(h)?(i=!0,Rc(a)):i=!1,Fa(a,f),S0(a,h,x),em(a,h,x,f),om(null,a,h,!0,i,f);case 19:return A0(i,a,f);case 22:return P0(i,a,f)}throw Error(n(156,a.tag))};function sy(i,a){return on(i,a)}function $E(i,a,f,h){this.tag=i,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fo(i,a,f,h){return new $E(i,a,f,h)}function $m(i){return i=i.prototype,!(!i||!i.isReactComponent)}function EE(i){if(typeof i=="function")return $m(i)?1:0;if(i!=null){if(i=i.$$typeof,i===M)return 11;if(i===U)return 14}return 2}function Pi(i,a){var f=i.alternate;return f===null?(f=fo(i.tag,a,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=a,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&14680064,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,a=i.dependencies,f.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f}function tu(i,a,f,h,x,E){var j=2;if(h=i,typeof i=="function")$m(i)&&(j=1);else if(typeof i=="string")j=5;else e:switch(i){case T:return ia(f.children,x,E,a);case N:j=8,x|=8;break;case P:return i=fo(12,f,a,x|2),i.elementType=P,i.lanes=E,i;case D:return i=fo(13,f,a,x),i.elementType=D,i.lanes=E,i;case B:return i=fo(19,f,a,x),i.elementType=B,i.lanes=E,i;case V:return nu(f,x,E,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:j=10;break e;case A:j=9;break e;case M:j=11;break e;case U:j=14;break e;case W:j=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return a=fo(j,f,a,x),a.elementType=i,a.type=h,a.lanes=E,a}function ia(i,a,f,h){return i=fo(7,i,h,a),i.lanes=f,i}function nu(i,a,f,h){return i=fo(22,i,h,a),i.elementType=V,i.lanes=f,i.stateNode={isHidden:!1},i}function Em(i,a,f){return i=fo(6,i,null,a),i.lanes=f,i}function Rm(i,a,f){return a=fo(4,i.children!==null?i.children:[],i.key,a),a.lanes=f,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function RE(i,a,f,h,x){this.tag=a,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fn(0),this.expirationTimes=fn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fn(0),this.identifierPrefix=h,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Om(i,a,f,h,x,E,j,X,oe){return i=new RE(i,a,f,X,oe),a===1?(a=1,E===!0&&(a|=8)):a=0,E=fo(3,null,null,a),i.current=E,E.stateNode=i,E.memoizedState={element:h,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},Df(E),i}function OE(i,a,f){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:h==null?null:""+h,children:i,containerInfo:a,implementation:f}}function cy(i){if(!i)return xi;i=i._reactInternals;e:{if(Pt(i)!==i||i.tag!==1)throw Error(n(170));var a=i;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Dr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(n(171))}if(i.tag===1){var f=i.type;if(Dr(f))return Lv(i,f,a)}return a}function uy(i,a,f,h,x,E,j,X,oe){return i=Om(f,h,!0,i,x,E,j,X,oe),i.context=cy(null),f=i.current,h=Pr(),x=_i(f),E=ai(h,x),E.callback=a??null,Ei(f,E,x),i.current.lanes=x,gn(i,x,h),Vr(i,h),i}function ru(i,a,f,h){var x=a.current,E=Pr(),j=_i(x);return f=cy(f),a.context===null?a.context=f:a.pendingContext=f,a=ai(E,j),a.payload={element:i},h=h===void 0?null:h,h!==null&&(a.callback=h),i=Ei(x,a,j),i!==null&&(_o(i,x,j,E),Mc(i,x,j)),j}function ou(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function dy(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<a?f:a}}function Im(i,a){dy(i,a),(i=i.alternate)&&dy(i,a)}function IE(){return null}var fy=typeof reportError=="function"?reportError:function(i){console.error(i)};function _m(i){this._internalRoot=i}iu.prototype.render=_m.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));ru(i,a,null,null)},iu.prototype.unmount=_m.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;na(function(){ru(null,i,null,null)}),a[ti]=null}};function iu(i){this._internalRoot=i}iu.prototype.unstable_scheduleHydration=function(i){if(i){var a=hi();i={blockedOn:null,target:i,priority:a};for(var f=0;f<Gr.length&&a!==0&&a<Gr[f].priority;f++);Gr.splice(f,0,i),f===0&&En(i)}};function Tm(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function au(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function my(){}function _E(i,a,f,h,x){if(x){if(typeof h=="function"){var E=h;h=function(){var be=ou(j);E.call(be)}}var j=uy(a,h,i,0,null,!1,!1,"",my);return i._reactRootContainer=j,i[ti]=j.current,Ul(i.nodeType===8?i.parentNode:i),na(),j}for(;x=i.lastChild;)i.removeChild(x);if(typeof h=="function"){var X=h;h=function(){var be=ou(oe);X.call(be)}}var oe=Om(i,0,!1,null,null,!1,!1,"",my);return i._reactRootContainer=oe,i[ti]=oe.current,Ul(i.nodeType===8?i.parentNode:i),na(function(){ru(a,oe,f,h)}),oe}function lu(i,a,f,h,x){var E=f._reactRootContainer;if(E){var j=E;if(typeof x=="function"){var X=x;x=function(){var oe=ou(j);X.call(oe)}}ru(a,j,i,x)}else j=_E(f,a,i,x,h);return ou(j)}or=function(i){switch(i.tag){case 3:var a=i.stateNode;if(a.current.memoizedState.isDehydrated){var f=yr(a.pendingLanes);f!==0&&(Wn(a,f|1),Vr(a,dt()),(sn&6)===0&&(Ga=dt()+500,wi()))}break;case 13:na(function(){var h=ii(i,1);if(h!==null){var x=Pr();_o(h,i,1,x)}}),Im(i,1)}},Lr=function(i){if(i.tag===13){var a=ii(i,134217728);if(a!==null){var f=Pr();_o(a,i,134217728,f)}Im(i,134217728)}},ir=function(i){if(i.tag===13){var a=_i(i),f=ii(i,a);if(f!==null){var h=Pr();_o(f,i,a,h)}Im(i,a)}},hi=function(){return Dt},wa=function(i,a){var f=Dt;try{return Dt=i,a()}finally{Dt=f}},Gt=function(i,a,f){switch(a){case"input":if(ve(i,f),a=f.name,f.type==="radio"&&a!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<f.length;a++){var h=f[a];if(h!==i&&h.form===i.form){var x=$c(h);if(!x)throw Error(n(90));ce(h),ve(h,x)}}}break;case"textarea":Ie(i,f);break;case"select":a=f.value,a!=null&&we(i,!!f.multiple,a,!1)}},xt=Sm,Qt=na;var TE={usingClientEntryPoint:!1,Events:[Xl,Ma,$c,Yt,jt,Sm]},cs={findFiberByHostInstance:Ki,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},PE={bundleType:cs.bundleType,version:cs.version,rendererPackageName:cs.rendererPackageName,rendererConfig:cs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Tn(i),i===null?null:i.stateNode},findFiberByHostInstance:cs.findFiberByHostInstance||IE,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 su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{Ot=su.inject(PE),ln=su}catch{}}return Wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=TE,Wr.createPortal=function(i,a){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tm(a))throw Error(n(200));return OE(i,a,null,f)},Wr.createRoot=function(i,a){if(!Tm(i))throw Error(n(299));var f=!1,h="",x=fy;return a!=null&&(a.unstable_strictMode===!0&&(f=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=Om(i,1,!1,null,null,f,!1,h,x),i[ti]=a.current,Ul(i.nodeType===8?i.parentNode:i),new _m(a)},Wr.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=Tn(a),i=i===null?null:i.stateNode,i},Wr.flushSync=function(i){return na(i)},Wr.hydrate=function(i,a,f){if(!au(a))throw Error(n(200));return lu(null,i,a,!0,f)},Wr.hydrateRoot=function(i,a,f){if(!Tm(i))throw Error(n(405));var h=f!=null&&f.hydratedSources||null,x=!1,E="",j=fy;if(f!=null&&(f.unstable_strictMode===!0&&(x=!0),f.identifierPrefix!==void 0&&(E=f.identifierPrefix),f.onRecoverableError!==void 0&&(j=f.onRecoverableError)),a=uy(a,null,i,1,f??null,x,!1,E,j),i[ti]=a.current,Ul(i),h)for(i=0;i<h.length;i++)f=h[i],x=f._getVersion,x=x(f._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[f,x]:a.mutableSourceEagerHydrationData.push(f,x);return new iu(a)},Wr.render=function(i,a,f){if(!au(a))throw Error(n(200));return lu(null,i,a,!1,f)},Wr.unmountComponentAtNode=function(i){if(!au(i))throw Error(n(40));return i._reactRootContainer?(na(function(){lu(null,null,i,!1,function(){i._reactRootContainer=null,i[ti]=null})}),!0):!1},Wr.unstable_batchedUpdates=Sm,Wr.unstable_renderSubtreeIntoContainer=function(i,a,f,h){if(!au(f))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return lu(i,a,f,!1,h)},Wr.version="18.3.1-next-f1338f8080-20240426",Wr}var Sy;function BC(){if(Sy)return km.exports;Sy=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(),km.exports=DE(),km.exports}var xy;function HE(){if(xy)return cu;xy=1;var e=BC();return cu.createRoot=e.createRoot,cu.hydrateRoot=e.hydrateRoot,cu}var FE=HE();const VE=Gs(FE);var zm={exports:{}};/*!
|
|
41
|
+
Copyright (c) 2018 Jed Watson.
|
|
42
|
+
Licensed under the MIT License (MIT), see
|
|
43
|
+
http://jedwatson.github.io/classnames
|
|
44
|
+
*/var wy;function WE(){return wy||(wy=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})()})(zm)),zm.exports}var qE=WE();const ee=Gs(qE);function Re(){return Re=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},Re.apply(null,arguments)}function gt(e){"@babel/helpers - typeof";return gt=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},gt(e)}var UE=Symbol.for("react.element"),GE=Symbol.for("react.transitional.element"),KE=Symbol.for("react.fragment");function DC(e){return e&>(e)==="object"&&(e.$$typeof===UE||e.$$typeof===GE)&&e.type===KE}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)):DC(r)&&r.props?n=n.concat(Mr(r.props.children,t)):n.push(r))}),n}var _p={},XE=function(t){};function YE(e,t){}function QE(e,t){}function JE(){_p={}}function HC(e,t,n){!t&&!_p[n]&&(e(!1,n),_p[n]=!0)}function ur(e,t){HC(YE,e,t)}function ZE(e,t){HC(QE,e,t)}ur.preMessage=XE;ur.resetWarned=JE;ur.noteOnce=ZE;function e4(e,t){if(gt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FC(e){var t=e4(e,"string");return gt(t)=="symbol"?t:t+""}function G(e,t,n){return(t=FC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $y(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?$y(Object(n),!0).forEach(function(r){G(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$y(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Fi=BC();const Tp=Gs(Fi),t4=AC({__proto__:null,default:Tp},[Fi]);function _s(e){return e instanceof HTMLElement||e instanceof SVGElement}function n4(e){return e&>(e)==="object"&&_s(e.nativeElement)?e.nativeElement:_s(e)?e:null}function Ou(e){var t=n4(e);if(t)return t;if(e instanceof J.Component){var n;return(n=Tp.findDOMNode)===null||n===void 0?void 0:n.call(Tp,e)}return null}var Lm={exports:{}},vn={};/**
|
|
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 Ey;function r4(){if(Ey)return vn;Ey=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"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function C(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case o:case r:case m:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case s:case d:case v:case g:case l:return b;default:return w}}case t:return w}}}return vn.ContextConsumer=s,vn.ContextProvider=l,vn.Element=e,vn.ForwardRef=d,vn.Fragment=n,vn.Lazy=v,vn.Memo=g,vn.Portal=t,vn.Profiler=o,vn.StrictMode=r,vn.Suspense=m,vn.SuspenseList=p,vn.isAsyncMode=function(){return!1},vn.isConcurrentMode=function(){return!1},vn.isContextConsumer=function(b){return C(b)===s},vn.isContextProvider=function(b){return C(b)===l},vn.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},vn.isForwardRef=function(b){return C(b)===d},vn.isFragment=function(b){return C(b)===n},vn.isLazy=function(b){return C(b)===v},vn.isMemo=function(b){return C(b)===g},vn.isPortal=function(b){return C(b)===t},vn.isProfiler=function(b){return C(b)===o},vn.isStrictMode=function(b){return C(b)===r},vn.isSuspense=function(b){return C(b)===m},vn.isSuspenseList=function(b){return C(b)===p},vn.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===m||b===p||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===g||b.$$typeof===l||b.$$typeof===s||b.$$typeof===d||b.$$typeof===S||b.getModuleId!==void 0)},vn.typeOf=C,vn}var Ry;function o4(){return Ry||(Ry=1,Lm.exports=r4()),Lm.exports}var Am=o4();function Ks(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 i4=Number(u.version.split(".")[0]),Fg=function(t,n){typeof t=="function"?t(n):gt(t)==="object"&&t&&"current"in t&&(t.current=n)},Ao=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){Fg(s,l)})}},Xo=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ks(function(){return Ao.apply(void 0,n)},n,function(o,l){return o.length!==l.length||o.every(function(s,c){return s!==l[c]})})},Gi=function(t){var n,r;if(!t)return!1;if(Vg(t)&&i4>=19)return!0;var o=Am.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Am.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Am.ForwardRef)};function Vg(e){return u.isValidElement(e)&&!DC(e)}var a4=function(t){return Vg(t)&&Gi(t)},ba=function(t){if(t&&Vg(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Pp=u.createContext(null);function l4(e){var t=e.children,n=e.onBatchResize,r=u.useRef(0),o=u.useRef([]),l=u.useContext(Pp),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(Pp.Provider,{value:s},t)}var VC=(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})()})(),Np=typeof window<"u"&&typeof document<"u"&&window.document===document,Hu=(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")()})(),s4=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),c4=2;function u4(e,t){var n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&c()}function s(){s4(l)}function c(){var d=Date.now();if(n){if(d-o<c4)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=d}return c}var d4=20,f4=["top","right","bottom","left","width","height","size","weight"],m4=typeof MutationObserver<"u",p4=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=u4(this.refresh.bind(this),d4)}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(){!Np||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m4?(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(){!Np||!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=f4.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})(),WC=(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}),Sl=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Hu}),qC=hd(0,0,0,0);function Fu(e){return parseFloat(e)||0}function Oy(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+Fu(l)},0)}function g4(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]=Fu(s)}return n}function h4(e){var t=e.getBBox();return hd(0,0,t.width,t.height)}function v4(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return qC;var r=Sl(e).getComputedStyle(e),o=g4(r),l=o.left+o.right,s=o.top+o.bottom,c=Fu(r.width),d=Fu(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+l)!==t&&(c-=Oy(r,"left","right")+l),Math.round(d+s)!==n&&(d-=Oy(r,"top","bottom")+s)),!b4(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 hd(o.left,o.top,c,d)}var y4=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Sl(e).SVGGraphicsElement}:function(e){return e instanceof Sl(e).SVGElement&&typeof e.getBBox=="function"}})();function b4(e){return e===Sl(e).document.documentElement}function C4(e){return Np?y4(e)?h4(e):v4(e):qC}function S4(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 WC(s,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),s}function hd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var x4=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=hd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=C4(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})(),w4=(function(){function e(t,n){var r=S4(n);WC(this,{target:t,contentRect:r})}return e})(),$4=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new VC,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 Sl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new x4(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 Sl(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 w4(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})(),UC=typeof WeakMap<"u"?new WeakMap:new VC,GC=(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=p4.getInstance(),r=new $4(t,n,this);UC.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){GC.prototype[e]=function(){var t;return(t=UC.get(this))[e].apply(t,arguments)}});var E4=(function(){return typeof Hu.ResizeObserver<"u"?Hu.ResizeObserver:GC})(),Li=new Map;function R4(e){e.forEach(function(t){var n,r=t.target;(n=Li.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var KC=new E4(R4);function O4(e,t){Li.has(e)||(Li.set(e,new Set),KC.observe(e)),Li.get(e).add(t)}function I4(e,t){Li.has(e)&&(Li.get(e).delete(t),Li.get(e).size||(KC.unobserve(e),Li.delete(e)))}function Yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iy(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,FC(r.key),r)}}function Qn(e,t,n){return t&&Iy(e.prototype,t),n&&Iy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ts(e,t){return Ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ts(e,t)}function fi(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&&Ts(e,t)}function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ps(e)}function Wg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wg=function(){return!!e})()}function Ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _4(e,t){if(t&&(gt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ut(e)}function mi(e){var t=Wg();return function(){var n,r=Ps(e);if(t){var o=Ps(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _4(this,n)}}var T4=(function(e){fi(n,e);var t=mi(n);function n(){return Yn(this,n),t.apply(this,arguments)}return Qn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function P4(e,t){var n=e.children,r=e.disabled,o=u.useRef(null),l=u.useRef(null),s=u.useContext(Pp),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)&&Gi(d),g=p?ba(d):null,v=Xo(g,o),y=function(){var w;return Ou(o.current)||(o.current&>(o.current)==="object"?Ou((w=o.current)===null||w===void 0?void 0:w.nativeElement):null)||Ou(l.current)};u.useImperativeHandle(t,function(){return y()});var S=u.useRef(e);S.current=e;var C=u.useCallback(function(b){var w=S.current,$=w.onResize,R=w.data,O=b.getBoundingClientRect(),_=O.width,I=O.height,T=b.offsetWidth,N=b.offsetHeight,P=Math.floor(_),k=Math.floor(I);if(m.current.width!==P||m.current.height!==k||m.current.offsetWidth!==T||m.current.offsetHeight!==N){var A={width:P,height:k,offsetWidth:T,offsetHeight:N};m.current=A;var M=T===Math.round(_)?_:T,D=N===Math.round(I)?I:N,B=K(K({},A),{},{offsetWidth:M,offsetHeight:D});s==null||s(B,b,R),$&&Promise.resolve().then(function(){$(B,b)})}},[]);return u.useEffect(function(){var b=y();return b&&!r&&O4(b,C),function(){return I4(b,C)}},[o.current,r]),u.createElement(T4,{ref:l},p?u.cloneElement(d,{ref:v}):d)}var N4=u.forwardRef(P4),k4="rc-observer-key";function M4(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(N4,Re({},e,{key:s,ref:l===0?t:void 0}),o)})}var Co=u.forwardRef(M4);Co.Collection=l4;function kp(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 j4(e){if(Array.isArray(e))return kp(e)}function XC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qg(e,t){if(e){if(typeof e=="string")return kp(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)?kp(e,t):void 0}}function z4(){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 Be(e){return j4(e)||XC(e)||qg(e)||z4()}var YC=function(t){return+setTimeout(t,16)},QC=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(YC=function(t){return window.requestAnimationFrame(t)},QC=function(t){return window.cancelAnimationFrame(t)});var _y=0,Ug=new Map;function JC(e){Ug.delete(e)}var $n=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;_y+=1;var r=_y;function o(l){if(l===0)JC(r),t();else{var s=YC(function(){o(l-1)});Ug.set(r,s)}}return o(n),r};$n.cancel=function(e){var t=Ug.get(e);return JC(e),QC(t)};function ZC(e){if(Array.isArray(e))return e}function L4(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 eS(){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 ae(e,t){return ZC(e)||L4(e,t)||qg(e,t)||eS()}function Ns(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 Mp(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 Ty="data-rc-order",Py="data-rc-priority",A4="rc-util-key",jp=new Map;function tS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):A4}function vd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function B4(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Gg(e){return Array.from((jp.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function nS(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=B4(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(Ty,s),c&&l&&d.setAttribute(Py,"".concat(l)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var m=vd(t),p=m.firstChild;if(r){if(c){var g=(t.styles||Gg(m)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(Ty)))return!1;var y=Number(v.getAttribute(Py)||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 rS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=vd(t);return(t.styles||Gg(n)).find(function(r){return r.getAttribute(tS(t))===e})}function ks(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rS(e,t);if(n){var r=vd(t);r.removeChild(n)}}function D4(e,t){var n=jp.get(e);if(!n||!Mp(document,n)){var r=nS("",t),o=r.parentNode;jp.set(e,o),e.removeChild(r)}}function ui(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=vd(n),o=Gg(r),l=K(K({},n),{},{styles:o});D4(r,l);var s=rS(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=nS(e,l);return p.setAttribute(tS(l),t),p}function H4(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 kt(e,t){if(e==null)return{};var n,r,o=H4(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 Ms(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(ur(!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&>(l)==="object"&>(s)==="object"){var g=Object.keys(l);return g.length!==Object.keys(s).length?!1:g.every(function(v){return o(l[v],s[v],m)})}return!1}return o(e,t)}var F4="%";function zp(e){return e.join(F4)}var V4=(function(){function e(t){Yn(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=t}return Qn(e,[{key:"get",value:function(n){return this.opGet(zp(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(zp(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})(),xl="data-token-hash",jo="data-css-hash",Ai="__cssinjs_instance__";function W4(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(jo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ai]=o[Ai]||e,o[Ai]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(jo,"]"))).forEach(function(o){var l=o.getAttribute(jo);if(r[l]){if(o[Ai]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else r[l]=!0})}return new V4(e)}var Xs=u.createContext({hashPriority:"low",cache:W4(),defaultCache:!0});function q4(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 Kg=(function(){function e(){Yn(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 Qn(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=ae(m,2),v=g[1];return o.internalGet(p)[1]<v?[p,o.internalGet(p)[1]]:m},[this.keys[0],this.cacheCallTimes]),s=ae(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!q4(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();G(Kg,"MAX_CACHE_SIZE",20);G(Kg,"MAX_CACHE_OFFSET",5);var Ny=0,oS=(function(){function e(t){Yn(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ny,t.length===0&&(t.length>0,void 0),Ny+=1}return Qn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Bm=new Kg;function Lp(e){var t=Array.isArray(e)?e:[e];return Bm.has(t)||Bm.set(t,new oS(t)),Bm.get(t)}var U4=new WeakMap,Dm={};function G4(e,t){for(var n=U4,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(Dm)||n.set(Dm,e()),n.get(Dm)}var ky=new WeakMap;function Rs(e){var t=ky.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof oS?t+=r.id:r&>(r)==="object"?t+=Rs(r):t+=r}),t=Ns(t),ky.set(e,t)),t}function My(e,t){return Ns("".concat(t,"_").concat(Rs(e)))}var Ap=Or();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function Vu(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({},xl,t),jo,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 Iu=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()},K4=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=ae(o,2),s=l[0],c=l[1];return"".concat(s,":").concat(c,";")}).join(""),"}"):""},iS=function(t,n,r){var o={},l={};return Object.entries(t).forEach(function(s){var c,d,m=ae(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 v,y=Iu(p,r==null?void 0:r.prefix);o[y]=typeof g=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[p])?"".concat(g,"px"):String(g),l[p]="var(".concat(y,")")}}),[l,K4(o,n,{scope:r==null?void 0:r.scope})]},jy=Or()?u.useLayoutEffect:u.useEffect,rn=function(t,n){var r=u.useRef(!0);jy(function(){return t(r.current)},n),jy(function(){return r.current=!1,function(){r.current=!0}},[])},Bp=function(t,n){rn(function(r){if(!r)return t()},n)},X4=K({},gd),zy=X4.useInsertionEffect,Y4=function(t,n,r){u.useMemo(t,r),rn(function(){return n(!0)},r)},Q4=zy?function(e,t,n){return zy(function(){return e(),t()},n)}:Y4,J4=K({},gd),Z4=J4.useInsertionEffect,e3=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},t3=function(){return function(t){t()}},n3=typeof Z4<"u"?e3:t3;function Xg(e,t,n,r,o){var l=u.useContext(Xs),s=l.cache,c=[e].concat(Be(t)),d=zp(c),m=n3([d]),p=function(S){s.opUpdate(d,function(C){var b=C||[void 0,void 0],w=ae(b,2),$=w[0],R=$===void 0?0:$,O=w[1],_=O,I=_||n(),T=[R,I];return S?S(T):T})};u.useMemo(function(){p()},[d]);var g=s.opGet(d),v=g[1];return Q4(function(){o==null||o(v)},function(y){return p(function(S){var C=ae(S,2),b=C[0],w=C[1];return y&&b===0&&(o==null||o(v)),[b+1,w]}),function(){s.opUpdate(d,function(S){var C=S||[],b=ae(C,2),w=b[0],$=w===void 0?0:w,R=b[1],O=$-1;return O===0?(m(function(){(y||!s.opGet(d))&&(r==null||r(R,!1))}),null):[$-1,R]})}},[d]),v}var r3={},o3="css",ca=new Map;function i3(e){ca.set(e,(ca.get(e)||0)+1)}function a3(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(xl,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ai]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var l3=0;function s3(e,t){ca.set(e,(ca.get(e)||0)-1);var n=new Set;ca.forEach(function(r,o){r<=0&&n.add(o)}),ca.size-n.size>l3&&n.forEach(function(r){a3(r,t),ca.delete(r)})}var c3=function(t,n,r,o){var l=r.getDerivativeToken(t),s=K(K({},l),n);return o&&(s=o(s)),s},aS="token";function u3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=u.useContext(Xs),o=r.cache.instanceId,l=r.container,s=n.salt,c=s===void 0?"":s,d=n.override,m=d===void 0?r3:d,p=n.formatToken,g=n.getComputedToken,v=n.cssVar,y=G4(function(){return Object.assign.apply(Object,[{}].concat(Be(t)))},t),S=Rs(y),C=Rs(m),b=v?Rs(v):"",w=Xg(aS,[c,e.id,S,C,b],function(){var $,R=g?g(y,m,e):c3(y,m,e,p),O=K({},R),_="";if(v){var I=iS(R,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),T=ae(I,2);R=T[0],_=T[1]}var N=My(R,c);R._tokenKey=N,O._tokenKey=My(O,c);var P=($=v==null?void 0:v.key)!==null&&$!==void 0?$:N;R._themeKey=P,i3(P);var k="".concat(o3,"-").concat(Ns(N));return R._hashId=k,[R,k,O,_,(v==null?void 0:v.key)||""]},function($){s3($[0]._themeKey,o)},function($){var R=ae($,4),O=R[0],_=R[3];if(v&&_){var I=ui(_,Ns("css-variables-".concat(O._themeKey)),{mark:jo,prepend:"queue",attachTo:l,priority:-999});I[Ai]=o,I.setAttribute(xl,O._themeKey)}});return w}var d3=function(t,n,r){var o=ae(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,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},y=Vu(s,c,p,v,m);return[g,p,y]},f3={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},lS="comm",sS="rule",cS="decl",m3="@import",p3="@namespace",g3="@keyframes",h3="@layer",uS=Math.abs,Yg=String.fromCharCode;function dS(e){return e.trim()}function _u(e,t,n){return e.replace(t,n)}function v3(e,t,n){return e.indexOf(t,n)}function vl(e,t){return e.charCodeAt(t)|0}function wl(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function y3(e){return e.length}function uu(e,t){return t.push(e),e}var yd=1,$l=1,fS=0,So=0,Kn=0,Tl="";function Qg(e,t,n,r,o,l,s,c){return{value:e,root:t,parent:n,type:r,props:o,children:l,line:yd,column:$l,length:s,return:"",siblings:c}}function b3(){return Kn}function C3(){return Kn=So>0?vl(Tl,--So):0,$l--,Kn===10&&($l=1,yd--),Kn}function zo(){return Kn=So<fS?vl(Tl,So++):0,$l++,Kn===10&&($l=1,yd++),Kn}function Bi(){return vl(Tl,So)}function Tu(){return So}function bd(e,t){return wl(Tl,e,t)}function js(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 S3(e){return yd=$l=1,fS=Vo(Tl=e),So=0,[]}function x3(e){return Tl="",e}function Hm(e){return dS(bd(So-1,Dp(e===91?e+2:e===40?e+1:e)))}function w3(e){for(;(Kn=Bi())&&Kn<33;)zo();return js(e)>2||js(Kn)>3?"":" "}function $3(e,t){for(;--t&&zo()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return bd(e,Tu()+(t<6&&Bi()==32&&zo()==32))}function Dp(e){for(;zo();)switch(Kn){case e:return So;case 34:case 39:e!==34&&e!==39&&Dp(Kn);break;case 40:e===41&&Dp(e);break;case 92:zo();break}return So}function E3(e,t){for(;zo()&&e+Kn!==57;)if(e+Kn===84&&Bi()===47)break;return"/*"+bd(t,So-1)+"*"+Yg(e===47?e:zo())}function R3(e){for(;!js(Bi());)zo();return bd(e,So)}function O3(e){return x3(Pu("",null,null,null,[""],e=S3(e),0,[0],e))}function Pu(e,t,n,r,o,l,s,c,d){for(var m=0,p=0,g=s,v=0,y=0,S=0,C=1,b=1,w=1,$=0,R="",O=o,_=l,I=r,T=R;b;)switch(S=$,$=zo()){case 40:if(S!=108&&vl(T,g-1)==58){v3(T+=_u(Hm($),"&","&\f"),"&\f",uS(m?c[m-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:T+=Hm($);break;case 9:case 10:case 13:case 32:T+=w3(S);break;case 92:T+=$3(Tu()-1,7);continue;case 47:switch(Bi()){case 42:case 47:uu(I3(E3(zo(),Tu()),t,n,d),d),(js(S||1)==5||js(Bi()||1)==5)&&Vo(T)&&wl(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*C:c[m++]=Vo(T)*w;case 125*C:case 59:case 0:switch($){case 0:case 125:b=0;case 59+p:w==-1&&(T=_u(T,/\f/g,"")),y>0&&(Vo(T)-g||C===0&&S===47)&&uu(y>32?Ay(T+";",r,n,g-1,d):Ay(_u(T," ","")+";",r,n,g-2,d),d);break;case 59:T+=";";default:if(uu(I=Ly(T,t,n,m,p,o,c,R,O=[],_=[],g,l),l),$===123)if(p===0)Pu(T,t,I,I,O,l,g,c,_);else{switch(v){case 99:if(vl(T,3)===110)break;case 108:if(vl(T,2)===97)break;default:p=0;case 100:case 109:case 115:}p?Pu(e,I,I,r&&uu(Ly(e,I,I,0,0,o,c,R,o,O=[],g,_),_),o,_,g,c,r?O:_):Pu(T,I,I,I,[""],_,0,c,_)}}m=p=y=0,C=w=1,R=T="",g=s;break;case 58:g=1+Vo(T),y=S;default:if(C<1){if($==123)--C;else if($==125&&C++==0&&C3()==125)continue}switch(T+=Yg($),$*C){case 38:w=p>0?1:(T+="\f",-1);break;case 44:c[m++]=(Vo(T)-1)*w,w=1;break;case 64:Bi()===45&&(T+=Hm(zo())),v=Bi(),p=g=Vo(R=T+=R3(Tu())),$++;break;case 45:S===45&&Vo(T)==2&&(C=0)}}return l}function Ly(e,t,n,r,o,l,s,c,d,m,p,g){for(var v=o-1,y=o===0?l:[""],S=y3(y),C=0,b=0,w=0;C<r;++C)for(var $=0,R=wl(e,v+1,v=uS(b=s[C])),O=e;$<S;++$)(O=dS(b>0?y[$]+" "+R:_u(R,/&\f/g,y[$])))&&(d[w++]=O);return Qg(e,t,n,o===0?sS:c,d,m,p,g)}function I3(e,t,n,r){return Qg(e,t,n,lS,Yg(b3()),wl(e,2,-2),0,r)}function Ay(e,t,n,r,o){return Qg(e,t,n,cS,wl(e,0,r),wl(e,r+1,-1),r,o)}function Hp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function _3(e,t,n,r){switch(e.type){case h3:if(e.children.length)break;case m3:case p3:case cS:return e.return=e.return||e.value;case lS:return"";case g3:return e.return=e.value+"{"+Hp(e.children,r)+"}";case sS:if(!Vo(e.value=e.props.join(",")))return""}return Vo(n=Hp(e.children,r))?e.return=e.value+"{"+n+"}":""}var By="data-ant-cssinjs-cache-path",mS="_FILE_STYLE__",pa,pS=!0;function T3(){if(!pa&&(pa={},Or())){var e=document.createElement("div");e.className=By,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=ae(l,2),c=s[0],d=s[1];pa[c]=d});var n=document.querySelector("style[".concat(By,"]"));if(n){var r;pS=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function P3(e){return T3(),!!pa[e]}function N3(e){var t=pa[e],n=null;if(t&&Or())if(pS)n=mS;else{var r=document.querySelector("style[".concat(jo,'="').concat(pa[e],'"]'));r?n=r.innerHTML:delete pa[e]}return[n,t]}var k3="_skip_check_",gS="_multi_value_";function Nu(e){var t=Hp(O3(e),_3);return t.replace(/\{%%%\:[^;];}/g,";")}function M3(e){return gt(e)==="object"&&e&&(k3 in e||gS in e)}function Dy(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(Be(d.slice(1))).join(" ")});return l.join(",")}var j3=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 v="",y={};function S(w){var $=w.getName(c);if(!y[$]){var R=e(w.style,n,{root:!1,parentSelectors:s}),O=ae(R,1),_=O[0];y[$]="@keyframes ".concat(w.getName(c)).concat(_)}}function C(w){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(R){Array.isArray(R)?C(R,$):R&&$.push(R)}),$}var b=C(Array.isArray(t)?t:[t]);return b.forEach(function(w){var $=typeof w=="string"&&!o?{}:w;if(typeof $=="string")v+="".concat($,`
|
|
55
|
+
`);else if($._keyframe)S($);else{var R=g.reduce(function(O,_){var I;return(_==null||(I=_.visit)===null||I===void 0?void 0:I.call(_,O))||O},$);Object.keys(R).forEach(function(O){var _=R[O];if(gt(_)==="object"&&_&&(O!=="animationName"||!_._keyframe)&&!M3(_)){var I=!1,T=O.trim(),N=!1;(o||l)&&c?T.startsWith("@")?I=!0:T==="&"?T=Dy("",c,m):T=Dy(O,c,m):o&&!c&&(T==="&"||T==="")&&(T="",N=!0);var P=e(_,n,{root:N,injectHash:I,parentSelectors:[].concat(Be(s),[T])}),k=ae(P,2),A=k[0],M=k[1];y=K(K({},y),M),v+="".concat(T).concat(A)}else{let U=function(W,V){var H=W.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),Q=V;!f3[W]&&typeof Q=="number"&&Q!==0&&(Q="".concat(Q,"px")),W==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(S(V),Q=V.getName(c)),v+="".concat(H,":").concat(Q,";")};var D,B=(D=_==null?void 0:_.value)!==null&&D!==void 0?D:_;gt(_)==="object"&&_!==null&&_!==void 0&&_[gS]&&Array.isArray(B)?B.forEach(function(W){U(O,W)}):U(O,B)}})}}),o?d&&(v&&(v="@layer ".concat(d.name," {").concat(v,"}")),d.dependencies&&(y["@layer ".concat(d.name)]=d.dependencies.map(function(w){return"@layer ".concat(w,", ").concat(d.name,";")}).join(`
|
|
56
|
+
`))):v="{".concat(v,"}"),[v,y]};function hS(e,t){return Ns("".concat(e.join("%")).concat(t))}function z3(){return null}var vS="style";function Fp(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(Xs),g=p.autoClear;p.mock;var v=p.defaultCache,y=p.hashPriority,S=p.container,C=p.ssrInline,b=p.transformers,w=p.linters,$=p.cache,R=p.layer,O=n._tokenKey,_=[O];R&&_.push("layer"),_.push.apply(_,Be(r));var I=Ap,T=Xg(vS,_,function(){var M=_.join("|");if(P3(M)){var D=N3(M),B=ae(D,2),U=B[0],W=B[1];if(U)return[U,O,W,{},c,m]}var V=t(),H=j3(V,{hashId:o,hashPriority:y,layer:R?l:void 0,path:r.join("-"),transformers:b,linters:w}),Q=ae(H,2),q=Q[0],z=Q[1],F=Nu(q),Y=hS(_,F);return[F,O,Y,z,c,m]},function(M,D){var B=ae(M,3),U=B[2];(D||g)&&Ap&&ks(U,{mark:jo,attachTo:S})},function(M){var D=ae(M,4),B=D[0];D[1];var U=D[2],W=D[3];if(I&&B!==mS){var V={mark:jo,prepend:R?!1:"queue",attachTo:S,priority:m},H=typeof s=="function"?s():s;H&&(V.csp={nonce:H});var Q=[],q=[];Object.keys(W).forEach(function(F){F.startsWith("@layer")?Q.push(F):q.push(F)}),Q.forEach(function(F){ui(Nu(W[F]),"_layer-".concat(F),K(K({},V),{},{prepend:!0}))});var z=ui(B,U,V);z[Ai]=$.instanceId,z.setAttribute(xl,O),q.forEach(function(F){ui(Nu(W[F]),"_effect-".concat(F),V)})}}),N=ae(T,3),P=N[0],k=N[1],A=N[2];return function(M){var D;return!C||I||!v?D=u.createElement(z3,null):D=u.createElement("style",Re({},G(G({},xl,k),jo,A),{dangerouslySetInnerHTML:{__html:P}})),u.createElement(u.Fragment,null,D,M)}}var L3=function(t,n,r){var o=ae(t,6),l=o[0],s=o[1],c=o[2],d=o[3],m=o[4],p=o[5],g=r||{},v=g.plain;if(m)return null;var y=l,S={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return y=Vu(l,s,c,S,v),d&&Object.keys(d).forEach(function(C){if(!n[C]){n[C]=!0;var b=Nu(d[C]),w=Vu(b,s,"_effect-".concat(C),S,v);C.startsWith("@layer")?y=w+y:y+=w}}),[p,c,y]},yS="cssVar",A3=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(Xs),g=p.cache.instanceId,v=p.container,y=c._tokenKey,S=[].concat(Be(t.path),[r,m,y]),C=Xg(yS,S,function(){var b=n(),w=iS(b,r,{prefix:o,unitless:l,ignore:s,scope:m}),$=ae(w,2),R=$[0],O=$[1],_=hS(S,O);return[R,O,_,r]},function(b){var w=ae(b,3),$=w[2];Ap&&ks($,{mark:jo,attachTo:v})},function(b){var w=ae(b,3),$=w[1],R=w[2];if($){var O=ui($,R,{mark:jo,prepend:"queue",attachTo:v,priority:-999});O[Ai]=g,O.setAttribute(xl,r)}});return C},B3=function(t,n,r){var o=ae(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)},v=Vu(l,c,s,g,m);return[p,s,v]};G(G(G({},vS,L3),aS,d3),yS,B3);var Wt=(function(){function e(t,n){Yn(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return Qn(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 Xa(e){return e.notSplit=!0,e}Xa(["borderTop","borderBottom"]),Xa(["borderTop"]),Xa(["borderBottom"]),Xa(["borderLeft","borderRight"]),Xa(["borderLeft"]),Xa(["borderRight"]);var Jg=u.createContext({});function bS(e){return ZC(e)||XC(e)||qg(e)||eS()}function Wo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function CS(e,t,n,r){if(!t.length)return n;var o=bS(t),l=o[0],s=o.slice(1),c;return!e&&typeof l=="number"?c=[]:Array.isArray(e)?c=Be(e):c=K({},e),r&&n===void 0&&s.length===1?delete c[l][s[0]]:c[l]=CS(c[l],s,n,r),c}function To(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Wo(e,t.slice(0,-1))?e:CS(e,t,n,r)}function D3(e){return gt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Hy(e){return Array.isArray(e)?[]:{}}var H3=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ul(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Hy(t[0]);return t.forEach(function(o){function l(s,c){var d=new Set(c),m=Wo(o,s),p=Array.isArray(m);if(p||D3(m)){if(!d.has(m)){d.add(m);var g=Wo(r,s);p?r=To(r,s,[]):(!g||gt(g)!=="object")&&(r=To(r,s,Hy(m))),H3(m).forEach(function(v){l([].concat(Be(s),[v]),d)})}}else r=To(r,s,m)}l([])}),r}function F3(){}const V3=u.createContext({}),Cd=()=>{const e=()=>{};return e.deprecated=F3,e},W3=u.createContext(void 0);var SS={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"},q3={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},U3=K(K({},q3),{},{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 xS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Fy={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"]},U3),timePickerLocale:Object.assign({},xS)},Jr="${label} is not a valid ${type}",Vi={locale:"en",Pagination:SS,DatePicker:Fy,TimePicker:xS,Calendar:Fy,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:Jr,method:Jr,array:Jr,object:Jr,number:Jr,date:Jr,boolean:Jr,integer:Jr,float:Jr,regexp:Jr,email:Jr,url:Jr,hex:Jr},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 ku=Object.assign({},Vi.Modal),Mu=[];const Vy=()=>Mu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Vi.Modal);function G3(e){if(e){const t=Object.assign({},e);return Mu.push(t),ku=Vy(),()=>{Mu=Mu.filter(n=>n!==t),ku=Vy()}}ku=Object.assign({},Vi.Modal)}function wS(){return ku}const Zg=u.createContext(void 0),pi=(e,t)=>{const n=u.useContext(Zg),r=u.useMemo(()=>{var l;const s=t||Vi[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?Vi.locale:l},[n]);return[r,o]},K3="internalMark",X3=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;u.useEffect(()=>G3(t==null?void 0:t.Modal),[t]);const o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(Zg.Provider,{value:o},n)},eh={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"},zs=Object.assign(Object.assign({},eh),{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}),cr=Math.round;function Fm(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 Wy=(e,t,n)=>n===0?e:e/100;function ds(e,t){const n=t||255;return e>n?n:e<0?0:e}class cn{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 cn)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=ds(t.r),this.g=ds(t.g),this.b=ds(t.b),this.a=typeof t.a=="number"?ds(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=cr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const 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:cr(l("r")),g:cr(l("g")),b:cr(l("b")),a:cr(l("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=l=>cr((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=cr(this.a*255).toString(16);t+=l.length===2?l:"0"+l}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=cr(this.getSaturation()*100),r=cr(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]=ds(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 v=cr(r*255);this.r=v,this.g=v,this.b=v}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=cr((l+g)*255),this.g=cr((s+g)*255),this.b=cr((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=cr(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=cr(r*(1-n)*255),p=cr(r*(1-n*d)*255),g=cr(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=Fm(t,Wy);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Fm(t,Wy);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Fm(t,(r,o)=>o.includes("%")?cr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var du=2,qy=.16,Y3=.05,Q3=.05,J3=.15,$S=5,ES=4,Z3=[{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 Uy(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-du*t:Math.round(e.h)+du*t:r=n?Math.round(e.h)+du*t:Math.round(e.h)-du*t,r<0?r+=360:r>=360&&(r-=360),r}function Gy(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-qy*t:t===ES?r=e.s+qy:r=e.s+Y3*t,r>1&&(r=1),n&&t===$S&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Ky(e,t,n){var r;return n?r=e.v+Q3*t:r=e.v-J3*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ga(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new cn(e),o=r.toHsv(),l=$S;l>0;l-=1){var s=new cn({h:Uy(o,l,!0),s:Gy(o,l,!0),v:Ky(o,l,!0)});n.push(s)}n.push(r);for(var c=1;c<=ES;c+=1){var d=new cn({h:Uy(o,c),s:Gy(o,c),v:Ky(o,c)});n.push(d)}return t.theme==="dark"?Z3.map(function(m){var p=m.index,g=m.amount;return new cn(t.backgroundColor||"#141414").mix(n[p],g).toHexString()}):n.map(function(m){return m.toHexString()})}var Vm={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"},Vp=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Vp.primary=Vp[5];var Wp=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Wp.primary=Wp[5];var qp=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];qp.primary=qp[5];var Wu=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Wu.primary=Wu[5];var Up=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Up.primary=Up[5];var Gp=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Gp.primary=Gp[5];var Kp=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Kp.primary=Kp[5];var Xp=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Xp.primary=Xp[5];var qu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qu.primary=qu[5];var Yp=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Yp.primary=Yp[5];var Qp=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Qp.primary=Qp[5];var Jp=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Jp.primary=Jp[5];var Zp=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zp.primary=Zp[5];var Wm={red:Vp,volcano:Wp,orange:qp,gold:Wu,yellow:Up,lime:Gp,green:Kp,cyan:Xp,blue:qu,geekblue:Yp,purple:Qp,magenta:Jp,grey:Zp};function RS(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),v=t(o),y=t(l),S=t(s),C=n(d,m),b=e.colorLink||e.colorInfo,w=t(b),$=new cn(y[1]).mix(new cn(y[3]),50).toHexString();return Object.assign(Object.assign({},C),{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:$,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:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new cn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const eR=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 tR(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},eR(r))}const nR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ju(e){return(e+8)/e}function rR(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:ju(n)}))}const oR=e=>{const t=rR(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 iR(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 mo=(e,t)=>new cn(e).setA(t).toRgbString(),fs=(e,t)=>new cn(e).darken(t).toHexString(),aR=e=>{const t=ga(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]}},lR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:mo(r,.88),colorTextSecondary:mo(r,.65),colorTextTertiary:mo(r,.45),colorTextQuaternary:mo(r,.25),colorFill:mo(r,.15),colorFillSecondary:mo(r,.06),colorFillTertiary:mo(r,.04),colorFillQuaternary:mo(r,.02),colorBgSolid:mo(r,1),colorBgSolidHover:mo(r,.75),colorBgSolidActive:mo(r,.95),colorBgLayout:fs(n,4),colorBgContainer:fs(n,0),colorBgElevated:fs(n,0),colorBgSpotlight:mo(r,.85),colorBgBlur:"transparent",colorBorder:fs(n,15),colorBorderSecondary:fs(n,6)}};function OS(e){Vm.pink=Vm.magenta,Wm.pink=Wm.magenta;const t=Object.keys(eh).map(n=>{const r=e[n]===Vm[n]?Wm[n]:ga(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),RS(e,{generateColorPalettes:aR,generateNeutralColorPalettes:lR})),oR(e.fontSize)),iR(e)),nR(e)),tR(e))}const IS=Lp(OS),Uu={token:zs,override:{override:zs},hashed:!0},_S=J.createContext(Uu),Ls="ant",Sd="anticon",sR=["outlined","borderless","filled","underlined"],cR=(e,t)=>t||(e?`${Ls}-${e}`:Ls),Et=u.createContext({getPrefixCls:cR,iconPrefixCls:Sd}),{Consumer:XH}=Et,Xy={};function gr(e){const t=u.useContext(Et),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,l=t[e];return Object.assign(Object.assign({classNames:Xy,styles:Xy},l),{getPrefixCls:n,direction:r,getPopupContainer:o})}const uR=`-ant-${Date.now()}-${Math.random()}`;function dR(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 cn(s),m=ga(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 cn(t.primaryColor),c=ga(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 cn(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 fR(e,t){const n=dR(e,t);Or()&&ui(n,`${uR}-dynamic-theme`)}const ha=u.createContext(!1),TS=({children:e,disabled:t})=>{const n=u.useContext(ha);return u.createElement(ha.Provider,{value:t??n},e)},El=u.createContext(void 0),mR=({children:e,size:t})=>{const n=u.useContext(El);return u.createElement(El.Provider,{value:t||n},e)};function pR(){const e=u.useContext(ha),t=u.useContext(El);return{componentDisabled:e,componentSize:t}}var PS=Qn(function e(){Yn(this,e)}),NS="CALC_UNIT",gR=new RegExp(NS,"g");function qm(e){return typeof e=="number"?"".concat(e).concat(NS):e}var hR=(function(e){fi(n,e);var t=mi(n);function n(r,o){var l;Yn(this,n),l=t.call(this),G(Ut(l),"result",""),G(Ut(l),"unitlessCssVar",void 0),G(Ut(l),"lowPriority",void 0);var s=gt(r);return l.unitlessCssVar=o,r instanceof n?l.result="(".concat(r.result,")"):s==="number"?l.result=qm(r):s==="string"&&(l.result=r),l}return Qn(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(qm(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(qm(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(gR,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(PS),vR=(function(e){fi(n,e);var t=mi(n);function n(r){var o;return Yn(this,n),o=t.call(this),G(Ut(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return Qn(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})(PS),yR=function(t,n){var r=t==="css"?hR:vR;return function(o){return new r(o,n)}},Yy=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 Bn(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 Rl(e){var t=u.useRef(!1),n=u.useState(e),r=ae(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 Um(e){return e!==void 0}function Hn(e,t){var n=t||{},r=n.defaultValue,o=n.value,l=n.onChange,s=n.postState,c=Rl(function(){return Um(o)?o:Um(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),d=ae(c,2),m=d[0],p=d[1],g=o!==void 0?o:m,v=s?s(g):g,y=Bn(l),S=Rl([g]),C=ae(S,2),b=C[0],w=C[1];Bp(function(){var R=b[0];m!==R&&y(m,R)},[b]),Bp(function(){Um(o)||p(o)},[o]);var $=Bn(function(R,O){p(R,O),w([g],O)});return[v,$]}function Qy(e,t,n,r){var o=K({},t[e]);if(r!=null&&r.deprecatedTokens){var l=r.deprecatedTokens;l.forEach(function(c){var d=ae(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 kS=typeof CSSINJS_STATISTIC<"u",eg=!0;function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!kS)return Object.assign.apply(Object,[{}].concat(t));eg=!1;var r={};return t.forEach(function(o){if(gt(o)==="object"){var l=Object.keys(o);l.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),eg=!0,r}var Jy={};function bR(){}var CR=function(t){var n,r=t,o=bR;return kS&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(s,c){if(eg){var d;(d=n)===null||d===void 0||d.add(c)}return s[c]}}),o=function(s,c){var d;Jy[s]={global:Array.from(n),component:K(K({},(d=Jy[s])===null||d===void 0?void 0:d.component),c)}}),{token:r,keys:n,flush:o}};function Zy(e,t,n){if(typeof n=="function"){var r;return n(Xt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function SR(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 xR=1e3*60*10,wR=(function(){function e(){Yn(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 Qn(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&>(l)==="object"?"obj_".concat(r.getObjectID(l)):"".concat(gt(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>xR&&(n.map.delete(l),n.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e})(),eb=new wR;function $R(e,t){return J.useMemo(function(){var n=eb.get(t);if(n)return n;var r=e();return eb.set(t,r),r},t)}var ER=function(){return{}};function RR(e){var t=e.useCSP,n=t===void 0?ER:t,r=e.useToken,o=e.usePrefix,l=e.getResetStyles,s=e.getCommonStyle,c=e.getCompUnitless;function d(v,y,S,C){var b=Array.isArray(v)?v[0]:v;function w(N){return"".concat(String(b)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var $=(C==null?void 0:C.unitless)||{},R=typeof c=="function"?c(v):{},O=K(K({},R),{},G({},w("zIndexPopup"),!0));Object.keys($).forEach(function(N){O[w(N)]=$[N]});var _=K(K({},C),{},{unitless:O,prefixToken:w}),I=p(v,y,S,_),T=m(b,S,_);return function(N){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,k=I(N,P),A=ae(k,2),M=A[1],D=T(P),B=ae(D,2),U=B[0],W=B[1];return[U,M,W]}}function m(v,y,S){var C=S.unitless,b=S.injectStyle,w=b===void 0?!0:b,$=S.prefixToken,R=S.ignore,O=function(T){var N=T.rootCls,P=T.cssVar,k=P===void 0?{}:P,A=r(),M=A.realToken;return A3({path:[v],prefix:k.prefix,key:k.key,unitless:C,ignore:R,token:M,scope:N},function(){var D=Zy(v,M,y),B=Qy(v,M,D,{deprecatedTokens:S==null?void 0:S.deprecatedTokens});return Object.keys(D).forEach(function(U){B[$(U)]=B[U],delete B[U]}),B}),null},_=function(T){var N=r(),P=N.cssVar;return[function(k){return w&&P?J.createElement(J.Fragment,null,J.createElement(O,{rootCls:T,cssVar:P,component:v}),k):k},P==null?void 0:P.key]};return _}function p(v,y,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(v)?v:[v,v],w=ae(b,1),$=w[0],R=b.join("-"),O=e.layer||{name:"antd"};return function(_){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,T=r(),N=T.theme,P=T.realToken,k=T.hashId,A=T.token,M=T.cssVar,D=o(),B=D.rootPrefixCls,U=D.iconPrefixCls,W=n(),V=M?"css":"js",H=$R(function(){var ne=new Set;return M&&Object.keys(C.unitless||{}).forEach(function(te){ne.add(Iu(te,M.prefix)),ne.add(Iu(te,Yy($,M.prefix)))}),yR(V,ne)},[V,$,M==null?void 0:M.prefix]),Q=SR(V),q=Q.max,z=Q.min,F={theme:N,token:A,hashId:k,nonce:function(){return W.nonce},clientOnly:C.clientOnly,layer:O,order:C.order||-999};typeof l=="function"&&Fp(K(K({},F),{},{clientOnly:!1,path:["Shared",B]}),function(){return l(A,{prefix:{rootPrefixCls:B,iconPrefixCls:U},csp:W})});var Y=Fp(K(K({},F),{},{path:[R,_,U]}),function(){if(C.injectStyle===!1)return[];var ne=CR(A),te=ne.token,re=ne.flush,fe=Zy($,P,S),me=".".concat(_),ue=Qy($,P,fe,{deprecatedTokens:C.deprecatedTokens});M&&fe&>(fe)==="object"&&Object.keys(fe).forEach(function(he){fe[he]="var(".concat(Iu(he,Yy($,M.prefix)),")")});var Ce=Xt(te,{componentCls:me,prefixCls:_,iconCls:".".concat(U),antCls:".".concat(B),calc:H,max:q,min:z},M?fe:ue),le=y(Ce,{hashId:k,prefixCls:_,rootPrefixCls:B,iconPrefixCls:U});re($,ue);var ce=typeof s=="function"?s(Ce,_,I,C.resetFont):null;return[C.resetStyle===!1?null:ce,le]});return[Y,k]}}function g(v,y,S){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=p(v,y,S,K({resetStyle:!1,order:-998},C)),w=function(R){var O=R.prefixCls,_=R.rootCls,I=_===void 0?O:_;return b(O,I),null};return w}return{genStyleHooks:d,genSubStyleComponent:g,genComponentStyleHook:p}}const Wi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],OR="5.29.3";function Gm(e){return e>=0&&e<=255}function Ss(e,t){const{r:n,g:r,b:o,a:l}=new cn(e).toRgb();if(l<1)return e;const{r:s,g:c,b:d}=new cn(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),v=Math.round((o-d*(1-m))/m);if(Gm(p)&&Gm(g)&&Gm(v))return new cn({r:p,g,b:v,a:Math.round(m*100)/100}).toRgbString()}return new cn({r:n,g:r,b:o,a:1}).toRgbString()}var IR=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 MS(e){const{override:t}=e,n=IR(e,["override"]),r=Object.assign({},t);Object.keys(zs).forEach(v=>{delete r[v]});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:Ss(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:Ss(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ss(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:Ss(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 cn("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
77
|
+
0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
78
|
+
0 5px 12px 4px ${new cn("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 tb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jS={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},_R={motionBase:!0,motionUnit:!0},TR={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},zS=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,l=tb(t,["override"]);let s=Object.assign(Object.assign({},r),{override:o});return s=MS(s),l&&Object.entries(l).forEach(([c,d])=>{const{theme:m}=d,p=tb(d,["theme"]);let g=p;m&&(g=zS(Object.assign(Object.assign({},s),p),{override:p},m)),s[c]=g}),s};function zr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=J.useContext(_S),l=`${OR}-${t||""}`,s=n||IS,[c,d,m]=u3(s,[zs,e],{salt:l,override:r,getComputedToken:zS,formatToken:MS,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:jS,ignore:_R,preserve:TR}});return[s,m,t?d:"",c,o]}const As={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Fn=(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}),Pl=()=>({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"}}),Gu=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),PR=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"}}}),NR=(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})}},Ol=(e,t)=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),xo=(e,t)=>({"&:focus-visible":Ol(e,t)}),LS=e=>({[`.${e}`]:Object.assign(Object.assign({},Pl()),{[`.${e} .${e}-icon`]:{display:"block"}})}),AS=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"},xo(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:pn,genComponentStyleHook:kR,genSubStyleComponent:Ys}=RR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=u.useContext(Et);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=zr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=u.useContext(Et);return e??{}},getResetStyles:(e,t)=>{var n;const r=PR(e);return[r,{"&":r},LS((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Sd)]},getCommonStyle:NR,getCompUnitless:()=>jS});function xd(e,t){return Wi.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 MR=(e,t)=>{const[n,r]=zr();return Fp({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>LS(e))},jR=Object.assign({},gd),{useId:nb}=jR,zR=()=>"",LR=typeof nb>"u"?zR:nb;function AR(e,t,n){var r;Cd();const o=e||{},l=o.inherit===!1||!t?Object.assign(Object.assign({},Uu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Uu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=LR();return Ks(()=>{var c,d;if(!e)return t;const m=Object.assign({},l.components);Object.keys(e.components||{}).forEach(v=>{m[v]=Object.assign(Object.assign({},m[v]),e.components[v])});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!Ms(m,g,!0)}))}var BR=["children"],BS=u.createContext({});function DR(e){var t=e.children,n=kt(e,BR);return u.createElement(BS.Provider,{value:n},t)}var HR=(function(e){fi(n,e);var t=mi(n);function n(){return Yn(this,n),t.apply(this,arguments)}return Qn(n,[{key:"render",value:function(){return this.props.children}}]),n})(u.Component);function FR(e){var t=u.useReducer(function(c){return c+1},0),n=ae(t,2),r=n[1],o=u.useRef(e),l=Bn(function(){return o.current}),s=Bn(function(c){o.current=typeof c=="function"?c(o.current):c,r()});return[l,s]}var Mi="none",fu="appear",mu="enter",pu="leave",rb="none",Po="prepare",dl="start",fl="active",th="end",DS="prepared";function ob(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 VR(e,t){var n={animationend:ob("Animation","AnimationEnd"),transitionend:ob("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var WR=VR(Or(),typeof window<"u"?window:{}),HS={};if(Or()){var qR=document.createElement("div");HS=qR.style}var gu={};function FS(e){if(gu[e])return gu[e];var t=WR[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 HS)return gu[e]=t[l],gu[e]}return""}var VS=FS("animationend"),WS=FS("transitionend"),qS=!!(VS&&WS),ib=VS||"animationend",ab=WS||"transitionend";function lb(e,t){if(!e)return null;if(gt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const UR=(function(e){var t=u.useRef();function n(o){o&&(o.removeEventListener(ab,e),o.removeEventListener(ib,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(ab,e),o.addEventListener(ib,e),t.current=o)}return u.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var US=Or()?u.useLayoutEffect:u.useEffect;const GR=(function(){var e=u.useRef(null);function t(){$n.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var l=$n(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 KR=[Po,dl,fl,th],XR=[Po,DS],GS=!1,YR=!0;function KS(e){return e===fl||e===th}const QR=(function(e,t,n){var r=Rl(rb),o=ae(r,2),l=o[0],s=o[1],c=GR(),d=ae(c,2),m=d[0],p=d[1];function g(){s(Po,!0)}var v=t?XR:KR;return US(function(){if(l!==rb&&l!==th){var y=v.indexOf(l),S=v[y+1],C=n(l);C===GS?s(S,!0):S&&m(function(b){function w(){b.isCanceled()||s(S,!0)}C===!0?w():Promise.resolve(C).then(w)})}},[e,l]),u.useEffect(function(){return function(){p()}},[]),[g,l]});function JR(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,v=r.onAppearPrepare,y=r.onEnterPrepare,S=r.onLeavePrepare,C=r.onAppearStart,b=r.onEnterStart,w=r.onLeaveStart,$=r.onAppearActive,R=r.onEnterActive,O=r.onLeaveActive,_=r.onAppearEnd,I=r.onEnterEnd,T=r.onLeaveEnd,N=r.onVisibleChanged,P=Rl(),k=ae(P,2),A=k[0],M=k[1],D=FR(Mi),B=ae(D,2),U=B[0],W=B[1],V=Rl(null),H=ae(V,2),Q=H[0],q=H[1],z=U(),F=u.useRef(!1),Y=u.useRef(null);function ne(){return n()}var te=u.useRef(!1);function re(){W(Mi),q(null,!0)}var fe=Bn(function(we){var $e=U();if($e!==Mi){var ke=ne();if(!(we&&!we.deadline&&we.target!==ke)){var Ie=te.current,Ge;$e===fu&&Ie?Ge=_==null?void 0:_(ke,we):$e===mu&&Ie?Ge=I==null?void 0:I(ke,we):$e===pu&&Ie&&(Ge=T==null?void 0:T(ke,we)),Ie&&Ge!==!1&&re()}}}),me=UR(fe),ue=ae(me,1),Ce=ue[0],le=function($e){switch($e){case fu:return G(G(G({},Po,v),dl,C),fl,$);case mu:return G(G(G({},Po,y),dl,b),fl,R);case pu:return G(G(G({},Po,S),dl,w),fl,O);default:return{}}},ce=u.useMemo(function(){return le(z)},[z]),he=QR(z,!e,function(we){if(we===Po){var $e=ce[Po];return $e?$e(ne()):GS}if(se in ce){var ke;q(((ke=ce[se])===null||ke===void 0?void 0:ke.call(ce,ne(),null))||null)}return se===fl&&z!==Mi&&(Ce(ne()),p>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){fe({deadline:!0})},p))),se===DS&&re(),YR}),ye=ae(he,2),de=ye[0],se=ye[1],ve=KS(se);te.current=ve;var Se=u.useRef(null);US(function(){if(!(F.current&&Se.current===t)){M(t);var we=F.current;F.current=!0;var $e;!we&&t&&c&&($e=fu),we&&t&&l&&($e=mu),(we&&!t&&m||!we&&g&&!t&&m)&&($e=pu);var ke=le($e);$e&&(e||ke[Po])?(W($e),de()):W(Mi),Se.current=t}},[t]),u.useEffect(function(){(z===fu&&!c||z===mu&&!l||z===pu&&!m)&&W(Mi)},[c,l,m]),u.useEffect(function(){return function(){F.current=!1,clearTimeout(Y.current)}},[]);var Oe=u.useRef(!1);u.useEffect(function(){A&&(Oe.current=!0),A!==void 0&&z===Mi&&((Oe.current||A)&&(N==null||N(A)),Oe.current=!0)},[A,z]);var Ne=Q;return ce[Po]&&se===dl&&(Ne=K({transition:"none"},Ne)),[z,se,Ne,A??t]}function ZR(e){var t=e;gt(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,v=o.motionName,y=o.leavedClassName,S=o.eventProps,C=u.useContext(BS),b=C.motion,w=n(o,b),$=u.useRef(),R=u.useRef();function O(){try{return $.current instanceof HTMLElement?$.current:Ou(R.current)}catch{return null}}var _=JR(w,c,O,o),I=ae(_,4),T=I[0],N=I[1],P=I[2],k=I[3],A=u.useRef(k);k&&(A.current=!0);var M=u.useCallback(function(H){$.current=H,Fg(l,H)},[l]),D,B=K(K({},S),{},{visible:c});if(!g)D=null;else if(T===Mi)k?D=g(K({},B),M):!m&&A.current&&y?D=g(K(K({},B),{},{className:y}),M):p||!m&&!y?D=g(K(K({},B),{},{style:{display:"none"}}),M):D=null;else{var U;N===Po?U="prepare":KS(N)?U="active":N===dl&&(U="start");var W=lb(v,"".concat(T,"-").concat(U));D=g(K(K({},B),{},{className:ee(lb(v,T),G(G({},W,W&&U),v,typeof v=="string")),style:P}),M)}if(u.isValidElement(D)&&Gi(D)){var V=ba(D);V||(D=u.cloneElement(D,{ref:M}))}return u.createElement(HR,{ref:R},D)});return r.displayName="CSSMotion",r}const ro=ZR(qS);var tg="add",ng="keep",rg="remove",Km="removed";function e5(e){var t;return e&>(e)==="object"&&"key"in e?t=e:t={key:e},K(K({},t),{},{key:String(t.key)})}function og(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(e5)}function t5(){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=og(e),s=og(t);l.forEach(function(m){for(var p=!1,g=r;g<o;g+=1){var v=s[g];if(v.key===m.key){r<g&&(n=n.concat(s.slice(r,g).map(function(y){return K(K({},y),{},{status:tg})})),r=g),n.push(K(K({},v),{},{status:ng})),r+=1,p=!0;break}}p||n.push(K(K({},m),{},{status:rg}))}),r<o&&(n=n.concat(s.slice(r).map(function(m){return K(K({},m),{},{status:tg})})));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,v=p.status;return g!==m||v!==rg}),n.forEach(function(p){p.key===m&&(p.status=ng)})}),n}var n5=["component","children","onVisibleChanged","onAllRemoved"],r5=["status"],o5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function i5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=(function(r){fi(l,r);var o=mi(l);function l(){var s;Yn(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(Ut(s),"state",{keyEntities:[]}),G(Ut(s),"removeKey",function(p){s.setState(function(g){var v=g.keyEntities.map(function(y){return y.key!==p?y:K(K({},y),{},{status:Km})});return{keyEntities:v}},function(){var g=s.state.keyEntities,v=g.filter(function(y){var S=y.status;return S!==Km}).length;v===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Qn(l,[{key:"render",value:function(){var c=this,d=this.state.keyEntities,m=this.props,p=m.component,g=m.children,v=m.onVisibleChanged;m.onAllRemoved;var y=kt(m,n5),S=p||u.Fragment,C={};return o5.forEach(function(b){C[b]=y[b],delete y[b]}),delete y.keys,u.createElement(S,y,d.map(function(b,w){var $=b.status,R=kt(b,r5),O=$===tg||$===ng;return u.createElement(t,Re({},C,{key:R.key,visible:O,eventProps:R,onVisibleChanged:function(I){v==null||v(I,{key:R.key}),I||c.removeKey(R.key)}}),function(_,I){return g(K(K({},_),{},{index:w}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,d){var m=c.keys,p=d.keyEntities,g=og(m),v=t5(p,g);return{keyEntities:v.filter(function(y){var S=p.find(function(C){var b=C.key;return y.key===b});return!(S&&S.status===Km&&y.status===rg)})}}}]),l})(u.Component);return G(n,"defaultProps",{component:"div"}),n}const a5=i5(qS),sb=u.createContext(!0);function l5(e){const t=u.useContext(sb),{children:n}=e,[,r]=zr(),{motion:o}=r,l=u.useRef(!1);return l.current||(l.current=t!==o),l.current?u.createElement(sb.Provider,{value:o},u.createElement(DR,{motion:o},n)):n}const s5=()=>null;var c5=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 u5=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ku,XS,YS,QS;function zu(){return Ku||Ls}function d5(){return XS||Sd}function f5(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const m5=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ku=t),n!==void 0&&(XS=n),"holderRender"in e&&(QS=o),r&&(f5(r)?fR(zu(),r):YS=r)},JS=()=>({getPrefixCls:(e,t)=>t||(e?`${zu()}-${e}`:zu()),getIconPrefixCls:d5,getRootPrefixCls:()=>Ku||zu(),getTheme:()=>YS,holderRender:QS}),p5=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:v,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,popupOverflow:C,legacyLocale:b,parentContext:w,iconPrefixCls:$,theme:R,componentDisabled:O,segmented:_,statistic:I,spin:T,calendar:N,carousel:P,cascader:k,collapse:A,typography:M,checkbox:D,descriptions:B,divider:U,drawer:W,skeleton:V,steps:H,image:Q,layout:q,list:z,mentions:F,modal:Y,progress:ne,result:te,slider:re,breadcrumb:fe,menu:me,pagination:ue,input:Ce,textArea:le,empty:ce,badge:he,radio:ye,rate:de,switch:se,transfer:ve,avatar:Se,message:Oe,tag:Ne,table:we,card:$e,tabs:ke,timeline:Ie,timePicker:Ge,upload:tt,notification:St,tree:ut,colorPicker:Ue,datePicker:st,rangePicker:We,flex:mt,wave:Ye,dropdown:je,warning:Je,tour:Pe,tooltip:He,popover:Rt,popconfirm:ht,floatButton:Gt,floatButtonGroup:qt,variant:dn,inputNumber:Sn,treeSelect:Yt}=e,jt=u.useCallback((Qe,zt)=>{const{prefixCls:Ht}=e;if(zt)return zt;const Tt=Ht||w.getPrefixCls("");return Qe?`${Tt}-${Qe}`:Tt},[w.getPrefixCls,e.prefixCls]),xt=$||w.iconPrefixCls||Sd,Qt=n||w.csp;MR(xt,Qt);const Vt=AR(R,w.theme,{prefixCls:jt("")}),Ze={csp:Qt,autoInsertSpaceInButton:r,alert:o,anchor:l,locale:c||b,direction:m,space:p,splitter:g,virtual:v,popupMatchSelectWidth:S??y,popupOverflow:C,getPrefixCls:jt,iconPrefixCls:xt,theme:Vt,segmented:_,statistic:I,spin:T,calendar:N,carousel:P,cascader:k,collapse:A,typography:M,checkbox:D,descriptions:B,divider:U,drawer:W,skeleton:V,steps:H,image:Q,input:Ce,textArea:le,layout:q,list:z,mentions:F,modal:Y,progress:ne,result:te,slider:re,breadcrumb:fe,menu:me,pagination:ue,empty:ce,badge:he,radio:ye,rate:de,switch:se,transfer:ve,avatar:Se,message:Oe,tag:Ne,table:we,card:$e,tabs:ke,timeline:Ie,timePicker:Ge,upload:tt,notification:St,tree:ut,colorPicker:Ue,datePicker:st,rangePicker:We,flex:mt,wave:Ye,dropdown:je,warning:Je,tour:Pe,tooltip:He,popover:Rt,popconfirm:ht,floatButton:Gt,floatButtonGroup:qt,variant:dn,inputNumber:Sn,treeSelect:Yt},Ct=Object.assign({},w);Object.keys(Ze).forEach(Qe=>{Ze[Qe]!==void 0&&(Ct[Qe]=Ze[Qe])}),u5.forEach(Qe=>{const zt=e[Qe];zt&&(Ct[Qe]=zt)}),typeof r<"u"&&(Ct.button=Object.assign({autoInsertSpace:r},Ct.button));const ct=Ks(()=>Ct,Ct,(Qe,zt)=>{const Ht=Object.keys(Qe),Tt=Object.keys(zt);return Ht.length!==Tt.length||Ht.some(Pt=>Qe[Pt]!==zt[Pt])}),{layer:_e}=u.useContext(Xs),Ee=u.useMemo(()=>({prefixCls:xt,csp:Qt,layer:_e?"antd":void 0}),[xt,Qt,_e]);let xe=u.createElement(u.Fragment,null,u.createElement(s5,{dropdownMatchSelectWidth:y}),t);const ze=u.useMemo(()=>{var Qe,zt,Ht,Tt;return ul(((Qe=Vi.Form)===null||Qe===void 0?void 0:Qe.defaultValidateMessages)||{},((Ht=(zt=ct.locale)===null||zt===void 0?void 0:zt.Form)===null||Ht===void 0?void 0:Ht.defaultValidateMessages)||{},((Tt=ct.form)===null||Tt===void 0?void 0:Tt.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[ct,s==null?void 0:s.validateMessages]);Object.keys(ze).length>0&&(xe=u.createElement(W3.Provider,{value:ze},xe)),c&&(xe=u.createElement(X3,{locale:c,_ANT_MARK__:K3},xe)),xe=u.createElement(Jg.Provider,{value:Ee},xe),d&&(xe=u.createElement(mR,{size:d},xe)),xe=u.createElement(l5,null,xe);const Xe=u.useMemo(()=>{const Qe=Vt||{},{algorithm:zt,token:Ht,components:Tt,cssVar:Pt}=Qe,bn=c5(Qe,["algorithm","token","components","cssVar"]),hn=zt&&(!Array.isArray(zt)||zt.length>0)?Lp(zt):IS,xn={};Object.entries(Tt||{}).forEach(([Zt,on])=>{const Le=Object.assign({},on);"algorithm"in Le&&(Le.algorithm===!0?Le.theme=hn:(Array.isArray(Le.algorithm)||typeof Le.algorithm=="function")&&(Le.theme=Lp(Le.algorithm)),delete Le.algorithm),xn[Zt]=Le});const Tn=Object.assign(Object.assign({},zs),Ht);return Object.assign(Object.assign({},bn),{theme:hn,token:Tn,components:xn,override:Object.assign({override:Tn},xn),cssVar:Pt})},[Vt]);return R&&(xe=u.createElement(_S.Provider,{value:Xe},xe)),ct.warning&&(xe=u.createElement(V3.Provider,{value:ct.warning},xe)),O!==void 0&&(xe=u.createElement(TS,{disabled:O},xe)),u.createElement(Et.Provider,{value:ct},xe)},Yo=e=>{const t=u.useContext(Et),n=u.useContext(Zg);return u.createElement(p5,Object.assign({parentContext:t,legacyLocale:n},e))};Yo.ConfigContext=Et;Yo.SizeContext=El;Yo.config=m5;Yo.useConfig=pR;Object.defineProperty(Yo,"SizeContext",{get:()=>El});var g5={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 ZS(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function h5(e){return ZS(e)instanceof ShadowRoot}function Xu(e){return h5(e)?ZS(e):null}function v5(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function y5(e,t){ur(e,"[@ant-design/icons] ".concat(t))}function cb(e){return gt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(gt(e.icon)==="object"||typeof e.icon=="function")}function ub(){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[v5(n)]=r}return t},{})}function ig(e,t,n){return n?J.createElement(e.tag,K(K({key:t},ub(e.attrs)),n),(e.children||[]).map(function(r,o){return ig(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):J.createElement(e.tag,K({key:t},ub(e.attrs)),(e.children||[]).map(function(r,o){return ig(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function ex(e){return ga(e)[0]}function tx(e){return e?Array.isArray(e)?e:[e]:[]}var b5=`
|
|
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
|
+
`,C5=function(t){var n=u.useContext(Jg),r=n.csp,o=n.prefixCls,l=n.layer,s=b5;o&&(s=s.replace(/anticon/g,o)),l&&(s="@layer ".concat(l,` {
|
|
151
|
+
`).concat(s,`
|
|
152
|
+
}`)),u.useEffect(function(){var c=t.current,d=Xu(c);ui(s,"@ant-design-icons",{prepend:!l,csp:r,attachTo:d})},[])},S5=["icon","className","onClick","style","primaryColor","secondaryColor"],Os={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function x5(e){var t=e.primaryColor,n=e.secondaryColor;Os.primaryColor=t,Os.secondaryColor=n||ex(t),Os.calculated=!!n}function w5(){return K({},Os)}var Nl=function(t){var n=t.icon,r=t.className,o=t.onClick,l=t.style,s=t.primaryColor,c=t.secondaryColor,d=kt(t,S5),m=u.useRef(),p=Os;if(s&&(p={primaryColor:s,secondaryColor:c||ex(s)}),C5(m),y5(cb(n),"icon should be icon definiton, but got ".concat(n)),!cb(n))return null;var g=n;return g&&typeof g.icon=="function"&&(g=K(K({},g),{},{icon:g.icon(p.primaryColor,p.secondaryColor)})),ig(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}))};Nl.displayName="IconReact";Nl.getTwoToneColors=w5;Nl.setTwoToneColors=x5;function nx(e){var t=tx(e),n=ae(t,2),r=n[0],o=n[1];return Nl.setTwoToneColors({primaryColor:r,secondaryColor:o})}function $5(){var e=Nl.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var E5=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];nx(qu.primary);var un=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=kt(e,E5),p=u.useContext(Jg),g=p.prefixCls,v=g===void 0?"anticon":g,y=p.rootClassName,S=ee(y,v,G(G({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!o||r.name==="loading"),n),C=s;C===void 0&&c&&(C=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=tx(d),$=ae(w,2),R=$[0],O=$[1];return u.createElement("span",Re({role:"img","aria-label":r.name},m,{ref:t,tabIndex:C,onClick:c,className:S}),u.createElement(Nl,{icon:r,primaryColor:R,secondaryColor:O,style:b}))});un.displayName="AntdIcon";un.getTwoToneColor=$5;un.setTwoToneColor=nx;var R5=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:g5}))},rx=u.forwardRef(R5),O5={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"},I5=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:O5}))},wd=u.forwardRef(I5),_5={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"},T5=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:_5}))},qi=u.forwardRef(T5),P5={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"},N5=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:P5}))},ox=u.forwardRef(N5),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"},M5=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:k5}))},ix=u.forwardRef(M5),j5=`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`,z5=`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`,L5="".concat(j5," ").concat(z5).split(/[\s\n]+/),A5="aria-",B5="data-";function db(e,t){return e.indexOf(t)===0}function oo(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"||db(o,A5))||n.data&&db(o,B5)||n.attr&&L5.includes(o))&&(r[o]=e[o])}),r}function ax(e){return e&&J.isValidElement(e)&&e.type===J.Fragment}const lx=(e,t,n)=>J.isValidElement(e)?J.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function jr(e,t){return lx(e,e,t)}const gi=e=>{const[,,,,t]=zr();return t?`${e}-css-var`:""};var Ve={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},sx=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,v=e.closable,y=e.closeIcon,S=y===void 0?"x":y,C=e.props,b=e.onClick,w=e.onNoticeClose,$=e.times,R=e.hovering,O=u.useState(!1),_=ae(O,2),I=_[0],T=_[1],N=u.useState(0),P=ae(N,2),k=P[0],A=P[1],M=u.useState(0),D=ae(M,2),B=D[0],U=D[1],W=R||I,V=s>0&&c,H=function(){w(p)},Q=function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===Ve.ENTER)&&H()};u.useEffect(function(){if(!W&&s>0){var ne=Date.now()-B,te=setTimeout(function(){H()},s*1e3-B);return function(){m&&clearTimeout(te),U(Date.now()-ne)}}},[s,W,$]),u.useEffect(function(){if(!W&&V&&(m||B===0)){var ne=performance.now(),te,re=function fe(){cancelAnimationFrame(te),te=requestAnimationFrame(function(me){var ue=me+B-ne,Ce=Math.min(ue/(s*1e3),1);A(Ce*100),Ce<1&&fe()})};return re(),function(){m&&cancelAnimationFrame(te)}}},[s,B,W,V,$]);var q=u.useMemo(function(){return gt(v)==="object"&&v!==null?v:v?{closeIcon:S}:{}},[v,S]),z=oo(q,!0),F=100-(!k||k<0?0:k>100?100:k),Y="".concat(n,"-notice");return u.createElement("div",Re({},C,{ref:t,className:ee(Y,o,G({},"".concat(Y,"-closable"),v)),style:r,onMouseEnter:function(te){var re;T(!0),C==null||(re=C.onMouseEnter)===null||re===void 0||re.call(C,te)},onMouseLeave:function(te){var re;T(!1),C==null||(re=C.onMouseLeave)===null||re===void 0||re.call(C,te)},onClick:b}),u.createElement("div",{className:"".concat(Y,"-content")},g),v&&u.createElement("a",Re({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:Q,"aria-label":"Close"},z,{onClick:function(te){te.preventDefault(),te.stopPropagation(),H()}}),q.closeIcon),V&&u.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:F},F+"%"))}),cx=J.createContext({}),D5=function(t){var n=t.children,r=t.classNames;return J.createElement(cx.Provider,{value:{classNames:r}},n)},fb=8,mb=3,pb=16,H5=function(t){var n={offset:fb,threshold:mb,gap:pb};if(t&>(t)==="object"){var r,o,l;n.offset=(r=t.offset)!==null&&r!==void 0?r:fb,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:mb,n.gap=(l=t.gap)!==null&&l!==void 0?l:pb}return[!!t,n]},F5=["className","style","classNames","styles"],V5=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(cx),v=g.classNames,y=u.useRef({}),S=u.useState(null),C=ae(S,2),b=C[0],w=C[1],$=u.useState([]),R=ae($,2),O=R[0],_=R[1],I=n.map(function(W){return{config:W,key:String(W.key)}}),T=H5(p),N=ae(T,2),P=N[0],k=N[1],A=k.offset,M=k.threshold,D=k.gap,B=P&&(O.length>0||I.length<=M),U=typeof c=="function"?c(r):c;return u.useEffect(function(){P&&O.length>1&&_(function(W){return W.filter(function(V){return I.some(function(H){var Q=H.key;return V===Q})})})},[O,I,P]),u.useEffect(function(){var W;if(P&&y.current[(W=I[I.length-1])===null||W===void 0?void 0:W.key]){var V;w(y.current[(V=I[I.length-1])===null||V===void 0?void 0:V.key])}},[I,P]),J.createElement(a5,Re({key:r,className:ee(o,"".concat(o,"-").concat(r),v==null?void 0:v.list,l,G(G({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),B)),style:s,keys:I,motionAppear:!0},U,{onAllRemoved:function(){d(r)}}),function(W,V){var H=W.config,Q=W.className,q=W.style,z=W.index,F=H,Y=F.key,ne=F.times,te=String(Y),re=H,fe=re.className,me=re.style,ue=re.classNames,Ce=re.styles,le=kt(re,F5),ce=I.findIndex(function(Ie){return Ie.key===te}),he={};if(P){var ye=I.length-1-(ce>-1?ce:z-1),de=r==="top"||r==="bottom"?"-50%":"0";if(ye>0){var se,ve,Se;he.height=B?(se=y.current[te])===null||se===void 0?void 0:se.offsetHeight:b==null?void 0:b.offsetHeight;for(var Oe=0,Ne=0;Ne<ye;Ne++){var we;Oe+=((we=y.current[I[I.length-1-Ne].key])===null||we===void 0?void 0:we.offsetHeight)+D}var $e=(B?Oe:ye*A)*(r.startsWith("top")?1:-1),ke=!B&&b!==null&&b!==void 0&&b.offsetWidth&&(ve=y.current[te])!==null&&ve!==void 0&&ve.offsetWidth?((b==null?void 0:b.offsetWidth)-A*2*(ye<3?ye:3))/((Se=y.current[te])===null||Se===void 0?void 0:Se.offsetWidth):1;he.transform="translate3d(".concat(de,", ").concat($e,"px, 0) scaleX(").concat(ke,")")}else he.transform="translate3d(".concat(de,", 0, 0)")}return J.createElement("div",{ref:V,className:ee("".concat(o,"-notice-wrapper"),Q,ue==null?void 0:ue.wrapper),style:K(K(K({},q),he),Ce==null?void 0:Ce.wrapper),onMouseEnter:function(){return _(function(Ge){return Ge.includes(te)?Ge:[].concat(Be(Ge),[te])})},onMouseLeave:function(){return _(function(Ge){return Ge.filter(function(tt){return tt!==te})})}},J.createElement(sx,Re({},le,{ref:function(Ge){ce>-1?y.current[te]=Ge:delete y.current[te]},prefixCls:o,classNames:ue,styles:Ce,className:ee(fe,v==null?void 0:v.notice),style:me,times:ne,key:Y,eventKey:Y,onNoticeClose:m,hovering:P&&O.length>0})))})},W5=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,v=u.useState([]),y=ae(v,2),S=y[0],C=y[1],b=function(P){var k,A=S.find(function(M){return M.key===P});A==null||(k=A.onClose)===null||k===void 0||k.call(A),C(function(M){return M.filter(function(D){return D.key!==P})})};u.useImperativeHandle(t,function(){return{open:function(P){C(function(k){var A=Be(k),M=A.findIndex(function(U){return U.key===P.key}),D=K({},P);if(M>=0){var B;D.times=(((B=k[M])===null||B===void 0?void 0:B.times)||0)+1,A[M]=D}else D.times=0,A.push(D);return s>0&&A.length>s&&(A=A.slice(-s)),A})},close:function(P){b(P)},destroy:function(){C([])}}});var w=u.useState({}),$=ae(w,2),R=$[0],O=$[1];u.useEffect(function(){var N={};S.forEach(function(P){var k=P.placement,A=k===void 0?"topRight":k;A&&(N[A]=N[A]||[],N[A].push(P))}),Object.keys(R).forEach(function(P){N[P]=N[P]||[]}),O(N)},[S]);var _=function(P){O(function(k){var A=K({},k),M=A[P]||[];return M.length||delete A[P],A})},I=u.useRef(!1);if(u.useEffect(function(){Object.keys(R).length>0?I.current=!0:I.current&&(m==null||m(),I.current=!1)},[R]),!o)return null;var T=Object.keys(R);return Fi.createPortal(u.createElement(u.Fragment,null,T.map(function(N){var P=R[N],k=u.createElement(V5,{key:N,configList:P,placement:N,prefixCls:r,className:c==null?void 0:c(N),style:d==null?void 0:d(N),motion:l,onNoticeClose:b,onAllNoticeRemoved:_,stack:p});return g?g(k,{prefixCls:r,key:N}):k})),o)}),q5=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],U5=function(){return document.body},gb=0;function G5(){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 K5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?U5: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=kt(e,q5),v=u.useState(),y=ae(v,2),S=y[0],C=y[1],b=u.useRef(),w=u.createElement(W5,{container:S,ref:b,prefixCls:o,motion:r,maxCount:l,className:s,style:c,onAllRemoved:d,stack:m,renderNotifications:p}),$=u.useState([]),R=ae($,2),O=R[0],_=R[1],I=Bn(function(N){var P=G5(g,N);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(gb),gb+=1),_(function(k){return[].concat(Be(k),[{type:"open",config:P}])})}),T=u.useMemo(function(){return{open:I,close:function(P){_(function(k){return[].concat(Be(k),[{type:"close",key:P}])})},destroy:function(){_(function(P){return[].concat(Be(P),[{type:"destroy"}])})}}},[]);return u.useEffect(function(){C(n())}),u.useEffect(function(){if(b.current&&O.length){O.forEach(function(k){switch(k.type){case"open":b.current.open(k.config);break;case"close":b.current.close(k.key);break;case"destroy":b.current.destroy();break}});var N,P;_(function(k){return(N!==k||!P)&&(N=k,P=k.filter(function(A){return!O.includes(A)})),P})}},[O]),[T,w]}var X5={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"},Y5=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:X5}))},Qs=u.forwardRef(Y5);function ag(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Il(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function hb(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 Q5={},nh=(e,t,n=Q5)=>{const r=hb(e),o=hb(t),[l]=pi("global",Vi.global),s=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,c=J.useMemo(()=>Object.assign({closeIcon:J.createElement(qi,null)},n),[n]),d=J.useMemo(()=>r===!1?!1:r?ag(c,o,r):o===!1?!1:o?ag(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:v}=d;let y=v;const S=oo(d,!0);return y!=null&&(g&&(y=g(v)),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}),S)):J.createElement("span",Object.assign({"aria-label":l.close},S),y)),[!0,y,s,S]},[s,l.close,d,c])},J5=()=>J.useReducer(e=>e+1,0),Z5=()=>{const[e,t]=u.useState([]),n=u.useCallback(r=>(t(o=>[].concat(Be(o),[r])),()=>{t(o=>o.filter(l=>l!==r))}),[]);return[e,n]},Js=J.createContext(void 0),ji=100,eO=10,ux=ji*eO,dx={Modal:ji,Drawer:ji,Popover:ji,Popconfirm:ji,Tooltip:ji,Tour:ji,FloatButton:ji},tO={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function nO(e){return e in dx}const kl=(e,t)=>{const[,n]=zr(),r=J.useContext(Js),o=nO(e);let l;if(t!==void 0)l=[t,t];else{let s=r??0;o?s+=(r?0:n.zIndexPopupBase)+dx[e]:s+=tO[e],l=[r===void 0?t:s,s]}return l},rO=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:v,paddingXS:y,borderRadiusLG:S,zIndexPopup:C,contentPadding:b,contentBg:w}=e,$=`${t}-notice`,R=new Wt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:y,transform:"translateY(0)",opacity:1}}),O=new Wt("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:v,fontSize:m},[`${$}-content`]:{display:"inline-block",padding:b,background:w,borderRadius:S,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({},Fn(e)),{color:o,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:C,[`${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:O,animationDuration:g,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${$}-wrapper`]:Object.assign({},_)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},_),{padding:0,textAlign:"start"})}]},oO=e=>({zIndexPopup:e.zIndexPopupBase+ux+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),fx=pn("Message",e=>{const t=Xt(e,{height:150});return rO(t)},oO);var iO=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 aO={info:u.createElement(ix,null),success:u.createElement(rx,null),error:u.createElement(wd,null),warning:u.createElement(ox,null),loading:u.createElement(Qs,null)},mx=({prefixCls:e,type:t,icon:n,children:r})=>u.createElement("div",{className:ee(`${e}-custom-content`,`${e}-${t}`)},n||aO[t],u.createElement("span",null,r)),lO=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:l}=e,s=iO(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=u.useContext(Et),d=t||c("message"),m=gi(d),[p,g,v]=fx(d,m);return p(u.createElement(sx,Object.assign({},s,{prefixCls:d,className:ee(n,g,`${d}-notice-pure-panel`,v,m),eventKey:"pure",duration:null,content:u.createElement(mx,{prefixCls:d,type:r,icon:o},l)})))};function sO(e,t){return{motionName:t??`${e}-move-up`}}function rh(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 cO=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 uO=8,dO=3,fO=({children:e,prefixCls:t})=>{const n=gi(t),[r,o,l]=fx(t,n);return r(u.createElement(D5,{classNames:{list:ee(o,l,n)}},e))},mO=(e,{prefixCls:t,key:n})=>u.createElement(fO,{prefixCls:t,key:n},e),pO=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:l,duration:s=dO,rtl:c,transitionName:d,onAllRemoved:m}=e,{getPrefixCls:p,getPopupContainer:g,message:v,direction:y}=u.useContext(Et),S=r||p("message"),C=()=>({left:"50%",transform:"translateX(-50%)",top:n??uO}),b=()=>ee({[`${S}-rtl`]:c??y==="rtl"}),w=()=>sO(S,d),$=u.createElement("span",{className:`${S}-close-x`},u.createElement(qi,{className:`${S}-close-icon`})),[R,O]=K5({prefixCls:S,style:C,className:b,motion:w,closable:!1,closeIcon:$,duration:s,getContainer:()=>(o==null?void 0:o())||(g==null?void 0:g())||document.body,maxCount:l,onAllRemoved:m,renderNotifications:mO});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},R),{prefixCls:S,message:v})),O});let vb=0;function px(e){const t=u.useRef(null);return Cd(),[u.useMemo(()=>{const r=d=>{var m;(m=t.current)===null||m===void 0||m.close(d)},o=d=>{if(!t.current){const I=()=>{};return I.then=()=>{},I}const{open:m,prefixCls:p,message:g}=t.current,v=`${p}-notice`,{content:y,icon:S,type:C,key:b,className:w,style:$,onClose:R}=d,O=cO(d,["content","icon","type","key","className","style","onClose"]);let _=b;return _==null&&(vb+=1,_=`antd-message-${vb}`),rh(I=>(m(Object.assign(Object.assign({},O),{key:_,content:u.createElement(mx,{prefixCls:p,type:C,icon:S},y),placement:"top",className:ee(C&&`${v}-${C}`,w,g==null?void 0:g.className),style:Object.assign(Object.assign({},g==null?void 0:g.style),$),onClose:()=>{R==null||R(),I()}})),()=>{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,v)=>{let y;p&&typeof p=="object"&&"content"in p?y=p:y={content:p};let S,C;typeof g=="function"?C=g:(S=g,C=v);const b=Object.assign(Object.assign({onClose:C,duration:S},y),{type:d});return o(b)};s[d]=m}),s},[]),u.createElement(pO,Object.assign({key:"message-holder"},e,{ref:t}))]}function gO(e){return px(e)}function gx(e,t){this.v=e,this.k=t}function $r(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}$r=function(s,c,d,m){function p(g,v){$r(s,g,function(y){return this._invoke(g,v,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))},$r(e,t,n,r)}function oh(){/*! 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,S,C,b){var w=S&&S.prototype instanceof c?S:c,$=Object.create(w.prototype);return $r($,"_invoke",(function(R,O,_){var I,T,N,P=0,k=_||[],A=!1,M={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(U,W){return I=U,T=0,N=e,M.n=W,s}};function D(B,U){for(T=B,N=U,t=0;!A&&P&&!W&&t<k.length;t++){var W,V=k[t],H=M.p,Q=V[2];B>3?(W=Q===U)&&(N=V[(T=V[4])?5:(T=3,3)],V[4]=V[5]=e):V[0]<=H&&((W=B<2&&H<V[1])?(T=0,M.v=U,M.n=V[1]):H<Q&&(W=B<3||V[0]>U||U>Q)&&(V[4]=B,V[5]=U,M.n=Q,T=0))}if(W||B>1)return s;throw A=!0,U}return function(B,U,W){if(P>1)throw TypeError("Generator is already running");for(A&&U===1&&D(U,W),T=U,N=W;(t=T<2?e:N)||!A;){I||(T?T<3?(T>1&&(M.n=-1),D(T,N)):M.n=N:M.v=N);try{if(P=2,I){if(T||(B="next"),t=I[B]){if(!(t=t.call(I,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,T<2&&(T=0)}else T===1&&(t=I.return)&&t.call(I),T<2&&(N=TypeError("The iterator does not provide a '"+B+"' method"),T=1);I=e}else if((t=(A=M.n<0)?N:R.call(O,M))!==s)break}catch(V){I=e,T=1,N=V}finally{P=1}}return{value:t,done:A}}})(y,C,b),!0),$}var s={};function c(){}function d(){}function m(){}t=Object.getPrototypeOf;var p=[][r]?t(t([][r]())):($r(t={},r,function(){return this}),t),g=m.prototype=c.prototype=Object.create(p);function v(y){return Object.setPrototypeOf?Object.setPrototypeOf(y,m):(y.__proto__=m,$r(y,o,"GeneratorFunction")),y.prototype=Object.create(g),y}return d.prototype=m,$r(g,"constructor",m),$r(m,"constructor",d),d.displayName="GeneratorFunction",$r(m,o,"GeneratorFunction"),$r(g),$r(g,o,"Generator"),$r(g,r,function(){return this}),$r(g,"toString",function(){return"[object Generator]"}),(oh=function(){return{w:l,m:v}})()}function Yu(e,t){function n(o,l,s,c){try{var d=e[o](l),m=d.value;return m instanceof gx?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||($r(Yu.prototype),$r(Yu.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),$r(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 hx(e,t,n,r,o){return new Yu(oh().w(e,t,n,r),o||Promise)}function hO(e,t,n,r,o){var l=hx(e,t,n,r,o);return l.next().then(function(s){return s.done?s.value:l.next()})}function vO(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 yb(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(gt(e)+" is not iterable")}function Ir(){var e=oh(),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,v){return d(m.a,o[g],v)},delegateYield:function(g,v,y){return c.resultName=v,d(m.d,yb(g),y)},finish:function(g){return d(m.f,g)}},d=function(g,v,y){m.p=c.prev,m.n=c.next;try{return g(v,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 gx(d,m)},AsyncIterator:Yu,async:function(d,m,p,g,v){return(r(m)?hx:hO)(l(d),m,p,g,v)},keys:vO,values:yb}})()}function bb(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 Ca(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function s(d){bb(l,r,o,s,c,"next",d)}function c(d){bb(l,r,o,s,c,"throw",d)}s(void 0)})}}var Zs=K({},t4),yO=Zs.version,Xm=Zs.render,bO=Zs.unmountComponentAtNode,$d;try{var CO=Number((yO||"").split(".")[0]);CO>=18&&($d=Zs.createRoot)}catch{}function Cb(e){var t=Zs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&>(t)==="object"&&(t.usingClientEntryPoint=e)}var Qu="__rc_react_root__";function SO(e,t){Cb(!0);var n=t[Qu]||$d(t);Cb(!1),n.render(e),t[Qu]=n}function xO(e,t){Xm==null||Xm(e,t)}function wO(e,t){if($d){SO(e,t);return}xO(e,t)}function $O(e){return lg.apply(this,arguments)}function lg(){return lg=Ca(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[Qu])===null||o===void 0||o.unmount(),delete t[Qu]}));case 1:case"end":return r.stop()}},e)})),lg.apply(this,arguments)}function EO(e){bO(e)}function RO(e){return sg.apply(this,arguments)}function sg(){return sg=Ca(Ir().mark(function e(t){return Ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if($d===void 0){r.next=2;break}return r.abrupt("return",$O(t));case 2:EO(t);case 3:case"end":return r.stop()}},e)})),sg.apply(this,arguments)}const OO=(e,t)=>(wO(e,t),()=>RO(t));let IO=OO;function ih(e){return IO}const Ym=()=>({height:0,opacity:0}),Sb=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},_O=e=>({height:e?e.offsetHeight:0}),Qm=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",vx=(e=Ls)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ym,onEnterStart:Ym,onAppearActive:Sb,onEnterActive:Sb,onLeaveStart:_O,onLeaveActive:Ym,onAppearEnd:Qm,onEnterEnd:Qm,onLeaveEnd:Qm,motionDeadline:500}),Go=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Xn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const ah=(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}),TO=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(",")}}}}},PO=kR("Wave",TO),yx=`${Ls}-wave-target`;function NO(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 kO(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(NO))!==null&&t!==void 0?t:null}function Jm(e){return Number.isNaN(e)?0:e}const MO=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,v]=u.useState(0),[y,S]=u.useState(0),[C,b]=u.useState(0),[w,$]=u.useState(0),[R,O]=u.useState(!1),_={left:g,top:y,width:C,height:w,borderRadius:m.map(N=>`${N}px`).join(" ")};c&&(_["--wave-color"]=c);function I(){const N=getComputedStyle(n);d(kO(n));const P=N.position==="static",{borderLeftWidth:k,borderTopWidth:A}=N;v(P?n.offsetLeft:Jm(-Number.parseFloat(k))),S(P?n.offsetTop:Jm(-Number.parseFloat(A))),b(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:D,borderBottomLeftRadius:B,borderBottomRightRadius:U}=N;p([M,D,U,B].map(W=>Jm(Number.parseFloat(W))))}if(u.useEffect(()=>{if(n){const N=$n(()=>{I(),O(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(I),P.observe(n)),()=>{$n.cancel(N),P==null||P.disconnect()}}},[n]),!R)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(yx));return u.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,P)=>{var k,A;if(P.deadline||P.propertyName==="opacity"){const M=(k=l.current)===null||k===void 0?void 0:k.parentElement;(A=s.current)===null||A===void 0||A.call(s).then(()=>{M==null||M.remove()})}return!1}},({className:N},P)=>u.createElement("div",{ref:Ao(l,P),className:ee(t,N,{"wave-quick":T}),style:_}))},jO=(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=ih();let s=null;function c(){return s}s=l(u.createElement(MO,Object.assign({},t,{target:e,registerUnmount:c})),o)},zO=(e,t,n)=>{const{wave:r}=u.useContext(Et),[,o,l]=zr(),s=Bn(m=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const g=p.querySelector(`.${yx}`)||p,{showEffect:v}=r||{};(v||jO)(g,{className:t,token:o,component:n,event:m,hashId:l})}),c=u.useRef(null);return m=>{$n.cancel(c.current),c.current=$n(()=>{s(m)})}},lh=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=u.useContext(Et),l=u.useRef(null),s=o("wave"),[,c]=PO(s),d=zO(l,ee(s,c),r);if(J.useEffect(()=>{const p=l.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||n)return;const g=v=>{!ah(v.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(v)};return p.addEventListener("click",g,!0),()=>{p.removeEventListener("click",g,!0)}},[n]),!J.isValidElement(t))return t??null;const m=Gi(t)?Ao(ba(t),l):l;return jr(t,{ref:m})},Qo=e=>{const t=J.useContext(El);return J.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},LO=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},AO=pn(["Space","Compact"],e=>[LO(e)],()=>({}),{resetStyle:!1});var bx=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 Ed=u.createContext(null),ec=(e,t)=>{const n=u.useContext(Ed),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}},BO=e=>{const{children:t}=e;return u.createElement(Ed.Provider,{value:null},t)},DO=e=>{const{children:t}=e,n=bx(e,["children"]);return u.createElement(Ed.Provider,{value:u.useMemo(()=>n,[n])},t)},HO=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Et),{size:r,direction:o,block:l,prefixCls:s,className:c,rootClassName:d,children:m}=e,p=bx(e,["size","direction","block","prefixCls","className","rootClassName","children"]),g=Qo(R=>r??R),v=t("space-compact",s),[y,S]=AO(v),C=ee(v,S,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:l,[`${v}-vertical`]:o==="vertical"},c,d),b=u.useContext(Ed),w=Mr(m),$=u.useMemo(()=>w.map((R,O)=>{const _=(R==null?void 0:R.key)||`${v}-item-${O}`;return u.createElement(DO,{key:_,compactSize:g,compactDirection:o,isFirstItem:O===0&&(!b||(b==null?void 0:b.isFirstItem)),isLastItem:O===w.length-1&&(!b||(b==null?void 0:b.isLastItem))},R)}),[w,b,o,g,v]);return w.length===0?null:y(u.createElement("div",Object.assign({className:C},p),$))};var FO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Cx=u.createContext(void 0),VO=e=>{const{getPrefixCls:t,direction:n}=u.useContext(Et),{prefixCls:r,size:o,className:l}=e,s=FO(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,d]=zr(),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(Cx.Provider,{value:o},u.createElement("div",Object.assign({},s,{className:p})))},xb=/^[\u4E00-\u9FA5]{2}$/,cg=xb.test.bind(xb);function Sx(e){return e==="danger"?{danger:!0}:{type:e}}function wb(e){return typeof e=="string"}function Zm(e){return e==="text"||e==="link"}function WO(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&wb(e.type)&&cg(e.props.children)?jr(e,{children:e.props.children.split("").join(n)}):wb(e)?cg(e)?J.createElement("span",null,e.split("").join(n)):J.createElement("span",null,e):ax(e)?J.createElement("span",null,e):e}function qO(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=>WO(o,t))}["default","primary","danger"].concat(Be(Wi));const xx=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)}),$b=u.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:l}=e,s=ee(`${n}-loading-icon`,r);return J.createElement(xx,{prefixCls:n,className:s,style:o,ref:t},J.createElement(Qs,{className:l}))}),ep=()=>({width:0,opacity:0,transform:"scale(0)"}),tp=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),UO=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:l,mount:s}=e,c=!!n;return r?J.createElement($b,{prefixCls:t,className:o,style:l}):J.createElement(ro,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:ep,onAppearActive:tp,onEnterStart:ep,onEnterActive:tp,onLeaveStart:tp,onLeaveActive:ep},({className:d,style:m},p)=>{const g=Object.assign(Object.assign({},l),m);return J.createElement($b,{prefixCls:t,className:ee(o,d),style:g,ref:p})})},Eb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),GO=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}},Eb(`${t}-primary`,o),Eb(`${t}-danger`,l)]}};var KO=["b"],XO=["v"],np=function(t){return Math.round(Number(t||0))},YO=function(t){if(t instanceof cn)return t;if(t&>(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=kt(n,KO);return K(K({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Bs=(function(e){fi(n,e);var t=mi(n);function n(r){return Yn(this,n),t.call(this,YO(r))}return Qn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),l=np(o.s*100),s=np(o.b*100),c=np(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=kt(o,XO);return K(K({},s),{},{b:l,a:this.a})}}]),n})(cn),QO=function(t){return t instanceof Bs?t:new Bs(t)};QO("#1677ff");const JO=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",ZO=(e,t)=>e?JO(e,t):"";let ug=(function(){function e(t){Yn(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 Bs(this.colors[0].color.metaColor)):this.metaColor=new Bs(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Qn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return ZO(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 eI={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"},tI=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:eI}))},qo=u.forwardRef(tI),wx=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),v=ae(g,2),y=v[0],S=v[1];return J.useEffect(function(){(r||c)&&S(!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});wx.displayName="PanelContent";var nI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],$x=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,v=g===void 0?{}:g,y=e.prefixCls,S=e.collapsible,C=e.accordion,b=e.panelKey,w=e.extra,$=e.header,R=e.expandIcon,O=e.openMotion,_=e.destroyInactivePanel,I=e.children,T=kt(e,nI),N=S==="disabled",P=w!=null&&typeof w!="boolean",k=G(G(G({onClick:function(){s==null||s(b)},onKeyDown:function(V){(V.key==="Enter"||V.keyCode===Ve.ENTER||V.which===Ve.ENTER)&&(s==null||s(b))},role:C?"tab":"button"},"aria-expanded",l),"aria-disabled",N),"tabIndex",N?-1:0),A=typeof R=="function"?R(e):J.createElement("i",{className:"arrow"}),M=A&&J.createElement("div",Re({className:"".concat(y,"-expand-icon")},["header","icon"].includes(S)?k:{}),A),D=ee("".concat(y,"-item"),G(G({},"".concat(y,"-item-active"),l),"".concat(y,"-item-disabled"),N),d),B=ee(o,"".concat(y,"-header"),G({},"".concat(y,"-collapsible-").concat(S),!!S),p.header),U=K({className:B,style:v.header},["header","icon"].includes(S)?{}:k);return J.createElement("div",Re({},T,{ref:t,className:D}),J.createElement("div",U,r&&M,J.createElement("span",Re({className:"".concat(y,"-header-text")},S==="header"?k:{}),$),P&&J.createElement("div",{className:"".concat(y,"-extra")},w)),J.createElement(ro,Re({visible:l,leavedClassName:"".concat(y,"-content-hidden")},O,{forceRender:c,removeOnLeave:_}),function(W,V){var H=W.className,Q=W.style;return J.createElement(wx,{ref:V,prefixCls:y,className:H,classNames:p,style:Q,styles:v,isActive:l,forceRender:c,role:C?"tabpanel":void 0},I)}))}),rI=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],oI=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,v){var y=g.children,S=g.label,C=g.key,b=g.collapsible,w=g.onItemClick,$=g.destroyInactivePanel,R=kt(g,rI),O=String(C??v),_=b??l,I=$??s,T=function(k){_!=="disabled"&&(c(k),w==null||w(k))},N=!1;return o?N=d[0]===O:N=d.indexOf(O)>-1,J.createElement($x,Re({},R,{prefixCls:r,key:O,panelKey:O,isActive:N,accordion:o,openMotion:m,expandIcon:p,header:S,collapsible:_,onItemClick:T,destroyInactivePanel:I}),y)})},iI=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,v=t.key||String(n),y=t.props,S=y.header,C=y.headerClass,b=y.destroyInactivePanel,w=y.collapsible,$=y.onItemClick,R=!1;l?R=m[0]===v:R=m.indexOf(v)>-1;var O=w??s,_=function(N){O!=="disabled"&&(d(N),$==null||$(N))},I={key:v,panelKey:v,header:S,headerClass:C,isActive:R,prefixCls:o,destroyInactivePanel:b??c,openMotion:p,accordion:l,children:t.props.children,onItemClick:_,expandIcon:g,collapsible:O};return typeof t.type=="string"?t:(Object.keys(I).forEach(function(T){typeof I[T]>"u"&&delete I[T]}),J.cloneElement(t,I))};function aI(e,t,n){return Array.isArray(e)?oI(e,n):Mr(t).map(function(r,o){return iI(r,o,n)})}function lI(e){var t=e;if(!Array.isArray(t)){var n=gt(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var sI=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,v=e.expandIcon,y=e.activeKey,S=e.defaultActiveKey,C=e.onChange,b=e.items,w=ee(r,d),$=Hn([],{value:y,onChange:function(P){return C==null?void 0:C(P)},defaultValue:S,postState:lI}),R=ae($,2),O=R[0],_=R[1],I=function(P){return _(function(){if(c)return O[0]===P?[]:[P];var k=O.indexOf(P),A=k>-1;return A?O.filter(function(M){return M!==P}):[].concat(Be(O),[P])})};ur(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var T=aI(b,m,{prefixCls:r,accordion:c,openMotion:g,expandIcon:v,collapsible:p,destroyInactivePanel:l,onItemClick:I,activeKey:O});return J.createElement("div",Re({ref:t,className:w,style:s,role:c?"tablist":void 0},oo(e,{aria:!0,data:!0})),T)});const sh=Object.assign(sI,{Panel:$x});sh.Panel;const cI=u.forwardRef((e,t)=>{const{getPrefixCls:n}=u.useContext(Et),{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}))}),Ex=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`}}}),uI=e=>({animationDuration:e,animationFillMode:"both"}),dI=e=>({animationDuration:e,animationFillMode:"both"}),Rd=(e,t,n,r,o=!1)=>{const l=o?"&":"";return{[`
|
|
179
|
+
${l}${e}-enter,
|
|
180
|
+
${l}${e}-appear
|
|
181
|
+
`]:Object.assign(Object.assign({},uI(r)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},dI(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"}}},fI=new Wt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mI=new Wt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),pI=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Rd(r,fI,mI,e.motionDurationMid,t),{[`
|
|
185
|
+
${o}${r}-enter,
|
|
186
|
+
${o}${r}-appear
|
|
187
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gI=new Wt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hI=new Wt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vI=new Wt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yI=new Wt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),bI=new Wt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CI=new Wt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SI=new Wt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xI=new Wt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),wI={"move-up":{inKeyframes:SI,outKeyframes:xI},"move-down":{inKeyframes:gI,outKeyframes:hI},"move-left":{inKeyframes:vI,outKeyframes:yI},"move-right":{inKeyframes:bI,outKeyframes:CI}},Ju=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=wI[t];return[Rd(r,o,l,e.motionDurationMid),{[`
|
|
188
|
+
${r}-enter,
|
|
189
|
+
${r}-appear
|
|
190
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ch=new Wt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),uh=new Wt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),dh=new Wt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),fh=new Wt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),$I=new Wt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),EI=new Wt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),RI=new Wt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),OI=new Wt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),II={"slide-up":{inKeyframes:ch,outKeyframes:uh},"slide-down":{inKeyframes:dh,outKeyframes:fh},"slide-left":{inKeyframes:$I,outKeyframes:EI},"slide-right":{inKeyframes:RI,outKeyframes:OI}},Ui=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=II[t];return[Rd(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}}]},_I=new Wt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),TI=new Wt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Rb=new Wt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ob=new Wt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),PI=new Wt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),NI=new Wt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),kI=new Wt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),MI=new Wt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),jI=new Wt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zI=new Wt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),LI=new Wt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),AI=new Wt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),BI={zoom:{inKeyframes:_I,outKeyframes:TI},"zoom-big":{inKeyframes:Rb,outKeyframes:Ob},"zoom-big-fast":{inKeyframes:Rb,outKeyframes:Ob},"zoom-left":{inKeyframes:kI,outKeyframes:MI},"zoom-right":{inKeyframes:jI,outKeyframes:zI},"zoom-up":{inKeyframes:PI,outKeyframes:NI},"zoom-down":{inKeyframes:LI,outKeyframes:AI}},tc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:l}=BI[t];return[Rd(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}}]},DI=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:v,colorTextHeading:y,colorTextDisabled:S,fontSizeLG:C,lineHeight:b,lineHeightLG:w,marginSM:$,paddingSM:R,paddingLG:O,paddingXS:_,motionDurationSlow:I,fontSizeIcon:T,contentPadding:N,fontHeight:P,fontHeightLG:k}=e,A=`${Z(m)} ${p} ${g}`;return{[t]:Object.assign(Object.assign({},Fn(e)),{backgroundColor:o,border:A,borderRadius:d,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:A,"&: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:b,cursor:"pointer",transition:`all ${I}, visibility 0s`},xo(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:P,display:"flex",alignItems:"center",paddingInlineEnd:$},[`${t}-arrow`]:Object.assign(Object.assign({},Pl()),{fontSize:T,transition:`transform ${I}`,svg:{transition:`transform ${I}`}}),[`${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:v,backgroundColor:n,borderTop:A,[`& > ${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:C,lineHeight:w,[`> ${t}-header`]:{padding:c,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(O).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:O}}},[`${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:S,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:$}}}}})}},HI=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},FI=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}}}},VI=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}}}}}},WI=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"}),qI=pn("Collapse",e=>{const t=Xt(e,{collapseHeaderPaddingSM:`${Z(e.paddingXS)} ${Z(e.paddingSM)}`,collapseHeaderPaddingLG:`${Z(e.padding)} ${Z(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[DI(t),FI(t),VI(t),HI(t),Ex(t)]},WI),UI=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:o,className:l,style:s}=gr("collapse"),{prefixCls:c,className:d,rootClassName:m,style:p,bordered:g=!0,ghost:v,size:y,expandIconPosition:S="start",children:C,destroyInactivePanel:b,destroyOnHidden:w,expandIcon:$}=e,R=Qo(U=>{var W;return(W=y??U)!==null&&W!==void 0?W:"middle"}),O=n("collapse",c),_=n(),[I,T,N]=qI(O),P=u.useMemo(()=>S==="left"?"start":S==="right"?"end":S,[S]),k=$??o,A=u.useCallback((U={})=>{const W=typeof k=="function"?k(U):u.createElement(qo,{rotate:U.isActive?r==="rtl"?-90:90:void 0,"aria-label":U.isActive?"expanded":"collapsed"});return jr(W,()=>{var V;return{className:ee((V=W.props)===null||V===void 0?void 0:V.className,`${O}-arrow`)}})},[k,O,r]),M=ee(`${O}-icon-position-${P}`,{[`${O}-borderless`]:!g,[`${O}-rtl`]:r==="rtl",[`${O}-ghost`]:!!v,[`${O}-${R}`]:R!=="middle"},l,d,m,T,N),D=u.useMemo(()=>Object.assign(Object.assign({},vx(_)),{motionAppear:!1,leavedClassName:`${O}-content-hidden`}),[_,O]),B=u.useMemo(()=>C?Mr(C).map((U,W)=>{var V,H;const Q=U.props;if(Q!=null&&Q.disabled){const q=(V=U.key)!==null&&V!==void 0?V:String(W),z=Object.assign(Object.assign({},Xn(U.props,["disabled"])),{key:q,collapsible:(H=Q.collapsible)!==null&&H!==void 0?H:"disabled"});return jr(U,z)}return U}):null,[C]);return I(u.createElement(sh,Object.assign({ref:t,openMotion:D},Xn(e,["rootClassName"]),{expandIcon:A,prefixCls:O,className:M,style:Object.assign(Object.assign({},s),p),destroyInactivePanel:w??b}),B))}),ml=Object.assign(UI,{Panel:cI}),GI=e=>e instanceof ug?e:new ug(e),KI=(e,t)=>{const{r:n,g:r,b:o,a:l}=e.toRgb(),s=new Bs(e.toRgbString()).onBackground(t).toHsv();return l<=.5?s.v>.5:n*.299+r*.587+o*.114>192},Rx=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Xt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Ox=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:ju(c),g=(l=e.contentLineHeightSM)!==null&&l!==void 0?l:ju(d),v=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:ju(m),y=KI(new ug(e.colorBgSolid),"#fff")?"#000":"#fff",S=Wi.reduce((C,b)=>Object.assign(Object.assign({},C),{[`${b}ShadowColor`]:`0 ${Z(e.controlOutlineWidth)} 0 ${Ss(e[`${b}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},S),{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:v,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*v)/2-e.lineWidth,0)})},XI=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`]:Pl(),"> a":{color:"currentColor"},"&:not(:disabled)":xo(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()}}}}}},Ix=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),YI=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),QI=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Od=(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"},Ix(e,Object.assign({background:t},s),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:l||void 0}})}),JI=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},QI(e))}),ZI=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Id=(e,t,n,r)=>{const l=r&&["link","text"].includes(r)?ZI:JI;return Object.assign(Object.assign({},l(e)),Ix(e.componentCls,t,n))},_d=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Id(e,r,o))}),Td=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Id(e,r,o))}),Pd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Nd=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Id(e,n,r))}),Ko=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Id(e,r,o,n))}),e6=e=>{const{componentCls:t}=e;return Wi.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`]},_d(e,e.colorTextLightSolid,o,{background:s},{background:m})),Td(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:m,borderColor:m,background:e.colorBgContainer})),Pd(e)),Nd(e,l,{color:o,background:c},{color:o,background:d})),Ko(e,o,"link",{color:s},{color:m})),Ko(e,o,"text",{color:s,background:l},{color:m,background:d}))})},{})},t6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},_d(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Pd(e)),Nd(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Od(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Ko(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),n6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Td(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Pd(e)),Nd(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Ko(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Ko(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Od(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),r6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},_d(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Td(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Pd(e)),Nd(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Ko(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ko(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Od(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),o6=e=>Object.assign(Object.assign({},Ko(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Od(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),i6=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:t6(e),[`${t}-color-primary`]:n6(e),[`${t}-color-dangerous`]:r6(e),[`${t}-color-link`]:o6(e)},e6(e))},a6=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Td(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ko(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),_d(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ko(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),mh=(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}`]:YI(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},l6=e=>{const t=Xt(e,{fontSize:e.contentFontSize});return mh(t,e.componentCls)},s6=e=>{const t=Xt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return mh(t,`${e.componentCls}-sm`)},c6=e=>{const t=Xt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return mh(t,`${e.componentCls}-lg`)},u6=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},d6=pn("Button",e=>{const t=Rx(e);return[XI(t),l6(t),s6(t),c6(t),u6(t),i6(t),a6(t),GO(t)]},Ox,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function f6(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 m6(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 kd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,l=`${o}-compact`;return{[l]:Object.assign(Object.assign({},f6(e,l,t,o)),m6(o,l,t))}}function p6(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 g6(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 h6(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},p6(e,t,e.componentCls)),g6(e.componentCls,t))}}const v6=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))},y6=Ys(["Button","compact"],e=>{const t=Rx(e);return[kd(t),h6(t),v6(t)]},Ox);var b6=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 C6(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 S6={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},x6=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:v,disabled:y,className:S,rootClassName:C,children:b,icon:w,iconPosition:$="start",ghost:R=!1,block:O=!1,htmlType:_="button",classNames:I,style:T={},autoInsertSpace:N,autoFocus:P}=e,k=b6(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=d||"default",{button:M}=J.useContext(Et),D=p||(M==null?void 0:M.shape)||"default",[B,U]=u.useMemo(()=>{if(s&&c)return[s,c];if(d||m){const ht=S6[A]||[];return m?["danger",ht[1]]:ht}return M!=null&&M.color&&(M!=null&&M.variant)?[M.color,M.variant]:["default","outlined"]},[s,c,d,m,M==null?void 0:M.color,M==null?void 0:M.variant,A]),V=B==="danger"?"dangerous":B,{getPrefixCls:H,direction:Q,autoInsertSpace:q,className:z,style:F,classNames:Y,styles:ne}=gr("button"),te=(n=N??q)!==null&&n!==void 0?n:!0,re=H("btn",l),[fe,me,ue]=d6(re),Ce=u.useContext(ha),le=y??Ce,ce=u.useContext(Cx),he=u.useMemo(()=>C6(o),[o]),[ye,de]=u.useState(he.loading),[se,ve]=u.useState(!1),Se=u.useRef(null),Oe=Xo(t,Se),Ne=u.Children.count(b)===1&&!w&&!Zm(U),we=u.useRef(!0);J.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),rn(()=>{let ht=null;he.delay>0?ht=setTimeout(()=>{ht=null,de(!0)},he.delay):de(he.loading);function Gt(){ht&&(clearTimeout(ht),ht=null)}return Gt},[he.delay,he.loading]),u.useEffect(()=>{if(!Se.current||!te)return;const ht=Se.current.textContent||"";Ne&&cg(ht)?se||ve(!0):se&&ve(!1)}),u.useEffect(()=>{P&&Se.current&&Se.current.focus()},[]);const $e=J.useCallback(ht=>{var Gt;if(ye||le){ht.preventDefault();return}(Gt=e.onClick)===null||Gt===void 0||Gt.call(e,("href"in e,ht))},[e.onClick,ye,le]),{compactSize:ke,compactItemClassnames:Ie}=ec(re,Q),Ge={large:"lg",small:"sm",middle:void 0},tt=Qo(ht=>{var Gt,qt;return(qt=(Gt=g??ke)!==null&&Gt!==void 0?Gt:ce)!==null&&qt!==void 0?qt:ht}),St=tt&&(r=Ge[tt])!==null&&r!==void 0?r:"",ut=ye?"loading":w,Ue=Xn(k,["navigate"]),st=ee(re,me,ue,{[`${re}-${D}`]:D!=="default"&&D,[`${re}-${A}`]:A,[`${re}-dangerous`]:m,[`${re}-color-${V}`]:V,[`${re}-variant-${U}`]:U,[`${re}-${St}`]:St,[`${re}-icon-only`]:!b&&b!==0&&!!ut,[`${re}-background-ghost`]:R&&!Zm(U),[`${re}-loading`]:ye,[`${re}-two-chinese-chars`]:se&&te&&!ye,[`${re}-block`]:O,[`${re}-rtl`]:Q==="rtl",[`${re}-icon-end`]:$==="end"},Ie,S,C,z),We=Object.assign(Object.assign({},F),T),mt=ee(I==null?void 0:I.icon,Y.icon),Ye=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),ne.icon||{}),je=ht=>J.createElement(xx,{prefixCls:re,className:mt,style:Ye},ht),Je=()=>J.createElement(UO,{existIcon:!!w,prefixCls:re,loading:ye,mount:we.current});let Pe;w&&!ye?Pe=je(w):o&&typeof o=="object"&&o.icon?Pe=je(o.icon):Pe=Je();const He=b||b===0?qO(b,Ne&&te):null;if(Ue.href!==void 0)return fe(J.createElement("a",Object.assign({},Ue,{className:ee(st,{[`${re}-disabled`]:le}),href:le?void 0:Ue.href,style:We,onClick:$e,ref:Oe,tabIndex:le?-1:0,"aria-disabled":le}),Pe,He));let Rt=J.createElement("button",Object.assign({},k,{type:_,className:st,style:We,onClick:$e,disabled:le,ref:Oe}),Pe,He,Ie&&J.createElement(y6,{prefixCls:re}));return Zm(U)||(Rt=J.createElement(lh,{component:"Button",disabled:ye},Rt)),fe(Rt)}),Rr=x6;Rr.Group=VO;Rr.__ANT_BUTTON=!0;const rp=e=>typeof(e==null?void 0:e.then)=="function",_x=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),v=u.useRef(null),[y,S]=Rl(!1),C=(...$)=>{l==null||l.apply(void 0,$)};u.useEffect(()=>{let $=null;return s&&($=setTimeout(()=>{var R;(R=v.current)===null||R===void 0||R.focus({preventScroll:!0})})),()=>{$&&clearTimeout($)}},[s]);const b=$=>{rp($)&&(S(!0),$.then((...R)=>{S(!1,!0),C.apply(void 0,R),g.current=!1},R=>{if(S(!1,!0),g.current=!1,!(d!=null&&d()))return Promise.reject(R)}))},w=$=>{if(g.current)return;if(g.current=!0,!p){C();return}let R;if(c){if(R=p($),m&&!rp(R)){g.current=!1,C($);return}}else if(p.length)R=p(l),g.current=!1;else if(R=p(),!rp(R)){C();return}b(R)};return u.createElement(Rr,Object.assign({},Sx(t),{onClick:w,loading:y,prefixCls:r},o,{ref:v}),n)},nc=J.createContext({}),{Provider:Tx}=nc,Ib=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:l,close:s,onCancel:c,onConfirm:d}=u.useContext(nc);return o?J.createElement(_x,{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},_b=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:l,okType:s,onConfirm:c,onOk:d}=u.useContext(nc);return J.createElement(_x,{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 Px=u.createContext(null),Tb=[];function w6(e,t){var n=u.useState(function(){if(!Or())return null;var S=document.createElement("div");return S}),r=ae(n,1),o=r[0],l=u.useRef(!1),s=u.useContext(Px),c=u.useState(Tb),d=ae(c,2),m=d[0],p=d[1],g=s||(l.current?void 0:function(S){p(function(C){var b=[S].concat(Be(C));return b})});function v(){o.parentElement||document.body.appendChild(o),l.current=!0}function y(){var S;(S=o.parentElement)===null||S===void 0||S.removeChild(o),l.current=!1}return rn(function(){return e?s?s(v):v():y(),y},[e]),rn(function(){m.length&&(m.forEach(function(S){return S()}),p(Tb))},[m]),[o,g]}function $6(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,";"):"";ui(`
|
|
204
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
205
|
+
`).concat(p,`
|
|
206
|
+
`).concat(g,`
|
|
207
|
+
}`),t)}catch(S){console.error(S),o=d,l=m}}document.body.appendChild(n);var v=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,y=e&&l&&!isNaN(l)?l:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ks(t),{width:v,height:y}}function E6(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:$6(e)}function R6(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var O6="rc-util-locker-".concat(Date.now()),Pb=0;function I6(e){var t=!!e,n=u.useState(function(){return Pb+=1,"".concat(O6,"_").concat(Pb)}),r=ae(n,1),o=r[0];rn(function(){if(t){var l=E6(document.body).width,s=R6();ui(`
|
|
208
|
+
html body {
|
|
209
|
+
overflow-y: hidden;
|
|
210
|
+
`.concat(s?"width: calc(100% - ".concat(l,"px);"):"",`
|
|
211
|
+
}`),o)}else ks(o);return function(){ks(o)}},[t,o])}var _6=!1;function T6(e){return _6}var Nb=function(t){return t===!1?!1:!Or()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Md=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=ae(d,2),p=m[0],g=m[1],v=p||n;u.useEffect(function(){(s||n)&&g(n)},[n,s]);var y=u.useState(function(){return Nb(o)}),S=ae(y,2),C=S[0],b=S[1];u.useEffect(function(){var A=Nb(o);b(A??null)});var w=w6(v&&!C),$=ae(w,2),R=$[0],O=$[1],_=C??R;I6(r&&n&&Or()&&(_===R||_===document.body));var I=null;if(c&&Gi(c)&&t){var T=c;I=T.ref}var N=Xo(I,t);if(!v||!Or()||C===void 0)return null;var P=_===!1||T6(),k=c;return t&&(k=u.cloneElement(c,{ref:N})),u.createElement(Px.Provider,{value:O},P?k:Fi.createPortal(k,_))}),Nx=u.createContext({});function P6(){var e=K({},gd);return e.useId}var kb=0,Mb=P6();const jd=Mb?(function(t){var n=Mb();return t||n}):(function(t){var n=u.useState("ssr-id"),r=ae(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 jb(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function zb(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 N6(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=zb(o),n.top+=zb(o,!0),n}const k6=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var M6={width:0,height:0,overflow:"hidden",outline:"none"},j6={outline:"none"},kx=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,v=e.bodyStyle,y=e.bodyProps,S=e.modalRender,C=e.onMouseDown,b=e.onMouseUp,w=e.holderRef,$=e.visible,R=e.forceRender,O=e.width,_=e.height,I=e.classNames,T=e.styles,N=J.useContext(Nx),P=N.panel,k=Xo(w,P),A=u.useRef(),M=u.useRef();J.useImperativeHandle(t,function(){return{focus:function(){var F;(F=A.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var Y=document,ne=Y.activeElement;F&&ne===M.current?A.current.focus({preventScroll:!0}):!F&&ne===A.current&&M.current.focus({preventScroll:!0})}}});var D={};O!==void 0&&(D.width=O),_!==void 0&&(D.height=_);var B=c?J.createElement("div",{className:ee("".concat(n,"-footer"),I==null?void 0:I.footer),style:K({},T==null?void 0:T.footer)},c):null,U=l?J.createElement("div",{className:ee("".concat(n,"-header"),I==null?void 0:I.header),style:K({},T==null?void 0:T.header)},J.createElement("div",{className:"".concat(n,"-title"),id:s},l)):null,W=u.useMemo(function(){return gt(d)==="object"&&d!==null?d:d?{closeIcon:m??J.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[d,m,n]),V=oo(W,!0),H=gt(d)==="object"&&d.disabled,Q=d?J.createElement("button",Re({type:"button",onClick:p,"aria-label":"Close"},V,{className:"".concat(n,"-close"),disabled:H}),W.closeIcon):null,q=J.createElement("div",{className:ee("".concat(n,"-content"),I==null?void 0:I.content),style:T==null?void 0:T.content},Q,U,J.createElement("div",Re({className:ee("".concat(n,"-body"),I==null?void 0:I.body),style:K(K({},v),T==null?void 0:T.body)},y),g),B);return J.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?s:null,"aria-modal":"true",ref:k,style:K(K({},o),D),className:ee(n,r),onMouseDown:C,onMouseUp:b},J.createElement("div",{ref:A,tabIndex:0,style:j6},J.createElement(k6,{shouldUpdate:$||R},S?S(q):q)),J.createElement("div",{tabIndex:0,ref:M,style:M6}))}),Mx=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,v=e.mousePosition,y=u.useRef(),S=u.useState(),C=ae(S,2),b=C[0],w=C[1],$={};b&&($.transformOrigin=b);function R(){var O=N6(y.current);w(v&&(v.x||v.y)?"".concat(v.x-O.left,"px ").concat(v.y-O.top,"px"):"")}return u.createElement(ro,{visible:s,onVisibleChanged:g,onAppearPrepare:R,onEnterPrepare:R,forceRender:c,motionName:m,removeOnLeave:d,ref:y},function(O,_){var I=O.className,T=O.style;return u.createElement(kx,Re({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:_,style:K(K(K({},T),o),$),className:ee(l,I)}))})});Mx.displayName="Content";var z6=function(t){var n=t.prefixCls,r=t.style,o=t.visible,l=t.maskProps,s=t.motionName,c=t.className;return u.createElement(ro,{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",Re({ref:m,style:K(K({},g),r),className:ee("".concat(n,"-mask"),p,c)},l))})},L6=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,v=t.wrapClassName,y=t.wrapProps,S=t.onClose,C=t.afterOpenChange,b=t.afterClose,w=t.transitionName,$=t.animation,R=t.closable,O=R===void 0?!0:R,_=t.mask,I=_===void 0?!0:_,T=t.maskTransitionName,N=t.maskAnimation,P=t.maskClosable,k=P===void 0?!0:P,A=t.maskStyle,M=t.maskProps,D=t.rootClassName,B=t.classNames,U=t.styles,W=u.useRef(),V=u.useRef(),H=u.useRef(),Q=u.useState(s),q=ae(Q,2),z=q[0],F=q[1],Y=jd();function ne(){Mp(V.current,document.activeElement)||(W.current=document.activeElement)}function te(){if(!Mp(V.current,document.activeElement)){var de;(de=H.current)===null||de===void 0||de.focus()}}function re(de){if(de)te();else{if(F(!1),I&&W.current&&p){try{W.current.focus({preventScroll:!0})}catch{}W.current=null}z&&(b==null||b())}C==null||C(de)}function fe(de){S==null||S(de)}var me=u.useRef(!1),ue=u.useRef(),Ce=function(){clearTimeout(ue.current),me.current=!0},le=function(){ue.current=setTimeout(function(){me.current=!1})},ce=null;k&&(ce=function(se){me.current?me.current=!1:V.current===se.target&&fe(se)});function he(de){if(d&&de.keyCode===Ve.ESC){de.stopPropagation(),fe(de);return}s&&de.keyCode===Ve.TAB&&H.current.changeActive(!de.shiftKey)}u.useEffect(function(){s&&(F(!0),ne())},[s]),u.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var ye=K(K(K({zIndex:o},g),U==null?void 0:U.wrapper),{},{display:z?null:"none"});return u.createElement("div",Re({className:ee("".concat(r,"-root"),D)},oo(t,{data:!0})),u.createElement(z6,{prefixCls:r,visible:I&&s,motionName:jb(r,T,N),style:K(K({zIndex:o},A),U==null?void 0:U.mask),maskProps:M,className:B==null?void 0:B.mask}),u.createElement("div",Re({tabIndex:-1,onKeyDown:he,className:ee("".concat(r,"-wrap"),v,B==null?void 0:B.wrapper),ref:V,onClick:ce,style:ye},y),u.createElement(Mx,Re({},t,{onMouseDown:Ce,onMouseUp:le,ref:H,closable:O,ariaId:Y,prefixCls:r,visible:s&&z,onClose:fe,onVisibleChanged:re,motionName:jb(r,w,$)}))))},jx=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=ae(m,2),g=p[0],v=p[1],y=u.useMemo(function(){return{panel:d}},[d]);return u.useEffect(function(){n&&v(!0)},[n]),!o&&s&&!g?null:u.createElement(Nx.Provider,{value:y},u.createElement(Md,{open:n||o||g,autoDestroy:!1,getContainer:r,autoLock:n||g},u.createElement(L6,Re({},t,{destroyOnClose:s,afterClose:function(){c==null||c(),v(!1)}}))))};jx.displayName="Dialog";var da="RC_FORM_INTERNAL_HOOKS",wn=function(){ur(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_l=u.createContext({getFieldValue:wn,getFieldsValue:wn,getFieldError:wn,getFieldWarning:wn,getFieldsError:wn,isFieldsTouched:wn,isFieldTouched:wn,isFieldValidating:wn,isFieldsValidating:wn,resetFields:wn,setFields:wn,setFieldValue:wn,setFieldsValue:wn,validateFields:wn,submit:wn,getInternalHooks:function(){return wn(),{dispatch:wn,initEntityValue:wn,registerField:wn,useSubscribe:wn,setInitialValues:wn,destroyForm:wn,setCallbacks:wn,registerWatch:wn,getFields:wn,setValidateMessages:wn,setPreserve:wn,getInitialValue:wn}}}),Zu=u.createContext(null);function dg(e){return e==null?[]:Array.isArray(e)?e:[e]}function A6(e){return e&&!!e._init}function fg(){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 mg=fg();function B6(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function D6(e,t,n){if(Wg())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ts(o,n.prototype),o}function pg(e){var t=typeof Map=="function"?new Map:void 0;return pg=function(r){if(r===null||!B6(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 D6(r,arguments,Ps(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ts(o,r)},pg(e)}var H6=/%[sdj%]/g,F6=function(){};function gg(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 to(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(H6,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 V6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function rr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||V6(t)&&typeof e=="string"&&!e)}function W6(e,t,n){var r=[],o=0,l=e.length;function s(c){r.push.apply(r,Be(c||[])),o++,o===l&&n(r)}e.forEach(function(c){t(c,s)})}function Lb(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 q6(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Be(e[n]||[]))}),t}var Ab=(function(e){fi(n,e);var t=mi(n);function n(r,o){var l;return Yn(this,n),l=t.call(this,"Async Validation Error"),G(Ut(l),"errors",void 0),G(Ut(l),"fields",void 0),l.errors=r,l.fields=o,l}return Qn(n)})(pg(Error));function U6(e,t,n,r,o){if(t.first){var l=new Promise(function(v,y){var S=function(w){return r(w),w.length?y(new Ab(w,gg(w))):v(o)},C=q6(e);Lb(C,n,S)});return l.catch(function(v){return v}),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(v,y){var S=function(b){if(p.push.apply(p,b),m++,m===d)return r(p),p.length?y(new Ab(p,gg(p))):v(o)};c.length||(r(p),v(o)),c.forEach(function(C){var b=e[C];s.indexOf(C)!==-1?Lb(b,n,S):W6(b,n,S)})});return g.catch(function(v){return v}),g}function G6(e){return!!(e&&e.message!==void 0)}function K6(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Bb(e,t){return function(n){var r;return e.fullFields?r=K6(t,e.fullFields):r=t[n.field||e.fullField],G6(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 Db(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];gt(r)==="object"&>(e[n])==="object"?e[n]=K(K({},e[n]),r):e[n]=r}}return e}var Ya="enum",X6=function(t,n,r,o,l){t[Ya]=Array.isArray(t[Ya])?t[Ya]:[],t[Ya].indexOf(n)===-1&&o.push(to(l.messages[Ya],t.fullField,t[Ya].join(", ")))},Y6=function(t,n,r,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(to(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(to(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Q6=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,v=typeof n=="number",y=typeof n=="string",S=Array.isArray(n);if(v?g="number":y?g="string":S&&(g="array"),!g)return!1;S&&(p=n.length),y&&(p=n.replace(m,"_").length),s?p!==t.len&&o.push(to(l.messages[g].len,t.fullField,t.len)):c&&!d&&p<t.min?o.push(to(l.messages[g].min,t.fullField,t.min)):d&&!c&&p>t.max?o.push(to(l.messages[g].max,t.fullField,t.max)):c&&d&&(p<t.min||p>t.max)&&o.push(to(l.messages[g].range,t.fullField,t.min,t.max))},zx=function(t,n,r,o,l,s){t.required&&(!r.hasOwnProperty(t.field)||rr(n,s||t.type))&&o.push(to(l.messages.required,t.fullField))},hu;const J6=(function(){if(hu)return hu;var e="[a-fA-F\\d:]",t=function(I){return I&&I.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(I){return I&&I.exact?c:new RegExp("(?:".concat(t(I)).concat(n).concat(t(I),")|(?:").concat(t(I)).concat(s).concat(t(I),")"),"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]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",y=p.v4().source,S=p.v6().source,C="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",$="(?::\\d{2,5})?",R='(?:[/?#][^\\s"]*)?',O="(?:".concat(g,"|www\\.)").concat(v,"(?:localhost|").concat(y,"|").concat(S,"|").concat(C).concat(b).concat(w,")").concat($).concat(R);return hu=new RegExp("(?:^".concat(O,"$)"),"i"),hu});var op={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},xs={integer:function(t){return xs.number(t)&&parseInt(t,10)===t},float:function(t){return xs.number(t)&&!xs.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 gt(t)==="object"&&!xs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(op.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(op.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(J6())},hex:function(t){return typeof t=="string"&&!!t.match(op.hex)}},Z6=function(t,n,r,o,l){if(t.required&&n===void 0){zx(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?xs[c](n)||o.push(to(l.messages.types[c],t.fullField,t.type)):c&>(n)!==t.type&&o.push(to(l.messages.types[c],t.fullField,t.type))},e_=function(t,n,r,o,l){(/^\s+$/.test(n)||n==="")&&o.push(to(l.messages.whitespace,t.fullField))};const en={required:zx,whitespace:e_,type:Z6,range:Q6,enum:X6,pattern:Y6};var t_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l)}r(s)},n_=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();en.required(t,n,o,s,l,"array"),n!=null&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},r_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en.type(t,n,o,s,l)}r(s)},o_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n,"date")&&!t.required)return r();if(en.required(t,n,o,s,l),!rr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),en.type(t,d,o,s,l),d&&en.range(t,d.getTime(),o,s,l)}}r(s)},i_="enum",a_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en[i_](t,n,o,s,l)}r(s)},l_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},s_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},c_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en.type(t,n,o,s,l)}r(s)},u_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(n===""&&(n=void 0),rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&(en.type(t,n,o,s,l),en.range(t,n,o,s,l))}r(s)},d_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),n!==void 0&&en.type(t,n,o,s,l)}r(s)},f_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n,"string")&&!t.required)return r();en.required(t,n,o,s,l),rr(n,"string")||en.pattern(t,n,o,s,l)}r(s)},m_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n)&&!t.required)return r();en.required(t,n,o,s,l),rr(n)||en.type(t,n,o,s,l)}r(s)},p_=function(t,n,r,o,l){var s=[],c=Array.isArray(n)?"array":gt(n);en.required(t,n,o,s,l,c),r(s)},g_=function(t,n,r,o,l){var s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(rr(n,"string")&&!t.required)return r();en.required(t,n,o,s,l,"string"),rr(n,"string")||(en.type(t,n,o,s,l),en.range(t,n,o,s,l),en.pattern(t,n,o,s,l),t.whitespace===!0&&en.whitespace(t,n,o,s,l))}r(s)},vu=function(t,n,r,o,l){var s=t.type,c=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(rr(n,s)&&!t.required)return r();en.required(t,n,o,c,l,s),rr(n,s)||en.type(t,n,o,c,l)}r(c)};const Is={string:g_,method:c_,number:u_,boolean:r_,regexp:m_,integer:s_,float:l_,array:n_,object:d_,enum:a_,pattern:f_,date:o_,url:vu,hex:vu,email:vu,tel:vu,required:p_,any:t_};var rc=(function(){function e(t){Yn(this,e),G(this,"rules",null),G(this,"_messages",mg),this.define(t)}return Qn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(gt(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=Db(fg(),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(S){var C=[],b={};function w(R){if(Array.isArray(R)){var O;C=(O=C).concat.apply(O,Be(R))}else C.push(R)}for(var $=0;$<S.length;$++)w(S[$]);C.length?(b=gg(C),d(C,b)):d(null,s)}if(c.messages){var p=this.messages();p===mg&&(p=fg()),Db(p,c.messages),c.messages=p}else c.messages=this.messages();var g={},v=c.keys||Object.keys(this.rules);v.forEach(function(S){var C=r.rules[S],b=s[S];C.forEach(function(w){var $=w;typeof $.transform=="function"&&(s===n&&(s=K({},s)),b=s[S]=$.transform(b),b!=null&&($.type=$.type||(Array.isArray(b)?"array":gt(b)))),typeof $=="function"?$={validator:$}:$=K({},$),$.validator=r.getValidationMethod($),$.validator&&($.field=S,$.fullField=$.fullField||S,$.type=r.getType($),g[S]=g[S]||[],g[S].push({rule:$,value:b,source:s,field:S}))})});var y={};return U6(g,c,function(S,C){var b=S.rule,w=(b.type==="object"||b.type==="array")&&(gt(b.fields)==="object"||gt(b.defaultField)==="object");w=w&&(b.required||!b.required&&S.value),b.field=S.field;function $(T,N){return K(K({},N),{},{fullField:"".concat(b.fullField,".").concat(T),fullFields:b.fullFields?[].concat(Be(b.fullFields),[T]):[T]})}function R(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(T)?T:[T];!c.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&b.message!==void 0&&b.message!==null&&(N=[].concat(b.message));var P=N.map(Bb(b,s));if(c.first&&P.length)return y[b.field]=1,C(P);if(!w)C(P);else{if(b.required&&!S.value)return b.message!==void 0?P=[].concat(b.message).map(Bb(b,s)):c.error&&(P=[c.error(b,to(c.messages.required,b.field))]),C(P);var k={};b.defaultField&&Object.keys(S.value).map(function(D){k[D]=b.defaultField}),k=K(K({},k),S.rule.fields);var A={};Object.keys(k).forEach(function(D){var B=k[D],U=Array.isArray(B)?B:[B];A[D]=U.map($.bind(null,D))});var M=new e(A);M.messages(c.messages),S.rule.options&&(S.rule.options.messages=c.messages,S.rule.options.error=c.error),M.validate(S.value,S.rule.options||c,function(D){var B=[];P&&P.length&&B.push.apply(B,Be(P)),D&&D.length&&B.push.apply(B,Be(D)),C(B.length?B:null)})}}var O;if(b.asyncValidator)O=b.asyncValidator(b,S.value,R,S.source,c);else if(b.validator){try{O=b.validator(b,S.value,R,S.source,c)}catch(T){var _,I;(_=(I=console).error)===null||_===void 0||_.call(I,T),c.suppressValidatorError||setTimeout(function(){throw T},0),R(T.message)}O===!0?R():O===!1?R(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):O instanceof Array?R(O):O instanceof Error&&R(O.message)}O&&O.then&&O.then(function(){return R()},function(T){return R(T)})},function(S){m(S)},s)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Is.hasOwnProperty(n.type))throw new Error(to("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"?Is.required:Is[this.getType(n)]||void 0}}]),e})();G(rc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Is[t]=n});G(rc,"warning",F6);G(rc,"messages",mg);G(rc,"validators",Is);var Zr="'${name}' is not a valid ${type}",Lx={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:Zr,method:Zr,array:Zr,object:Zr,number:Zr,date:Zr,boolean:Zr,integer:Zr,float:Zr,regexp:Zr,email:Zr,url:Zr,hex:Zr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Hb=rc;function h_(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 Fb="CODE_LOGIC_ERROR";function hg(e,t,n,r,o){return vg.apply(this,arguments)}function vg(){return vg=Ca(Ir().mark(function e(t,n,r,o,l){var s,c,d,m,p,g,v,y,S;return Ir().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=K({},r),delete s.ruleIndex,Hb.warning=function(){},s.validator&&(c=s.validator,s.validator=function(){try{return c.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(Fb)}}),d=null,s&&s.type==="array"&&s.defaultField&&(d=s.defaultField,delete s.defaultField),m=new Hb(G({},t,[s])),p=ul(Lx,o.validateMessages),m.messages(p),g=[],b.prev=10,b.next=13,Promise.resolve(m.validate(G({},t,n),K({},o)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(g=b.t0.errors.map(function(w,$){var R=w.message,O=R===Fb?p.default:R;return u.isValidElement(O)?u.cloneElement(O,{key:"error_".concat($)}):O}));case 18:if(!(!g.length&&d&&Array.isArray(n)&&n.length>0)){b.next=23;break}return b.next=21,Promise.all(n.map(function(w,$){return hg("".concat(t,".").concat($),w,d,o,l)}));case 21:return v=b.sent,b.abrupt("return",v.reduce(function(w,$){return[].concat(Be(w),Be($))},[]));case 23:return y=K(K({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),S=g.map(function(w){return typeof w=="string"?h_(w,y):w}),b.abrupt("return",S);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),vg.apply(this,arguments)}function v_(e,t,n,r,o,l){var s=e.join("."),c=n.map(function(p,g){var v=p.validator,y=K(K({},p),{},{ruleIndex:g});return v&&(y.validator=function(S,C,b){var w=!1,$=function(){for(var _=arguments.length,I=new Array(_),T=0;T<_;T++)I[T]=arguments[T];Promise.resolve().then(function(){ur(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||b.apply(void 0,I)})},R=v(S,C,$);w=R&&typeof R.then=="function"&&typeof R.catch=="function",ur(w,"`callback` is deprecated. Please return a promise instead."),w&&R.then(function(){b()}).catch(function(O){b(O||" ")})}),y}).sort(function(p,g){var v=p.warningOnly,y=p.ruleIndex,S=g.warningOnly,C=g.ruleIndex;return!!v==!!S?y-C:v?1:-1}),d;if(o===!0)d=new Promise((function(){var p=Ca(Ir().mark(function g(v,y){var S,C,b;return Ir().wrap(function($){for(;;)switch($.prev=$.next){case 0:S=0;case 1:if(!(S<c.length)){$.next=12;break}return C=c[S],$.next=5,hg(s,t,C,r,l);case 5:if(b=$.sent,!b.length){$.next=9;break}return y([{errors:b,rule:C}]),$.abrupt("return");case 9:S+=1,$.next=1;break;case 12:v([]);case 13:case"end":return $.stop()}},g)}));return function(g,v){return p.apply(this,arguments)}})());else{var m=c.map(function(p){return hg(s,t,p,r,l).then(function(g){return{errors:g,rule:p}})});d=(o?b_(m):y_(m)).then(function(p){return Promise.reject(p)})}return d.catch(function(p){return p}),d}function y_(e){return yg.apply(this,arguments)}function yg(){return yg=Ca(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,Be(o));return s}));case 1:case"end":return r.stop()}},e)})),yg.apply(this,arguments)}function b_(e){return bg.apply(this,arguments)}function bg(){return bg=Ca(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)})),bg.apply(this,arguments)}function Un(e){return dg(e)}function Vb(e,t){var n={};return t.forEach(function(r){var o=Wo(e,r);n=To(n,r,o)}),n}function yl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Ax(t,r,n)})}function Ax(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 C_(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||gt(e)!=="object"||gt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Be(o).every(function(l){var s=e[l],c=t[l];return typeof s=="function"&&typeof c=="function"?!0:s===c})}function S_(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&>(t.target)==="object"&&e in t.target?t.target[e]:t}function Wb(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(Be(e.slice(0,n)),[o],Be(e.slice(n,t)),Be(e.slice(t+1,r))):l<0?[].concat(Be(e.slice(0,t)),Be(e.slice(t+1,n+1)),[o],Be(e.slice(n+1,r))):e}var x_=["name"],po=[];function ip(e,t,n,r,o,l){return typeof e=="function"?e(t,n,"source"in l?{source:l.source}:{}):r!==o}var ph=(function(e){fi(n,e);var t=mi(n);function n(r){var o;if(Yn(this,n),o=t.call(this,r),G(Ut(o),"state",{resetCount:0}),G(Ut(o),"cancelRegisterFunc",null),G(Ut(o),"mounted",!1),G(Ut(o),"touched",!1),G(Ut(o),"dirty",!1),G(Ut(o),"validatePromise",void 0),G(Ut(o),"prevValidating",void 0),G(Ut(o),"errors",po),G(Ut(o),"warnings",po),G(Ut(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(Ut(o),"getNamePath",function(){var d=o.props,m=d.name,p=d.fieldContext,g=p.prefixName,v=g===void 0?[]:g;return m!==void 0?[].concat(Be(v),Be(m)):[]}),G(Ut(o),"getRules",function(){var d=o.props,m=d.rules,p=m===void 0?[]:m,g=d.fieldContext;return p.map(function(v){return typeof v=="function"?v(g):v})}),G(Ut(o),"refresh",function(){o.mounted&&o.setState(function(d){var m=d.resetCount;return{resetCount:m+1}})}),G(Ut(o),"metaCache",null),G(Ut(o),"triggerMetaEvent",function(d){var m=o.props.onMetaChange;if(m){var p=K(K({},o.getMeta()),{},{destroy:d});Ms(o.metaCache,p)||m(p),o.metaCache=p}else o.metaCache=null}),G(Ut(o),"onStoreChange",function(d,m,p){var g=o.props,v=g.shouldUpdate,y=g.dependencies,S=y===void 0?[]:y,C=g.onReset,b=p.store,w=o.getNamePath(),$=o.getValue(d),R=o.getValue(b),O=m&&yl(m,w);switch(p.type==="valueUpdate"&&p.source==="external"&&!Ms($,R)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=po,o.warnings=po,o.triggerMetaEvent()),p.type){case"reset":if(!m||O){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=po,o.warnings=po,o.triggerMetaEvent(),C==null||C(),o.refresh();return}break;case"remove":{if(v&&ip(v,d,b,$,R,p)){o.reRender();return}break}case"setField":{var _=p.data;if(O){"touched"in _&&(o.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(o.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(o.errors=_.errors||po),"warnings"in _&&(o.warnings=_.warnings||po),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in _&&yl(m,w,!0)){o.reRender();return}if(v&&!w.length&&ip(v,d,b,$,R,p)){o.reRender();return}break}case"dependenciesUpdate":{var I=S.map(Un);if(I.some(function(T){return yl(p.relatedFields,T)})){o.reRender();return}break}default:if(O||(!S.length||w.length||v)&&ip(v,d,b,$,R,p)){o.reRender();return}break}v===!0&&o.reRender()}),G(Ut(o),"validateRules",function(d){var m=o.getNamePath(),p=o.getValue(),g=d||{},v=g.triggerName,y=g.validateOnly,S=y===void 0?!1:y,C=Promise.resolve().then(Ca(Ir().mark(function b(){var w,$,R,O,_,I,T;return Ir().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(w=o.props,$=w.validateFirst,R=$===void 0?!1:$,O=w.messageVariables,_=w.validateDebounce,I=o.getRules(),v&&(I=I.filter(function(k){return k}).filter(function(k){var A=k.validateTrigger;if(!A)return!0;var M=dg(A);return M.includes(v)})),!(_&&v)){P.next=10;break}return P.next=8,new Promise(function(k){setTimeout(k,_)});case 8:if(o.validatePromise===C){P.next=10;break}return P.abrupt("return",[]);case 10:return T=v_(m,p,I,d,R,O),T.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:po;if(o.validatePromise===C){var A;o.validatePromise=null;var M=[],D=[];(A=k.forEach)===null||A===void 0||A.call(k,function(B){var U=B.rule.warningOnly,W=B.errors,V=W===void 0?po:W;U?D.push.apply(D,Be(V)):M.push.apply(M,Be(V))}),o.errors=M,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",T);case 13:case"end":return P.stop()}},b)})));return S||(o.validatePromise=C,o.dirty=!0,o.errors=po,o.warnings=po,o.triggerMetaEvent(),o.reRender()),C}),G(Ut(o),"isFieldValidating",function(){return!!o.validatePromise}),G(Ut(o),"isFieldTouched",function(){return o.touched}),G(Ut(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var d=o.props.fieldContext,m=d.getInternalHooks(da),p=m.getInitialValue;return p(o.getNamePath())!==void 0}),G(Ut(o),"getErrors",function(){return o.errors}),G(Ut(o),"getWarnings",function(){return o.warnings}),G(Ut(o),"isListField",function(){return o.props.isListField}),G(Ut(o),"isList",function(){return o.props.isList}),G(Ut(o),"isPreserve",function(){return o.props.preserve}),G(Ut(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(Ut(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(Ut(o),"getValue",function(d){var m=o.props.fieldContext.getFieldsValue,p=o.getNamePath();return Wo(d||m(!0),p)}),G(Ut(o),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o.props,p=m.name,g=m.trigger,v=m.validateTrigger,y=m.getValueFromEvent,S=m.normalize,C=m.valuePropName,b=m.getValueProps,w=m.fieldContext,$=v!==void 0?v:w.validateTrigger,R=o.getNamePath(),O=w.getInternalHooks,_=w.getFieldsValue,I=O(da),T=I.dispatch,N=o.getValue(),P=b||function(B){return G({},C,B)},k=d[g],A=p!==void 0?P(N):{},M=K(K({},d),A);M[g]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var B,U=arguments.length,W=new Array(U),V=0;V<U;V++)W[V]=arguments[V];y?B=y.apply(void 0,W):B=S_.apply(void 0,[C].concat(W)),S&&(B=S(B,N,_(!0))),B!==N&&T({type:"updateValue",namePath:R,value:B}),k&&k.apply(void 0,W)};var D=dg($||[]);return D.forEach(function(B){var U=M[B];M[B]=function(){U&&U.apply(void 0,arguments);var W=o.props.rules;W&&W.length&&T({type:"validateField",namePath:R,triggerName:B})}}),M}),r.fieldContext){var l=r.fieldContext.getInternalHooks,s=l(da),c=s.initEntityValue;c(Ut(o))}return o}return Qn(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(da),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)):(ur(!c,"`children` of Field is not validate ReactElement."),m=c),u.createElement(u.Fragment,{key:o},m)}}]),n})(u.Component);G(ph,"contextType",_l);G(ph,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Bx(e){var t,n=e.name,r=kt(e,x_),o=u.useContext(_l),l=u.useContext(Zu),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(ph,Re({key:d,name:s,isListField:c},r,{fieldContext:o}))}function w_(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,l=e.validateTrigger,s=e.isListField,c=u.useContext(_l),d=u.useContext(Zu),m=u.useRef({keys:[],id:0}),p=m.current,g=u.useMemo(function(){var C=Un(c.prefixName)||[];return[].concat(Be(C),Be(Un(t)))},[c.prefixName,t]),v=u.useMemo(function(){return K(K({},c),{},{prefixName:g})},[c,g]),y=u.useMemo(function(){return{getKey:function(b){var w=g.length,$=b[w];return[p.keys[$],b.slice(w+1)]}}},[g]);if(typeof r!="function")return ur(!1,"Form.List only accepts function as children."),null;var S=function(b,w,$){var R=$.source;return R==="internal"?!1:b!==w};return u.createElement(Zu.Provider,{value:y},u.createElement(_l.Provider,{value:v},u.createElement(Bx,{name:[],shouldUpdate:S,rules:o,validateTrigger:l,initialValue:n,isList:!0,isListField:s??!!d},function(C,b){var w=C.value,$=w===void 0?[]:w,R=C.onChange,O=c.getFieldValue,_=function(){var P=O(g||[]);return P||[]},I={add:function(P,k){var A=_();k>=0&&k<=A.length?(p.keys=[].concat(Be(p.keys.slice(0,k)),[p.id],Be(p.keys.slice(k))),R([].concat(Be(A.slice(0,k)),[P],Be(A.slice(k))))):(p.keys=[].concat(Be(p.keys),[p.id]),R([].concat(Be(A),[P]))),p.id+=1},remove:function(P){var k=_(),A=new Set(Array.isArray(P)?P:[P]);A.size<=0||(p.keys=p.keys.filter(function(M,D){return!A.has(D)}),R(k.filter(function(M,D){return!A.has(D)})))},move:function(P,k){if(P!==k){var A=_();P<0||P>=A.length||k<0||k>=A.length||(p.keys=Wb(p.keys,P,k),R(Wb(A,P,k)))}}},T=$||[];return Array.isArray(T)||(T=[]),r(T.map(function(N,P){var k=p.keys[P];return k===void 0&&(p.keys[P]=p.id,k=p.keys[P],p.id+=1),{name:P,key:k,isListField:!0}}),I,b)})))}function $_(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 Dx="__@field_split__";function ap(e){return e.map(function(t){return"".concat(gt(t),":").concat(t)}).join(Dx)}var Qa=(function(){function e(){Yn(this,e),G(this,"kvs",new Map)}return Qn(e,[{key:"set",value:function(n,r){this.kvs.set(ap(n),r)}},{key:"get",value:function(n){return this.kvs.get(ap(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(ap(n))}},{key:"map",value:function(n){return Be(this.kvs.entries()).map(function(r){var o=ae(r,2),l=o[0],s=o[1],c=l.split(Dx);return n({key:c.map(function(d){var m=d.match(/^([^:]*):(.*)$/),p=ae(m,3),g=p[1],v=p[2];return g==="number"?Number(v):v}),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})(),E_=["name"],R_=Qn(function e(t){var n=this;Yn(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===da?(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}):(ur(!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=ul(r,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(c){var d=c.key;s=To(s,d,Wo(r,d))}),n.prevWithoutPreserves=null,n.updateStore(s)}}),G(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Qa;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=Wo(n.initialValues,r);return r.length?ul(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 Qa;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&>(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,v,y="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(c){var S,C;if((S=(C=p).isList)!==null&&S!==void 0&&S.call(C))return}else if(!l&&(g=(v=p).isListField)!==null&&g!==void 0&&g.call(v))return;if(!s)m.push(y);else{var b="getMeta"in p?p.getMeta():null;s(b)&&m.push(y)}}),Vb(n.store,m.map(Un))}),G(this,"getFieldValue",function(r){n.warningUnhooked();var o=Un(r);return Wo(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(b){return b.isFieldTouched()};if(!d)return m?p.every(function(C){return g(C)||C.isList()}):p.some(g);var v=new Qa;d.forEach(function(C){v.set(C,[])}),p.forEach(function(C){var b=C.getNamePath();d.forEach(function(w){w.every(function($,R){return b[R]===$})&&v.update(w,function($){return[].concat(Be($),[C])})})});var y=function(b){return b.some(g)},S=v.map(function(C){var b=C.value;return b});return m?S.every(y):S.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 yl(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 Qa,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 v=p.getNamePath(),y=n.getInitialValue(v);if(y!==void 0)ur(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var S=o.get(v);if(S&&S.size>1)ur(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var C=n.getFieldValue(v),b=p.isListField();!b&&(!r.skipExist||C===void 0)&&n.updateStore(To(n.store,v,Be(S)[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,Be(Be(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(ul(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(To(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=kt(s,E_),m=Un(c);l.push(m),"value"in d&&n.updateStore(To(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=Wo(n.store,l);s===void 0&&n.updateStore(To(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!Ax(g.getNamePath(),o)})){var p=n.store;n.updateStore(To(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(Be(l))}),l}),G(this,"updateValue",function(r,o){var l=Un(r),s=n.store;n.updateStore(To(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=Vb(n.store,[l]);d(m,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(Be(c)))}),G(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var l=ul(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 Qa;n.getFieldEntities().forEach(function(d){var m=d.props.dependencies;(m||[]).forEach(function(p){var g=Un(p);s.update(g,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(d),v})})});var c=function d(m){var p=s.get(m)||new Set;p.forEach(function(g){if(!o.has(g)){o.add(g);var v=g.getNamePath();g.isFieldDirty()&&v.length&&(l.push(v),d(v))}})};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 Qa;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 yl(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,v=s||{},y=v.recursive,S=v.dirty;n.getFieldEntities(!0).forEach(function($){if(c||d.push($.getNamePath()),!(!$.props.rules||!$.props.rules.length)&&!(S&&!$.isFieldDirty())){var R=$.getNamePath();if(g.add(R.join(p)),!c||yl(d,R,y)){var O=$.validateRules(K({validateMessages:K(K({},Lx),n.validateMessages)},s));m.push(O.then(function(){return{name:R,errors:[],warnings:[]}}).catch(function(_){var I,T=[],N=[];return(I=_.forEach)===null||I===void 0||I.call(_,function(P){var k=P.rule.warningOnly,A=P.errors;k?N.push.apply(N,Be(A)):T.push.apply(T,Be(A))}),T.length?Promise.reject({name:R,errors:T,warnings:N}):{name:R,errors:T,warnings:N}}))}}});var C=$_(m);n.lastValidatePromise=C,C.catch(function($){return $}).then(function($){var R=$.map(function(O){var _=O.name;return _});n.notifyObservers(n.store,R,{type:"validateFinish"}),n.triggerOnFieldsChange(R,$)});var b=C.then(function(){return n.lastValidatePromise===C?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function($){var R=$.filter(function(O){return O&&O.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:R,outOfDate:n.lastValidatePromise!==C})});b.catch(function($){return $});var w=d.filter(function($){return g.has($.join(p))});return n.triggerOnFieldsChange(w),b}),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 Hx(e){var t=u.useRef(),n=u.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var l=function(){o({})},s=new R_(l);t.current=s.getForm()}return[t.current]}var Cg=u.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),O_=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,l=t.children,s=u.useContext(Cg),c=u.useRef({});return u.createElement(Cg.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)},I_=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],__=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,v=t.validateTrigger,y=v===void 0?"onChange":v,S=t.onValuesChange,C=t.onFieldsChange,b=t.onFinish,w=t.onFinishFailed,$=t.clearOnDestroy,R=kt(t,I_),O=u.useRef(null),_=u.useContext(Cg),I=Hx(s),T=ae(I,1),N=T[0],P=N.getInternalHooks(da),k=P.useSubscribe,A=P.setInitialValues,M=P.setCallbacks,D=P.setValidateMessages,B=P.setPreserve,U=P.destroyForm;u.useImperativeHandle(n,function(){return K(K({},N),{},{nativeElement:O.current})}),u.useEffect(function(){return _.registerForm(r,N),function(){_.unregisterForm(r)}},[_,N,r]),D(K(K({},_.validateMessages),g)),M({onValuesChange:S,onFieldsChange:function(ne){if(_.triggerFormChange(r,ne),C){for(var te=arguments.length,re=new Array(te>1?te-1:0),fe=1;fe<te;fe++)re[fe-1]=arguments[fe];C.apply(void 0,[ne].concat(re))}},onFinish:function(ne){_.triggerFormFinish(r,ne),b&&b(ne)},onFinishFailed:w}),B(c);var W=u.useRef(null);A(o,!W.current),W.current||(W.current=!0),u.useEffect(function(){return function(){return U($)}},[]);var V,H=typeof d=="function";if(H){var Q=N.getFieldsValue(!0);V=d(Q,N)}else V=d;k(!H);var q=u.useRef();u.useEffect(function(){C_(q.current||[],l||[])||N.setFields(l||[]),q.current=l},[l,N]);var z=u.useMemo(function(){return K(K({},N),{},{validateTrigger:y})},[N,y]),F=u.createElement(Zu.Provider,{value:null},u.createElement(_l.Provider,{value:z},V));return p===!1?F:u.createElement(p,Re({},R,{ref:O,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)}}),F)};function qb(e){try{return JSON.stringify(e)}catch{return Math.random()}}function T_(){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=A6(l)?{form:l}:l,c=s.form,d=u.useState(),m=ae(d,2),p=m[0],g=m[1],v=u.useMemo(function(){return qb(p)},[p]),y=u.useRef(v);y.current=v;var S=u.useContext(_l),C=c||S,b=C&&C._init,w=Un(r),$=u.useRef(w);return $.current=w,u.useEffect(function(){if(b){var R=C.getFieldsValue,O=C.getInternalHooks,_=O(da),I=_.registerWatch,T=function(A,M){var D=s.preserve?M:A;return typeof r=="function"?r(D):Wo(D,$.current)},N=I(function(k,A){var M=T(k,A),D=qb(M);y.current!==D&&(y.current=D,g(M))}),P=T(R(),R(!0));return p!==P&&g(P),N}},[b]),p}var P_=u.forwardRef(__),oc=P_;oc.FormProvider=O_;oc.Field=Bx;oc.List=w_;oc.useForm=Hx;oc.useWatch=T_;const ed=u.createContext({}),N_=({children:e,status:t,override:n})=>{const r=u.useContext(ed),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(ed.Provider,{value:o},e)},k_=u.createContext(void 0),ic=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=J.createElement(N_,{override:!0,status:!0},o)),t&&(o=J.createElement(BO,null,o)),o};var M_=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 Ub(e,t){return M_(e)}const j_=()=>Or()&&window.document.documentElement,zd=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)})},z_=new Wt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ld=e=>({height:e,lineHeight:Z(e)}),bl=e=>Object.assign({width:e},Ld(e)),L_=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:z_,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),lp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ld(e)),A_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:l}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},bl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},bl(o)),[`${t}${t}-sm`]:Object.assign({},bl(l))}},B_=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},lp(t,c)),[`${r}-lg`]:Object.assign({},lp(o,c)),[`${r}-sm`]:Object.assign({},lp(l,c))}},Gb=e=>Object.assign({width:e},Ld(e)),D_=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},Gb(l(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Gb(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%"}}},sp=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},cp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ld(e)),H_=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()},cp(r,c))},sp(e,r,n)),{[`${n}-lg`]:Object.assign({},cp(o,c))}),sp(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},cp(l,c))}),sp(e,l,`${n}-sm`))},F_=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:v,marginSM:y,borderRadius:S,titleHeight:C,blockRadius:b,paragraphLiHeight:w,controlHeightXS:$,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:g},bl(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},bl(m)),[`${n}-sm`]:Object.assign({},bl(p))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:g,borderRadius:b,[`+ ${o}`]:{marginBlockStart:p}},[o]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:g,borderRadius:b,"+ li":{marginBlockStart:$}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:S}}},[`${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"},H_(e)),A_(e)),B_(e)),D_(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({},L_(e))}}},V_=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}},Ml=pn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Xt(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 F_(r)},V_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),W_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:l="circle",size:s="default"}=e,{getPrefixCls:c}=u.useContext(Et),d=c("skeleton",t),[m,p,g]=Ml(d),v=Xn(e,["prefixCls","className"]),y=ee(d,`${d}-element`,{[`${d}-active`]:o},n,r,p,g);return m(u.createElement("div",{className:y},u.createElement(zd,Object.assign({prefixCls:`${d}-avatar`,shape:l,size:s},v))))},q_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l=!1,size:s="default"}=e,{getPrefixCls:c}=u.useContext(Et),d=c("skeleton",t),[m,p,g]=Ml(d),v=Xn(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(zd,Object.assign({prefixCls:`${d}-button`,size:s},v))))},U_="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",G_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l}=e,{getPrefixCls:s}=u.useContext(Et),c=s("skeleton",t),[d,m,p]=Ml(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:U_,className:`${c}-image-path`})))))},K_=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:l,size:s="default"}=e,{getPrefixCls:c}=u.useContext(Et),d=c("skeleton",t),[m,p,g]=Ml(d),v=Xn(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(zd,Object.assign({prefixCls:`${d}-input`,size:s},v))))},X_=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:l,children:s}=e,{getPrefixCls:c}=u.useContext(Et),d=c("skeleton",t),[m,p,g]=Ml(d),v=ee(d,`${d}-element`,{[`${d}-active`]:l},p,n,r,g);return m(u.createElement("div",{className:v},u.createElement("div",{className:ee(`${d}-image`,n),style:o},s)))},Y_=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Q_=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:Y_(c,e)}}));return u.createElement("ul",{className:ee(t,n),style:r},l)},J_=({prefixCls:e,className:t,width:n,style:r})=>u.createElement("h3",{className:ee(e,t),style:Object.assign({width:n},r)});function up(e){return e&&typeof e=="object"?e:{}}function Z_(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function eT(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function tT(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Sa=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:v,direction:y,className:S,style:C}=gr("skeleton"),b=v("skeleton",t),[w,$,R]=Ml(b);if(n||!("loading"in e)){const O=!!c,_=!!d,I=!!m;let T;if(O){const k=Object.assign(Object.assign({prefixCls:`${b}-avatar`},Z_(_,I)),up(c));T=u.createElement("div",{className:`${b}-header`},u.createElement(zd,Object.assign({},k)))}let N;if(_||I){let k;if(_){const M=Object.assign(Object.assign({prefixCls:`${b}-title`},eT(O,I)),up(d));k=u.createElement(J_,Object.assign({},M))}let A;if(I){const M=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},tT(O,_)),up(m));A=u.createElement(Q_,Object.assign({},M))}N=u.createElement("div",{className:`${b}-content`},k,A)}const P=ee(b,{[`${b}-with-avatar`]:O,[`${b}-active`]:p,[`${b}-rtl`]:y==="rtl",[`${b}-round`]:g},S,r,o,$,R);return w(u.createElement("div",{className:P,style:Object.assign(Object.assign({},C),l)},T,N))}return s??null};Sa.Button=q_;Sa.Avatar=W_;Sa.Input=K_;Sa.Image=G_;Sa.Node=X_;function Kb(){}const nT=u.createContext({add:Kb,remove:Kb});function Fx(e){const t=u.useContext(nT),n=u.useRef(null);return Bn(o=>{if(o){const l=e?o.querySelector(e):o;l&&(t.add(l),n.current=l)}else t.remove(n.current)})}const Xb=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=u.useContext(nc);return J.createElement(Rr,Object.assign({onClick:n},e),t)},Yb=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=u.useContext(nc);return J.createElement(Rr,Object.assign({},Sx(n),{loading:e,onClick:o},t),r)};function Vx(e,t){return J.createElement("span",{className:`${e}-close-x`},t||J.createElement(qi,{className:`${e}-close-icon`}))}const Wx=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:l,onCancel:s,okButtonProps:c,cancelButtonProps:d,footer:m}=e,[p]=pi("Modal",wS()),g=t||(p==null?void 0:p.okText),v=r||(p==null?void 0:p.cancelText),y=J.useMemo(()=>({confirmLoading:o,okButtonProps:c,cancelButtonProps:d,okTextLocale:g,cancelTextLocale:v,okType:n,onOk:l,onCancel:s}),[o,c,d,g,v,n,l,s]);let S;return typeof m=="function"||typeof m>"u"?(S=J.createElement(J.Fragment,null,J.createElement(Xb,null),J.createElement(Yb,null)),typeof m=="function"&&(S=m(S,{OkBtn:Yb,CancelBtn:Xb})),S=J.createElement(Tx,{value:y},S)):S=m,J.createElement(TS,{disabled:!1},S)},rT=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"}}}},oT=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},iT=(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},Sg=(e,t)=>iT(e,t),aT=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},Sg(e,n))}),lT=()=>({}),sT=()=>({}),cT=pn("Grid",rT,lT),qx=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),uT=pn("Grid",e=>{const t=Xt(e,{gridColumns:24}),n=qx(t);return delete n.xs,[oT(t),Sg(t,""),Sg(t,"-xs"),Object.keys(n).map(r=>aT(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},sT);function Qb(e){return{position:e,inset:0}}const dT=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({},Qb("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Qb("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:pI(e)}]},fT=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({},Fn(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}},xo(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"}}}]},mT=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pT=e=>{const{componentCls:t}=e,n=qx(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(Be(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)`}],Be(l))}}},Ux=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Xt(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()})},Gx=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}),Kx=pn("Modal",e=>{const t=Ux(e);return[fT(t),mT(t),dT(t),tc(t,"zoom"),pT(t)]},Gx,{unitless:{titleLineHeight:!0}});var gT=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 xg;const hT=e=>{xg={x:e.pageX,y:e.pageY},setTimeout(()=>{xg=null},100)};j_()&&document.documentElement.addEventListener("click",hT,!0);const Xx=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:v,classNames:y,styles:S,children:C,loading:b,confirmLoading:w,zIndex:$,mousePosition:R,onOk:O,onCancel:_,destroyOnHidden:I,destroyOnClose:T,panelRef:N=null,modalRender:P}=e,k=gT(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:A,getPrefixCls:M,direction:D,modal:B}=u.useContext(Et),U=Se=>{w||_==null||_(Se)},W=Se=>{O==null||O(Se)},V=M("modal",t),H=M(),Q=gi(V),[q,z,F]=Kx(V,Q),Y=ee(l,{[`${V}-centered`]:s??(B==null?void 0:B.centered),[`${V}-wrap-rtl`]:D==="rtl"}),ne=v!==null&&!b?u.createElement(Wx,Object.assign({},e,{onOk:W,onCancel:U})):null,[te,re,fe,me]=nh(Il(e),Il(B),{closable:!0,closeIcon:u.createElement(qi,{className:`${V}-close-icon`}),closeIconRender:Se=>Vx(V,Se)}),ue=P?Se=>u.createElement("div",{className:`${V}-render`},P(Se)):void 0,Ce=`.${V}-${P?"render":"content"}`,le=Fx(Ce),ce=Ao(N,le),[he,ye]=kl("Modal",$),[de,se]=u.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),ve=u.useMemo(()=>{const Se={};return se&&Object.keys(se).forEach(Oe=>{const Ne=se[Oe];Ne!==void 0&&(Se[`--${V}-${Oe}-width`]=typeof Ne=="number"?`${Ne}px`:Ne)}),Se},[V,se]);return q(u.createElement(ic,{form:!0,space:!0},u.createElement(Js.Provider,{value:ye},u.createElement(jx,Object.assign({width:de},k,{zIndex:he,getContainer:c===void 0?A:c,prefixCls:V,rootClassName:ee(z,r,F,Q),footer:ne,visible:o??p,mousePosition:R??xg,onClose:U,closable:te&&Object.assign({disabled:fe,closeIcon:re},me),closeIcon:re,focusTriggerAfterClose:d,transitionName:Go(H,"zoom",e.transitionName),maskTransitionName:Go(H,"fade",e.maskTransitionName),className:ee(z,n,B==null?void 0:B.className),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),m),ve),classNames:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.classNames),y),{wrapper:ee(Y,y==null?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},B==null?void 0:B.styles),S),panelRef:ce,destroyOnClose:I??T,modalRender:ue}),b?u.createElement(Sa,{active:!0,title:!1,paragraph:{rows:4},className:`${V}-body-skeleton`}):C))))},vT=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({},Gu()),[`&${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}}},yT=Ys(["Modal","confirm"],e=>{const t=Ux(e);return vT(t)},Gx,{order:-1e3});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 Yx=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:l,type:s,okCancel:c,footer:d,locale:m}=e,p=bT(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let g=n;if(!n&&n!==null)switch(s){case"info":g=u.createElement(ix,null);break;case"success":g=u.createElement(rx,null);break;case"error":g=u.createElement(wd,null);break;default:g=u.createElement(ox,null)}const v=c??s==="confirm",y=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[S]=pi("Modal"),C=m||S,b=r||(v?C==null?void 0:C.okText:C==null?void 0:C.justOkText),w=o||(C==null?void 0:C.cancelText),$=u.useMemo(()=>Object.assign({autoFocusButton:y,cancelTextLocale:w,okTextLocale:b,mergedOkCancel:v},p),[y,w,b,v,p]),R=u.createElement(u.Fragment,null,u.createElement(Ib,null),u.createElement(_b,null)),O=e.title!==void 0&&e.title!==null,_=`${l}-body`;return u.createElement("div",{className:`${l}-body-wrapper`},u.createElement("div",{className:ee(_,{[`${_}-has-title`]:O})},g,u.createElement("div",{className:`${l}-paragraph`},O&&u.createElement("span",{className:`${l}-title`},e.title),u.createElement("div",{className:`${l}-content`},e.content))),d===void 0||typeof d=="function"?u.createElement(Tx,{value:$},u.createElement("div",{className:`${l}-btns`},typeof d=="function"?d(R,{OkBtn:_b,CancelBtn:Ib}):R)):d,u.createElement(yT,{prefixCls:t}))},CT=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:v}=e,y=`${l}-confirm`,S=e.width||416,C=e.style||{},b=e.mask===void 0?!0:e.mask,w=e.maskClosable===void 0?!1:e.maskClosable,$=ee(y,`${y}-${e.type}`,{[`${y}-rtl`]:o==="rtl"},e.className),[,R]=zr(),O=u.useMemo(()=>n!==void 0?n:R.zIndexPopupBase+ux,[n,R]);return u.createElement(Xx,Object.assign({},e,{className:$,wrapClassName:ee({[`${y}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},title:v,footer:null,transitionName:Go(c||"","zoom",e.transitionName),maskTransitionName:Go(c||"","fade",e.maskTransitionName),mask:b,maskClosable:w,style:C,styles:Object.assign({body:d,mask:r},g),width:S,zIndex:O,closable:m}),u.createElement(Yx,Object.assign({},e,{confirmPrefixCls:y})))},Qx=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return u.createElement(Yo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},u.createElement(CT,Object.assign({},e)))},fa=[];let Jx="";function Zx(){return Jx}const ST=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:l}=e,s=wS(),c=u.useContext(Et),d=Zx()||c.getPrefixCls(),m=r||`${d}-modal`;let p=o;return p===!1&&(p=void 0),J.createElement(Qx,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 ac(e){const t=JS(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:d,open:!0}),o,l;function s(...p){var g;if(p.some(S=>S==null?void 0:S.triggerCancel)){var y;(g=e.onCancel)===null||g===void 0||(y=g).call.apply(y,[e,()=>{}].concat(Be(p.slice(1))))}for(let S=0;S<fa.length;S++)if(fa[S]===d){fa.splice(S,1);break}l()}const c=p=>{clearTimeout(o),o=setTimeout(()=>{const g=t.getPrefixCls(void 0,Zx()),v=t.getIconPrefixCls(),y=t.getTheme(),S=J.createElement(ST,Object.assign({},p));l=ih()(J.createElement(Yo,{prefixCls:g,iconPrefixCls:v,theme:y},typeof t.holderRender=="function"?t.holderRender(S):S),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),fa.push(d),{destroy:d,update:m}}function ew(e){return Object.assign(Object.assign({},e),{type:"warning"})}function tw(e){return Object.assign(Object.assign({},e),{type:"info"})}function nw(e){return Object.assign(Object.assign({},e),{type:"success"})}function rw(e){return Object.assign(Object.assign({},e),{type:"error"})}function ow(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function xT({rootPrefixCls:e}){Jx=e}var wT=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 $T=(e,t)=>{var n,{afterClose:r,config:o}=e,l=wT(e,["afterClose","config"]);const[s,c]=u.useState(!0),[d,m]=u.useState(o),{direction:p,getPrefixCls:g}=u.useContext(Et),v=g("modal"),y=g(),S=()=>{var $;r(),($=d.afterClose)===null||$===void 0||$.call(d)},C=(...$)=>{var R;if(c(!1),$.some(I=>I==null?void 0:I.triggerCancel)){var _;(R=d.onCancel)===null||R===void 0||(_=R).call.apply(_,[d,()=>{}].concat(Be($.slice(1))))}};u.useImperativeHandle(t,()=>({destroy:C,update:$=>{m(R=>{const O=typeof $=="function"?$(R):$;return Object.assign(Object.assign({},R),O)})}}));const b=(n=d.okCancel)!==null&&n!==void 0?n:d.type==="confirm",[w]=pi("Modal",Vi.Modal);return u.createElement(Qx,Object.assign({prefixCls:v,rootPrefixCls:y},d,{close:C,open:s,afterClose:S,okText:d.okText||(b?w==null?void 0:w.okText:w==null?void 0:w.justOkText),direction:d.direction||p,cancelText:d.cancelText||(w==null?void 0:w.cancelText)},l))},ET=u.forwardRef($T);let Jb=0;const RT=u.memo(u.forwardRef((e,t)=>{const[n,r]=Z5();return u.useImperativeHandle(t,()=>({patchElement:r}),[r]),u.createElement(u.Fragment,null,n)}));function OT(){const e=u.useRef(null),[t,n]=u.useState([]);u.useEffect(()=>{t.length&&(Be(t).forEach(s=>{s()}),n([]))},[t]);const r=u.useCallback(l=>function(c){var d;Jb+=1;const m=u.createRef();let p;const g=new Promise(b=>{p=b});let v=!1,y;const S=u.createElement(ET,{key:`modal-${Jb}`,config:l(c),ref:m,afterClose:()=>{y==null||y()},isSilent:()=>v,onConfirm:b=>{p(b)}});return y=(d=e.current)===null||d===void 0?void 0:d.patchElement(S),y&&fa.push(y),{destroy:()=>{function b(){var w;(w=m.current)===null||w===void 0||w.destroy()}m.current?b():n(w=>[].concat(Be(w),[b]))},update:b=>{function w(){var $;($=m.current)===null||$===void 0||$.update(b)}m.current?w():n($=>[].concat(Be($),[w]))},then:b=>(v=!0,g.then(b))}},[]);return[u.useMemo(()=>({info:r(tw),success:r(nw),error:r(rw),warning:r(ew),confirm:r(ow)}),[r]),u.createElement(RT,{key:"modal-holder",ref:e})]}const IT=J.createContext({});function iw(e){return t=>u.createElement(Yo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},u.createElement(e,Object.assign({},t)))}const aw=(e,t,n,r,o)=>iw(s=>{const{prefixCls:c,style:d}=s,m=u.useRef(null),[p,g]=u.useState(0),[v,y]=u.useState(0),[S,C]=Hn(!1,{value:s.open}),{getPrefixCls:b}=u.useContext(Et),w=b(r||"select",c);u.useEffect(()=>{if(C(!0),typeof ResizeObserver<"u"){const O=new ResizeObserver(I=>{const T=I[0].target;g(T.offsetHeight+8),y(T.offsetWidth)}),_=setInterval(()=>{var I;const T=o?`.${o(w)}`:`.${w}-dropdown`,N=(I=m.current)===null||I===void 0?void 0:I.querySelector(T);N&&(clearInterval(_),O.observe(N))},10);return()=>{clearInterval(_),O.disconnect()}}},[w]);let $=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},d),{margin:0}),open:S,visible:S,getPopupContainer:()=>m.current});t&&Object.assign($,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const R={paddingBottom:p,position:"relative",minWidth:v};return u.createElement("div",{ref:m,style:R},u.createElement(e,Object.assign({},$)))}),gh=(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 Ad=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))},_T=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(gt(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(Ad,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:m},"×")}},lw=u.createContext(null);function TT(){return u.useContext(lw)}function PT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=u.useState(!1),n=ae(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 NT(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&&![Ve.ESC,Ve.SHIFT,Ve.BACKSPACE,Ve.TAB,Ve.WIN_KEY,Ve.ALT,Ve.META,Ve.WIN_KEY_RIGHT,Ve.CTRL,Ve.SEMICOLON,Ve.EQUALS,Ve.CAPS_LOCK,Ve.CONTEXT_MENU,Ve.F1,Ve.F2,Ve.F3,Ve.F4,Ve.F5,Ve.F6,Ve.F7,Ve.F8,Ve.F9,Ve.F10,Ve.F11,Ve.F12].includes(e)}var MT=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ja=void 0;function jT(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,v=e.children,y=e.display,S=e.order,C=e.component,b=C===void 0?"div":C,w=kt(e,MT),$=s&&!y;function R(N){d(m,N)}u.useEffect(function(){return function(){R(null)}},[]);var O=l&&o!==Ja?l(o,{index:S}):v,_;r||(_={opacity:$?0:1,height:$?0:Ja,overflowY:$?"hidden":Ja,order:s?S:Ja,pointerEvents:$?"none":Ja,position:$?"absolute":Ja});var I={};$&&(I["aria-hidden"]=!0);var T=u.createElement(b,Re({className:ee(!r&&n,p),style:K(K({},_),g)},I,w,{ref:t}),O);return s&&(T=u.createElement(Co,{onResize:function(P){var k=P.offsetWidth;R(k)},disabled:c},T)),T}var pl=u.forwardRef(jT);pl.displayName="Item";function zT(e){if(typeof MessageChannel>"u")$n(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function LT(){var e=u.useRef(null),t=function(r){e.current||(e.current=[],zT(function(){Fi.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Za(e,t){var n=u.useState(t),r=ae(n,2),o=r[0],l=r[1],s=Bn(function(c){e(function(){l(c)})});return[o,s]}var td=J.createContext(null),AT=["component"],BT=["className"],DT=["className"],HT=function(t,n){var r=u.useContext(td);if(!r){var o=t.component,l=o===void 0?"div":o,s=kt(t,AT);return u.createElement(l,Re({},s,{ref:n}))}var c=r.className,d=kt(r,BT),m=t.className,p=kt(t,DT);return u.createElement(td.Provider,{value:null},u.createElement(pl,Re({ref:n,className:ee(c,m)},d,p)))},cw=u.forwardRef(HT);cw.displayName="RawItem";var FT=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],uw="responsive",dw="invalidate";function VT(e){return"+ ".concat(e.length," ...")}function WT(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,v=e.style,y=e.className,S=e.maxCount,C=e.renderRest,b=e.renderRawRest,w=e.prefix,$=e.suffix,R=e.component,O=R===void 0?"div":R,_=e.itemComponent,I=e.onVisibleChange,T=kt(e,FT),N=g==="full",P=LT(),k=Za(P,null),A=ae(k,2),M=A[0],D=A[1],B=M||0,U=Za(P,new Map),W=ae(U,2),V=W[0],H=W[1],Q=Za(P,0),q=ae(Q,2),z=q[0],F=q[1],Y=Za(P,0),ne=ae(Y,2),te=ne[0],re=ne[1],fe=Za(P,0),me=ae(fe,2),ue=me[0],Ce=me[1],le=Za(P,0),ce=ae(le,2),he=ce[0],ye=ce[1],de=u.useState(null),se=ae(de,2),ve=se[0],Se=se[1],Oe=u.useState(null),Ne=ae(Oe,2),we=Ne[0],$e=Ne[1],ke=u.useMemo(function(){return we===null&&N?Number.MAX_SAFE_INTEGER:we||0},[we,M]),Ie=u.useState(!1),Ge=ae(Ie,2),tt=Ge[0],St=Ge[1],ut="".concat(r,"-item"),Ue=Math.max(z,te),st=S===uw,We=l.length&&st,mt=S===dw,Ye=We||typeof S=="number"&&l.length>S,je=u.useMemo(function(){var Ee=l;return We?M===null&&N?Ee=l:Ee=l.slice(0,Math.min(l.length,B/p)):typeof S=="number"&&(Ee=l.slice(0,S)),Ee},[l,p,M,S,We]),Je=u.useMemo(function(){return We?l.slice(ke+1):l.slice(je.length)},[l,je,We,ke]),Pe=u.useCallback(function(Ee,xe){var ze;return typeof d=="function"?d(Ee):(ze=d&&(Ee==null?void 0:Ee[d]))!==null&&ze!==void 0?ze:xe},[d]),He=u.useCallback(s||function(Ee){return Ee},[s]);function Rt(Ee,xe,ze){we===Ee&&(xe===void 0||xe===ve)||($e(Ee),ze||(St(Ee<l.length-1),I==null||I(Ee)),xe!==void 0&&Se(xe))}function ht(Ee,xe){D(xe.clientWidth)}function Gt(Ee,xe){H(function(ze){var Xe=new Map(ze);return xe===null?Xe.delete(Ee):Xe.set(Ee,xe),Xe})}function qt(Ee,xe){re(xe),F(te)}function dn(Ee,xe){Ce(xe)}function Sn(Ee,xe){ye(xe)}function Yt(Ee){return V.get(Pe(je[Ee],Ee))}rn(function(){if(B&&typeof Ue=="number"&&je){var Ee=ue+he,xe=je.length,ze=xe-1;if(!xe){Rt(0,null);return}for(var Xe=0;Xe<xe;Xe+=1){var Qe=Yt(Xe);if(N&&(Qe=Qe||0),Qe===void 0){Rt(Xe-1,void 0,!0);break}if(Ee+=Qe,ze===0&&Ee<=B||Xe===ze-1&&Ee+Yt(ze)<=B){Rt(ze,null);break}else if(Ee+Ue>B){Rt(Xe-1,Ee-Qe-he+te);break}}$&&Yt(0)+he>B&&Se(null)}},[B,V,te,ue,he,Pe,je]);var jt=tt&&!!Je.length,xt={};ve!==null&&We&&(xt={position:"absolute",left:ve,top:0});var Qt={prefixCls:ut,responsive:We,component:_,invalidate:mt},Vt=c?function(Ee,xe){var ze=Pe(Ee,xe);return u.createElement(td.Provider,{key:ze,value:K(K({},Qt),{},{order:xe,item:Ee,itemKey:ze,registerSize:Gt,display:xe<=ke})},c(Ee,xe))}:function(Ee,xe){var ze=Pe(Ee,xe);return u.createElement(pl,Re({},Qt,{order:xe,key:ze,item:Ee,renderItem:He,itemKey:ze,registerSize:Gt,display:xe<=ke}))},Ze={order:jt?ke:Number.MAX_SAFE_INTEGER,className:"".concat(ut,"-rest"),registerSize:qt,display:jt},Ct=C||VT,ct=b?u.createElement(td.Provider,{value:K(K({},Qt),Ze)},b(Je)):u.createElement(pl,Re({},Qt,Ze),typeof Ct=="function"?Ct(Je):Ct),_e=u.createElement(O,Re({className:ee(!mt&&r,y),style:v,ref:t},T),w&&u.createElement(pl,Re({},Qt,{responsive:st,responsiveDisabled:!We,order:-1,className:"".concat(ut,"-prefix"),registerSize:dn,display:!0}),w),je.map(Vt),Ye?ct:null,$&&u.createElement(pl,Re({},Qt,{responsive:st,responsiveDisabled:!We,order:ke,className:"".concat(ut,"-suffix"),registerSize:Sn,display:!0,style:xt}),$));return st?u.createElement(Co,{onResize:ht,disabled:!We},_e):_e}var Uo=u.forwardRef(WT);Uo.displayName="Overflow";Uo.Item=cw;Uo.RESPONSIVE=uw;Uo.INVALIDATE=dw;function qT(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 UT=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],GT=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,v=t.attrs,y=kt(t,UT),S=l||u.createElement("input",null),C=S,b=C.ref,w=C.props;return"maxLength"in S.props,S=u.cloneElement(S,K(K(K({type:"search"},qT(y,w)),{},{id:o,ref:Ao(n,b),autoComplete:c||"off",autoFocus:s,className:ee("".concat(r,"-selection-search-input"),w==null?void 0:w.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},v),{},{value:d?p:"",readOnly:!d,unselectable:d?null:"on",style:K(K({},w.style),{},{opacity:d?null:0})})),S},fw=u.forwardRef(GT);function mw(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var KT=typeof window<"u"&&window.document&&window.document.documentElement,XT=KT;function YT(e){return e!=null}function QT(e){return!e&&e!==0}function Zb(e){return["string","number"].includes(gt(e))}function pw(e){var t=void 0;return e&&(Zb(e.title)?t=e.title.toString():Zb(e.label)&&(t=e.label.toString())),t}function JT(e,t){XT?u.useLayoutEffect(e,t):u.useEffect(e,t)}function ZT(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var e1=function(t){t.preventDefault(),t.stopPropagation()},e8=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,v=t.showSearch,y=t.autoFocus,S=t.autoComplete,C=t.activeDescendantId,b=t.tabIndex,w=t.removeIcon,$=t.maxTagCount,R=t.maxTagTextLength,O=t.maxTagPlaceholder,_=O===void 0?function(ye){return"+ ".concat(ye.length," ...")}:O,I=t.tagRender,T=t.onToggleOpen,N=t.onRemove,P=t.onInputChange,k=t.onInputPaste,A=t.onInputKeyDown,M=t.onInputMouseDown,D=t.onInputCompositionStart,B=t.onInputCompositionEnd,U=t.onInputBlur,W=u.useRef(null),V=u.useState(0),H=ae(V,2),Q=H[0],q=H[1],z=u.useState(!1),F=ae(z,2),Y=F[0],ne=F[1],te="".concat(r,"-selection"),re=l||g==="multiple"&&c===!1||g==="tags"?s:"",fe=g==="tags"||g==="multiple"&&c===!1||v&&(l||Y);JT(function(){q(W.current.scrollWidth)},[re]);var me=function(de,se,ve,Se,Oe){return u.createElement("span",{title:pw(de),className:ee("".concat(te,"-item"),G({},"".concat(te,"-item-disabled"),ve))},u.createElement("span",{className:"".concat(te,"-item-content")},se),Se&&u.createElement(Ad,{className:"".concat(te,"-item-remove"),onMouseDown:e1,onClick:Oe,customizeIcon:w},"×"))},ue=function(de,se,ve,Se,Oe,Ne){var we=function(ke){e1(ke),T(!l)};return u.createElement("span",{onMouseDown:we},I({label:se,value:de,disabled:ve,closable:Se,onClose:Oe,isMaxTag:!!Ne}))},Ce=function(de){var se=de.disabled,ve=de.label,Se=de.value,Oe=!p&&!se,Ne=ve;if(typeof R=="number"&&(typeof ve=="string"||typeof ve=="number")){var we=String(Ne);we.length>R&&(Ne="".concat(we.slice(0,R),"..."))}var $e=function(Ie){Ie&&Ie.stopPropagation(),N(de)};return typeof I=="function"?ue(Se,Ne,se,Oe,$e):me(de,Ne,se,Oe,$e)},le=function(de){if(!o.length)return null;var se=typeof _=="function"?_(de):_;return typeof I=="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:Q},onFocus:function(){ne(!0)},onBlur:function(){ne(!1)}},u.createElement(fw,{ref:d,open:l,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:y,autoComplete:S,editable:fe,activeDescendantId:C,value:re,onKeyDown:A,onMouseDown:M,onChange:P,onPaste:k,onCompositionStart:D,onCompositionEnd:B,onBlur:U,tabIndex:b,attrs:oo(t,!0)}),u.createElement("span",{ref:W,className:"".concat(te,"-search-mirror"),"aria-hidden":!0},re," ")),he=u.createElement(Uo,{prefixCls:"".concat(te,"-overflow"),data:o,renderItem:Ce,renderRest:le,suffix:ce,itemKey:ZT,maxCount:$});return u.createElement("span",{className:"".concat(te,"-wrap")},he,!o.length&&!re&&u.createElement("span",{className:"".concat(te,"-placeholder")},m))},t8=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,v=t.values,y=t.placeholder,S=t.tabIndex,C=t.showSearch,b=t.searchValue,w=t.activeValue,$=t.maxLength,R=t.onInputKeyDown,O=t.onInputMouseDown,_=t.onInputChange,I=t.onInputPaste,T=t.onInputCompositionStart,N=t.onInputCompositionEnd,P=t.onInputBlur,k=t.title,A=u.useState(!1),M=ae(A,2),D=M[0],B=M[1],U=p==="combobox",W=U||C,V=v[0],H=b||"";U&&w&&!D&&(H=w),u.useEffect(function(){U&&B(!1)},[U,w]);var Q=p!=="combobox"&&!g&&!C?!1:!!H,q=k===void 0?pw(V):k,z=u.useMemo(function(){return V?null:u.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Q?{visibility:"hidden"}:void 0},y)},[V,Q,y,r]);return u.createElement("span",{className:"".concat(r,"-selection-wrap")},u.createElement("span",{className:"".concat(r,"-selection-search")},u.createElement(fw,{ref:l,prefixCls:r,id:o,open:g,inputElement:n,disabled:s,autoFocus:c,autoComplete:d,editable:W,activeDescendantId:m,value:H,onKeyDown:R,onMouseDown:O,onChange:function(Y){B(!0),_(Y)},onPaste:I,onCompositionStart:T,onCompositionEnd:N,onBlur:P,tabIndex:S,attrs:oo(t,!0),maxLength:U?$:void 0})),!U&&V?u.createElement("span",{className:"".concat(r,"-selection-item"),title:q,style:Q?{visibility:"hidden"}:void 0},V.label):null,z)},n8=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,v=t.autoClearSearchValue,y=t.onSearch,S=t.onSearchSubmit,C=t.onToggleOpen,b=t.onInputKeyDown,w=t.onInputBlur,$=t.domRef;u.useImperativeHandle(n,function(){return{focus:function(q){r.current.focus(q)},blur:function(){r.current.blur()}}});var R=sw(0),O=ae(R,2),_=O[0],I=O[1],T=function(q){var z=q.which,F=r.current instanceof HTMLTextAreaElement;!F&&s&&(z===Ve.UP||z===Ve.DOWN)&&q.preventDefault(),b&&b(q),z===Ve.ENTER&&c==="tags"&&!o.current&&!s&&(S==null||S(q.target.value)),!(F&&!s&&~[Ve.UP,Ve.DOWN,Ve.LEFT,Ve.RIGHT].indexOf(z))&&kT(z)&&C(!0)},N=function(){I(!0)},P=u.useRef(null),k=function(q){y(q,!0,o.current)!==!1&&C(!0)},A=function(){o.current=!0},M=function(q){o.current=!1,c!=="combobox"&&k(q.target.value)},D=function(q){var z=q.target.value;if(m&&P.current&&/[\r\n]/.test(P.current)){var F=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(F,P.current)}P.current=null,k(z)},B=function(q){var z=q.clipboardData,F=z==null?void 0:z.getData("text");P.current=F||""},U=function(q){var z=q.target;if(z!==r.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){r.current.focus()}):r.current.focus()}},W=function(q){var z=_();q.target!==r.current&&!z&&!(c==="combobox"&&p)&&q.preventDefault(),(c!=="combobox"&&(!d||!z)||!s)&&(s&&v!==!1&&y("",!0,!1),C())},V={inputRef:r,onInputKeyDown:T,onInputMouseDown:N,onInputChange:D,onInputPaste:B,onInputCompositionStart:A,onInputCompositionEnd:M,onInputBlur:w},H=c==="multiple"||c==="tags"?u.createElement(e8,Re({},t,V)):u.createElement(t8,Re({},t,V));return u.createElement("div",{ref:$,className:"".concat(l,"-selector"),onClick:U,onMouseDown:W},g&&u.createElement("div",{className:"".concat(l,"-prefix")},g),H)},r8=u.forwardRef(n8);function o8(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,v=u.useRef();if(!n||!n.points)return null;var y={position:"absolute"};if(n.autoArrow!==!1){var S=n.points[0],C=n.points[1],b=S[0],w=S[1],$=C[0],R=C[1];b===$||!["t","b"].includes(b)?y.top=g:b==="t"?y.top=0:y.bottom=0,w===R||!["l","r"].includes(w)?y.left=m:w==="l"?y.left=0:y.right=0}return u.createElement("div",{ref:v,className:ee("".concat(t,"-arrow"),s),style:y},c)}function i8(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,l=e.motion;return o?u.createElement(ro,Re({},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 a8=u.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),l8=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,v=e.mask,y=e.arrow,S=e.arrowPos,C=e.align,b=e.motion,w=e.maskMotion,$=e.forceRender,R=e.getPopupContainer,O=e.autoDestroy,_=e.portal,I=e.zIndex,T=e.onMouseEnter,N=e.onMouseLeave,P=e.onPointerEnter,k=e.onPointerDownCapture,A=e.ready,M=e.offsetX,D=e.offsetY,B=e.offsetR,U=e.offsetB,W=e.onAlign,V=e.onPrepare,H=e.stretch,Q=e.targetWidth,q=e.targetHeight,z=typeof n=="function"?n():n,F=d||m,Y=(R==null?void 0:R.length)>0,ne=u.useState(!R||!Y),te=ae(ne,2),re=te[0],fe=te[1];if(rn(function(){!re&&Y&&s&&fe(!0)},[re,Y,s]),!re)return null;var me="auto",ue={left:"-1000vw",top:"-1000vh",right:me,bottom:me};if(A||!d){var Ce,le=C.points,ce=C.dynamicInset||((Ce=C._experimental)===null||Ce===void 0?void 0:Ce.dynamicInset),he=ce&&le[0][1]==="r",ye=ce&&le[0][0]==="b";he?(ue.right=B,ue.left=me):(ue.left=M,ue.right=me),ye?(ue.bottom=U,ue.top=me):(ue.top=D,ue.bottom=me)}var de={};return H&&(H.includes("height")&&q?de.height=q:H.includes("minHeight")&&q&&(de.minHeight=q),H.includes("width")&&Q?de.width=Q:H.includes("minWidth")&&Q&&(de.minWidth=Q)),d||(de.pointerEvents="none"),u.createElement(_,{open:$||F,getContainer:R&&function(){return R(s)},autoDestroy:O},u.createElement(i8,{prefixCls:o,open:d,zIndex:I,mask:v,motion:w}),u.createElement(Co,{onResize:W,disabled:!d},function(se){return u.createElement(ro,Re({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(o,"-hidden")},b,{onAppearPrepare:V,onEnterPrepare:V,visible:d,onVisibleChanged:function(Se){var Oe;b==null||(Oe=b.onVisibleChanged)===null||Oe===void 0||Oe.call(b,Se),c(Se)}}),function(ve,Se){var Oe=ve.className,Ne=ve.style,we=ee(o,Oe,r);return u.createElement("div",{ref:Ao(se,t,Se),className:we,style:K(K(K(K({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},ue),de),Ne),{},{boxSizing:"border-box",zIndex:I},l),onMouseEnter:T,onMouseLeave:N,onPointerEnter:P,onClick:g,onPointerDownCapture:k},y&&u.createElement(o8,{prefixCls:o,arrow:y,arrowPos:S,align:C}),u.createElement(a8,{cache:!d&&!p},z))})}))}),s8=u.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Gi(n),l=u.useCallback(function(c){Fg(t,r?r(c):c)},[r]),s=Xo(l,ba(n));return o?u.cloneElement(n,{ref:s}):n}),t1=u.createContext(null);function n1(e){return e?Array.isArray(e)?e:[e]:[]}function c8(e,t,n,r){return u.useMemo(function(){var o=n1(n??t),l=n1(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 u8(){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 d8(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(u8((c=e[d])===null||c===void 0?void 0:c.points,o,r))return"".concat(t,"-placement-").concat(d)}return""}function r1(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function lc(e){return e.ownerDocument.defaultView}function wg(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=lc(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 Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ms(e){return Ds(parseFloat(e),0)}function o1(e,t){var n=K({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=lc(r).getComputedStyle(r),l=o.overflow,s=o.overflowClipMargin,c=o.borderTopWidth,d=o.borderBottomWidth,m=o.borderLeftWidth,p=o.borderRightWidth,g=r.getBoundingClientRect(),v=r.offsetHeight,y=r.clientHeight,S=r.offsetWidth,C=r.clientWidth,b=ms(c),w=ms(d),$=ms(m),R=ms(p),O=Ds(Math.round(g.width/S*1e3)/1e3),_=Ds(Math.round(g.height/v*1e3)/1e3),I=(S-C-$-R)*O,T=(v-y-b-w)*_,N=b*_,P=w*_,k=$*O,A=R*O,M=0,D=0;if(l==="clip"){var B=ms(s);M=B*O,D=B*_}var U=g.x+k-M,W=g.y+N-D,V=U+g.width+2*M-k-A-I,H=W+g.height+2*D-N-P-T;n.left=Math.max(n.left,U),n.top=Math.max(n.top,W),n.right=Math.min(n.right,V),n.bottom=Math.min(n.bottom,H)}}),n}function i1(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 a1(e,t){var n=t||[],r=ae(n,2),o=r[0],l=r[1];return[i1(e.width,o),i1(e.height,l)]}function l1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function el(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 ki(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 f8(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=ae(c,2),m=d[0],p=d[1],g=u.useRef(0),v=u.useMemo(function(){return t?wg(t):[]},[t]),y=u.useRef({}),S=function(){y.current={}};e||S();var C=Bn(function(){if(t&&n&&e){let jn=function(_r,Ar){var io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ge,Gr=F.x+_r,Ea=F.y+Ar,Ra=Gr+ye,it=Ea+he,Nt=Math.max(Gr,io.left),En=Math.max(Ea,io.top),In=Math.min(Ra,io.right),Rn=Math.min(it,io.bottom);return Math.max(0,(In-Nt)*(Rn-En))},br=function(){hn=F.y+Ct,xn=hn+he,Tn=F.x+Ze,Zt=Tn+ye};var $a=jn,Zo=br,$,R,O,_,I=t,T=I.ownerDocument,N=lc(I),P=N.getComputedStyle(I),k=P.position,A=I.style.left,M=I.style.top,D=I.style.right,B=I.style.bottom,U=I.style.overflow,W=K(K({},o[r]),l),V=T.createElement("div");($=I.parentElement)===null||$===void 0||$.appendChild(V),V.style.left="".concat(I.offsetLeft,"px"),V.style.top="".concat(I.offsetTop,"px"),V.style.position=k,V.style.height="".concat(I.offsetHeight,"px"),V.style.width="".concat(I.offsetWidth,"px"),I.style.left="0",I.style.top="0",I.style.right="auto",I.style.bottom="auto",I.style.overflow="hidden";var H;if(Array.isArray(n))H={x:n[0],y:n[1],width:0,height:0};else{var Q,q,z=n.getBoundingClientRect();z.x=(Q=z.x)!==null&&Q!==void 0?Q:z.left,z.y=(q=z.y)!==null&&q!==void 0?q:z.top,H={x:z.x,y:z.y,width:z.width,height:z.height}}var F=I.getBoundingClientRect(),Y=N.getComputedStyle(I),ne=Y.height,te=Y.width;F.x=(R=F.x)!==null&&R!==void 0?R:F.left,F.y=(O=F.y)!==null&&O!==void 0?O:F.top;var re=T.documentElement,fe=re.clientWidth,me=re.clientHeight,ue=re.scrollWidth,Ce=re.scrollHeight,le=re.scrollTop,ce=re.scrollLeft,he=F.height,ye=F.width,de=H.height,se=H.width,ve={left:0,top:0,right:fe,bottom:me},Se={left:-ce,top:-le,right:ue-ce,bottom:Ce-le},Oe=W.htmlRegion,Ne="visible",we="visibleFirst";Oe!=="scroll"&&Oe!==we&&(Oe=Ne);var $e=Oe===we,ke=o1(Se,v),Ie=o1(ve,v),Ge=Oe===Ne?Ie:ke,tt=$e?Ie:Ge;I.style.left="auto",I.style.top="auto",I.style.right="0",I.style.bottom="0";var St=I.getBoundingClientRect();I.style.left=A,I.style.top=M,I.style.right=D,I.style.bottom=B,I.style.overflow=U,(_=I.parentElement)===null||_===void 0||_.removeChild(V);var ut=Ds(Math.round(ye/parseFloat(te)*1e3)/1e3),Ue=Ds(Math.round(he/parseFloat(ne)*1e3)/1e3);if(ut===0||Ue===0||_s(n)&&!ah(n))return;var st=W.offset,We=W.targetOffset,mt=a1(F,st),Ye=ae(mt,2),je=Ye[0],Je=Ye[1],Pe=a1(H,We),He=ae(Pe,2),Rt=He[0],ht=He[1];H.x-=Rt,H.y-=ht;var Gt=W.points||[],qt=ae(Gt,2),dn=qt[0],Sn=qt[1],Yt=l1(Sn),jt=l1(dn),xt=el(H,Yt),Qt=el(F,jt),Vt=K({},W),Ze=xt.x-Qt.x+je,Ct=xt.y-Qt.y+Je,ct=jn(Ze,Ct),_e=jn(Ze,Ct,Ie),Ee=el(H,["t","l"]),xe=el(F,["t","l"]),ze=el(H,["b","r"]),Xe=el(F,["b","r"]),Qe=W.overflow||{},zt=Qe.adjustX,Ht=Qe.adjustY,Tt=Qe.shiftX,Pt=Qe.shiftY,bn=function(Ar){return typeof Ar=="boolean"?Ar:Ar>=0},hn,xn,Tn,Zt;br();var on=bn(Ht),Le=jt[0]===Yt[0];if(on&&jt[0]==="t"&&(xn>tt.bottom||y.current.bt)){var qe=Ct;Le?qe-=he-de:qe=Ee.y-Xe.y-Je;var $t=jn(Ze,qe),dt=jn(Ze,qe,Ie);$t>ct||$t===ct&&(!$e||dt>=_e)?(y.current.bt=!0,Ct=qe,Je=-Je,Vt.points=[ki(jt,0),ki(Yt,0)]):y.current.bt=!1}if(on&&jt[0]==="b"&&(hn<tt.top||y.current.tb)){var nt=Ct;Le?nt+=he-de:nt=ze.y-xe.y-Je;var Ke=jn(Ze,nt),wt=jn(Ze,nt,Ie);Ke>ct||Ke===ct&&(!$e||wt>=_e)?(y.current.tb=!0,Ct=nt,Je=-Je,Vt.points=[ki(jt,0),ki(Yt,0)]):y.current.tb=!1}var Ft=bn(zt),Fe=jt[1]===Yt[1];if(Ft&&jt[1]==="l"&&(Zt>tt.right||y.current.rl)){var ft=Ze;Fe?ft-=ye-se:ft=Ee.x-Xe.x-je;var Ot=jn(ft,Ct),ln=jn(ft,Ct,Ie);Ot>ct||Ot===ct&&(!$e||ln>=_e)?(y.current.rl=!0,Ze=ft,je=-je,Vt.points=[ki(jt,1),ki(Yt,1)]):y.current.rl=!1}if(Ft&&jt[1]==="r"&&(Tn<tt.left||y.current.lr)){var Vn=Ze;Fe?Vn+=ye-se:Vn=ze.x-xe.x-je;var On=jn(Vn,Ct),hr=jn(Vn,Ct,Ie);On>ct||On===ct&&(!$e||hr>=_e)?(y.current.lr=!0,Ze=Vn,je=-je,Vt.points=[ki(jt,1),ki(Yt,1)]):y.current.lr=!1}br();var Jn=Tt===!0?0:Tt;typeof Jn=="number"&&(Tn<Ie.left&&(Ze-=Tn-Ie.left-je,H.x+se<Ie.left+Jn&&(Ze+=H.x-Ie.left+se-Jn)),Zt>Ie.right&&(Ze-=Zt-Ie.right-je,H.x>Ie.right-Jn&&(Ze+=H.x-Ie.right+Jn)));var vr=Pt===!0?0:Pt;typeof vr=="number"&&(hn<Ie.top&&(Ct-=hn-Ie.top-Je,H.y+de<Ie.top+vr&&(Ct+=H.y-Ie.top+de-vr)),xn>Ie.bottom&&(Ct-=xn-Ie.bottom-Je,H.y>Ie.bottom-vr&&(Ct+=H.y-Ie.bottom+vr)));var Zn=F.x+Ze,dr=Zn+ye,yr=F.y+Ct,tn=yr+he,ot=H.x,et=ot+se,Jt=H.y,nn=Jt+de,fn=Math.max(Zn,ot),gn=Math.min(dr,et),fr=(fn+gn)/2,Wn=fr-Zn,Dt=Math.max(yr,Jt),er=Math.min(tn,nn),or=(Dt+er)/2,Lr=or-yr;s==null||s(t,Vt);var ir=St.right-F.x-(Ze+F.width),hi=St.bottom-F.y-(Ct+F.height);ut===1&&(Ze=Math.floor(Ze),ir=Math.floor(ir)),Ue===1&&(Ct=Math.floor(Ct),hi=Math.floor(hi));var wa={ready:!0,offsetX:Ze/ut,offsetY:Ct/Ue,offsetR:ir/ut,offsetB:hi/Ue,arrowX:Wn/ut,arrowY:Lr/Ue,scaleX:ut,scaleY:Ue,align:Vt};p(wa)}}),b=function(){g.current+=1;var R=g.current;Promise.resolve().then(function(){g.current===R&&C()})},w=function(){p(function(R){return K(K({},R),{},{ready:!1})})};return rn(w,[r]),rn(function(){e||w()},[e]),[m.ready,m.offsetX,m.offsetY,m.offsetR,m.offsetB,m.arrowX,m.arrowY,m.scaleX,m.scaleY,m.align,b]}function m8(e,t,n,r,o){rn(function(){if(e&&t&&n){let v=function(){r(),o()};var g=v,l=t,s=n,c=wg(l),d=wg(s),m=lc(s),p=new Set([m].concat(Be(c),Be(d)));return p.forEach(function(y){y.addEventListener("scroll",v,{passive:!0})}),m.addEventListener("resize",v,{passive:!0}),r(),function(){p.forEach(function(y){y.removeEventListener("scroll",v),m.removeEventListener("resize",v)})}}},[e,t,n])}function p8(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},v=function(b){var w;d.current&&!s(((w=b.composedPath)===null||w===void 0||(w=w.call(b))===null||w===void 0?void 0:w[0])||b.target)&&!m.current&&c(!1)},y=lc(r);y.addEventListener("pointerdown",g,!0),y.addEventListener("mousedown",v,!0),y.addEventListener("contextmenu",v,!0);var S=Xu(n);return S&&(S.addEventListener("mousedown",v,!0),S.addEventListener("contextmenu",v,!0)),function(){y.removeEventListener("pointerdown",g,!0),y.removeEventListener("mousedown",v,!0),y.removeEventListener("contextmenu",v,!0),S&&(S.removeEventListener("mousedown",v,!0),S.removeEventListener("contextmenu",v,!0))}}},[t,n,r,o,l]);function p(){m.current=!0}return p}var g8=["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 h8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Md,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,v=n.defaultPopupVisible,y=n.onPopupVisibleChange,S=n.afterPopupVisibleChange,C=n.mouseEnterDelay,b=n.mouseLeaveDelay,w=b===void 0?.1:b,$=n.focusDelay,R=n.blurDelay,O=n.mask,_=n.maskClosable,I=_===void 0?!0:_,T=n.getPopupContainer,N=n.forceRender,P=n.autoDestroy,k=n.destroyPopupOnHide,A=n.popup,M=n.popupClassName,D=n.popupStyle,B=n.popupPlacement,U=n.builtinPlacements,W=U===void 0?{}:U,V=n.popupAlign,H=n.zIndex,Q=n.stretch,q=n.getPopupClassNameFromAlign,z=n.fresh,F=n.alignPoint,Y=n.onPopupClick,ne=n.onPopupAlign,te=n.arrow,re=n.popupMotion,fe=n.maskMotion,me=n.popupTransitionName,ue=n.popupAnimation,Ce=n.maskTransitionName,le=n.maskAnimation,ce=n.className,he=n.getTriggerDOMNode,ye=kt(n,g8),de=P||k||!1,se=u.useState(!1),ve=ae(se,2),Se=ve[0],Oe=ve[1];rn(function(){Oe(gh())},[]);var Ne=u.useRef({}),we=u.useContext(t1),$e=u.useMemo(function(){return{registerSubPopup:function(Nt,En){Ne.current[Nt]=En,we==null||we.registerSubPopup(Nt,En)}}},[we]),ke=jd(),Ie=u.useState(null),Ge=ae(Ie,2),tt=Ge[0],St=Ge[1],ut=u.useRef(null),Ue=Bn(function(it){ut.current=it,_s(it)&&tt!==it&&St(it),we==null||we.registerSubPopup(ke,it)}),st=u.useState(null),We=ae(st,2),mt=We[0],Ye=We[1],je=u.useRef(null),Je=Bn(function(it){_s(it)&&mt!==it&&(Ye(it),je.current=it)}),Pe=u.Children.only(s),He=(Pe==null?void 0:Pe.props)||{},Rt={},ht=Bn(function(it){var Nt,En,In=mt;return(In==null?void 0:In.contains(it))||((Nt=Xu(In))===null||Nt===void 0?void 0:Nt.host)===it||it===In||(tt==null?void 0:tt.contains(it))||((En=Xu(tt))===null||En===void 0?void 0:En.host)===it||it===tt||Object.values(Ne.current).some(function(Rn){return(Rn==null?void 0:Rn.contains(it))||it===Rn})}),Gt=r1(l,re,ue,me),qt=r1(l,fe,le,Ce),dn=u.useState(v||!1),Sn=ae(dn,2),Yt=Sn[0],jt=Sn[1],xt=g??Yt,Qt=Bn(function(it){g===void 0&&jt(it)});rn(function(){jt(g||!1)},[g]);var Vt=u.useRef(xt);Vt.current=xt;var Ze=u.useRef([]);Ze.current=[];var Ct=Bn(function(it){var Nt;Qt(it),((Nt=Ze.current[Ze.current.length-1])!==null&&Nt!==void 0?Nt:xt)!==it&&(Ze.current.push(it),y==null||y(it))}),ct=u.useRef(),_e=function(){clearTimeout(ct.current)},Ee=function(Nt){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_e(),En===0?Ct(Nt):ct.current=setTimeout(function(){Ct(Nt)},En*1e3)};u.useEffect(function(){return _e},[]);var xe=u.useState(!1),ze=ae(xe,2),Xe=ze[0],Qe=ze[1];rn(function(it){(!it||xt)&&Qe(!0)},[xt]);var zt=u.useState(null),Ht=ae(zt,2),Tt=Ht[0],Pt=Ht[1],bn=u.useState(null),hn=ae(bn,2),xn=hn[0],Tn=hn[1],Zt=function(Nt){Tn([Nt.clientX,Nt.clientY])},on=f8(xt,tt,F&&xn!==null?xn:mt,B,W,V,ne),Le=ae(on,11),qe=Le[0],$t=Le[1],dt=Le[2],nt=Le[3],Ke=Le[4],wt=Le[5],Ft=Le[6],Fe=Le[7],ft=Le[8],Ot=Le[9],ln=Le[10],Vn=c8(Se,d,m,p),On=ae(Vn,2),hr=On[0],Jn=On[1],vr=hr.has("click"),Zn=Jn.has("click")||Jn.has("contextMenu"),dr=Bn(function(){Xe||ln()}),yr=function(){Vt.current&&F&&Zn&&Ee(!1)};m8(xt,mt,tt,dr,yr),rn(function(){dr()},[xn,B]),rn(function(){xt&&!(W!=null&&W[B])&&dr()},[JSON.stringify(V)]);var tn=u.useMemo(function(){var it=d8(W,l,Ot,F);return ee(it,q==null?void 0:q(Ot))},[Ot,q,W,l,F]);u.useImperativeHandle(r,function(){return{nativeElement:je.current,popupElement:ut.current,forceAlign:dr}});var ot=u.useState(0),et=ae(ot,2),Jt=et[0],nn=et[1],fn=u.useState(0),gn=ae(fn,2),fr=gn[0],Wn=gn[1],Dt=function(){if(Q&&mt){var Nt=mt.getBoundingClientRect();nn(Nt.width),Wn(Nt.height)}},er=function(){Dt(),dr()},or=function(Nt){Qe(!1),ln(),S==null||S(Nt)},Lr=function(){return new Promise(function(Nt){Dt(),Pt(function(){return Nt})})};rn(function(){Tt&&(ln(),Tt(),Pt(null))},[Tt]);function ir(it,Nt,En,In){Rt[it]=function(Rn){var Oa;In==null||In(Rn),Ee(Nt,En);for(var ei=arguments.length,vi=new Array(ei>1?ei-1:0),wo=1;wo<ei;wo++)vi[wo-1]=arguments[wo];(Oa=He[it])===null||Oa===void 0||Oa.call.apply(Oa,[He,Rn].concat(vi))}}(vr||Zn)&&(Rt.onClick=function(it){var Nt;Vt.current&&Zn?Ee(!1):!Vt.current&&vr&&(Zt(it),Ee(!0));for(var En=arguments.length,In=new Array(En>1?En-1:0),Rn=1;Rn<En;Rn++)In[Rn-1]=arguments[Rn];(Nt=He.onClick)===null||Nt===void 0||Nt.call.apply(Nt,[He,it].concat(In))});var hi=p8(xt,Zn,mt,tt,O,I,ht,Ee),wa=hr.has("hover"),$a=Jn.has("hover"),Zo,jn;wa&&(ir("onMouseEnter",!0,C,function(it){Zt(it)}),ir("onPointerEnter",!0,C,function(it){Zt(it)}),Zo=function(Nt){(xt||Xe)&&tt!==null&&tt!==void 0&&tt.contains(Nt.target)&&Ee(!0,C)},F&&(Rt.onMouseMove=function(it){var Nt;(Nt=He.onMouseMove)===null||Nt===void 0||Nt.call(He,it)})),$a&&(ir("onMouseLeave",!1,w),ir("onPointerLeave",!1,w),jn=function(){Ee(!1,w)}),hr.has("focus")&&ir("onFocus",!0,$),Jn.has("focus")&&ir("onBlur",!1,R),hr.has("contextMenu")&&(Rt.onContextMenu=function(it){var Nt;Vt.current&&Jn.has("contextMenu")?Ee(!1):(Zt(it),Ee(!0)),it.preventDefault();for(var En=arguments.length,In=new Array(En>1?En-1:0),Rn=1;Rn<En;Rn++)In[Rn-1]=arguments[Rn];(Nt=He.onContextMenu)===null||Nt===void 0||Nt.call.apply(Nt,[He,it].concat(In))}),ce&&(Rt.className=ee(He.className,ce));var br=u.useRef(!1);br.current||(br.current=N||xt||Xe);var _r=K(K({},He),Rt),Ar={},io=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];io.forEach(function(it){ye[it]&&(Ar[it]=function(){for(var Nt,En=arguments.length,In=new Array(En),Rn=0;Rn<En;Rn++)In[Rn]=arguments[Rn];(Nt=_r[it])===null||Nt===void 0||Nt.call.apply(Nt,[_r].concat(In)),ye[it].apply(ye,In)})});var Gr=u.cloneElement(Pe,K(K({},_r),Ar)),Ea={x:wt,y:Ft},Ra=te?K({},te!==!0?te:{}):null;return u.createElement(u.Fragment,null,u.createElement(Co,{disabled:!xt,ref:Je,onResize:er},u.createElement(s8,{getTriggerDOMNode:he},Gr)),br.current&&u.createElement(t1.Provider,{value:$e},u.createElement(l8,{portal:e,ref:Ue,prefixCls:l,popup:A,className:ee(M,tn),style:D,target:mt,onMouseEnter:Zo,onMouseLeave:jn,onPointerEnter:Zo,zIndex:H,open:xt,keepDom:Xe,fresh:z,onClick:Y,onPointerDownCapture:hi,mask:O,motion:Gt,maskMotion:qt,onVisibleChanged:or,onPrepare:Lr,forceRender:N,autoDestroy:de,getPopupContainer:T,align:Ot,arrow:Ra,arrowPos:Ea,ready:qe,offsetX:$t,offsetY:dt,offsetR:nt,offsetB:Ke,onAlign:dr,stretch:Q,targetWidth:Jt/Fe,targetHeight:fr/ft})))});return t}const Bd=h8(Md);var v8=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],y8=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"}}},b8=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,v=g===void 0?"ltr":g,y=t.placement,S=t.builtinPlacements,C=t.dropdownMatchSelectWidth,b=t.dropdownRender,w=t.dropdownAlign,$=t.getPopupContainer,R=t.empty,O=t.getTriggerDOMNode,_=t.onPopupVisibleChange,I=t.onPopupMouseEnter,T=kt(t,v8),N="".concat(r,"-dropdown"),P=s;b&&(P=b(s));var k=u.useMemo(function(){return S||y8(C)},[S,C]),A=c?"".concat(N,"-").concat(c):d,M=typeof C=="number",D=u.useMemo(function(){return M?null:C===!1?"minWidth":"width"},[C,M]),B=m;M&&(B=K(K({},B),{},{width:C}));var U=u.useRef(null);return u.useImperativeHandle(n,function(){return{getPopupElement:function(){var V;return(V=U.current)===null||V===void 0?void 0:V.popupElement}}}),u.createElement(Bd,Re({},T,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:y||(v==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:N,popupTransitionName:A,popup:u.createElement("div",{onMouseEnter:I},P),ref:U,stretch:D,popupAlign:w,popupVisible:o,getPopupContainer:$,popupClassName:ee(p,G({},"".concat(N,"-empty"),R)),popupStyle:B,getTriggerDOMNode:O,onPopupVisibleChange:_}),l)},C8=u.forwardRef(b8);function s1(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 $g(e){return typeof e<"u"&&!Number.isNaN(e)}function gw(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 S8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],l=gw(n,!1),s=l.label,c=l.value,d=l.options,m=l.groupLabel;function p(g,v){Array.isArray(g)&&g.forEach(function(y){if(v||!(d in y)){var S=y[c];o.push({key:s1(y,o.length),groupOption:v,data:y,label:y[s],value:S})}else{var C=y[m];C===void 0&&r&&(C=y.label),o.push({key:s1(y,o.length),group:!0,data:y,label:C}),p(y[d],!0)}})}return p(e,!1),o}function Eg(e){var t=K({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ur(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var x8=function(t,n,r){if(!n||!n.length)return null;var o=!1,l=function c(d,m){var p=bS(m),g=p[0],v=p.slice(1);if(!g)return[d];var y=d.split(g);return o=o||y.length>1,y.reduce(function(S,C){return[].concat(Be(S),Be(c(C,v)))},[]).filter(Boolean)},s=l(t,n);return o?typeof r<"u"?s.slice(0,r):s:null},hh=u.createContext(null);function w8(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(gt(l))?l:s}).join(", ")),n.length>r?", ...":null)}var $8=["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"],E8=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Rg=function(t){return t==="tags"||t==="multiple"},R8=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,v=e.emptyOptions,y=e.notFoundContent,S=y===void 0?"Not Found":y,C=e.onClear,b=e.mode,w=e.disabled,$=e.loading,R=e.getInputElement,O=e.getRawInputElement,_=e.open,I=e.defaultOpen,T=e.onDropdownVisibleChange,N=e.activeValue,P=e.onActiveValueChange,k=e.activeDescendantId,A=e.searchValue,M=e.autoClearSearchValue,D=e.onSearch,B=e.onSearchSplit,U=e.tokenSeparators,W=e.allowClear,V=e.prefix,H=e.suffixIcon,Q=e.clearIcon,q=e.OptionList,z=e.animation,F=e.transitionName,Y=e.dropdownStyle,ne=e.dropdownClassName,te=e.dropdownMatchSelectWidth,re=e.dropdownRender,fe=e.dropdownAlign,me=e.placement,ue=e.builtinPlacements,Ce=e.getPopupContainer,le=e.showAction,ce=le===void 0?[]:le,he=e.onFocus,ye=e.onBlur,de=e.onKeyUp,se=e.onKeyDown,ve=e.onMouseDown,Se=kt(e,$8),Oe=Rg(b),Ne=(s!==void 0?s:Oe)||b==="combobox",we=K({},Se);E8.forEach(function(ot){delete we[ot]}),m==null||m.forEach(function(ot){delete we[ot]});var $e=u.useState(!1),ke=ae($e,2),Ie=ke[0],Ge=ke[1];u.useEffect(function(){Ge(gh())},[]);var tt=u.useRef(null),St=u.useRef(null),ut=u.useRef(null),Ue=u.useRef(null),st=u.useRef(null),We=u.useRef(!1),mt=PT(),Ye=ae(mt,3),je=Ye[0],Je=Ye[1],Pe=Ye[2];u.useImperativeHandle(t,function(){var ot,et;return{focus:(ot=Ue.current)===null||ot===void 0?void 0:ot.focus,blur:(et=Ue.current)===null||et===void 0?void 0:et.blur,scrollTo:function(nn){var fn;return(fn=st.current)===null||fn===void 0?void 0:fn.scrollTo(nn)},nativeElement:tt.current||St.current}});var He=u.useMemo(function(){var ot;if(b!=="combobox")return A;var et=(ot=p[0])===null||ot===void 0?void 0:ot.value;return typeof et=="string"||typeof et=="number"?String(et):""},[A,b,p]),Rt=b==="combobox"&&typeof R=="function"&&R()||null,ht=typeof O=="function"&&O(),Gt=Xo(St,ht==null||(n=ht.props)===null||n===void 0?void 0:n.ref),qt=u.useState(!1),dn=ae(qt,2),Sn=dn[0],Yt=dn[1];rn(function(){Yt(!0)},[]);var jt=Hn(!1,{defaultValue:I,value:_}),xt=ae(jt,2),Qt=xt[0],Vt=xt[1],Ze=Sn?Qt:!1,Ct=!S&&v;(w||Ct&&Ze&&b==="combobox")&&(Ze=!1);var ct=Ct?!1:Ze,_e=u.useCallback(function(ot){var et=ot!==void 0?ot:!Ze;w||(Vt(et),Ze!==et&&(T==null||T(et)))},[w,Ze,Vt,T]),Ee=u.useMemo(function(){return(U||[]).some(function(ot){return[`
|
|
222
|
+
`,`\r
|
|
223
|
+
`].includes(ot)})},[U]),xe=u.useContext(hh)||{},ze=xe.maxCount,Xe=xe.rawValues,Qe=function(et,Jt,nn){if(!(Oe&&$g(ze)&&(Xe==null?void 0:Xe.size)>=ze)){var fn=!0,gn=et;P==null||P(null);var fr=x8(et,U,$g(ze)?ze-Xe.size:void 0),Wn=nn?null:fr;return b!=="combobox"&&Wn&&(gn="",B==null||B(Wn),_e(!1),fn=!1),D&&He!==gn&&D(gn,{source:Jt?"typing":"effect"}),fn}},zt=function(et){!et||!et.trim()||D(et,{source:"submit"})};u.useEffect(function(){!Ze&&!Oe&&b!=="combobox"&&Qe("",!1,!1)},[Ze]),u.useEffect(function(){Qt&&w&&Vt(!1),w&&!We.current&&Je(!1)},[w]);var Ht=sw(),Tt=ae(Ht,2),Pt=Tt[0],bn=Tt[1],hn=u.useRef(!1),xn=function(et){var Jt=Pt(),nn=et.key,fn=nn==="Enter";if(fn&&(b!=="combobox"&&et.preventDefault(),Ze||_e(!0)),bn(!!He),nn==="Backspace"&&!Jt&&Oe&&!He&&p.length){for(var gn=Be(p),fr=null,Wn=gn.length-1;Wn>=0;Wn-=1){var Dt=gn[Wn];if(!Dt.disabled){gn.splice(Wn,1),fr=Dt;break}}fr&&g(gn,{type:"remove",values:[fr]})}for(var er=arguments.length,or=new Array(er>1?er-1:0),Lr=1;Lr<er;Lr++)or[Lr-1]=arguments[Lr];if(Ze&&(!fn||!hn.current)){var ir;fn&&(hn.current=!0),(ir=st.current)===null||ir===void 0||ir.onKeyDown.apply(ir,[et].concat(or))}se==null||se.apply(void 0,[et].concat(or))},Tn=function(et){for(var Jt=arguments.length,nn=new Array(Jt>1?Jt-1:0),fn=1;fn<Jt;fn++)nn[fn-1]=arguments[fn];if(Ze){var gn;(gn=st.current)===null||gn===void 0||gn.onKeyUp.apply(gn,[et].concat(nn))}et.key==="Enter"&&(hn.current=!1),de==null||de.apply(void 0,[et].concat(nn))},Zt=function(et){var Jt=p.filter(function(nn){return nn!==et});g(Jt,{type:"remove",values:[et]})},on=function(){hn.current=!1},Le=u.useRef(!1),qe=function(){Je(!0),w||(he&&!Le.current&&he.apply(void 0,arguments),ce.includes("focus")&&_e(!0)),Le.current=!0},$t=function(){We.current=!0,Je(!1,function(){Le.current=!1,We.current=!1,_e(!1)}),!w&&(He&&(b==="tags"?D(He,{source:"submit"}):b==="multiple"&&D("",{source:"blur"})),ye&&ye.apply(void 0,arguments))},dt=[];u.useEffect(function(){return function(){dt.forEach(function(ot){return clearTimeout(ot)}),dt.splice(0,dt.length)}},[]);var nt=function(et){var Jt,nn=et.target,fn=(Jt=ut.current)===null||Jt===void 0?void 0:Jt.getPopupElement();if(fn&&fn.contains(nn)){var gn=setTimeout(function(){var er=dt.indexOf(gn);if(er!==-1&&dt.splice(er,1),Pe(),!Ie&&!fn.contains(document.activeElement)){var or;(or=Ue.current)===null||or===void 0||or.focus()}});dt.push(gn)}for(var fr=arguments.length,Wn=new Array(fr>1?fr-1:0),Dt=1;Dt<fr;Dt++)Wn[Dt-1]=arguments[Dt];ve==null||ve.apply(void 0,[et].concat(Wn))},Ke=u.useState({}),wt=ae(Ke,2),Ft=wt[1];function Fe(){Ft({})}var ft;ht&&(ft=function(et){_e(et)}),NT(function(){var ot;return[tt.current,(ot=ut.current)===null||ot===void 0?void 0:ot.getPopupElement()]},ct,_e,!!ht);var Ot=u.useMemo(function(){return K(K({},e),{},{notFoundContent:S,open:Ze,triggerOpen:ct,id:r,showSearch:Ne,multiple:Oe,toggleOpen:_e})},[e,S,ct,Ze,r,Ne,Oe,_e]),ln=!!H||$,Vn;ln&&(Vn=u.createElement(Ad,{className:ee("".concat(o,"-arrow"),G({},"".concat(o,"-arrow-loading"),$)),customizeIcon:H,customizeIconProps:{loading:$,searchValue:He,open:Ze,focused:je,showSearch:Ne}}));var On=function(){var et;C==null||C(),(et=Ue.current)===null||et===void 0||et.focus(),g([],{type:"clear",values:p}),Qe("",!1,!1)},hr=_T(o,On,p,W,Q,w,He,b),Jn=hr.allowClear,vr=hr.clearIcon,Zn=u.createElement(q,{ref:st}),dr=ee(o,l,G(G(G(G(G(G(G(G(G(G({},"".concat(o,"-focused"),je),"".concat(o,"-multiple"),Oe),"".concat(o,"-single"),!Oe),"".concat(o,"-allow-clear"),W),"".concat(o,"-show-arrow"),ln),"".concat(o,"-disabled"),w),"".concat(o,"-loading"),$),"".concat(o,"-open"),Ze),"".concat(o,"-customize-input"),Rt),"".concat(o,"-show-search"),Ne)),yr=u.createElement(C8,{ref:ut,disabled:w,prefixCls:o,visible:ct,popupElement:Zn,animation:z,transitionName:F,dropdownStyle:Y,dropdownClassName:ne,direction:d,dropdownMatchSelectWidth:te,dropdownRender:re,dropdownAlign:fe,placement:me,builtinPlacements:ue,getPopupContainer:Ce,empty:v,getTriggerDOMNode:function(et){return St.current||et},onPopupVisibleChange:ft,onPopupMouseEnter:Fe},ht?u.cloneElement(ht,{ref:Gt}):u.createElement(r8,Re({},e,{domRef:St,prefixCls:o,inputElement:Rt,ref:Ue,id:r,prefix:V,showSearch:Ne,autoClearSearchValue:M,mode:b,activeDescendantId:k,tagRender:c,values:p,open:Ze,onToggleOpen:_e,activeValue:N,searchValue:He,onSearch:Qe,onSearchSubmit:zt,onRemove:Zt,tokenWithEnter:Ee,onInputBlur:on}))),tn;return ht?tn=yr:tn=u.createElement("div",Re({className:dr},we,{ref:tt,onMouseDown:nt,onKeyDown:xn,onKeyUp:Tn,onFocus:qe,onBlur:$t}),u.createElement(w8,{visible:je&&!Ze,values:p}),yr,Vn,Jn&&vr),u.createElement(lw.Provider,{value:Ot},tn)}),vh=function(){return null};vh.isSelectOptGroup=!0;var yh=function(){return null};yh.isSelectOption=!0;var hw=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={},v={display:"flex",flexDirection:"column"};return r!==void 0&&(g={height:n,position:"relative",overflow:"hidden"},v=K(K({},v),{},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(Co,{onResize:function(S){var C=S.offsetHeight;C&&c&&c()}},u.createElement("div",Re({style:v,className:ee(G({},"".concat(s,"-holder-inner"),s)),ref:t},d),l,p)))});hw.displayName="Filler";function O8(e){var t=e.children,n=e.setRef,r=u.useCallback(function(o){n(o)},[]);return u.cloneElement(t,{ref:r})}function I8(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,v=s(m,g,{style:{width:r},offsetX:o}),y=d(m);return u.createElement(O8,{key:y,setRef:function(C){return l(m,C)}},v)})}function _8(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(S){return S!==void 0?n(S):c}for(var m=null,p=Math.abs(r-o)!==1,g=0;g<s.length;g+=1){var v=d(l[g]),y=d(s[g]);if(v!==y){m=g,p=p||v!==d(s[g+1]);break}}return m===null?null:{index:m,multiple:p}}function T8(e,t,n){var r=u.useState(e),o=ae(r,2),l=o[0],s=o[1],c=u.useState(null),d=ae(c,2),m=d[0],p=d[1];return u.useEffect(function(){var g=_8(l||[],e||[],t);(g==null?void 0:g.index)!==void 0&&p(e[g.index]),s(e)},[e]),[m]}var c1=(typeof navigator>"u"?"undefined":gt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const vw=(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 P8(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=vw(t,n,r,o);function v($,R){if($n.cancel(d.current),!g(!1,R)){var O=$;if(!O._virtualHandled)O._virtualHandled=!0;else return;c.current+=R,m.current=R,c1||O.preventDefault(),d.current=$n(function(){var _=p.current?10:1;s(c.current*_,!1),c.current=0})}}function y($,R){s(R,!0),c1||$.preventDefault()}var S=u.useRef(null),C=u.useRef(null);function b($){if(e){$n.cancel(C.current),C.current=$n(function(){S.current=null},2);var R=$.deltaX,O=$.deltaY,_=$.shiftKey,I=R,T=O;(S.current==="sx"||!S.current&&_&&O&&!R)&&(I=O,T=0,S.current="sx");var N=Math.abs(I),P=Math.abs(T);S.current===null&&(S.current=l&&N>P?"x":"y"),S.current==="y"?v($,T):y($,I)}}function w($){e&&(p.current=$.detail===m.current)}return[b,w]}function N8(e,t,n,r){var o=u.useMemo(function(){return[new Map,[]]},[e,n.id,r]),l=ae(o,2),s=l[0],c=l[1],d=function(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,v=s.get(p),y=s.get(g);if(v===void 0||y===void 0)for(var S=e.length,C=c.length;C<S;C+=1){var b,w=e[C],$=t(w);s.set($,C);var R=(b=n.get($))!==null&&b!==void 0?b:r;if(c[C]=(c[C-1]||0)+R,$===p&&(v=C),$===g&&(y=C),v!==void 0&&y!==void 0)break}return{top:c[v-1]||0,bottom:c[y]}};return d}var k8=(function(){function e(){Yn(this,e),G(this,"maps",void 0),G(this,"id",0),G(this,"diffRecords",new Map),this.maps=Object.create(null)}return Qn(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 u1(e){var t=parseFloat(e);return isNaN(t)?0:t}function M8(e,t,n){var r=u.useState(0),o=ae(r,2),l=o[0],s=o[1],c=u.useRef(new Map),d=u.useRef(new k8),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 S=function(){var w=!1;c.current.forEach(function($,R){if($&&$.offsetParent){var O=$.offsetHeight,_=getComputedStyle($),I=_.marginTop,T=_.marginBottom,N=u1(I),P=u1(T),k=O+N+P;d.current.get(R)!==k&&(d.current.set(R,k),w=!0)}}),w&&s(function($){return $+1})};if(y)S();else{m.current+=1;var C=m.current;Promise.resolve().then(function(){C===m.current&&S()})}}function v(y,S){var C=e(y);c.current.get(C),S?(c.current.set(C,S),g()):c.current.delete(C)}return u.useEffect(function(){return p},[]),[v,g,d.current,l]}var d1=14/15;function j8(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 S=Math.ceil(y.touches[0].pageX),C=Math.ceil(y.touches[0].pageY),b=o.current-S,w=l.current-C,$=Math.abs(b)>Math.abs(w);$?o.current=S:l.current=C;var R=n($,$?b:w,!1,y);R&&y.preventDefault(),clearInterval(c.current),R&&(c.current=setInterval(function(){$?b*=d1:w*=d1;var O=Math.floor($?b:w);(!n($,O,!0)||Math.abs(O)<=.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))},rn(function(){return e&&t.current.addEventListener("touchstart",g,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",g),d(),clearInterval(c.current)}},[e])}function f1(e){return Math.floor(Math.pow(e,.5))}function Og(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function z8(e,t,n){u.useEffect(function(){var r=t.current;if(e&&r){var o=!1,l,s,c=function(){$n.cancel(l)},d=function v(){c(),l=$n(function(){n(s),v()})},m=function(){o=!1,c()},p=function(y){if(!(y.target.draggable||y.button!==0)){var S=y;S._virtualHandled||(S._virtualHandled=!0,o=!0)}},g=function(y){if(o){var S=Og(y,!1),C=r.getBoundingClientRect(),b=C.top,w=C.bottom;if(S<=b){var $=b-S;s=-f1($),d()}else if(S>=w){var R=S-w;s=f1(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 L8=10;function A8(e,t,n,r,o,l,s,c){var d=u.useRef(),m=u.useState(null),p=ae(m,2),g=p[0],v=p[1];return rn(function(){if(g&&g.times<L8){if(!e.current){v(function(Q){return K({},Q)});return}l();var y=g.targetAlign,S=g.originAlign,C=g.index,b=g.offset,w=e.current.clientHeight,$=!1,R=y,O=null;if(w){for(var _=y||S,I=0,T=0,N=0,P=Math.min(t.length-1,C),k=0;k<=P;k+=1){var A=o(t[k]);T=I;var M=n.get(A);N=T+(M===void 0?r:M),I=N}for(var D=_==="top"?b:w-b,B=P;B>=0;B-=1){var U=o(t[B]),W=n.get(U);if(W===void 0){$=!0;break}if(D-=W,D<=0)break}switch(_){case"top":O=T-b;break;case"bottom":O=N-w+b;break;default:{var V=e.current.scrollTop,H=V+w;T<V?R="top":N>H&&(R="bottom")}}O!==null&&s(O),O!==g.lastTop&&($=!0)}$&&v(K(K({},g),{},{times:g.times+1,targetAlign:R,lastTop:O}))}},[g,e.current]),function(y){if(y==null){c();return}if($n.cancel(d.current),typeof y=="number")s(y);else if(y&>(y)==="object"){var S,C=y.align;"index"in y?S=y.index:S=t.findIndex(function($){return o($)===y.key});var b=y.offset,w=b===void 0?0:b;v({times:0,index:S,offset:w,originAlign:C})}}}var m1=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,v=e.style,y=e.thumbStyle,S=e.showScrollBar,C=u.useState(!1),b=ae(C,2),w=b[0],$=b[1],R=u.useState(null),O=ae(R,2),_=O[0],I=O[1],T=u.useState(null),N=ae(T,2),P=N[0],k=N[1],A=!r,M=u.useRef(),D=u.useRef(),B=u.useState(S),U=ae(B,2),W=U[0],V=U[1],H=u.useRef(),Q=function(){S===!0||S===!1||(clearTimeout(H.current),V(!0),H.current=setTimeout(function(){V(!1)},3e3))},q=l-g||0,z=g-p||0,F=u.useMemo(function(){if(o===0||q===0)return 0;var le=o/q;return le*z},[o,q,z]),Y=function(ce){ce.stopPropagation(),ce.preventDefault()},ne=u.useRef({top:F,dragging:w,pageY:_,startTop:P});ne.current={top:F,dragging:w,pageY:_,startTop:P};var te=function(ce){$(!0),I(Og(ce,m)),k(ne.current.top),s(),ce.stopPropagation(),ce.preventDefault()};u.useEffect(function(){var le=function(de){de.preventDefault()},ce=M.current,he=D.current;return ce.addEventListener("touchstart",le,{passive:!1}),he.addEventListener("touchstart",te,{passive:!1}),function(){ce.removeEventListener("touchstart",le),he.removeEventListener("touchstart",te)}},[]);var re=u.useRef();re.current=q;var fe=u.useRef();fe.current=z,u.useEffect(function(){if(w){var le,ce=function(de){var se=ne.current,ve=se.dragging,Se=se.pageY,Oe=se.startTop;$n.cancel(le);var Ne=M.current.getBoundingClientRect(),we=g/(m?Ne.width:Ne.height);if(ve){var $e=(Og(de,m)-Se)*we,ke=Oe;!A&&m?ke-=$e:ke+=$e;var Ie=re.current,Ge=fe.current,tt=Ge?ke/Ge:0,St=Math.ceil(tt*Ie);St=Math.max(St,0),St=Math.min(St,Ie),le=$n(function(){d(St,m)})}},he=function(){$(!1),c()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",he,{passive:!0}),window.addEventListener("touchend",he,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",he),window.removeEventListener("touchend",he),$n.cancel(le)}}},[w]),u.useEffect(function(){return Q(),function(){clearTimeout(H.current)}},[o]),u.useImperativeHandle(t,function(){return{delayHidden:Q}});var me="".concat(n,"-scrollbar"),ue={position:"absolute",visibility:W?null:"hidden"},Ce={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(Ce,G({height:"100%",width:p},A?"left":"right",F))):(Object.assign(ue,G({width:8,top:0,bottom:0},A?"right":"left",0)),Object.assign(Ce,{width:"100%",height:p,top:F})),u.createElement("div",{ref:M,className:ee(me,G(G(G({},"".concat(me,"-horizontal"),m),"".concat(me,"-vertical"),!m),"".concat(me,"-visible"),W)),style:K(K({},ue),v),onMouseDown:Y,onMouseMove:Q},u.createElement("div",{ref:D,className:ee("".concat(me,"-thumb"),G({},"".concat(me,"-thumb-moving"),w)),style:K(K({},Ce),y),onMouseDown:te}))}),B8=20;function p1(){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,B8),Math.floor(n)}var D8=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],H8=[],F8={overflowY:"auto",overflowAnchor:"none"};function V8(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,v=e.itemKey,y=e.virtual,S=e.direction,C=e.scrollWidth,b=e.component,w=b===void 0?"div":b,$=e.onScroll,R=e.onVirtualScroll,O=e.onVisibleChange,_=e.innerProps,I=e.extraRender,T=e.styles,N=e.showScrollBar,P=N===void 0?"optional":N,k=kt(e,D8),A=u.useCallback(function(Le){return typeof v=="function"?v(Le):Le==null?void 0:Le[v]},[v]),M=M8(A),D=ae(M,4),B=D[0],U=D[1],W=D[2],V=D[3],H=!!(y!==!1&&l&&s),Q=u.useMemo(function(){return Object.values(W.maps).reduce(function(Le,qe){return Le+qe},0)},[W.id,W.maps]),q=H&&p&&(Math.max(s*p.length,Q)>l||!!C),z=S==="rtl",F=ee(r,G({},"".concat(r,"-rtl"),z),o),Y=p||H8,ne=u.useRef(),te=u.useRef(),re=u.useRef(),fe=u.useState(0),me=ae(fe,2),ue=me[0],Ce=me[1],le=u.useState(0),ce=ae(le,2),he=ce[0],ye=ce[1],de=u.useState(!1),se=ae(de,2),ve=se[0],Se=se[1],Oe=function(){Se(!0)},Ne=function(){Se(!1)},we={getKey:A};function $e(Le){Ce(function(qe){var $t;typeof Le=="function"?$t=Le(qe):$t=Le;var dt=Yt($t);return ne.current.scrollTop=dt,dt})}var ke=u.useRef({start:0,end:Y.length}),Ie=u.useRef(),Ge=T8(Y,A),tt=ae(Ge,1),St=tt[0];Ie.current=St;var ut=u.useMemo(function(){if(!H)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!q){var Le;return{scrollHeight:((Le=te.current)===null||Le===void 0?void 0:Le.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var qe=0,$t,dt,nt,Ke=Y.length,wt=0;wt<Ke;wt+=1){var Ft=Y[wt],Fe=A(Ft),ft=W.get(Fe),Ot=qe+(ft===void 0?s:ft);Ot>=ue&&$t===void 0&&($t=wt,dt=qe),Ot>ue+l&&nt===void 0&&(nt=wt),qe=Ot}return $t===void 0&&($t=0,dt=0,nt=Math.ceil(l/s)),nt===void 0&&(nt=Y.length-1),nt=Math.min(nt+1,Y.length-1),{scrollHeight:qe,start:$t,end:nt,offset:dt}},[q,H,ue,Y,V,l]),Ue=ut.scrollHeight,st=ut.start,We=ut.end,mt=ut.offset;ke.current.start=st,ke.current.end=We,u.useLayoutEffect(function(){var Le=W.getRecord();if(Le.size===1){var qe=Array.from(Le.keys())[0],$t=Le.get(qe),dt=Y[st];if(dt&&$t===void 0){var nt=A(dt);if(nt===qe){var Ke=W.get(qe),wt=Ke-s;$e(function(Ft){return Ft+wt})}}}W.resetRecord()},[Ue]);var Ye=u.useState({width:0,height:l}),je=ae(Ye,2),Je=je[0],Pe=je[1],He=function(qe){Pe({width:qe.offsetWidth,height:qe.offsetHeight})},Rt=u.useRef(),ht=u.useRef(),Gt=u.useMemo(function(){return p1(Je.width,C)},[Je.width,C]),qt=u.useMemo(function(){return p1(Je.height,Ue)},[Je.height,Ue]),dn=Ue-l,Sn=u.useRef(dn);Sn.current=dn;function Yt(Le){var qe=Le;return Number.isNaN(Sn.current)||(qe=Math.min(qe,Sn.current)),qe=Math.max(qe,0),qe}var jt=ue<=0,xt=ue>=dn,Qt=he<=0,Vt=he>=C,Ze=vw(jt,xt,Qt,Vt),Ct=function(){return{x:z?-he:he,y:ue}},ct=u.useRef(Ct()),_e=Bn(function(Le){if(R){var qe=K(K({},Ct()),Le);(ct.current.x!==qe.x||ct.current.y!==qe.y)&&(R(qe),ct.current=qe)}});function Ee(Le,qe){var $t=Le;qe?(Fi.flushSync(function(){ye($t)}),_e()):$e($t)}function xe(Le){var qe=Le.currentTarget.scrollTop;qe!==ue&&$e(qe),$==null||$(Le),_e()}var ze=function(qe){var $t=qe,dt=C?C-Je.width:0;return $t=Math.max($t,0),$t=Math.min($t,dt),$t},Xe=Bn(function(Le,qe){qe?(Fi.flushSync(function(){ye(function($t){var dt=$t+(z?-Le:Le);return ze(dt)})}),_e()):$e(function($t){var dt=$t+Le;return dt})}),Qe=P8(H,jt,xt,Qt,Vt,!!C,Xe),zt=ae(Qe,2),Ht=zt[0],Tt=zt[1];j8(H,ne,function(Le,qe,$t,dt){var nt=dt;return Ze(Le,qe,$t)?!1:!nt||!nt._virtualHandled?(nt&&(nt._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:Le?qe:0,deltaY:Le?0:qe}),!0):!1}),z8(q,ne,function(Le){$e(function(qe){return qe+Le})}),rn(function(){function Le($t){var dt=jt&&$t.detail<0,nt=xt&&$t.detail>0;H&&!dt&&!nt&&$t.preventDefault()}var qe=ne.current;return qe.addEventListener("wheel",Ht,{passive:!1}),qe.addEventListener("DOMMouseScroll",Tt,{passive:!0}),qe.addEventListener("MozMousePixelScroll",Le,{passive:!1}),function(){qe.removeEventListener("wheel",Ht),qe.removeEventListener("DOMMouseScroll",Tt),qe.removeEventListener("MozMousePixelScroll",Le)}},[H,jt,xt]),rn(function(){if(C){var Le=ze(he);ye(Le),_e({x:Le})}},[Je.width,C]);var Pt=function(){var qe,$t;(qe=Rt.current)===null||qe===void 0||qe.delayHidden(),($t=ht.current)===null||$t===void 0||$t.delayHidden()},bn=A8(ne,Y,W,s,A,function(){return U(!0)},$e,Pt);u.useImperativeHandle(t,function(){return{nativeElement:re.current,getScrollInfo:Ct,scrollTo:function(qe){function $t(dt){return dt&>(dt)==="object"&&("left"in dt||"top"in dt)}$t(qe)?(qe.left!==void 0&&ye(ze(qe.left)),bn(qe.top)):bn(qe)}}}),rn(function(){if(O){var Le=Y.slice(st,We+1);O(Le,Y)}},[st,We,Y]);var hn=N8(Y,A,W,s),xn=I==null?void 0:I({start:st,end:We,virtual:q,offsetX:he,offsetY:mt,rtl:z,getSize:hn}),Tn=I8(Y,st,We,C,he,B,g,we),Zt=null;l&&(Zt=K(G({},d?"height":"maxHeight",l),F8),H&&(Zt.overflowY="hidden",C&&(Zt.overflowX="hidden"),ve&&(Zt.pointerEvents="none")));var on={};return z&&(on.dir="rtl"),u.createElement("div",Re({ref:re,style:K(K({},m),{},{position:"relative"}),className:F},on,k),u.createElement(Co,{onResize:He},u.createElement(w,{className:"".concat(r,"-holder"),style:Zt,ref:ne,onScroll:xe,onMouseEnter:Pt},u.createElement(hw,{prefixCls:r,height:Ue,offsetX:he,offsetY:mt,scrollWidth:C,onInnerResize:U,ref:te,innerProps:_,rtl:z,extra:xn},Tn))),q&&Ue>l&&u.createElement(m1,{ref:Rt,prefixCls:r,scrollOffset:ue,scrollRange:Ue,rtl:z,onScroll:Ee,onStartMove:Oe,onStopMove:Ne,spinSize:qt,containerSize:Je.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:P}),q&&C>Je.width&&u.createElement(m1,{ref:ht,prefixCls:r,scrollOffset:he,scrollRange:C,rtl:z,onScroll:Ee,onStartMove:Oe,onStopMove:Ne,spinSize:Gt,containerSize:Je.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:P}))}var yw=u.forwardRef(V8);yw.displayName="List";function W8(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var q8=["disabled","title","children","style","className"];function g1(e){return typeof e=="string"||typeof e=="number"}var U8=function(t,n){var r=TT(),o=r.prefixCls,l=r.id,s=r.open,c=r.multiple,d=r.mode,m=r.searchValue,p=r.toggleOpen,g=r.notFoundContent,v=r.onPopupScroll,y=u.useContext(hh),S=y.maxCount,C=y.flattenOptions,b=y.onActiveValue,w=y.defaultActiveFirstOption,$=y.onSelect,R=y.menuItemSelectedIcon,O=y.rawValues,_=y.fieldNames,I=y.virtual,T=y.direction,N=y.listHeight,P=y.listItemHeight,k=y.optionRender,A="".concat(o,"-item"),M=Ks(function(){return C},[s,C],function(le,ce){return ce[0]&&le[1]!==ce[1]}),D=u.useRef(null),B=u.useMemo(function(){return c&&$g(S)&&(O==null?void 0:O.size)>=S},[c,S,O==null?void 0:O.size]),U=function(ce){ce.preventDefault()},W=function(ce){var he;(he=D.current)===null||he===void 0||he.scrollTo(typeof ce=="number"?{index:ce}:ce)},V=u.useCallback(function(le){return d==="combobox"?!1:O.has(le)},[d,Be(O).toString(),O.size]),H=function(ce){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ye=M.length,de=0;de<ye;de+=1){var se=(ce+de*he+ye)%ye,ve=M[se]||{},Se=ve.group,Oe=ve.data;if(!Se&&!(Oe!=null&&Oe.disabled)&&(V(Oe.value)||!B))return se}return-1},Q=u.useState(function(){return H(0)}),q=ae(Q,2),z=q[0],F=q[1],Y=function(ce){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(ce);var ye={source:he?"keyboard":"mouse"},de=M[ce];if(!de){b(null,-1,ye);return}b(de.value,ce,ye)};u.useEffect(function(){Y(w!==!1?H(0):-1)},[M.length,m]);var ne=u.useCallback(function(le){return d==="combobox"?String(le).toLowerCase()===m.toLowerCase():O.has(le)},[d,m,Be(O).toString(),O.size]);u.useEffect(function(){var le=setTimeout(function(){if(!c&&s&&O.size===1){var he=Array.from(O)[0],ye=M.findIndex(function(de){var se=de.data;return m?String(se.value).startsWith(m):se.value===he});ye!==-1&&(Y(ye),W(ye))}});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&&$(ce,{selected:!O.has(ce)}),c||p(!1)};if(u.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var he=ce.which,ye=ce.ctrlKey;switch(he){case Ve.N:case Ve.P:case Ve.UP:case Ve.DOWN:{var de=0;if(he===Ve.UP?de=-1:he===Ve.DOWN?de=1:W8()&&ye&&(he===Ve.N?de=1:he===Ve.P&&(de=-1)),de!==0){var se=H(z+de,de);W(se),Y(se,!0)}break}case Ve.TAB:case Ve.ENTER:{var ve,Se=M[z];Se&&!(Se!=null&&(ve=Se.data)!==null&&ve!==void 0&&ve.disabled)&&!B?te(Se.value):te(void 0),s&&ce.preventDefault();break}case Ve.ESC:p(!1),s&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){W(ce)}}}),M.length===0)return u.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(A,"-empty"),onMouseDown:U},g);var re=Object.keys(_).map(function(le){return _[le]}),fe=function(ce){return ce.label};function me(le,ce){var he=le.group;return{role:he?"presentation":"option",id:"".concat(l,"_list_").concat(ce)}}var ue=function(ce){var he=M[ce];if(!he)return null;var ye=he.data||{},de=ye.value,se=he.group,ve=oo(ye,!0),Se=fe(he);return he?u.createElement("div",Re({"aria-label":typeof Se=="string"&&!se?Se:null},ve,{key:ce},me(he,ce),{"aria-selected":ne(de)}),de):null},Ce={role:"listbox",id:"".concat(l,"_list")};return u.createElement(u.Fragment,null,I&&u.createElement("div",Re({},Ce,{style:{height:0,width:0,overflow:"hidden"}}),ue(z-1),ue(z),ue(z+1)),u.createElement(yw,{itemKey:"key",ref:D,data:M,height:N,itemHeight:P,fullHeight:!1,onMouseDown:U,onScroll:v,virtual:I,direction:T,innerProps:I?null:Ce},function(le,ce){var he=le.group,ye=le.groupOption,de=le.data,se=le.label,ve=le.value,Se=de.key;if(he){var Oe,Ne=(Oe=de.title)!==null&&Oe!==void 0?Oe:g1(se)?se.toString():void 0;return u.createElement("div",{className:ee(A,"".concat(A,"-group"),de.className),title:Ne},se!==void 0?se:Se)}var we=de.disabled,$e=de.title;de.children;var ke=de.style,Ie=de.className,Ge=kt(de,q8),tt=Xn(Ge,re),St=V(ve),ut=we||!St&&B,Ue="".concat(A,"-option"),st=ee(A,Ue,Ie,G(G(G(G({},"".concat(Ue,"-grouped"),ye),"".concat(Ue,"-active"),z===ce&&!ut),"".concat(Ue,"-disabled"),ut),"".concat(Ue,"-selected"),St)),We=fe(le),mt=!R||typeof R=="function"||St,Ye=typeof We=="number"?We:We||ve,je=g1(Ye)?Ye.toString():void 0;return $e!==void 0&&(je=$e),u.createElement("div",Re({},oo(tt),I?{}:me(le,ce),{"aria-selected":ne(ve),className:st,title:je,onMouseMove:function(){z===ce||ut||Y(ce)},onClick:function(){ut||te(ve)},style:ke}),u.createElement("div",{className:"".concat(Ue,"-content")},typeof k=="function"?k(le,{index:ce}):Ye),u.isValidElement(R)||St,mt&&u.createElement(Ad,{className:"".concat(A,"-option-state"),customizeIcon:R,customizeIconProps:{value:ve,disabled:ut,isSelected:St}},St?"✓":null))}))},G8=u.forwardRef(U8);const K8=(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 v;return K(K({},g),{},{label:(v=s.get(g.value))===null||v===void 0?void 0:v.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 dp(e,t){return mw(e).join("").toUpperCase().includes(t)}const X8=(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,S){return o?dp(S[o],p):S[l]?dp(S[s!=="children"?s:"label"],p):dp(S[c],p)},v=m?function(y){return Eg(y)}:function(y){return y};return e.forEach(function(y){if(y[l]){var S=g(n,v(y));if(S)d.push(y);else{var C=y[l].filter(function(b){return g(n,v(b))});C.length&&d.push(K(K({},y),{},G({},l,C)))}return}g(n,v(y))&&d.push(y)}),d},[e,r,o,n,t])});var h1=0,Y8=Or();function Q8(){var e;return Y8?(e=h1,h1+=1):e="TEST_OR_SSR",e}function J8(e){var t=u.useState(),n=ae(t,2),r=n[0],o=n[1];return u.useEffect(function(){o("rc_select_".concat(Q8()))},[]),e||r}var Z8=["children","value"],eP=["children"];function tP(e){var t=e,n=t.key,r=t.props,o=r.children,l=r.value,s=kt(r,Z8);return K({key:n,value:l!==void 0?l:n,children:o},s)}function bw(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=kt(c,eP);return t||!l?tP(n):K(K({key:"__RC_SELECT_GRP__".concat(s===null?r:s,"__"),label:s},m),{},{options:bw(d)})}).filter(function(n){return n})}var nP=function(t,n,r,o,l){return u.useMemo(function(){var s=t,c=!t;c&&(s=bw(n));var d=new Map,m=new Map,p=function(y,S,C){C&&typeof C=="string"&&y.set(S[C],S)},g=function v(y){for(var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=0;C<y.length;C+=1){var b=y[C];!b[r.options]||S?(d.set(b[r.value],b),p(m,b,r.label),p(m,b,o),p(m,b,l)):v(b[r.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:m}},[t,n,r,o,l])};function v1(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var rP=["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"],oP=["inputValue"];function iP(e){return!e||gt(e)!=="object"}var aP=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,v=g===void 0?!0:g,y=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,b=C===void 0?!0:C,w=e.filterOption,$=e.filterSort,R=e.optionFilterProp,O=e.optionLabelProp,_=e.options,I=e.optionRender,T=e.children,N=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,k=e.virtual,A=e.direction,M=e.listHeight,D=M===void 0?200:M,B=e.listItemHeight,U=B===void 0?20:B,W=e.labelRender,V=e.value,H=e.defaultValue,Q=e.labelInValue,q=e.onChange,z=e.maxCount,F=kt(e,rP),Y=J8(n),ne=Rg(r),te=!!(!_&&T),re=u.useMemo(function(){return w===void 0&&r==="combobox"?!1:w},[w,r]),fe=u.useMemo(function(){return gw(c,te)},[JSON.stringify(c),te]),me=Hn("",{value:m!==void 0?m:d,postState:function(Ee){return Ee||""}}),ue=ae(me,2),Ce=ue[0],le=ue[1],ce=nP(_,T,fe,R,O),he=ce.valueOptions,ye=ce.labelOptions,de=ce.options,se=u.useCallback(function(_e){var Ee=mw(_e);return Ee.map(function(xe){var ze,Xe,Qe,zt,Ht;if(iP(xe))ze=xe;else{var Tt;Qe=xe.key,Xe=xe.label,ze=(Tt=xe.value)!==null&&Tt!==void 0?Tt:Qe}var Pt=he.get(ze);if(Pt){var bn;Xe===void 0&&(Xe=Pt==null?void 0:Pt[O||fe.label]),Qe===void 0&&(Qe=(bn=Pt==null?void 0:Pt.key)!==null&&bn!==void 0?bn:ze),zt=Pt==null?void 0:Pt.disabled,Ht=Pt==null?void 0:Pt.title}return{label:Xe,value:ze,key:Qe,disabled:zt,title:Ht}})},[fe,O,he]),ve=Hn(H,{value:V}),Se=ae(ve,2),Oe=Se[0],Ne=Se[1],we=u.useMemo(function(){var _e,Ee=ne&&Oe===null?[]:Oe,xe=se(Ee);return r==="combobox"&&QT((_e=xe[0])===null||_e===void 0?void 0:_e.value)?[]:xe},[Oe,se,r,ne]),$e=K8(we,he),ke=ae($e,2),Ie=ke[0],Ge=ke[1],tt=u.useMemo(function(){if(!r&&Ie.length===1){var _e=Ie[0];if(_e.value===null&&(_e.label===null||_e.label===void 0))return[]}return Ie.map(function(Ee){var xe;return K(K({},Ee),{},{label:(xe=typeof W=="function"?W(Ee):Ee.label)!==null&&xe!==void 0?xe:Ee.value})})},[r,Ie,W]),St=u.useMemo(function(){return new Set(Ie.map(function(_e){return _e.value}))},[Ie]);u.useEffect(function(){if(r==="combobox"){var _e,Ee=(_e=Ie[0])===null||_e===void 0?void 0:_e.value;le(YT(Ee)?String(Ee):"")}},[Ie]);var ut=v1(function(_e,Ee){var xe=Ee??_e;return G(G({},fe.value,_e),fe.label,xe)}),Ue=u.useMemo(function(){if(r!=="tags")return de;var _e=Be(de),Ee=function(ze){return he.has(ze)};return Be(Ie).sort(function(xe,ze){return xe.value<ze.value?-1:1}).forEach(function(xe){var ze=xe.value;Ee(ze)||_e.push(ut(ze,xe.label))}),_e},[ut,de,he,Ie,r]),st=X8(Ue,fe,Ce,re,R),We=u.useMemo(function(){return r!=="tags"||!Ce||st.some(function(_e){return _e[R||"value"]===Ce})||st.some(function(_e){return _e[fe.value]===Ce})?st:[ut(Ce)].concat(Be(st))},[ut,R,r,st,Ce,fe]),mt=function _e(Ee){var xe=Be(Ee).sort(function(ze,Xe){return $(ze,Xe,{searchValue:Ce})});return xe.map(function(ze){return Array.isArray(ze.options)?K(K({},ze),{},{options:ze.options.length>0?_e(ze.options):ze.options}):ze})},Ye=u.useMemo(function(){return $?mt(We):We},[We,$,Ce]),je=u.useMemo(function(){return S8(Ye,{fieldNames:fe,childrenAsData:te})},[Ye,fe,te]),Je=function(Ee){var xe=se(Ee);if(Ne(xe),q&&(xe.length!==Ie.length||xe.some(function(Qe,zt){var Ht;return((Ht=Ie[zt])===null||Ht===void 0?void 0:Ht.value)!==(Qe==null?void 0:Qe.value)}))){var ze=Q?xe:xe.map(function(Qe){return Qe.value}),Xe=xe.map(function(Qe){return Eg(Ge(Qe.value))});q(ne?ze:ze[0],ne?Xe:Xe[0])}},Pe=u.useState(null),He=ae(Pe,2),Rt=He[0],ht=He[1],Gt=u.useState(0),qt=ae(Gt,2),dn=qt[0],Sn=qt[1],Yt=N!==void 0?N:r!=="combobox",jt=u.useCallback(function(_e,Ee){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ze=xe.source,Xe=ze===void 0?"keyboard":ze;Sn(Ee),s&&r==="combobox"&&_e!==null&&Xe==="keyboard"&&ht(String(_e))},[s,r]),xt=function(Ee,xe,ze){var Xe=function(){var Zt,on=Ge(Ee);return[Q?{label:on==null?void 0:on[fe.label],value:Ee,key:(Zt=on==null?void 0:on.key)!==null&&Zt!==void 0?Zt:Ee}:Ee,Eg(on)]};if(xe&&y){var Qe=Xe(),zt=ae(Qe,2),Ht=zt[0],Tt=zt[1];y(Ht,Tt)}else if(!xe&&S&&ze!=="clear"){var Pt=Xe(),bn=ae(Pt,2),hn=bn[0],xn=bn[1];S(hn,xn)}},Qt=v1(function(_e,Ee){var xe,ze=ne?Ee.selected:!0;ze?xe=ne?[].concat(Be(Ie),[_e]):[_e]:xe=Ie.filter(function(Xe){return Xe.value!==_e}),Je(xe),xt(_e,ze),r==="combobox"?ht(""):(!Rg||v)&&(le(""),ht(""))}),Vt=function(Ee,xe){Je(Ee);var ze=xe.type,Xe=xe.values;(ze==="remove"||ze==="clear")&&Xe.forEach(function(Qe){xt(Qe.value,!1,ze)})},Ze=function(Ee,xe){if(le(Ee),ht(null),xe.source==="submit"){var ze=(Ee||"").trim();if(ze){var Xe=Array.from(new Set([].concat(Be(St),[ze])));Je(Xe),xt(ze,!0),le("")}return}xe.source!=="blur"&&(r==="combobox"&&Je(Ee),p==null||p(Ee))},Ct=function(Ee){var xe=Ee;r!=="tags"&&(xe=Ee.map(function(Xe){var Qe=ye.get(Xe);return Qe==null?void 0:Qe.value}).filter(function(Xe){return Xe!==void 0}));var ze=Array.from(new Set([].concat(Be(St),Be(xe))));Je(ze),ze.forEach(function(Xe){xt(Xe,!0)})},ct=u.useMemo(function(){var _e=k!==!1&&b!==!1;return K(K({},ce),{},{flattenOptions:je,onActiveValue:jt,defaultActiveFirstOption:Yt,onSelect:Qt,menuItemSelectedIcon:P,rawValues:St,fieldNames:fe,virtual:_e,direction:A,listHeight:D,listItemHeight:U,childrenAsData:te,maxCount:z,optionRender:I})},[z,ce,je,jt,Yt,Qt,P,St,fe,k,b,A,D,U,te,I]);return u.createElement(hh.Provider,{value:ct},u.createElement(R8,Re({},F,{id:Y,prefixCls:l,ref:t,omitDomProps:oP,mode:r,displayValues:tt,onDisplayValuesChange:Vt,direction:A,searchValue:Ce,onSearch:Ze,autoClearSearchValue:v,onSearchSplit:Ct,dropdownMatchSelectWidth:b,OptionList:G8,emptyOptions:!je.length,activeValue:Rt,activeDescendantId:"".concat(Y,"_list_").concat(dn)})))}),bh=aP;bh.Option=yh;bh.OptGroup=vh;function Cw(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 Sw=(e,t)=>t||e,lP=()=>{const[,e]=zr(),[t]=pi("Empty"),r=new cn(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"}))))},sP=()=>{const[,e]=zr(),[t]=pi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:l}=e,{borderColor:s,shadowColor:c,contentColor:d}=u.useMemo(()=>({borderColor:new cn(n).onBackground(l).toHexString(),shadowColor:new cn(r).onBackground(l).toHexString(),contentColor:new cn(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}))))},cP=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}}}}},uP=pn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=Xt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return cP(o)});var dP=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 xw=u.createElement(lP,null),ww=u.createElement(sP,null),Mo=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,v=dP(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:y,direction:S,className:C,style:b,classNames:w,styles:$,image:R}=gr("empty"),O=y("empty",o),[_,I,T]=uP(O),[N]=pi("Empty"),P=typeof s<"u"?s:N==null?void 0:N.description,k=typeof P=="string"?P:"empty",A=(t=l??R)!==null&&t!==void 0?t:xw;let M=null;return typeof A=="string"?M=u.createElement("img",{draggable:!1,alt:k,src:A}):M=A,_(u.createElement("div",Object.assign({className:ee(I,T,O,C,{[`${O}-normal`]:A===ww,[`${O}-rtl`]:S==="rtl"},n,r,w.root,p==null?void 0:p.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),b),g==null?void 0:g.root),m)},v),u.createElement("div",{className:ee(`${O}-image`,w.image,p==null?void 0:p.image),style:Object.assign(Object.assign(Object.assign({},d),$.image),g==null?void 0:g.image)},M),P&&u.createElement("div",{className:ee(`${O}-description`,w.description,p==null?void 0:p.description),style:Object.assign(Object.assign({},$.description),g==null?void 0:g.description)},P),c&&u.createElement("div",{className:ee(`${O}-footer`,w.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign({},$.footer),g==null?void 0:g.footer)},c)))};Mo.PRESENTED_IMAGE_DEFAULT=xw;Mo.PRESENTED_IMAGE_SIMPLE=ww;const $w=e=>{const{componentName:t}=e,{getPrefixCls:n}=u.useContext(Et),r=n("empty");switch(t){case"Table":case"List":return J.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return J.createElement(Mo,{image:Mo.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return J.createElement(Mo,null)}},Ew=(e,t,n)=>{var r,o;const{variant:l,[e]:s}=u.useContext(Et),c=u.useContext(k_),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=sR.includes(m);return[m,p]},fP=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 mP(e,t){return e||fP(t)}const y1=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"}},pP=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({},Fn(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:ch},[`
|
|
227
|
+
${o}${c}topLeft,
|
|
228
|
+
${l}${c}topLeft,
|
|
229
|
+
${o}${c}topRight,
|
|
230
|
+
${l}${c}topRight
|
|
231
|
+
`]:{animationName:dh},[`${s}${c}bottomLeft`]:{animationName:uh},[`
|
|
232
|
+
${s}${c}topLeft,
|
|
233
|
+
${s}${c}topRight
|
|
234
|
+
`]:{animationName:fh},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},y1(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"},As),"&-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({},y1(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Ui(e,"slide-up"),Ui(e,"slide-down"),Ju(e,"move-up"),Ju(e,"move-down")]},gP=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())}},hP=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},vP=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({},Pl()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:m}})}}}},yP=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,s=hP(e),c=t?`${n}-${t}`:"",d=gP(e);return{[`${n}-multiple${c}`]:Object.assign(Object.assign({},vP(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 fp(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[yP(e,t),o]}const bP=e=>{const{componentCls:t}=e,n=Xt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Xt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[fp(e),fp(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},fp(r,"lg")]};function mp(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({},Fn(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 CP(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[mp(e),mp(Xt(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()}}}},mp(Xt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const SP=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:v,controlItemBgHover:y,colorBgContainer:S,colorFillSecondary:C,colorBgContainerDisabled:b,colorTextDisabled:w,colorPrimaryHover:$,colorPrimary:R,controlOutline:O}=e,_=c*2,I=r*2,T=Math.min(o-_,o-I),N=Math.min(l-_,l-I),P=Math.min(s-_,s-I);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(c/2),zIndexPopup:m+50,optionSelectedColor:p,optionSelectedFontWeight:g,optionSelectedBg:v,optionActiveBg:y,optionPadding:`${(o-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:S,clearBg:S,singleItemHeightLG:s,multipleItemBg:C,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:N,multipleItemHeightLG:P,multipleSelectorBgDisabled:b,multipleItemColorDisabled:w,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:$,activeBorderColor:R,activeOutlineColor:O,selectAffixPadding:c}},Rw=(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}}}},b1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Rw(e,t))}),xP=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Rw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),b1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),b1(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}`}})}),Ow=(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}}}},C1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Ow(e,t))}),wP=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ow(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),C1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),C1(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}`}})}),$P=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}}}}),Iw=(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}}}},S1=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Iw(e,t))}),EP=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Iw(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),S1(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),S1(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}`}})}),RP=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},xP(e)),wP(e)),$P(e)),EP(e))}),OP=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"}}}},IP=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"}}}},_P=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({},Fn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},OP(e)),IP(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},As),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},As),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Pl()),{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()}}}}}},TP=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},_P(e),CP(e),bP(e),pP(e),{[`${t}-rtl`]:{direction:"rtl"}},kd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},PP=pn("Select",(e,{rootPrefixCls:t})=>{const n=Xt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[TP(n),RP(n)]},SP,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var NP={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"},kP=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:NP}))},_w=u.forwardRef(kP),MP={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"},jP=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:MP}))},gl=u.forwardRef(jP),zP={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"},LP=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:zP}))},AP=u.forwardRef(LP);function BP({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 v=t??u.createElement(wd,null),y=w=>e===null&&!s&&!p?null:u.createElement(u.Fragment,null,d!==!1&&w,s&&m);let S=null;if(e!==void 0)S=y(e);else if(o)S=y(u.createElement(Qs,{spin:!0}));else{const w=`${c}-suffix`;S=({open:$,showSearch:R})=>y($&&R?u.createElement(AP,{className:w}):u.createElement(gl,{className:w}))}let C=null;n!==void 0?C=n:l?C=u.createElement(_w,null):C=null;let b=null;return r!==void 0?b=r:b=u.createElement(qi,null),{clearIcon:v,suffixIcon:S,itemIcon:C,removeIcon:b}}function DP(e){return J.useMemo(()=>{if(e)return(...t)=>J.createElement(ic,{space:!0},e.apply(void 0,t))},[e])}function HP(e,t){return t!==void 0?t:e!==null}var FP=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 Tw="SECRET_COMBOBOX_MODE_DO_NOT_USE",VP=(e,t)=>{var n,r,o,l,s;const{prefixCls:c,bordered:d,className:m,rootClassName:p,getPopupContainer:g,popupClassName:v,dropdownClassName:y,listHeight:S=256,placement:C,listItemHeight:b,size:w,disabled:$,notFoundContent:R,status:O,builtinPlacements:_,dropdownMatchSelectWidth:I,popupMatchSelectWidth:T,direction:N,style:P,allowClear:k,variant:A,dropdownStyle:M,transitionName:D,tagRender:B,maxCount:U,prefix:W,dropdownRender:V,popupRender:H,onDropdownVisibleChange:Q,onOpenChange:q,styles:z,classNames:F}=e,Y=FP(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:Ce}=u.useContext(Et),{showSearch:le,style:ce,styles:he,className:ye,classNames:de}=gr("select"),[,se]=zr(),ve=b??(se==null?void 0:se.controlHeight),Se=te("select",c),Oe=te(),Ne=N??fe,{compactSize:we,compactItemClassnames:$e}=ec(Se,Ne),[ke,Ie]=Ew("select",A,d),Ge=gi(Se),[tt,St,ut]=PP(Se,Ge),Ue=u.useMemo(()=>{const{mode:ze}=e;if(ze!=="combobox")return ze===Tw?"combobox":ze},[e.mode]),st=Ue==="multiple"||Ue==="tags",We=HP(e.suffixIcon,e.showArrow),mt=(n=T??I)!==null&&n!==void 0?n:ue,Ye=((r=z==null?void 0:z.popup)===null||r===void 0?void 0:r.root)||((o=he.popup)===null||o===void 0?void 0:o.root)||M,je=DP(H||V),Je=q||Q,{status:Pe,hasFeedback:He,isFormItemInput:Rt,feedbackIcon:ht}=u.useContext(ed),Gt=Sw(Pe,O);let qt;R!==void 0?qt=R:Ue==="combobox"?qt=null:qt=(re==null?void 0:re("Select"))||u.createElement($w,{componentName:"Select"});const{suffixIcon:dn,itemIcon:Sn,removeIcon:Yt,clearIcon:jt}=BP(Object.assign(Object.assign({},Y),{multiple:st,hasFeedback:He,feedbackIcon:ht,showSuffixIcon:We,prefixCls:Se,componentName:"Select"})),xt=k===!0?{clearIcon:jt}:k,Qt=Xn(Y,["suffixIcon","itemIcon"]),Vt=ee(((l=F==null?void 0:F.popup)===null||l===void 0?void 0:l.root)||((s=de==null?void 0:de.popup)===null||s===void 0?void 0:s.root)||v||y,{[`${Se}-dropdown-${Ne}`]:Ne==="rtl"},p,de.root,F==null?void 0:F.root,ut,Ge,St),Ze=Qo(ze=>{var Xe;return(Xe=w??we)!==null&&Xe!==void 0?Xe:ze}),Ct=u.useContext(ha),ct=$??Ct,_e=ee({[`${Se}-lg`]:Ze==="large",[`${Se}-sm`]:Ze==="small",[`${Se}-rtl`]:Ne==="rtl",[`${Se}-${ke}`]:Ie,[`${Se}-in-form-item`]:Rt},Cw(Se,Gt,He),$e,ye,m,de.root,F==null?void 0:F.root,p,ut,Ge,St),Ee=u.useMemo(()=>C!==void 0?C:Ne==="rtl"?"bottomRight":"bottomLeft",[C,Ne]),[xe]=kl("SelectLike",Ye==null?void 0:Ye.zIndex);return tt(u.createElement(bh,Object.assign({ref:t,virtual:me,showSearch:le},Qt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),z==null?void 0:z.root),ce),P),dropdownMatchSelectWidth:mt,transitionName:Go(Oe,"slide-up",D),builtinPlacements:mP(_,Ce),listHeight:S,listItemHeight:ve,mode:Ue,prefixCls:Se,placement:Ee,direction:Ne,prefix:W,suffixIcon:dn,menuItemSelectedIcon:Sn,removeIcon:Yt,allowClear:xt,notFoundContent:qt,className:_e,getPopupContainer:g||ne,dropdownClassName:Vt,disabled:ct,dropdownStyle:Object.assign(Object.assign({},Ye),{zIndex:xe}),maxCount:st?U:void 0,tagRender:st?B:void 0,dropdownRender:je,onDropdownVisibleChange:Je})))},jl=u.forwardRef(VP),WP=aw(jl,"dropdownAlign");jl.SECRET_COMBOBOX_MODE_DO_NOT_USE=Tw;jl.Option=yh;jl.OptGroup=vh;jl._InternalPanelDoNotUseOrYouWillBeFired=WP;const Pw=(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)},Nw=(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)},va=["xxl","xl","lg","md","sm","xs"],qP=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)`}),UP=e=>{const t=e,n=[].concat(va).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},GP=()=>{const[,e]=zr(),t=qP(UP(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);Pw(d,c),this.matchHandlers[s]={mql:d,listener:c},c(d)})},unregister(){Object.values(t).forEach(l=>{const s=this.matchHandlers[l];Nw(s==null?void 0:s.mql,s==null?void 0:s.listener)}),n.clear()}}},[t])};function Ch(e=!0,t={}){const n=u.useRef(t),[,r]=J5(),o=GP();return rn(()=>{const l=o.subscribe(s=>{n.current=s,e&&r()});return()=>o.unsubscribe(l)},[]),n.current}const nd=e=>e?typeof e=="function"?e():e:null;function Sh(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 tl={shiftX:64,adjustY:1},nl={adjustX:1,shiftY:!0},go=[0,0],KP={left:{points:["cr","cl"],overflow:nl,offset:[-4,0],targetOffset:go},right:{points:["cl","cr"],overflow:nl,offset:[4,0],targetOffset:go},top:{points:["bc","tc"],overflow:tl,offset:[0,-4],targetOffset:go},bottom:{points:["tc","bc"],overflow:tl,offset:[0,4],targetOffset:go},topLeft:{points:["bl","tl"],overflow:tl,offset:[0,-4],targetOffset:go},leftTop:{points:["tr","tl"],overflow:nl,offset:[-4,0],targetOffset:go},topRight:{points:["br","tr"],overflow:tl,offset:[0,-4],targetOffset:go},rightTop:{points:["tl","tr"],overflow:nl,offset:[4,0],targetOffset:go},bottomRight:{points:["tr","br"],overflow:tl,offset:[0,4],targetOffset:go},rightBottom:{points:["bl","br"],overflow:nl,offset:[4,0],targetOffset:go},bottomLeft:{points:["tl","bl"],overflow:tl,offset:[0,4],targetOffset:go},leftBottom:{points:["br","bl"],overflow:nl,offset:[-4,0],targetOffset:go}},XP=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],YP=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,v=g===void 0?"rc-tooltip":g,y=t.children,S=t.onVisibleChange,C=t.afterVisibleChange,b=t.transitionName,w=t.animation,$=t.motion,R=t.placement,O=R===void 0?"right":R,_=t.align,I=_===void 0?{}:_,T=t.destroyTooltipOnHide,N=T===void 0?!1:T,P=t.defaultVisible,k=t.getTooltipContainer,A=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,D=t.id,B=t.showArrow,U=B===void 0?!0:B,W=t.classNames,V=t.styles,H=kt(t,XP),Q=jd(D),q=u.useRef(null);u.useImperativeHandle(n,function(){return q.current});var z=K({},H);"visible"in t&&(z.popupVisible=t.visible);var F=function(){return u.createElement(Sh,{key:"content",prefixCls:v,id:Q,bodyClassName:W==null?void 0:W.body,overlayInnerStyle:K(K({},A),V==null?void 0:V.body)},M)},Y=function(){var te=u.Children.only(y),re=(te==null?void 0:te.props)||{},fe=K(K({},re),{},{"aria-describedby":M?Q:null});return u.cloneElement(y,fe)};return u.createElement(Bd,Re({popupClassName:ee(r,W==null?void 0:W.root),prefixCls:v,popup:F,action:l,builtinPlacements:KP,popupPlacement:O,ref:q,popupAlign:I,getPopupContainer:k,onPopupVisibleChange:S,afterPopupVisibleChange:C,popupTransitionName:b,popupAnimation:w,popupMotion:$,defaultPopupVisible:P,autoDestroy:N,mouseLeaveDelay:m,popupStyle:K(K({},p),V==null?void 0:V.root),mouseEnterDelay:c,arrow:U},z),Y())};const QP=u.forwardRef(YP);function xh(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,v=p,y=2*o-c,S=d,C=2*o-l,b=s,w=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),$=r*(Math.sqrt(2)-1),R=`polygon(${$}px 100%, 50% ${$}px, ${2*o-$}px 100%, ${$}px 100%)`,O=`path('M ${l} ${s} A ${r} ${r} 0 0 0 ${c} ${d} L ${m} ${p} A ${n} ${n} 0 0 1 ${g} ${v} L ${y} ${S} A ${r} ${r} 0 0 0 ${C} ${b} Z')`;return{arrowShadowWidth:w,arrowPath:O,arrowPolygon:R}}const JP=(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"}}},kw=8;function Dd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?kw:r}}function yu(e,t){return e?t:{}}function wh(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"},JP(e,t,o)),{"&:before":{background:t}})]},yu(!!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}}}})),yu(!!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}}}})),yu(!!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}})),yu(!!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 ZP(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 x1={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"]}},eN={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"]}},tN=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Mw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:l,visibleFirst:s}=e,c=t/2,d={},m=Dd({contentRadius:l,limitVerticalRadius:!0});return Object.keys(x1).forEach(p=>{const g=r&&eN[p]||x1[p],v=Object.assign(Object.assign({},g),{offset:[0,0],dynamicInset:!0});switch(d[p]=v,tN.has(p)&&(v.autoArrow=!1),p){case"top":case"topLeft":case"topRight":v.offset[1]=-c-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=c+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-c-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=c+o;break}if(r)switch(p){case"topLeft":case"bottomLeft":v.offset[0]=-m.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":v.offset[0]=m.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":v.offset[1]=-m.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":v.offset[1]=m.arrowOffsetHorizontal*2-c;break}v.overflow=ZP(p,m,t,n),s&&(v.htmlRegion="visibleFirst")}),d}const nN=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:v,sizePopupArrow:y}=e,S=t(s).add(y).add(v).equal(),C=t(s).mul(2).add(y).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(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:C,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:S},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(s,kw)}},[`${n}-content`]:{position:"relative"}}),xd(e,(b,{darkColor:w})=>({[`&${n}-${b}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-rtl":{direction:"rtl"}})},wh(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},rN=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Dd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),xh(Xt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),jw=(e,t=!0)=>pn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:l,colorBgSpotlight:s}=r,c=Xt(r,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:o,tooltipBg:s});return[nN(c),tc(r,"zoom-big-fast")]},rN,{resetStyle:!1,injectStyle:t})(e),oN=Wi.map(e=>`${e}-inverse`),iN=["success","processing","error","default","warning"];function Hd(e,t=!0){return t?[].concat(Be(oN),Be(Wi)).includes(e):Wi.includes(e)}function aN(e){return iN.includes(e)}function zw(e,t){const n=Hd(t),r=ee({[`${e}-${t}`]:t&&n}),o={},l={},s=GI(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 lN=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:l,overlayInnerStyle:s}=e,{getPrefixCls:c}=u.useContext(Et),d=c("tooltip",t),[m,p,g]=jw(d),v=zw(d,l),y=v.arrowStyle,S=Object.assign(Object.assign({},s),v.overlayStyle),C=ee(p,g,d,`${d}-pure`,`${d}-placement-${r}`,n,v.className);return m(u.createElement("div",{className:C,style:y},u.createElement("div",{className:`${d}-arrow`}),u.createElement(Sh,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:S}),o)))};var sN=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 cN=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:v,destroyOnHidden:y,arrow:S=!0,title:C,overlay:b,builtinPlacements:w,arrowPointAtCenter:$=!1,autoAdjustOverflow:R=!0,motion:O,getPopupContainer:_,placement:I="top",mouseEnterDelay:T=.1,mouseLeaveDelay:N=.1,overlayStyle:P,rootClassName:k,overlayClassName:A,styles:M,classNames:D}=e,B=sN(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"]),U=!!S,[,W]=zr(),{getPopupContainer:V,getPrefixCls:H,direction:Q,className:q,style:z,classNames:F,styles:Y}=gr("tooltip"),ne=Cd(),te=u.useRef(null),re=()=>{var We;(We=te.current)===null||We===void 0||We.forceAlign()};u.useImperativeHandle(t,()=>{var We,mt;return{forceAlign:re,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),re()},nativeElement:(We=te.current)===null||We===void 0?void 0:We.nativeElement,popupElement:(mt=te.current)===null||mt===void 0?void 0:mt.popupElement}});const[fe,me]=Hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ue=!C&&!b&&C!==0,Ce=We=>{var mt,Ye;me(ue?!1:We),ue||((mt=e.onOpenChange)===null||mt===void 0||mt.call(e,We),(Ye=e.onVisibleChange)===null||Ye===void 0||Ye.call(e,We))},le=u.useMemo(()=>{var We,mt;let Ye=$;return typeof S=="object"&&(Ye=(mt=(We=S.pointAtCenter)!==null&&We!==void 0?We:S.arrowPointAtCenter)!==null&&mt!==void 0?mt:$),w||Mw({arrowPointAtCenter:Ye,autoAdjustOverflow:R,arrowWidth:U?W.sizePopupArrow:0,borderRadius:W.borderRadius,offset:W.marginXXS,visibleFirst:!0})},[$,S,w,W]),ce=u.useMemo(()=>C===0?C:b||C||"",[b,C]),he=u.createElement(ic,{space:!0},typeof ce=="function"?ce():ce),ye=H("tooltip",o),de=H(),se=e["data-popover-inject"];let ve=fe;!("open"in e)&&!("visible"in e)&&ue&&(ve=!1);const Se=u.isValidElement(m)&&!ax(m)?m:u.createElement("span",null,m),Oe=Se.props,Ne=!Oe.className||typeof Oe.className=="string"?ee(Oe.className,l||`${ye}-open`):Oe.className,[we,$e,ke]=jw(ye,!se),Ie=zw(ye,c),Ge=Ie.arrowStyle,tt=ee(A,{[`${ye}-rtl`]:Q==="rtl"},Ie.className,k,$e,ke,q,F.root,D==null?void 0:D.root),St=ee(F.body,D==null?void 0:D.body),[ut,Ue]=kl("Tooltip",B.zIndex),st=u.createElement(QP,Object.assign({},B,{zIndex:ut,showArrow:U,placement:I,mouseEnterDelay:T,mouseLeaveDelay:N,prefixCls:ye,classNames:{root:tt,body:St},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ge),Y.root),z),P),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Y.body),d),M==null?void 0:M.body),Ie.overlayStyle)},getTooltipContainer:_||s||V,ref:te,builtinPlacements:le,overlay:he,visible:ve,onVisibleChange:Ce,afterVisibleChange:p??g,arrowContent:u.createElement("span",{className:`${ye}-arrow-content`}),motion:{motionName:Go(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:y??!!v}),ve?jr(Se,{className:Ne}):Se);return we(u.createElement(Js.Provider,{value:Ue},st))}),di=cN;di._InternalPanelDoNotUseOrYouWillBeFired=lN;const uN=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:v,titleBorderBottom:y,innerContentPadding:S,titlePadding:C}=e;return[{[t]:Object.assign(Object.assign({},Fn(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:v,backgroundClip:"padding-box",borderRadius:d,boxShadow:s,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:p,color:c,fontWeight:o,borderBottom:y,padding:C},[`${t}-inner-content`]:{color:n,padding:S}})},wh(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},dN=e=>{const{componentCls:t}=e;return{[t]:Wi.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},fN=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,v=n-r,y=v/2,S=v/2-t,C=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},xh(e)),Dd({contentRadius:c,limitVerticalRadius:!0})),{innerPadding:l?0:12,titleMarginBottom:l?0:d,titlePadding:l?`${y}px ${C}px ${S}px`:0,titleBorderBottom:l?`${t}px ${m} ${p}`:"none",innerContentPadding:l?`${g}px ${C}px`:0})},Lw=pn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Xt(e,{popoverBg:t,popoverColor:n});return[uN(r),dN(r),tc(r,"zoom-big")]},fN,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var mN=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 Aw=({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)),pN=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:l="top",title:s,content:c,children:d}=e,m=nd(s),p=nd(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(Sh,Object.assign({},e,{className:t,prefixCls:n}),d||u.createElement(Aw,{prefixCls:n,title:m,content:p})))},gN=e=>{const{prefixCls:t,className:n}=e,r=mN(e,["prefixCls","className"]),{getPrefixCls:o}=u.useContext(Et),l=o("popover",t),[s,c,d]=Lw(l);return s(u.createElement(pN,Object.assign({},r,{prefixCls:l,hashId:c,className:ee(n,d)})))};var hN=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 vN=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:v=.1,onOpenChange:y,overlayStyle:S={},styles:C,classNames:b}=e,w=hN(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$,className:R,style:O,classNames:_,styles:I}=gr("popover"),T=$("popover",o),[N,P,k]=Lw(T),A=$(),M=ee(c,P,k,R,_.root,b==null?void 0:b.root),D=ee(_.body,b==null?void 0:b.body),[B,U]=Hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),W=(z,F)=>{U(z,!0),y==null||y(z,F)},V=z=>{z.keyCode===Ve.ESC&&W(!1,z)},H=z=>{W(z)},Q=nd(l),q=nd(s);return N(u.createElement(di,Object.assign({placement:d,trigger:m,mouseEnterDelay:g,mouseLeaveDelay:v},w,{prefixCls:T,classNames:{root:M,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),O),S),C==null?void 0:C.root),body:Object.assign(Object.assign({},I.body),C==null?void 0:C.body)},ref:t,open:B,onOpenChange:H,overlay:Q||q?u.createElement(Aw,{prefixCls:T,title:Q,content:q}):null,transitionName:Go(A,"zoom-big",w.transitionName),"data-popover-inject":!0}),jr(p,{onKeyDown:z=>{var F,Y;u.isValidElement(p)&&((Y=p==null?void 0:(F=p.props).onKeyDown)===null||Y===void 0||Y.call(F,z)),V(z)}})))}),Bw=vN;Bw._InternalPanelDoNotUseOrYouWillBeFired=gN;const yN=new Wt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bN=new Wt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),CN=new Wt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),SN=new Wt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),xN=new Wt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),wN=new Wt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),$N=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:v,calc:y}=e,S=`${r}-scroll-number`,C=xd(e,(b,{darkColor:w})=>({[`&${t} ${t}-color-${b}`]:{background:w,[`&:not(${t}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(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, ${S}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:wN,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:yN,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:v,color:e.colorText,fontSize:e.fontSize}}}),C),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:bN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:CN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:SN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:xN,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${S}-custom-component, ${t}-count`]:{transform:"none"},[`${S}-custom-component, ${S}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[S]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${S}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${S}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${S}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${S}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},Dw=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 Xt(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%)"})},Hw=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}},EN=pn("Badge",e=>{const t=Dw(e);return $N(t)},Hw),RN=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:l}=e,s=`${t}-ribbon`,c=`${t}-ribbon-wrapper`,d=xd(e,(m,{darkColor:p})=>({[`&${s}-color-${m}`]:{background:p,color:p}}));return{[c]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(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"}})}},ON=pn(["Badge","Ribbon"],e=>{const t=Dw(e);return RN(t)},Hw),IN=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(Et),g=m("ribbon",n),v=`${g}-wrapper`,[y,S,C]=ON(g,v),b=Hd(o,!1),w=ee(g,`${g}-placement-${c}`,{[`${g}-rtl`]:p==="rtl",[`${g}-color-${o}`]:b},t),$={},R={};return o&&!b&&($.background=o,R.color=o),y(u.createElement("div",{className:ee(v,d,S,C)},l,u.createElement("div",{className:ee(w,S),style:Object.assign(Object.assign({},$),r)},u.createElement("span",{className:`${g}-text`},s),u.createElement("div",{className:`${g}-corner`,style:R}))))},w1=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 _N(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const TN=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,v;if(s===o||Number.isNaN(o)||Number.isNaN(s))g=[u.createElement(w1,Object.assign({},e,{key:o,current:!0}))],v={transition:"none"};else{g=[];const y=o+10,S=[];for(let $=o;$<=y;$+=1)S.push($);const C=d<l?1:-1,b=S.findIndex($=>$%10===s);g=(C<0?S.slice(0,b+1):S.slice(b)).map(($,R)=>{const O=$%10;return u.createElement(w1,Object.assign({},e,{key:$,value:O,offset:C<0?R-b:R,current:R===b}))}),v={transform:`translateY(${-_N(s,o,C)}00%)`}}return u.createElement("span",{className:`${t}-only`,style:v,onTransitionEnd:p},g)};var PN=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 NN=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=PN(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:v}=u.useContext(Et),y=v("scroll-number",n),S=Object.assign(Object.assign({},g),{"data-show":d,style:s,className:ee(y,o,l),title:c});let C=r;if(r&&Number(r)%1===0){const b=String(r).split("");C=u.createElement("bdi",null,b.map((w,$)=>u.createElement(TN,{prefixCls:y,count:Number(r),value:w,key:b.length-$})))}return s!=null&&s.borderColor&&(S.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),p?jr(p,b=>({className:ee(`${y}-custom-component`,b==null?void 0:b.className,l)})):u.createElement(m,Object.assign({},S,{ref:t}),C)});var kN=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 MN=u.forwardRef((e,t)=>{var n,r,o,l,s;const{prefixCls:c,scrollNumberPrefixCls:d,children:m,status:p,text:g,color:v,count:y=null,overflowCount:S=99,dot:C=!1,size:b="default",title:w,offset:$,style:R,className:O,rootClassName:_,classNames:I,styles:T,showZero:N=!1}=e,P=kN(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:k,direction:A,badge:M}=u.useContext(Et),D=k("badge",c),[B,U,W]=EN(D),V=y>S?`${S}+`:y,H=V==="0"||V===0||g==="0"||g===0,Q=y===null||H&&!N,q=(p!=null||v!=null)&&Q,z=p!=null||!H,F=C&&!H,Y=F?"":V,ne=u.useMemo(()=>((Y==null||Y==="")&&(g==null||g==="")||H&&!N)&&!F,[Y,H,N,F,g]),te=u.useRef(y);ne||(te.current=y);const re=te.current,fe=u.useRef(Y);ne||(fe.current=Y);const me=fe.current,ue=u.useRef(F);ne||(ue.current=F);const Ce=u.useMemo(()=>{if(!$)return Object.assign(Object.assign({},M==null?void 0:M.style),R);const Oe={marginTop:$[1]};return A==="rtl"?Oe.left=Number.parseInt($[0],10):Oe.right=-Number.parseInt($[0],10),Object.assign(Object.assign(Object.assign({},Oe),M==null?void 0:M.style),R)},[A,$,R,M==null?void 0:M.style]),le=w??(typeof re=="string"||typeof re=="number"?re:void 0),ce=!ne&&(g===0?N:!!g&&g!==!0),he=ce?u.createElement("span",{className:`${D}-status-text`},g):null,ye=!re||typeof re!="object"?void 0:jr(re,Oe=>({style:Object.assign(Object.assign({},Ce),Oe.style)})),de=Hd(v,!1),se=ee(I==null?void 0:I.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${D}-status-dot`]:q,[`${D}-status-${p}`]:!!p,[`${D}-color-${v}`]:de}),ve={};v&&!de&&(ve.color=v,ve.background=v);const Se=ee(D,{[`${D}-status`]:q,[`${D}-not-a-wrapper`]:!m,[`${D}-rtl`]:A==="rtl"},O,_,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,I==null?void 0:I.root,U,W);if(!m&&q&&(g||z||!Q)){const Oe=Ce.color;return B(u.createElement("span",Object.assign({},P,{className:Se,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),Ce)}),u.createElement("span",{className:se,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(l=M==null?void 0:M.styles)===null||l===void 0?void 0:l.indicator),ve)}),ce&&u.createElement("span",{style:{color:Oe},className:`${D}-status-text`},g)))}return B(u.createElement("span",Object.assign({ref:t},P,{className:Se,style:Object.assign(Object.assign({},(s=M==null?void 0:M.styles)===null||s===void 0?void 0:s.root),T==null?void 0:T.root)}),m,u.createElement(ro,{visible:!ne,motionName:`${D}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Oe})=>{var Ne,we;const $e=k("scroll-number",d),ke=ue.current,Ie=ee(I==null?void 0:I.indicator,(Ne=M==null?void 0:M.classNames)===null||Ne===void 0?void 0:Ne.indicator,{[`${D}-dot`]:ke,[`${D}-count`]:!ke,[`${D}-count-sm`]:b==="small",[`${D}-multiple-words`]:!ke&&me&&me.toString().length>1,[`${D}-status-${p}`]:!!p,[`${D}-color-${v}`]:de});let Ge=Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(we=M==null?void 0:M.styles)===null||we===void 0?void 0:we.indicator),Ce);return v&&!de&&(Ge=Ge||{},Ge.background=v),u.createElement(NN,{prefixCls:$e,show:!ne,motionClassName:Oe,className:Ie,count:me,title:le,style:Ge,key:"scrollNumber"},ye)}),he))}),Fw=MN;Fw.Ribbon=IN;var jN={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"},zN=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:jN}))},Hs=u.forwardRef(zN),LN=Ve.ESC,AN=Ve.TAB;function BN(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,v;(g=n.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.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 LN:c();break;case AN:{var v=!1;s.current||(v=d()),v?g.preventDefault():c();break}}};u.useEffect(function(){return t?(window.addEventListener("keydown",m),o&&$n(d,3),function(){window.removeEventListener("keydown",m),s.current=!1}):function(){s.current=!1}},[t])}var DN=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=Ao(t,ba(l));return J.createElement(J.Fragment,null,r&&J.createElement("div",{className:"".concat(o,"-arrow")}),J.cloneElement(l,{ref:Gi(l)?s:void 0}))}),rl={adjustX:1,adjustY:1},ol=[0,0],HN={topLeft:{points:["bl","tl"],overflow:rl,offset:[0,-4],targetOffset:ol},top:{points:["bc","tc"],overflow:rl,offset:[0,-4],targetOffset:ol},topRight:{points:["br","tr"],overflow:rl,offset:[0,-4],targetOffset:ol},bottomLeft:{points:["tl","bl"],overflow:rl,offset:[0,4],targetOffset:ol},bottom:{points:["tc","bc"],overflow:rl,offset:[0,4],targetOffset:ol},bottomRight:{points:["tr","br"],overflow:rl,offset:[0,4],targetOffset:ol}},FN=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function VN(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,v=e.placements,y=v===void 0?HN:v,S=e.getPopupContainer,C=e.showAction,b=e.hideAction,w=e.overlayClassName,$=e.overlayStyle,R=e.visible,O=e.trigger,_=O===void 0?["hover"]:O,I=e.autoFocus,T=e.overlay,N=e.children,P=e.onVisibleChange,k=kt(e,FN),A=J.useState(),M=ae(A,2),D=M[0],B=M[1],U="visible"in e?R:D,W=J.useRef(null),V=J.useRef(null),H=J.useRef(null);J.useImperativeHandle(t,function(){return W.current});var Q=function(me){B(me),P==null||P(me)};BN({visible:U,triggerRef:H,onVisibleChange:Q,autoFocus:I,overlayRef:V});var q=function(me){var ue=e.onOverlayClick;B(!1),ue&&ue(me)},z=function(){return J.createElement(DN,{ref:V,overlay:T,prefixCls:s,arrow:o})},F=function(){return typeof T=="function"?z:z()},Y=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,U&&ne()),ref:Gi(N)?Ao(H,ba(N)):void 0}),re=b;return!re&&_.indexOf("contextMenu")!==-1&&(re=["click"]),J.createElement(Bd,Re({builtinPlacements:y},k,{prefixCls:s,ref:W,popupClassName:ee(w,G({},"".concat(s,"-show-arrow"),o)),popupStyle:$,action:_,showAction:C,hideAction:re,popupPlacement:g,popupAlign:m,popupTransitionName:c,popupAnimation:d,popupVisible:U,stretch:Y()?"minWidth":"",popup:F(),onPopupVisibleChange:Q,onPopupClick:q,getPopupContainer:S}),te)}const Vw=J.forwardRef(VN),WN=e=>typeof e!="object"&&typeof e!="function"||e===null;var Ww=u.createContext(null);function qw(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Uw(e){var t=u.useContext(Ww);return qw(t,e)}var qN=["children","locked"],Lo=u.createContext(null);function UN(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 Fs(e){var t=e.children,n=e.locked,r=kt(e,qN),o=u.useContext(Lo),l=Ks(function(){return UN(o,r)},[o,r],function(s,c){return!n&&(s[0]!==c[0]||!Ms(s[1],c[1],!0))});return u.createElement(Lo.Provider,{value:l},t)}var GN=[],Gw=u.createContext(null);function Fd(){return u.useContext(Gw)}var Kw=u.createContext(GN);function zl(e){var t=u.useContext(Kw);return u.useMemo(function(){return e!==void 0?[].concat(Be(t),[e]):t},[t,e])}var Xw=u.createContext(null),$h=u.createContext({});function $1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ah(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 KN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Be(e.querySelectorAll("*")).filter(function(r){return $1(r,t)});return $1(e,t)&&n.unshift(e),n}var Ig=Ve.LEFT,_g=Ve.RIGHT,Tg=Ve.UP,Lu=Ve.DOWN,Au=Ve.ENTER,Yw=Ve.ESC,ps=Ve.HOME,gs=Ve.END,E1=[Tg,Lu,Ig,_g];function XN(e,t,n,r){var o,l="prev",s="next",c="children",d="parent";if(e==="inline"&&r===Au)return{inlineTrigger:!0};var m=G(G({},Tg,l),Lu,s),p=G(G(G(G({},Ig,n?s:l),_g,n?l:s),Lu,c),Au,c),g=G(G(G(G(G(G({},Tg,l),Lu,s),Au,c),Yw,d),Ig,n?c:d),_g,n?d:c),v={inline:m,horizontal:p,vertical:g,inlineSub:m,horizontalSub:g,verticalSub:g},y=(o=v["".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 YN(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function QN(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Eh(e,t){var n=KN(e,!0);return n.filter(function(r){return t.has(r)})}function R1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Eh(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 Pg=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(qw(n,s),"']"));c&&(r.add(c),l.set(c,s),o.set(s,c))}),{elements:r,key2element:o,element2key:l}};function JN(e,t,n,r,o,l,s,c,d,m){var p=u.useRef(),g=u.useRef();g.current=t;var v=function(){$n.cancel(p.current)};return u.useEffect(function(){return function(){v()}},[]),function(y){var S=y.which;if([].concat(E1,[Au,Yw,ps,gs]).includes(S)){var C=l(),b=Pg(C,r),w=b,$=w.elements,R=w.key2element,O=w.element2key,_=R.get(t),I=QN(_,$),T=O.get(I),N=XN(e,s(T,!0).length===1,n,S);if(!N&&S!==ps&&S!==gs)return;(E1.includes(S)||[ps,gs].includes(S))&&y.preventDefault();var P=function(V){if(V){var H=V,Q=V.querySelector("a");Q!=null&&Q.getAttribute("href")&&(H=Q);var q=O.get(V);c(q),v(),p.current=$n(function(){g.current===q&&H.focus()})}};if([ps,gs].includes(S)||N.sibling||!I){var k;!I||e==="inline"?k=o.current:k=YN(I);var A,M=Eh(k,$);S===ps?A=M[0]:S===gs?A=M[M.length-1]:A=R1(k,$,I,N.offset),P(A)}else if(N.inlineTrigger)d(T);else if(N.offset>0)d(T,!0),v(),p.current=$n(function(){b=Pg(C,r);var W=I.getAttribute("aria-controls"),V=document.getElementById(W),H=R1(V,b.elements);P(H)},5);else if(N.offset<0){var D=s(T,!0),B=D[D.length-2],U=R.get(B);d(B,!1),P(U)}}m==null||m(y)}}function ZN(e){Promise.resolve().then(e)}var Rh="__RC_UTIL_PATH_SPLIT__",O1=function(t){return t.join(Rh)},ek=function(t){return t.split(Rh)},Ng="rc-menu-more";function tk(){var e=u.useState({}),t=ae(e,2),n=t[1],r=u.useRef(new Map),o=u.useRef(new Map),l=u.useState([]),s=ae(l,2),c=s[0],d=s[1],m=u.useRef(0),p=u.useRef(!1),g=function(){p.current||n({})},v=u.useCallback(function(R,O){var _=O1(O);o.current.set(_,R),r.current.set(R,_),m.current+=1;var I=m.current;ZN(function(){I===m.current&&g()})},[]),y=u.useCallback(function(R,O){var _=O1(O);o.current.delete(_),r.current.delete(R)},[]),S=u.useCallback(function(R){d(R)},[]),C=u.useCallback(function(R,O){var _=r.current.get(R)||"",I=ek(_);return O&&c.includes(I[0])&&I.unshift(Ng),I},[c]),b=u.useCallback(function(R,O){return R.filter(function(_){return _!==void 0}).some(function(_){var I=C(_,!0);return I.includes(O)})},[C]),w=function(){var O=Be(r.current.keys());return c.length&&O.push(Ng),O},$=u.useCallback(function(R){var O="".concat(r.current.get(R)).concat(Rh),_=new Set;return Be(o.current.keys()).forEach(function(I){I.startsWith(O)&&_.add(o.current.get(I))}),_},[]);return u.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:v,unregisterPath:y,refreshOverflowKeys:S,isSubPathKey:b,getKeyPath:C,getKeys:w,getSubPathKeys:$}}function ws(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 nk=Math.random().toFixed(5).toString().slice(2),I1=0;function rk(e){var t=Hn(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return u.useEffect(function(){I1+=1;var l="".concat(nk,"-").concat(I1);o("rc-menu-uuid-".concat(l))},[]),r}function Qw(e,t,n,r){var o=u.useContext(Lo),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 Jw(e){var t=u.useContext(Lo),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 Zw(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 ok=["item"];function rd(e){var t=e.item,n=kt(e,ok);return Object.defineProperty(n,"item",{get:function(){return ur(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var ik=["title","attribute","elementRef"],ak=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],lk=["active"],sk=(function(e){fi(n,e);var t=mi(n);function n(){return Yn(this,n),t.apply(this,arguments)}return Qn(n,[{key:"render",value:function(){var o=this.props,l=o.title,s=o.attribute,c=o.elementRef,d=kt(o,ik),m=Xn(d,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ur(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(Uo.Item,Re({},s,{title:typeof l=="string"?l:void 0},m,{ref:c}))}}]),n})(u.Component),ck=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,v=e.onKeyDown,y=e.onFocus,S=kt(e,ak),C=Uw(o),b=u.useContext(Lo),w=b.prefixCls,$=b.onItemClick,R=b.disabled,O=b.overflowDisabled,_=b.itemIcon,I=b.selectedKeys,T=b.onActive,N=u.useContext($h),P=N._internalRenderMenuItem,k="".concat(w,"-item"),A=u.useRef(),M=u.useRef(),D=R||l,B=Xo(t,M),U=zl(o),W=function(ue){return{key:o,keyPath:Be(U).reverse(),item:A.current,domEvent:ue}},V=s||_,H=Qw(o,D,m,p),Q=H.active,q=kt(H,lk),z=I.includes(o),F=Jw(U.length),Y=function(ue){if(!D){var Ce=W(ue);g==null||g(rd(Ce)),$(Ce)}},ne=function(ue){if(v==null||v(ue),ue.which===Ve.ENTER){var Ce=W(ue);g==null||g(rd(Ce)),$(Ce)}},te=function(ue){T(o),y==null||y(ue)},re={};e.role==="option"&&(re["aria-selected"]=z);var fe=u.createElement(sk,Re({ref:A,elementRef:B,role:d===null?"none":d||"menuitem",tabIndex:l?null:-1,"data-menu-id":O&&C?null:C},Xn(S,["extra"]),q,re,{component:"li","aria-disabled":l,style:K(K({},F),n),className:ee(k,G(G(G({},"".concat(k,"-active"),Q),"".concat(k,"-selected"),z),"".concat(k,"-disabled"),D),r),onClick:Y,onKeyDown:ne,onFocus:te}),c,u.createElement(Zw,{props:K(K({},e),{},{isSelected:z}),icon:V}));return P&&(fe=P(fe,e,{selected:z})),fe});function uk(e,t){var n=e.eventKey,r=Fd(),o=zl(n);return u.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:u.createElement(ck,Re({},e,{ref:t}))}const sc=u.forwardRef(uk);var dk=["className","children"],fk=function(t,n){var r=t.className,o=t.children,l=kt(t,dk),s=u.useContext(Lo),c=s.prefixCls,d=s.mode,m=s.rtl;return u.createElement("ul",Re({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)},Oh=u.forwardRef(fk);Oh.displayName="SubMenuList";function Ih(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(Be(t),[r]).join("-")));var m={key:c,eventKey:c};return u.cloneElement(n,m)}return n})}var Er={adjustX:1,adjustY:1},mk={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},leftTop:{points:["tr","tl"],overflow:Er},leftBottom:{points:["br","bl"],overflow:Er},rightTop:{points:["tl","tr"],overflow:Er},rightBottom:{points:["bl","br"],overflow:Er}},pk={topLeft:{points:["bl","tl"],overflow:Er},topRight:{points:["br","tr"],overflow:Er},bottomLeft:{points:["tl","bl"],overflow:Er},bottomRight:{points:["tr","br"],overflow:Er},rightTop:{points:["tr","tl"],overflow:Er},rightBottom:{points:["br","bl"],overflow:Er},leftTop:{points:["tl","tr"],overflow:Er},leftBottom:{points:["bl","br"],overflow:Er}};function e2(e,t,n){if(t)return t;if(n)return n[e]||n.other}var gk={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function hk(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(Lo),v=g.getPopupContainer,y=g.rtl,S=g.subMenuOpenDelay,C=g.subMenuCloseDelay,b=g.builtinPlacements,w=g.triggerSubMenuAction,$=g.forceSubMenuRender,R=g.rootClassName,O=g.motion,_=g.defaultMotions,I=u.useState(!1),T=ae(I,2),N=T[0],P=T[1],k=K(y?K({},pk):K({},mk),b),A=gk[m],M=e2(m,O,_),D=u.useRef(M);m!=="inline"&&(D.current=M);var B=K(K({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),U=u.useRef();return u.useEffect(function(){return U.current=$n(function(){P(n)}),function(){$n.cancel(U.current)}},[n]),u.createElement(Bd,{prefixCls:t,popupClassName:ee("".concat(t,"-popup"),G({},"".concat(t,"-rtl"),y),s,R),stretch:m==="horizontal"?"minWidth":null,getPopupContainer:v,builtinPlacements:k,popupPlacement:A,popupVisible:N,popup:o,popupStyle:l,popupAlign:c&&{offset:c},action:d?[]:[w],mouseEnterDelay:S,mouseLeaveDelay:C,onPopupVisibleChange:p,forceRender:$,popupMotion:B,fresh:!0},r)}function vk(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,l="inline",s=u.useContext(Lo),c=s.prefixCls,d=s.forceSubMenuRender,m=s.motion,p=s.defaultMotions,g=s.mode,v=u.useRef(!1);v.current=g===l;var y=u.useState(!v.current),S=ae(y,2),C=S[0],b=S[1],w=v.current?n:!1;u.useEffect(function(){v.current&&b(!1)},[g]);var $=K({},e2(l,m,p));r.length>1&&($.motionAppear=!1);var R=$.onVisibleChanged;return $.onVisibleChanged=function(O){return!v.current&&!O&&b(!0),R==null?void 0:R(O)},C?null:u.createElement(Fs,{mode:l,locked:!v.current},u.createElement(ro,Re({visible:w},$,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(O){var _=O.className,I=O.style;return u.createElement(Oh,{id:t,className:_,style:I},o)}))}var yk=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],bk=["active"],Ck=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,v=e.popupOffset,y=e.popupStyle,S=e.onClick,C=e.onMouseEnter,b=e.onMouseLeave,w=e.onTitleClick,$=e.onTitleMouseEnter,R=e.onTitleMouseLeave,O=kt(e,yk),_=Uw(l),I=u.useContext(Lo),T=I.prefixCls,N=I.mode,P=I.openKeys,k=I.disabled,A=I.overflowDisabled,M=I.activeKey,D=I.selectedKeys,B=I.itemIcon,U=I.expandIcon,W=I.onItemClick,V=I.onOpenChange,H=I.onActive,Q=u.useContext($h),q=Q._internalRenderSubMenuItem,z=u.useContext(Xw),F=z.isSubPathKey,Y=zl(),ne="".concat(T,"-submenu"),te=k||s,re=u.useRef(),fe=u.useRef(),me=m??B,ue=p??U,Ce=P.includes(l),le=!A&&Ce,ce=F(D,l),he=Qw(l,te,$,R),ye=he.active,de=kt(he,bk),se=u.useState(!1),ve=ae(se,2),Se=ve[0],Oe=ve[1],Ne=function(Pe){te||Oe(Pe)},we=function(Pe){Ne(!0),C==null||C({key:l,domEvent:Pe})},$e=function(Pe){Ne(!1),b==null||b({key:l,domEvent:Pe})},ke=u.useMemo(function(){return ye||(N!=="inline"?Se||F([M],l):!1)},[N,ye,M,Se,l,F]),Ie=Jw(Y.length),Ge=function(Pe){te||(w==null||w({key:l,domEvent:Pe}),N==="inline"&&V(l,!Ce))},tt=ws(function(Je){S==null||S(rd(Je)),W(Je)}),St=function(Pe){N!=="inline"&&V(l,Pe)},ut=function(){H(l)},Ue=_&&"".concat(_,"-popup"),st=u.useMemo(function(){return u.createElement(Zw,{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]),We=u.createElement("div",Re({role:"menuitem",style:Ie,className:"".concat(ne,"-title"),tabIndex:te?null:-1,ref:re,title:typeof o=="string"?o:null,"data-menu-id":A&&_?null:_,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ue,"aria-disabled":te,onClick:Ge,onFocus:ut},de),o,st),mt=u.useRef(N);if(N!=="inline"&&Y.length>1?mt.current="vertical":mt.current=N,!A){var Ye=mt.current;We=u.createElement(hk,{mode:Ye,prefixCls:ne,visible:!c&&le&&N!=="inline",popupClassName:g,popupOffset:v,popupStyle:y,popup:u.createElement(Fs,{mode:Ye==="horizontal"?"vertical":Ye},u.createElement(Oh,{id:Ue,ref:fe},d)),disabled:te,onVisibleChange:St},We)}var je=u.createElement(Uo.Item,Re({ref:t,role:"none"},O,{component:"li",style:n,className:ee(ne,"".concat(ne,"-").concat(N),r,G(G(G(G({},"".concat(ne,"-open"),le),"".concat(ne,"-active"),ke),"".concat(ne,"-selected"),ce),"".concat(ne,"-disabled"),te)),onMouseEnter:we,onMouseLeave:$e}),We,!A&&u.createElement(vk,{id:Ue,open:le,keyPath:Y},d));return q&&(je=q(je,e,{selected:ce,active:ke,open:le,disabled:te})),u.createElement(Fs,{onItemClick:tt,mode:N==="horizontal"?"vertical":N,itemIcon:me,expandIcon:ue},je)}),Vd=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=zl(n),l=Ih(r,o),s=Fd();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(Ck,Re({ref:t},e),l),u.createElement(Kw.Provider,{value:o},c)});function _h(e){var t=e.className,n=e.style,r=u.useContext(Lo),o=r.prefixCls,l=Fd();return l?null:u.createElement("li",{role:"separator",className:ee("".concat(o,"-item-divider"),t),style:n})}var Sk=["className","title","eventKey","children"],xk=u.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,l=kt(e,Sk),s=u.useContext(Lo),c=s.prefixCls,d="".concat(c,"-item-group");return u.createElement("li",Re({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))}),Th=u.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=zl(n),l=Ih(r,o),s=Fd();return s?l:u.createElement(xk,Re({ref:t},Xn(e,["warnKey"])),l)}),wk=["label","children","key","type","extra"];function kg(e,t,n){var r=t.item,o=t.group,l=t.submenu,s=t.divider;return(e||[]).map(function(c,d){if(c&>(c)==="object"){var m=c,p=m.label,g=m.children,v=m.key,y=m.type,S=m.extra,C=kt(m,wk),b=v??"tmp-".concat(d);return g||y==="group"?y==="group"?u.createElement(o,Re({key:b},C,{title:p}),kg(g,t,n)):u.createElement(l,Re({key:b},C,{title:p}),kg(g,t,n)):y==="divider"?u.createElement(s,Re({key:b},C)):u.createElement(r,Re({key:b},C,{extra:S}),p,(!!S||S===0)&&u.createElement("span",{className:"".concat(n,"-item-extra")},S))}return null}).filter(function(c){return c})}function _1(e,t,n,r,o){var l=e,s=K({divider:_h,item:sc,group:Th,submenu:Vd},r);return t&&(l=kg(t,s,o)),Ih(l,n)}var $k=["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"],aa=[],Ek=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,v=r.children,y=r.direction,S=r.id,C=r.mode,b=C===void 0?"vertical":C,w=r.inlineCollapsed,$=r.disabled,R=r.disabledOverflow,O=r.subMenuOpenDelay,_=O===void 0?.1:O,I=r.subMenuCloseDelay,T=I===void 0?.1:I,N=r.forceSubMenuRender,P=r.defaultOpenKeys,k=r.openKeys,A=r.activeKey,M=r.defaultActiveFirst,D=r.selectable,B=D===void 0?!0:D,U=r.multiple,W=U===void 0?!1:U,V=r.defaultSelectedKeys,H=r.selectedKeys,Q=r.onSelect,q=r.onDeselect,z=r.inlineIndent,F=z===void 0?24:z,Y=r.motion,ne=r.defaultMotions,te=r.triggerSubMenuAction,re=te===void 0?"hover":te,fe=r.builtinPlacements,me=r.itemIcon,ue=r.expandIcon,Ce=r.overflowedIndicator,le=Ce===void 0?"...":Ce,ce=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,ye=r.onClick,de=r.onOpenChange,se=r.onKeyDown;r.openAnimation,r.openTransitionName;var ve=r._internalRenderMenuItem,Se=r._internalRenderSubMenuItem,Oe=r._internalComponents,Ne=kt(r,$k),we=u.useMemo(function(){return[_1(v,g,aa,Oe,l),_1(v,g,aa,{},l)]},[v,g,Oe]),$e=ae(we,2),ke=$e[0],Ie=$e[1],Ge=u.useState(!1),tt=ae(Ge,2),St=tt[0],ut=tt[1],Ue=u.useRef(),st=rk(S),We=y==="rtl",mt=Hn(P,{value:k,postState:function(ot){return ot||aa}}),Ye=ae(mt,2),je=Ye[0],Je=Ye[1],Pe=function(ot){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Jt(){Je(ot),de==null||de(ot)}et?Fi.flushSync(Jt):Jt()},He=u.useState(je),Rt=ae(He,2),ht=Rt[0],Gt=Rt[1],qt=u.useRef(!1),dn=u.useMemo(function(){return(b==="inline"||b==="vertical")&&w?["vertical",w]:[b,!1]},[b,w]),Sn=ae(dn,2),Yt=Sn[0],jt=Sn[1],xt=Yt==="inline",Qt=u.useState(Yt),Vt=ae(Qt,2),Ze=Vt[0],Ct=Vt[1],ct=u.useState(jt),_e=ae(ct,2),Ee=_e[0],xe=_e[1];u.useEffect(function(){Ct(Yt),xe(jt),qt.current&&(xt?Je(ht):Pe(aa))},[Yt,jt]);var ze=u.useState(0),Xe=ae(ze,2),Qe=Xe[0],zt=Xe[1],Ht=Qe>=ke.length-1||Ze!=="horizontal"||R;u.useEffect(function(){xt&&Gt(je)},[je]),u.useEffect(function(){return qt.current=!0,function(){qt.current=!1}},[]);var Tt=tk(),Pt=Tt.registerPath,bn=Tt.unregisterPath,hn=Tt.refreshOverflowKeys,xn=Tt.isSubPathKey,Tn=Tt.getKeyPath,Zt=Tt.getKeys,on=Tt.getSubPathKeys,Le=u.useMemo(function(){return{registerPath:Pt,unregisterPath:bn}},[Pt,bn]),qe=u.useMemo(function(){return{isSubPathKey:xn}},[xn]);u.useEffect(function(){hn(Ht?aa:ke.slice(Qe+1).map(function(tn){return tn.key}))},[Qe,Ht]);var $t=Hn(A||M&&((n=ke[0])===null||n===void 0?void 0:n.key),{value:A}),dt=ae($t,2),nt=dt[0],Ke=dt[1],wt=ws(function(tn){Ke(tn)}),Ft=ws(function(){Ke(void 0)});u.useImperativeHandle(t,function(){return{list:Ue.current,focus:function(ot){var et,Jt=Zt(),nn=Pg(Jt,st),fn=nn.elements,gn=nn.key2element,fr=nn.element2key,Wn=Eh(Ue.current,fn),Dt=nt??(Wn[0]?fr.get(Wn[0]):(et=ke.find(function(Lr){return!Lr.props.disabled}))===null||et===void 0?void 0:et.key),er=gn.get(Dt);if(Dt&&er){var or;er==null||(or=er.focus)===null||or===void 0||or.call(er,ot)}}}});var Fe=Hn(V||[],{value:H,postState:function(ot){return Array.isArray(ot)?ot:ot==null?aa:[ot]}}),ft=ae(Fe,2),Ot=ft[0],ln=ft[1],Vn=function(ot){if(B){var et=ot.key,Jt=Ot.includes(et),nn;W?Jt?nn=Ot.filter(function(gn){return gn!==et}):nn=[].concat(Be(Ot),[et]):nn=[et],ln(nn);var fn=K(K({},ot),{},{selectedKeys:nn});Jt?q==null||q(fn):Q==null||Q(fn)}!W&&je.length&&Ze!=="inline"&&Pe(aa)},On=ws(function(tn){ye==null||ye(rd(tn)),Vn(tn)}),hr=ws(function(tn,ot){var et=je.filter(function(nn){return nn!==tn});if(ot)et.push(tn);else if(Ze!=="inline"){var Jt=on(tn);et=et.filter(function(nn){return!Jt.has(nn)})}Ms(je,et,!0)||Pe(et,!0)}),Jn=function(ot,et){var Jt=et??!je.includes(ot);hr(ot,Jt)},vr=JN(Ze,nt,We,st,Ue,Zt,Tn,Ke,Jn,se);u.useEffect(function(){ut(!0)},[]);var Zn=u.useMemo(function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:Se}},[ve,Se]),dr=Ze!=="horizontal"||R?ke:ke.map(function(tn,ot){return u.createElement(Fs,{key:tn.key,overflowDisabled:ot>Qe},tn)}),yr=u.createElement(Uo,Re({id:S,ref:Ue,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:sc,className:ee(l,"".concat(l,"-root"),"".concat(l,"-").concat(Ze),d,G(G({},"".concat(l,"-inline-collapsed"),Ee),"".concat(l,"-rtl"),We),s),dir:y,style:c,role:"menu",tabIndex:p,data:dr,renderRawItem:function(ot){return ot},renderRawRest:function(ot){var et=ot.length,Jt=et?ke.slice(-et):null;return u.createElement(Vd,{eventKey:Ng,title:le,disabled:Ht,internalPopupClose:et===0,popupClassName:ce},Jt)},maxCount:Ze!=="horizontal"||R?Uo.INVALIDATE:Uo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ot){zt(ot)},onKeyDown:vr},Ne));return u.createElement($h.Provider,{value:Zn},u.createElement(Ww.Provider,{value:st},u.createElement(Fs,{prefixCls:l,rootClassName:s,mode:Ze,openKeys:je,rtl:We,disabled:$,motion:St?Y:null,defaultMotions:St?ne:null,activeKey:nt,onActive:wt,onInactive:Ft,selectedKeys:Ot,inlineIndent:F,subMenuOpenDelay:_,subMenuCloseDelay:T,forceSubMenuRender:N,builtinPlacements:fe,triggerSubMenuAction:re,getPopupContainer:he,itemIcon:me,expandIcon:ue,onItemClick:On,onOpenChange:hr},u.createElement(Xw.Provider,{value:qe},yr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(Gw.Provider,{value:Le},Ie)))))}),Ll=Ek;Ll.Item=sc;Ll.SubMenu=Vd;Ll.ItemGroup=Th;Ll.Divider=_h;var Rk={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"},Ok=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:Rk}))},Ik=u.forwardRef(Ok);const t2=u.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),_k=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}}},n2=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}},r2=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],o2=pn("Layout",_k,n2,{deprecatedTokens:r2}),Tk=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:v,lightSiderBg:y,lightTriggerColor:S,lightTriggerBg:C,bodyBg:b}=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(v)} ${Z(v)} 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(v)} 0 0 ${Z(v)}`}},"&-light":{background:y,[`${t}-trigger`]:{color:S,background:C},[`${t}-zero-width-trigger`]:{color:S,background:C,border:`1px solid ${b}`,borderInlineStart:0}}}}},Pk=pn(["Layout","Sider"],Tk,n2,{deprecatedTokens:r2});var Nk=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 T1={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},kk=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Wd=u.createContext({}),Mk=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),i2=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:v=80,zeroWidthTriggerStyle:y,breakpoint:S,onCollapse:C,onBreakpoint:b}=e,w=Nk(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:$}=u.useContext(t2),[R,O]=u.useState("collapsed"in e?e.collapsed:s),[_,I]=u.useState(!1);u.useEffect(()=>{"collapsed"in e&&O(e.collapsed)},[e.collapsed]);const T=(me,ue)=>{"collapsed"in e||O(me),C==null||C(me,ue)},{getPrefixCls:N,direction:P}=u.useContext(Et),k=N("layout-sider",n),[A,M,D]=Pk(k),B=u.useRef(null);B.current=me=>{I(me.matches),b==null||b(me.matches),R!==me.matches&&T(me.matches,"responsive")},u.useEffect(()=>{function me(Ce){var le;return(le=B.current)===null||le===void 0?void 0:le.call(B,Ce)}let ue;return typeof(window==null?void 0:window.matchMedia)<"u"&&S&&S in T1&&(ue=window.matchMedia(`screen and (max-width: ${T1[S]})`),Pw(ue,me),me(ue)),()=>{Nw(ue,me)}},[S]),u.useEffect(()=>{const me=Mk("ant-sider-");return $.addSider(me),()=>$.removeSider(me)},[]);const U=()=>{T(!R,"clickTrigger")},W=Xn(w,["collapsed"]),V=R?v:g,H=kk(V)?`${V}px`:String(V),Q=Number.parseFloat(String(v||0))===0?u.createElement("span",{onClick:U,className:ee(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${p?"right":"left"}`),style:y},o||u.createElement(Ik,null)):null,q=P==="rtl"==!p,Y={expanded:q?u.createElement(qo,null):u.createElement(Hs,null),collapsed:q?u.createElement(Hs,null):u.createElement(qo,null)}[R?"collapsed":"expanded"],ne=o!==null?Q||u.createElement("div",{className:`${k}-trigger`,onClick:U,style:{width:H}},o||Y):null,te=Object.assign(Object.assign({},d),{flex:`0 0 ${H}`,maxWidth:H,minWidth:H,width:H}),re=ee(k,`${k}-${c}`,{[`${k}-collapsed`]:!!R,[`${k}-has-trigger`]:m&&o!==null&&!Q,[`${k}-below`]:!!_,[`${k}-zero-width`]:Number.parseFloat(H)===0},r,M,D),fe=u.useMemo(()=>({siderCollapsed:R}),[R]);return A(u.createElement(Wd.Provider,{value:fe},u.createElement("aside",Object.assign({className:re},W,{style:te,ref:t}),u.createElement("div",{className:`${k}-children`},l),m||_&&Q?ne:null)))});var jk={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"},zk=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:jk}))},Ph=u.forwardRef(zk);const od=u.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Lk=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{prefixCls:t,className:n,dashed:r}=e,o=Lk(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=u.useContext(Et),s=l("menu",t),c=ee({[`${s}-item-divider-dashed`]:!!r},n);return u.createElement(_h,Object.assign({className:c},o))},l2=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:v}=u.useContext(od),y=R=>{const O=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 O=="string"?u.createElement("div",{className:`${d}-inline-collapsed-noicon`},O.charAt(0)):_},{siderCollapsed:S}=u.useContext(Wd);let C=l;typeof l>"u"?C=m?r:"":l===!1&&(C="");const b={title:C};!S&&!v&&(b.title=null,b.open=!1);const w=Mr(r).length;let $=u.createElement(sc,Object.assign({},Xn(e,["title","icon","danger"]),{className:ee({[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(o?w+1:w)===1},n),title:typeof l=="string"?l:void 0}),jr(o,{className:ee(u.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${d}-item-icon`)}),y(v));return g||($=u.createElement(di,Object.assign({},b,{placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),$)),$};var Ak=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 id=u.createContext(null),Bk=u.forwardRef((e,t)=>{const{children:n}=e,r=Ak(e,["children"]),o=u.useContext(id),l=u.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),s=a4(n),c=Xo(t,s?ba(n):null);return u.createElement(id.Provider,{value:l},u.createElement(ic,{space:!0},s?u.cloneElement(n,{ref:c}):n))}),Dk=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"}}}},Hk=({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)})`}}}}),P1=e=>Ol(e),N1=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:l,groupTitleColor:s,itemBg:c,subMenuItemBg:d,itemSelectedBg:m,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:v,motionDurationSlow:y,motionEaseInOut:S,motionEaseOut:C,itemPaddingInline:b,motionDurationMid:w,itemHoverColor:$,lineType:R,colorSplit:O,itemDisabledColor:_,dangerItemColor:I,dangerItemHoverColor:T,dangerItemSelectedColor:N,dangerItemActiveBg:P,dangerItemSelectedBg:k,popupBg:A,itemHoverBg:M,itemActiveBg:D,menuSubMenuBg:B,horizontalItemSelectedColor:U,horizontalItemSelectedBg:W,horizontalItemBorderRadius:V,horizontalItemHoverBg:H}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:c,[`&${n}-root:focus-visible`]:Object.assign({},P1(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({},P1(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:$}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:D}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:D}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:P}},[`${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:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:B},[`&${n}-popup > ${n}`]:{backgroundColor:A},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:A},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:V,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${Z(p)} solid transparent`,transition:`border-color ${y} ${S}`,content:'""'},"&:hover, &-active, &-open":{background:H,"&::after":{borderBottomWidth:p,borderBottomColor:U}},"&-selected":{color:U,backgroundColor:W,"&:hover":{backgroundColor:W},"&::after":{borderBottomWidth:p,borderBottomColor:U}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Z(v)} ${R} ${O}`}},[`&${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 ${w} ${C}`,`opacity ${w} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${S}`,`opacity ${w} ${S}`].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}}},Fk=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:v,paddingXS:y,boxShadowSecondary:S,collapsedWidth:C,collapsedIconSize:b}=e,w={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:S})}},{[`${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 ${v}`,`background ${v}`,`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`]:w,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:w}},{[`${t}-inline-collapsed`]:{width:C,[`&${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(b).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:b,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({},As),{paddingInline:y})}}]},M1=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({},Pl()),[`&${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"}}}},j1=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)})`}}}}},Vk=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:v,subMenuItemBorderRadius:y,menuArrowSize:S,menuArrowOffset:C,lineType:b,groupTitleLineHeight:w,groupTitleFontSize:$}=e;return[{"":{[n]:Object.assign(Object.assign({},Gu()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(e)),Gu()),{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:$,lineHeight:w,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:b,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),M1(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:v,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:v},M1(e)),j1(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}}}),j1(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
261
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Z(C)})`},"&::after":{transform:`rotate(45deg) translateX(${Z(e.calc(C).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Z(e.calc(S).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Z(e.calc(C).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Z(C)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Wk=e=>{var t,n,r;const{colorPrimary:o,colorError:l,colorTextDisabled:s,colorErrorBg:c,colorText:d,colorTextDescription:m,colorBgContainer:p,colorFillAlter:g,colorFillContent:v,lineWidth:y,lineWidthBold:S,controlItemBgActive:C,colorBgTextHover:b,controlHeightLG:w,lineHeight:$,colorBgElevated:R,marginXXS:O,padding:_,fontSize:I,controlHeightSM:T,fontSizeLG:N,colorTextLightSolid:P,colorErrorHover:k}=e,A=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:y,D=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,B=new cn(P).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:b,itemHoverBg:b,colorItemBgActive:v,itemActiveBg:C,colorSubItemBg:g,subMenuItemBg:g,colorItemBgSelected:C,itemSelectedBg:C,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:A,colorActiveBarHeight:S,activeBarHeight:S,colorActiveBarBorderSize:y,activeBarBorderWidth:M,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:w,groupTitleLineHeight:$,collapsedWidth:w*2,popupBg:R,itemMarginBlock:O,itemPaddingInline:_,horizontalLineHeight:`${w*1.15}px`,iconSize:I,iconMarginInlineEnd:T-I,collapsedIconSize:N,groupTitleFontSize:I,darkItemDisabledColor:new cn(P).setA(.25).toRgbString(),darkItemColor:B,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:B,darkItemHoverColor:P,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:l,itemWidth:A?`calc(100% + ${M}px)`:`calc(100% - ${D*2}px)`}},qk=(e,t=e,n=!0)=>pn("Menu",o=>{const{colorBgElevated:l,controlHeightLG:s,fontSize:c,darkItemColor:d,darkDangerItemColor:m,darkItemBg:p,darkSubMenuItemBg:g,darkItemSelectedColor:v,darkItemSelectedBg:y,darkDangerItemSelectedBg:S,darkItemHoverBg:C,darkGroupTitleColor:b,darkItemHoverColor:w,darkItemDisabledColor:$,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:_,popupBg:I,darkPopupBg:T}=o,N=o.calc(c).div(7).mul(5).equal(),P=Xt(o,{menuArrowSize:N,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(N).mul(.25).equal(),menuSubMenuBg:l,calc:o.calc,popupBg:I}),k=Xt(P,{itemColor:d,itemHoverColor:w,groupTitleColor:b,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:p,popupBg:T,subMenuItemBg:g,itemActiveBg:"transparent",itemSelectedBg:y,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:C,itemDisabledColor:$,dangerItemColor:m,dangerItemHoverColor:R,dangerItemSelectedColor:O,dangerItemActiveBg:_,dangerItemSelectedBg:S,menuSubMenuBg:g,horizontalItemSelectedColor:v,horizontalItemSelectedBg:y});return[Vk(P),Dk(P),Fk(P),N1(P,"light"),N1(k,"dark"),Hk(P),Ex(P),Ui(P,"slide-up"),Ui(P,"slide-down"),tc(P,"zoom-big")]},Wk,{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),s2=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:l}=e,s=u.useContext(od),{prefixCls:c,inlineCollapsed:d,theme:m}=s,p=zl();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 S=u.isValidElement(o)&&o.type==="span";g=u.createElement(u.Fragment,null,jr(r,{className:ee(u.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),S?o:u.createElement("span",{className:`${c}-title-content`},o))}const v=u.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[y]=kl("Menu");return u.createElement(od.Provider,{value:v},u.createElement(Vd,Object.assign({},Xn(e,["icon"]),{title:g,popupClassName:ee(c,n,`${c}-${l||m}`),popupStyle:Object.assign({zIndex:y},e.popupStyle)})))};var Uk=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 pp(e){return e===null||e===!1}const Gk={item:l2,submenu:s2,divider:a2},Kk=u.forwardRef((e,t)=>{var n;const r=u.useContext(id),o=r||{},{getPrefixCls:l,getPopupContainer:s,direction:c,menu:d}=u.useContext(Et),m=l(),{prefixCls:p,className:g,style:v,theme:y="light",expandIcon:S,_internalDisableMenuItemTitleTooltip:C,inlineCollapsed:b,siderCollapsed:w,rootClassName:$,mode:R,selectable:O,onClick:_,overflowedIndicatorPopupClassName:I}=e,T=Uk(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=Xn(T,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:R});const P=Bn((...F)=>{var Y;_==null||_.apply(void 0,F),(Y=o.onClick)===null||Y===void 0||Y.call(o)}),k=o.mode||R,A=O??o.selectable,M=b??w,D={horizontal:{motionName:`${m}-slide-up`},inline:vx(m),other:{motionName:`${m}-zoom-big`}},B=l("menu",p||o.prefixCls),U=gi(B),[W,V,H]=qk(B,U,!r),Q=ee(`${B}-${y}`,d==null?void 0:d.className,g),q=u.useMemo(()=>{var F,Y;if(typeof S=="function"||pp(S))return S||null;if(typeof o.expandIcon=="function"||pp(o.expandIcon))return o.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||pp(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const ne=(F=S??(o==null?void 0:o.expandIcon))!==null&&F!==void 0?F:d==null?void 0:d.expandIcon;return jr(ne,{className:ee(`${B}-submenu-expand-icon`,u.isValidElement(ne)?(Y=ne.props)===null||Y===void 0?void 0:Y.className:void 0)})},[S,o==null?void 0:o.expandIcon,d==null?void 0:d.expandIcon,B]),z=u.useMemo(()=>({prefixCls:B,inlineCollapsed:M||!1,direction:c,firstLevel:!0,theme:y,mode:k,disableMenuItemTitleTooltip:C}),[B,M,c,C,y]);return W(u.createElement(id.Provider,{value:null},u.createElement(od.Provider,{value:z},u.createElement(Ll,Object.assign({getPopupContainer:s,overflowedIndicator:u.createElement(Ph,null),overflowedIndicatorPopupClassName:ee(B,`${B}-${y}`,I),mode:k,selectable:A,onClick:P},N,{inlineCollapsed:M,style:Object.assign(Object.assign({},d==null?void 0:d.style),v),className:Q,prefixCls:B,direction:c,defaultMotions:D,expandIcon:q,ref:t,rootClassName:ee($,V,o.rootClassName,H,U),_internalComponents:Gk})))))}),cc=u.forwardRef((e,t)=>{const n=u.useRef(null),r=u.useContext(Wd);return u.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var l;(l=n.current)===null||l===void 0||l.focus(o)}})),u.createElement(Kk,Object.assign({ref:n},e,r))});cc.Item=l2;cc.SubMenu=s2;cc.Divider=a2;cc.ItemGroup=Th;const Xk=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}}}}}},Yk=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:v,fontSizeIcon:y,controlPaddingHorizontal:S,colorBgElevated:C}=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:ch},[`&${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:dh},[`&${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:uh},[`&${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:fh}}},wh(e,C,{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({},Fn(e)),{[n]:Object.assign(Object.assign({padding:g,listStyleType:"none",backgroundColor:C,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},xo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Z(m)} ${Z(S)}`,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(S)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},xo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:C,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(S).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:C,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Ui(e,"slide-up"),Ui(e,"slide-down"),Ju(e,"move-up"),Ju(e,"move-down"),tc(e,"zoom-big")]]},Qk=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Dd({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),xh(e)),Jk=pn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,l=Xt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Yk(l),Xk(l)]},Qk,{resetStyle:!1}),qd=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:v,overlayStyle:y,open:S,onOpenChange:C,visible:b,onVisibleChange:w,mouseEnterDelay:$=.15,mouseLeaveDelay:R=.1,autoAdjustOverflow:O=!0,placement:_="",overlay:I,transitionName:T,destroyOnHidden:N,destroyPopupOnHide:P}=e,{getPopupContainer:k,getPrefixCls:A,direction:M,dropdown:D}=u.useContext(Et),B=m||d;Cd();const U=u.useMemo(()=>{const ve=A();return T!==void 0?T:_.includes("top")?`${ve}-slide-down`:`${ve}-slide-up`},[A,_,T]),W=u.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:M==="rtl"?"bottomRight":"bottomLeft",[_,M]),V=A("dropdown",o),H=gi(V),[Q,q,z]=Jk(V,H),[,F]=zr(),Y=u.Children.only(WN(l)?u.createElement("span",null,l):l),ne=jr(Y,{className:ee(`${V}-trigger`,{[`${V}-rtl`]:M==="rtl"},Y.props.className),disabled:(t=Y.props.disabled)!==null&&t!==void 0?t:c}),te=c?[]:s,re=!!(te!=null&&te.includes("contextMenu")),[fe,me]=Hn(!1,{value:S??b}),ue=Bn(ve=>{C==null||C(ve,{source:"trigger"}),w==null||w(ve),me(ve)}),Ce=ee(g,v,q,z,H,D==null?void 0:D.className,{[`${V}-rtl`]:M==="rtl"}),le=Mw({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:O,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),ce=Bn(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(C==null||C(!1,{source:"menu"}),me(!1))}),he=()=>{let ve;return n!=null&&n.items?ve=u.createElement(cc,Object.assign({},n)):typeof I=="function"?ve=I():ve=I,B&&(ve=B(ve)),ve=u.Children.only(typeof ve=="string"?u.createElement("span",null,ve):ve),u.createElement(Bk,{prefixCls:`${V}-menu`,rootClassName:ee(z,H),expandIcon:u.createElement("span",{className:`${V}-menu-submenu-arrow`},M==="rtl"?u.createElement(Hs,{className:`${V}-menu-submenu-arrow-icon`}):u.createElement(qo,{className:`${V}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:Se})=>{}},ve)},[ye,de]=kl("Dropdown",y==null?void 0:y.zIndex);let se=u.createElement(Vw,Object.assign({alignPoint:re},Xn(e,["rootClassName"]),{mouseEnterDelay:$,mouseLeaveDelay:R,visible:fe,builtinPlacements:le,arrow:!!r,overlayClassName:Ce,prefixCls:V,getPopupContainer:p||k,transitionName:U,trigger:te,overlay:he,placement:W,onVisibleChange:ue,overlayStyle:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),y),{zIndex:ye}),autoDestroy:N??P}),ne);return ye&&(se=u.createElement(Js.Provider,{value:de},se)),Q(se)},Zk=aw(qd,"align",void 0,"dropdown",e=>e),eM=e=>u.createElement(Zk,Object.assign({},e),u.createElement("span",null));qd._InternalPanelDoNotUseOrYouWillBeFired=eM;function Ud(e){return Xt(e,{inputAffixPadding:e.paddingXXS})}const Gd=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:v,colorPrimaryHover:y,colorPrimary:S,controlOutlineWidth:C,controlOutline:b,colorErrorOutline:w,colorWarningOutline:$,colorBgContainer:R,inputFontSize:O,inputFontSizeLG:_,inputFontSizeSM:I}=e,T=O||n,N=I||T,P=_||c,k=Math.round((t-T*r)/2*10)/10-o,A=Math.round((l-N*r)/2*10)/10-o,M=Math.ceil((s-P*d)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(A,0),paddingBlockLG:Math.max(M,0),paddingInline:m-o,paddingInlineSM:p-o,paddingInlineLG:g-o,addonBg:v,activeBorderColor:S,hoverBorderColor:y,activeShadow:`0 0 0 ${C}px ${b}`,errorActiveShadow:`0 0 0 ${C}px ${w}`,warningActiveShadow:`0 0 0 ${C}px ${$}`,hoverBg:R,activeBg:R,inputFontSize:T,inputFontSizeLG:P,inputFontSizeSM:N}},tM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Kd=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({},tM(Xt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Nh=(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}}),z1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Nh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),nM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nh(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kd(e))}),z1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),z1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),L1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),rM=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}}},L1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),L1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Kd(e))}})}),oM=(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)}},c2=(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}}},A1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},c2(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),iM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Kd(e))}),A1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),A1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),B1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),aM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},B1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),B1(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}`}}}})}),u2=(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}}),D1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},u2(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`}}),lM=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u2(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"}}),D1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),D1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),d2=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},kh=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Mh=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}`},sM(e.colorTextPlaceholder)),{"&-lg":Object.assign({},d2(e)),"&-sm":Object.assign({},kh(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),cM=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({},d2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},kh(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"},Gu()),{[`${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}}}})}},uM=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({},Fn(e)),Mh(e)),nM(e)),iM(e)),oM(e)),lM(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"}})}},dM=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)}`}}}},fM=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({},Mh(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}}}),dM(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}}}}},mM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Fn(e)),cM(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}}},rM(e)),aM(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}}})})}},pM=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}}}}},gM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},hM=pn(["Input","Shared"],e=>{const t=Xt(e,Ud(e));return[uM(t),fM(t)]},Gd,{resetFont:!1});pn(["Input","Component"],e=>{const t=Xt(e,Ud(e));return[mM(t),pM(t),gM(t),kd(t)]},Gd,{resetFont:!1});var vM={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"},yM=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:vM}))},bM=u.forwardRef(yM);const Xd=u.createContext(null);var CM=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=ae(p,2),v=g[0],y=g[1],S=u.useRef(),C=J.useCallback(function(w){return typeof c=="function"?c(w):typeof c=="number"?c:w},[c]);function b(){$n.cancel(S.current)}return u.useEffect(function(){var w={};if(n)if(r){w.width=C(n.width);var $=o?"right":"left";m==="start"&&(w[$]=n[$]),m==="center"&&(w[$]=n[$]+n.width/2,w.transform=o?"translateX(50%)":"translateX(-50%)"),m==="end"&&(w[$]=n[$]+n.width,w.transform="translateX(-100%)")}else w.height=C(n.height),m==="start"&&(w.top=n.top),m==="center"&&(w.top=n.top+n.height/2,w.transform="translateY(-50%)"),m==="end"&&(w.top=n.top+n.height,w.transform="translateY(-100%)");return b(),S.current=$n(function(){var R=v&&w&&Object.keys(w).every(function(O){var _=w[O],I=v[O];return typeof _=="number"&&typeof I=="number"?Math.round(_)===Math.round(I):_===I});R||y(w)}),b},[JSON.stringify(n),r,o,m,C]),{style:v}},H1={width:0,height:0,left:0,top:0};function SM(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)||H1,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)||H1}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 F1(e,t){var n=u.useRef(e),r=u.useState({}),o=ae(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 xM=.1,V1=.01,Bu=20,W1=Math.pow(.995,Bu);function wM(e,t){var n=u.useState(),r=ae(n,2),o=r[0],l=r[1],s=u.useState(0),c=ae(s,2),d=c[0],m=c[1],p=u.useState(0),g=ae(p,2),v=g[0],y=g[1],S=u.useState(),C=ae(S,2),b=C[0],w=C[1],$=u.useRef();function R(P){var k=P.touches[0],A=k.screenX,M=k.screenY;l({x:A,y:M}),window.clearInterval($.current)}function O(P){if(o){var k=P.touches[0],A=k.screenX,M=k.screenY;l({x:A,y:M});var D=A-o.x,B=M-o.y;t(D,B);var U=Date.now();m(U),y(U-d),w({x:D,y:B})}}function _(){if(o&&(l(null),w(null),b)){var P=b.x/v,k=b.y/v,A=Math.abs(P),M=Math.abs(k);if(Math.max(A,M)<xM)return;var D=P,B=k;$.current=window.setInterval(function(){if(Math.abs(D)<V1&&Math.abs(B)<V1){window.clearInterval($.current);return}D*=W1,B*=W1,t(D*Bu,B*Bu)},Bu)}}var I=u.useRef();function T(P){var k=P.deltaX,A=P.deltaY,M=0,D=Math.abs(k),B=Math.abs(A);D===B?M=I.current==="x"?k:A:D>B?(M=k,I.current="x"):(M=A,I.current="y"),t(-M,-M)&&P.preventDefault()}var N=u.useRef(null);N.current={onTouchStart:R,onTouchMove:O,onTouchEnd:_,onWheel:T},u.useEffect(function(){function P(D){N.current.onTouchStart(D)}function k(D){N.current.onTouchMove(D)}function A(D){N.current.onTouchEnd(D)}function M(D){N.current.onWheel(D)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",A)}},[])}function f2(e){var t=u.useState(0),n=ae(t,2),r=n[0],o=n[1],l=u.useRef(0),s=u.useRef();return s.current=e,Bp(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 $M(e){var t=u.useRef([]),n=u.useState({}),r=ae(n,2),o=r[1],l=u.useRef(typeof e=="function"?e():e),s=f2(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 q1={width:0,height:0,left:0,top:0,right:0};function EM(e,t,n,r,o,l,s){var c=s.tabs,d=s.tabPosition,m=s.rtl,p,g,v;return["top","bottom"].includes(d)?(p="width",g=m?"right":"left",v=Math.abs(n)):(p="height",g="top",v=-n),u.useMemo(function(){if(!c.length)return[0,0];for(var y=c.length,S=y,C=0;C<y;C+=1){var b=e.get(c[C].key)||q1;if(Math.floor(b[g]+b[p])>Math.floor(v+t)){S=C-1;break}}for(var w=0,$=y-1;$>=0;$-=1){var R=e.get(c[$].key)||q1;if(R[g]<v){w=$+1;break}}return w>S?[0,-1]:[w,S]},[e,t,r,o,l,v,d,c.map(function(y){return y.key}).join("_"),m])}function U1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var RM="TABS_DQ";function m2(e){return String(e).replace(/"/g,RM)}function jh(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var p2=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||"+")}),G1=u.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var l,s={};return gt(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}),OM=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,v=e.tabBarGutter,y=e.rtl,S=e.removeAriaLabel,C=e.onTabClick,b=e.getPopupContainer,w=e.popupClassName,$=u.useState(!1),R=ae($,2),O=R[0],_=R[1],I=u.useState(null),T=ae(I,2),N=T[0],P=T[1],k=d.icon,A=k===void 0?"More":k,M="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),B=N!==null?"".concat(M,"-").concat(N):null,U=l==null?void 0:l.dropdownAriaLabel;function W(Y,ne){Y.preventDefault(),Y.stopPropagation(),g.onEdit("remove",{key:ne,event:Y})}var V=u.createElement(Ll,{onClick:function(ne){var te=ne.key,re=ne.domEvent;C(te,re),_(!1)},prefixCls:"".concat(D,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":B,selectedKeys:[N],"aria-label":U!==void 0?U:"expanded dropdown"},o.map(function(Y){var ne=Y.closable,te=Y.disabled,re=Y.closeIcon,fe=Y.key,me=Y.label,ue=jh(ne,re,g,te);return u.createElement(sc,{key:fe,id:"".concat(M,"-").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":S||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),W(le,fe)}},re||g.removeIcon||"×"))}));function H(Y){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+Y+re)%re;var me=ne[te];if(!me.disabled){P(me.key);return}}}function Q(Y){var ne=Y.which;if(!O){[Ve.DOWN,Ve.SPACE,Ve.ENTER].includes(ne)&&(_(!0),Y.preventDefault());return}switch(ne){case Ve.UP:H(-1),Y.preventDefault();break;case Ve.DOWN:H(1),Y.preventDefault();break;case Ve.ESC:_(!1);break;case Ve.SPACE:case Ve.ENTER:N!==null&&C(N,Y);break}}u.useEffect(function(){var Y=document.getElementById(B);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[N]),u.useEffect(function(){O||P(null)},[O]);var q=G({},y?"marginRight":"marginLeft",v);o.length||(q.visibility="hidden",q.order=1);var z=ee(G({},"".concat(D,"-rtl"),y)),F=s?null:u.createElement(Vw,Re({prefixCls:D,overlay:V,visible:o.length?O:!1,onVisibleChange:_,overlayClassName:ee(z,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:b},d),u.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:q,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:Q},A));return u.createElement("div",{className:ee("".concat(n,"-nav-operations"),p),style:m,ref:t},F,u.createElement(p2,{prefixCls:n,locale:l,editable:g}))});const IM=u.memo(OM,function(e,t){return t.tabMoving});var _M=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,v=t.closable,y=t.renderWrapper,S=t.removeAriaLabel,C=t.editable,b=t.onClick,w=t.onFocus,$=t.onBlur,R=t.onKeyDown,O=t.onMouseDown,_=t.onMouseUp,I=t.style,T=t.tabCount,N=t.currentPosition,P="".concat(n,"-tab"),k=jh(v,p,C,m);function A(W){m||b(W)}function M(W){W.preventDefault(),W.stopPropagation(),C.onEdit("remove",{key:c,event:W})}var D=u.useMemo(function(){return g&&typeof d=="string"?u.createElement("span",null,d):d},[d,g]),B=u.useRef(null);u.useEffect(function(){l&&B.current&&B.current.focus()},[l]);var U=u.createElement("div",{key:c,"data-node-key":m2(c),className:ee(P,G(G(G(G({},"".concat(P,"-with-remove"),k),"".concat(P,"-active"),o),"".concat(P,"-disabled"),m),"".concat(P,"-focus"),l)),style:I,onClick:A},u.createElement("div",{ref:B,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(c),className:"".concat(P,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(c),"aria-disabled":m,tabIndex:m?null:o?0:-1,onClick:function(V){V.stopPropagation(),A(V)},onKeyDown:R,onMouseDown:O,onMouseUp:_,onFocus:w,onBlur:$},l&&u.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(N," of ").concat(T)),g&&u.createElement("span",{className:"".concat(P,"-icon")},g),d&&D),k&&u.createElement("button",{type:"button",role:"tab","aria-label":S||"remove",tabIndex:o?0:-1,className:"".concat(P,"-remove"),onClick:function(V){V.stopPropagation(),M(V)}},p||C.removeIcon||"×"));return y?y(U):U},TM=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]},il=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]},bu=function(t,n){return t[n?0:1]},K1=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,v=e.tabBarGutter,y=e.children,S=e.onTabClick,C=e.onTabScroll,b=e.indicator,w=u.useContext(Xd),$=w.prefixCls,R=w.tabs,O=u.useRef(null),_=u.useRef(null),I=u.useRef(null),T=u.useRef(null),N=u.useRef(null),P=u.useRef(null),k=u.useRef(null),A=g==="top"||g==="bottom",M=F1(0,function(nt,Ke){A&&C&&C({direction:nt>Ke?"left":"right"})}),D=ae(M,2),B=D[0],U=D[1],W=F1(0,function(nt,Ke){!A&&C&&C({direction:nt>Ke?"top":"bottom"})}),V=ae(W,2),H=V[0],Q=V[1],q=u.useState([0,0]),z=ae(q,2),F=z[0],Y=z[1],ne=u.useState([0,0]),te=ae(ne,2),re=te[0],fe=te[1],me=u.useState([0,0]),ue=ae(me,2),Ce=ue[0],le=ue[1],ce=u.useState([0,0]),he=ae(ce,2),ye=he[0],de=he[1],se=$M(new Map),ve=ae(se,2),Se=ve[0],Oe=ve[1],Ne=SM(R,Se,re[0]),we=bu(F,A),$e=bu(re,A),ke=bu(Ce,A),Ie=bu(ye,A),Ge=Math.floor(we)<Math.floor($e+ke),tt=Ge?we-Ie:we-ke,St="".concat($,"-nav-operations-hidden"),ut=0,Ue=0;A&&c?(ut=0,Ue=Math.max(0,$e-tt)):(ut=Math.min(0,tt-$e),Ue=0);function st(nt){return nt<ut?ut:nt>Ue?Ue:nt}var We=u.useRef(null),mt=u.useState(),Ye=ae(mt,2),je=Ye[0],Je=Ye[1];function Pe(){Je(Date.now())}function He(){We.current&&clearTimeout(We.current)}wM(T,function(nt,Ke){function wt(Ft,Fe){Ft(function(ft){var Ot=st(ft+Fe);return Ot})}return Ge?(A?wt(U,nt):wt(Q,Ke),He(),Pe(),!0):!1}),u.useEffect(function(){return He(),je&&(We.current=setTimeout(function(){Je(0)},100)),He},[je]);var Rt=EM(Ne,tt,A?B:H,$e,ke,Ie,K(K({},e),{},{tabs:R})),ht=ae(Rt,2),Gt=ht[0],qt=ht[1],dn=Bn(function(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Ke=Ne.get(nt)||{width:0,height:0,left:0,right:0,top:0};if(A){var wt=B;c?Ke.right<B?wt=Ke.right:Ke.right+Ke.width>B+tt&&(wt=Ke.right+Ke.width-tt):Ke.left<-B?wt=-Ke.left:Ke.left+Ke.width>-B+tt&&(wt=-(Ke.left+Ke.width-tt)),Q(0),U(st(wt))}else{var Ft=H;Ke.top<-H?Ft=-Ke.top:Ke.top+Ke.height>-H+tt&&(Ft=-(Ke.top+Ke.height-tt)),U(0),Q(st(Ft))}}),Sn=u.useState(),Yt=ae(Sn,2),jt=Yt[0],xt=Yt[1],Qt=u.useState(!1),Vt=ae(Qt,2),Ze=Vt[0],Ct=Vt[1],ct=R.filter(function(nt){return!nt.disabled}).map(function(nt){return nt.key}),_e=function(Ke){var wt=ct.indexOf(jt||s),Ft=ct.length,Fe=(wt+Ke+Ft)%Ft,ft=ct[Fe];xt(ft)},Ee=function(Ke,wt){var Ft=ct.indexOf(Ke),Fe=R.find(function(Ot){return Ot.key===Ke}),ft=jh(Fe==null?void 0:Fe.closable,Fe==null?void 0:Fe.closeIcon,m,Fe==null?void 0:Fe.disabled);ft&&(wt.preventDefault(),wt.stopPropagation(),m.onEdit("remove",{key:Ke,event:wt}),Ft===ct.length-1?_e(-1):_e(1))},xe=function(Ke,wt){Ct(!0),wt.button===1&&Ee(Ke,wt)},ze=function(Ke){var wt=Ke.code,Ft=c&&A,Fe=ct[0],ft=ct[ct.length-1];switch(wt){case"ArrowLeft":{A&&_e(Ft?1:-1);break}case"ArrowRight":{A&&_e(Ft?-1:1);break}case"ArrowUp":{Ke.preventDefault(),A||_e(-1);break}case"ArrowDown":{Ke.preventDefault(),A||_e(1);break}case"Home":{Ke.preventDefault(),xt(Fe);break}case"End":{Ke.preventDefault(),xt(ft);break}case"Enter":case"Space":{Ke.preventDefault(),S(jt??s,Ke);break}case"Backspace":case"Delete":{Ee(jt,Ke);break}}},Xe={};A?Xe[c?"marginRight":"marginLeft"]=v:Xe.marginTop=v;var Qe=R.map(function(nt,Ke){var wt=nt.key;return u.createElement(_M,{id:o,prefixCls:$,key:wt,tab:nt,style:Ke===0?void 0:Xe,closable:nt.closable,editable:m,active:wt===s,focus:wt===jt,renderWrapper:y,removeAriaLabel:p==null?void 0:p.removeAriaLabel,tabCount:ct.length,currentPosition:Ke+1,onClick:function(Fe){S(wt,Fe)},onKeyDown:ze,onFocus:function(){Ze||xt(wt),dn(wt),Pe(),T.current&&(c||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){xt(void 0)},onMouseDown:function(Fe){return xe(wt,Fe)},onMouseUp:function(){Ct(!1)}})}),zt=function(){return Oe(function(){var Ke,wt=new Map,Ft=(Ke=N.current)===null||Ke===void 0?void 0:Ke.getBoundingClientRect();return R.forEach(function(Fe){var ft,Ot=Fe.key,ln=(ft=N.current)===null||ft===void 0?void 0:ft.querySelector('[data-node-key="'.concat(m2(Ot),'"]'));if(ln){var Vn=TM(ln,Ft),On=ae(Vn,4),hr=On[0],Jn=On[1],vr=On[2],Zn=On[3];wt.set(Ot,{width:hr,height:Jn,left:vr,top:Zn})}}),wt})};u.useEffect(function(){zt()},[R.map(function(nt){return nt.key}).join("_")]);var Ht=f2(function(){var nt=il(O),Ke=il(_),wt=il(I);Y([nt[0]-Ke[0]-wt[0],nt[1]-Ke[1]-wt[1]]);var Ft=il(k);le(Ft);var Fe=il(P);de(Fe);var ft=il(N);fe([ft[0]-Ft[0],ft[1]-Ft[1]]),zt()}),Tt=R.slice(0,Gt),Pt=R.slice(qt+1),bn=[].concat(Be(Tt),Be(Pt)),hn=Ne.get(s),xn=CM({activeTabOffset:hn,horizontal:A,indicator:b,rtl:c}),Tn=xn.style;u.useEffect(function(){dn()},[s,ut,Ue,U1(hn),U1(Ne),A]),u.useEffect(function(){Ht()},[c]);var Zt=!!bn.length,on="".concat($,"-nav-wrap"),Le,qe,$t,dt;return A?c?(qe=B>0,Le=B!==Ue):(Le=B<0,qe=B!==ut):($t=H<0,dt=H!==ut),u.createElement(Co,{onResize:Ht},u.createElement("div",{ref:Xo(t,O),role:"tablist","aria-orientation":A?"horizontal":"vertical",className:ee("".concat($,"-nav"),n),style:r,onKeyDown:function(){Pe()}},u.createElement(G1,{ref:_,position:"left",extra:d,prefixCls:$}),u.createElement(Co,{onResize:Ht},u.createElement("div",{className:ee(on,G(G(G(G({},"".concat(on,"-ping-left"),Le),"".concat(on,"-ping-right"),qe),"".concat(on,"-ping-top"),$t),"".concat(on,"-ping-bottom"),dt)),ref:T},u.createElement(Co,{onResize:Ht},u.createElement("div",{ref:N,className:"".concat($,"-nav-list"),style:{transform:"translate(".concat(B,"px, ").concat(H,"px)"),transition:je?"none":void 0}},Qe,u.createElement(p2,{ref:k,prefixCls:$,locale:p,editable:m,style:K(K({},Qe.length===0?void 0:Xe),{},{visibility:Zt?"hidden":null})}),u.createElement("div",{className:ee("".concat($,"-ink-bar"),G({},"".concat($,"-ink-bar-animated"),l.inkBar)),style:Tn}))))),u.createElement(IM,Re({},e,{removeAriaLabel:p==null?void 0:p.removeAriaLabel,ref:P,prefixCls:$,tabs:bn,className:!Zt&&St,tabMoving:!!je})),u.createElement(G1,{ref:I,position:"right",extra:d,prefixCls:$})))}),g2=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)}),PM=["renderTabBar"],NM=["label","key"],kM=function(t){var n=t.renderTabBar,r=kt(t,PM),o=u.useContext(Xd),l=o.tabs;if(n){var s=K(K({},r),{},{panes:l.map(function(c){var d=c.label,m=c.key,p=kt(c,NM);return u.createElement(g2,Re({tab:d,key:m,tabKey:m},p))})});return n(s,K1)}return u.createElement(K1,r)},MM=["key","forceRender","style","className","destroyInactiveTabPane"],jM=function(t){var n=t.id,r=t.activeKey,o=t.animated,l=t.tabPosition,s=t.destroyInactiveTabPane,c=u.useContext(Xd),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(v){var y=v.key,S=v.forceRender,C=v.style,b=v.className,w=v.destroyInactiveTabPane,$=kt(v,MM),R=y===r;return u.createElement(ro,Re({key:y,visible:R,forceRender:S,removeOnLeave:!!(s||w),leavedClassName:"".concat(g,"-hidden")},o.tabPaneMotion),function(O,_){var I=O.style,T=O.className;return u.createElement(g2,Re({},$,{prefixCls:g,id:n,tabKey:y,animated:p,active:R,style:K(K({},C),I),className:ee(b,T),ref:_}))})})))};function zM(){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},gt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var LM=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],X1=0,AM=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,v=e.tabPosition,y=v===void 0?"top":v,S=e.tabBarGutter,C=e.tabBarStyle,b=e.tabBarExtraContent,w=e.locale,$=e.more,R=e.destroyInactiveTabPane,O=e.renderTabBar,_=e.onChange,I=e.onTabClick,T=e.onTabScroll,N=e.getPopupContainer,P=e.popupClassName,k=e.indicator,A=kt(e,LM),M=u.useMemo(function(){return(s||[]).filter(function(ye){return ye&>(ye)==="object"&&"key"in ye})},[s]),D=c==="rtl",B=zM(g),U=u.useState(!1),W=ae(U,2),V=W[0],H=W[1];u.useEffect(function(){H(gh())},[]);var Q=Hn(function(){var ye;return(ye=M[0])===null||ye===void 0?void 0:ye.key},{value:d,defaultValue:m}),q=ae(Q,2),z=q[0],F=q[1],Y=u.useState(function(){return M.findIndex(function(ye){return ye.key===z})}),ne=ae(Y,2),te=ne[0],re=ne[1];u.useEffect(function(){var ye=M.findIndex(function(se){return se.key===z});if(ye===-1){var de;ye=Math.max(0,Math.min(te,M.length-1)),F((de=M[ye])===null||de===void 0?void 0:de.key)}re(ye)},[M.map(function(ye){return ye.key}).join("_"),z,te]);var fe=Hn(null,{value:n}),me=ae(fe,2),ue=me[0],Ce=me[1];u.useEffect(function(){n||(Ce("rc-tabs-".concat(X1)),X1+=1)},[]);function le(ye,de){I==null||I(ye,de);var se=ye!==z;F(ye),se&&(_==null||_(ye))}var ce={id:ue,activeKey:z,animated:B,tabPosition:y,rtl:D,mobile:V},he=K(K({},ce),{},{editable:p,locale:w,more:$,tabBarGutter:S,onTabClick:le,onTabScroll:T,extra:b,style:C,panes:null,getPopupContainer:N,popupClassName:P,indicator:k});return u.createElement(Xd.Provider,{value:{tabs:M,prefixCls:o}},u.createElement("div",Re({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)},A),u.createElement(kM,Re({},he,{renderTabBar:O})),u.createElement(jM,Re({destroyInactiveTabPane:R},ce,{animated:B}))))});const BM={motionAppear:!1,motionEnter:!0,motionLeave:!0};function DM(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({},BM),{motionName:Go(e,"switch")})),n}var HM=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 FM(e){return e.filter(t=>t)}function VM(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=HM(s,["tab"]);return Object.assign(Object.assign({key:String(o)},d),{label:c})}return null});return FM(n)}const WM=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}`}}}}},[Ui(e,"slide-up"),Ui(e,"slide-down")]]},qM=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)`]:Ol(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}}}}}}},UM=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Fn(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({},As),{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"}}})}})}},GM=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}}}}}},KM=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}}}}}},XM=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}},xo(e)),"&:hover":{color:r},[`&${m}-active ${m}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${m}-focus ${m}-btn:focus-visible`]:Ol(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}}}},YM=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"}}}}},QM=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({},Fn(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}},xo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),XM(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},xo(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"}}}}}},JM=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}},ZM=pn("Tabs",e=>{const t=Xt(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[KM(t),YM(t),GM(t),UM(t),qM(t),QM(t),WM(t)]},JM),ej=()=>null;var tj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nj=u.forwardRef((e,t)=>{var n,r,o,l,s,c,d,m,p,g,v;const{type:y,className:S,rootClassName:C,size:b,onEdit:w,hideAdd:$,centered:R,addIcon:O,removeIcon:_,moreIcon:I,more:T,popupClassName:N,children:P,items:k,animated:A,style:M,indicatorSize:D,indicator:B,destroyInactiveTabPane:U,destroyOnHidden:W}=e,V=tj(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:H}=V,{direction:Q,tabs:q,getPrefixCls:z,getPopupContainer:F}=u.useContext(Et),Y=z("tabs",H),ne=gi(Y),[te,re,fe]=ZM(Y,ne),me=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:me.current}));let ue;y==="editable-card"&&(ue={onEdit:(se,{key:ve,event:Se})=>{w==null||w(se==="add"?Se:ve,se)},removeIcon:(n=_??(q==null?void 0:q.removeIcon))!==null&&n!==void 0?n:u.createElement(qi,null),addIcon:(O??(q==null?void 0:q.addIcon))||u.createElement(bM,null),showAdd:$!==!0});const Ce=z(),le=Qo(b),ce=VM(k,P),he=DM(Y,A),ye=Object.assign(Object.assign({},q==null?void 0:q.style),M),de={align:(r=B==null?void 0:B.align)!==null&&r!==void 0?r:(o=q==null?void 0:q.indicator)===null||o===void 0?void 0:o.align,size:(d=(s=(l=B==null?void 0:B.size)!==null&&l!==void 0?l:D)!==null&&s!==void 0?s:(c=q==null?void 0:q.indicator)===null||c===void 0?void 0:c.size)!==null&&d!==void 0?d:q==null?void 0:q.indicatorSize};return te(u.createElement(AM,Object.assign({ref:me,direction:Q,getPopupContainer:F},V,{items:ce,className:ee({[`${Y}-${le}`]:le,[`${Y}-card`]:["card","editable-card"].includes(y),[`${Y}-editable-card`]:y==="editable-card",[`${Y}-centered`]:R},q==null?void 0:q.className,S,C,re,fe,ne),popupClassName:ee(N,re,fe,ne),style:ye,editable:ue,more:Object.assign({icon:(v=(g=(p=(m=q==null?void 0:q.more)===null||m===void 0?void 0:m.icon)!==null&&p!==void 0?p:q==null?void 0:q.moreIcon)!==null&&g!==void 0?g:I)!==null&&v!==void 0?v:u.createElement(Ph,null),transitionName:`${Ce}-slide-up`},T),prefixCls:Y,animated:he,indicator:de,destroyInactiveTabPane:W??U})))}),h2=nj;h2.TabPane=ej;function rj(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,v=0;function y(){p&&clearTimeout(p)}function S(b){var w=b||{},$=w.upcomingOnly,R=$===void 0?!1:$;y(),g=!R}function C(){for(var b=arguments.length,w=new Array(b),$=0;$<b;$++)w[$]=arguments[$];var R=this,O=Date.now()-v;if(g)return;function _(){v=Date.now(),t.apply(R,w)}function I(){p=void 0}!c&&m&&!p&&_(),y(),m===void 0&&O>e?c?(v=Date.now(),l||(p=setTimeout(m?I:_,e))):_():l!==!0&&(p=setTimeout(m?I:_,m===void 0?e-O:e))}return C.cancel=S,C}function oj(e,t,n){var r={},o=r.atBegin,l=o===void 0?!1:o;return rj(e,t,{debounceMode:l!==!1})}const v2=u.createContext({});var ij=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 Y1(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 aj=["xs","sm","md","lg","xl","xxl"],lj=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Et),{gutter:o,wrap:l}=u.useContext(v2),{prefixCls:s,span:c,order:d,offset:m,push:p,pull:g,className:v,children:y,flex:S,style:C}=e,b=ij(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",s),[$,R,O]=uT(w),_={};let I={};aj.forEach(P=>{let k={};const A=e[P];typeof A=="number"?k.span=A:typeof A=="object"&&(k=A||{}),delete b[P],I=Object.assign(Object.assign({},I),{[`${w}-${P}-${k.span}`]:k.span!==void 0,[`${w}-${P}-order-${k.order}`]:k.order||k.order===0,[`${w}-${P}-offset-${k.offset}`]:k.offset||k.offset===0,[`${w}-${P}-push-${k.push}`]:k.push||k.push===0,[`${w}-${P}-pull-${k.pull}`]:k.pull||k.pull===0,[`${w}-rtl`]:r==="rtl"}),k.flex&&(I[`${w}-${P}-flex`]=!0,_[`--${w}-${P}-flex`]=Y1(k.flex))});const T=ee(w,{[`${w}-${c}`]:c!==void 0,[`${w}-order-${d}`]:d,[`${w}-offset-${m}`]:m,[`${w}-push-${p}`]:p,[`${w}-pull-${g}`]:g},v,I,R,O),N={};if(o!=null&&o[0]){const P=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;N.paddingLeft=P,N.paddingRight=P}return S&&(N.flex=Y1(S),l===!1&&!N.minWidth&&(N.minWidth=0)),$(u.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},N),C),_),className:T,ref:t}),y))});function sj(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<va.length;c++){const d=va[c];if(o[d]&&l[d]!==void 0){n[s]=l[d];break}}else n[s]=l}),n}var cj=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 Q1(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<va.length;l++){const s=va[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 uj=u.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:l,style:s,children:c,gutter:d=0,wrap:m}=e,p=cj(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:g,direction:v}=u.useContext(Et),y=Ch(!0,null),S=Q1(o,y),C=Q1(r,y),b=g("row",n),[w,$,R]=cT(b),O=sj(d,y),_=ee(b,{[`${b}-no-wrap`]:m===!1,[`${b}-${C}`]:C,[`${b}-${S}`]:S,[`${b}-rtl`]:v==="rtl"},l,$,R),I={};if(O!=null&&O[0]){const k=typeof O[0]=="number"?`${O[0]/-2}px`:`calc(${O[0]} / -2)`;I.marginLeft=k,I.marginRight=k}const[T,N]=O;I.rowGap=N;const P=u.useMemo(()=>({gutter:[T,N],wrap:m}),[T,N,m]);return w(u.createElement(v2.Provider,{value:P},u.createElement("div",Object.assign({},p,{className:_,style:Object.assign(Object.assign({},I),s),ref:t}),c)))}),dj=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},fj=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:l,orientationMargin:s,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},Fn(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}}})}},mj=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),pj=pn("Divider",e=>{const t=Xt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[fj(t),dj(t)]},mj,{unitless:{orientationMargin:!0}});var gj=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 hj={small:"sm",middle:"md"},J1=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=gr("divider"),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:d,className:m,rootClassName:p,children:g,dashed:v,variant:y="solid",plain:S,style:C,size:b}=e,w=gj(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",l),[R,O,_]=pj($),I=Qo(b),T=hj[I],N=!!g,P=u.useMemo(()=>c==="left"?n==="rtl"?"end":"start":c==="right"?n==="rtl"?"start":"end":c,[n,c]),k=P==="start"&&d!=null,A=P==="end"&&d!=null,M=ee($,r,O,_,`${$}-${s}`,{[`${$}-with-text`]:N,[`${$}-with-text-${P}`]:N,[`${$}-dashed`]:!!v,[`${$}-${y}`]:y!=="solid",[`${$}-plain`]:!!S,[`${$}-rtl`]:n==="rtl",[`${$}-no-default-orientation-margin-start`]:k,[`${$}-no-default-orientation-margin-end`]:A,[`${$}-${T}`]:!!T},m,p),D=u.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),B={marginInlineStart:k?D:void 0,marginInlineEnd:A?D:void 0};return R(u.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},o),C)},w,{role:"separator"}),g&&s!=="vertical"&&u.createElement("span",{className:`${$}-inner-text`,style:B},g)))};function vj(e){return!!(e.addonBefore||e.addonAfter)}function yj(e){return!!(e.prefix||e.suffix||e.allowClear)}function Z1(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 eC(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Z1(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Z1(t,e,r),n(o);return}n(o)}}function bj(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 Cj=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,v=e.className,y=e.style,S=e.disabled,C=e.readOnly,b=e.focused,w=e.triggerFocus,$=e.allowClear,R=e.value,O=e.handleReset,_=e.hidden,I=e.classes,T=e.classNames,N=e.dataAttrs,P=e.styles,k=e.components,A=e.onClear,M=s??l,D=(k==null?void 0:k.affixWrapper)||"span",B=(k==null?void 0:k.groupWrapper)||"span",U=(k==null?void 0:k.wrapper)||"span",W=(k==null?void 0:k.groupAddon)||"span",V=u.useRef(null),H=function(de){var se;(se=V.current)!==null&&se!==void 0&&se.contains(de.target)&&(w==null||w())},Q=yj(e),q=u.cloneElement(M,{value:R,className:ee((n=M.props)===null||n===void 0?void 0:n.className,!Q&&(T==null?void 0:T.variant))||null}),z=u.useRef(null);if(J.useImperativeHandle(t,function(){return{nativeElement:z.current||V.current}}),Q){var F=null;if($){var Y=!S&&!C&&R,ne="".concat(c,"-clear-icon"),te=gt($)==="object"&&$!==null&&$!==void 0&&$.clearIcon?$.clearIcon:"✖";F=J.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){O==null||O(de),A==null||A()},onMouseDown:function(de){return de.preventDefault()},className:ee(ne,G(G({},"".concat(ne,"-hidden"),!Y),"".concat(ne,"-has-suffix"),!!m))},te)}var re="".concat(c,"-affix-wrapper"),fe=ee(re,G(G(G(G(G({},"".concat(c,"-disabled"),S),"".concat(re,"-disabled"),S),"".concat(re,"-focused"),b),"".concat(re,"-readonly"),C),"".concat(re,"-input-with-clear-btn"),m&&$&&R),I==null?void 0:I.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),me=(m||$)&&J.createElement("span",{className:ee("".concat(c,"-suffix"),T==null?void 0:T.suffix),style:P==null?void 0:P.suffix},F,m);q=J.createElement(D,Re({className:fe,style:P==null?void 0:P.affixWrapper,onClick:H},N==null?void 0:N.affixWrapper,{ref:V}),d&&J.createElement("span",{className:ee("".concat(c,"-prefix"),T==null?void 0:T.prefix),style:P==null?void 0:P.prefix},d),q,me)}if(vj(e)){var ue="".concat(c,"-group"),Ce="".concat(ue,"-addon"),le="".concat(ue,"-wrapper"),ce=ee("".concat(c,"-wrapper"),ue,I==null?void 0:I.wrapper,T==null?void 0:T.wrapper),he=ee(le,G({},"".concat(le,"-disabled"),S),I==null?void 0:I.group,T==null?void 0:T.groupWrapper);q=J.createElement(B,{className:he,ref:z},J.createElement(U,{className:ce},p&&J.createElement(W,{className:Ce},p),q,g&&J.createElement(W,{className:Ce},g)))}return J.cloneElement(q,{className:ee((r=q.props)===null||r===void 0?void 0:r.className,v)||null,style:K(K({},(o=q.props)===null||o===void 0?void 0:o.style),y),hidden:_})}),Sj=["show"];function xj(e,t){return u.useMemo(function(){var n={};t&&(n.show=gt(t)==="object"&&t.formatter?t.formatter:!!t),n=K(K({},n),e);var r=n,o=r.show,l=kt(r,Sj);return K(K({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(s){return s.length}})},[e,t])}const wj=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:J.createElement(wd,null)}),t};var tC=u.createContext(null),y2=u.createContext({}),$j=["prefixCls","className","containerRef"],Ej=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,l=kt(t,$j),s=u.useContext(y2),c=s.panel,d=Xo(c,o);return u.createElement("div",Re({className:ee("".concat(n,"-content"),r),role:"dialog",ref:d},oo(t,{aria:!0}),{"aria-modal":"true"},l))};function nC(e){return typeof e=="string"&&String(Number(e))===e?(ur(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var rC={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Rj(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,v=e.keyboard,y=e.classNames,S=e.rootClassName,C=e.rootStyle,b=e.zIndex,w=e.className,$=e.id,R=e.style,O=e.motion,_=e.width,I=e.height,T=e.children,N=e.mask,P=e.maskClosable,k=e.maskMotion,A=e.maskClassName,M=e.maskStyle,D=e.afterOpenChange,B=e.onClose,U=e.onMouseEnter,W=e.onMouseOver,V=e.onMouseLeave,H=e.onClick,Q=e.onKeyDown,q=e.onKeyUp,z=e.styles,F=e.drawerRender,Y=u.useRef(),ne=u.useRef(),te=u.useRef();u.useImperativeHandle(t,function(){return Y.current});var re=function($e){var ke=$e.keyCode,Ie=$e.shiftKey;switch(ke){case Ve.TAB:{if(ke===Ve.TAB){if(!Ie&&document.activeElement===te.current){var Ge;(Ge=ne.current)===null||Ge===void 0||Ge.focus({preventScroll:!0})}else if(Ie&&document.activeElement===ne.current){var tt;(tt=te.current)===null||tt===void 0||tt.focus({preventScroll:!0})}}break}case Ve.ESC:{B&&v&&($e.stopPropagation(),B($e));break}}};u.useEffect(function(){if(s&&g){var we;(we=Y.current)===null||we===void 0||we.focus({preventScroll:!0})}},[s]);var fe=u.useState(!1),me=ae(fe,2),ue=me[0],Ce=me[1],le=u.useContext(tC),ce;typeof m=="boolean"?ce=m?{}:{distance:0}:ce=m||{};var he=(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,ye=u.useMemo(function(){return{pushDistance:he,push:function(){Ce(!0)},pull:function(){Ce(!1)}}},[he]);u.useEffect(function(){if(s){var we;le==null||(we=le.push)===null||we===void 0||we.call(le)}else{var $e;le==null||($e=le.pull)===null||$e===void 0||$e.call(le)}},[s]),u.useEffect(function(){return function(){var we;le==null||(we=le.pull)===null||we===void 0||we.call(le)}},[]);var de=u.createElement(ro,Re({key:"mask"},k,{visible:N&&s}),function(we,$e){var ke=we.className,Ie=we.style;return u.createElement("div",{className:ee("".concat(l,"-mask"),ke,y==null?void 0:y.mask,A),style:K(K(K({},Ie),M),z==null?void 0:z.mask),onClick:P&&s?B:void 0,ref:$e})}),se=typeof O=="function"?O(c):O,ve={};if(ue&&he)switch(c){case"top":ve.transform="translateY(".concat(he,"px)");break;case"bottom":ve.transform="translateY(".concat(-he,"px)");break;case"left":ve.transform="translateX(".concat(he,"px)");break;default:ve.transform="translateX(".concat(-he,"px)");break}c==="left"||c==="right"?ve.width=nC(_):ve.height=nC(I);var Se={onMouseEnter:U,onMouseOver:W,onMouseLeave:V,onClick:H,onKeyDown:Q,onKeyUp:q},Oe=u.createElement(ro,Re({key:"panel"},se,{visible:s,forceRender:p,onVisibleChanged:function($e){D==null||D($e)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(we,$e){var ke=we.className,Ie=we.style,Ge=u.createElement(Ej,Re({id:$,containerRef:$e,prefixCls:l,className:ee(w,y==null?void 0:y.content),style:K(K({},R),z==null?void 0:z.content)},oo(e,{aria:!0}),Se),T);return u.createElement("div",Re({className:ee("".concat(l,"-content-wrapper"),y==null?void 0:y.wrapper,ke),style:K(K(K({},ve),Ie),z==null?void 0:z.wrapper)},oo(e,{data:!0})),F?F(Ge):Ge)}),Ne=K({},C);return b&&(Ne.zIndex=b),u.createElement(tC.Provider,{value:ye},u.createElement("div",{className:ee(l,"".concat(l,"-").concat(c),S,G(G({},"".concat(l,"-open"),s),"".concat(l,"-inline"),d)),style:Ne,tabIndex:-1,ref:Y,onKeyDown:re},de,u.createElement("div",{tabIndex:0,ref:ne,style:rC,"aria-hidden":"true","data-sentinel":"start"}),Oe,u.createElement("div",{tabIndex:0,ref:te,style:rC,"aria-hidden":"true","data-sentinel":"end"})))}var Oj=u.forwardRef(Rj),Ij=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,v=t.width,y=v===void 0?378:v,S=t.mask,C=S===void 0?!0:S,b=t.maskClosable,w=b===void 0?!0:b,$=t.getContainer,R=t.forceRender,O=t.afterOpenChange,_=t.destroyOnClose,I=t.onMouseEnter,T=t.onMouseOver,N=t.onMouseLeave,P=t.onClick,k=t.onKeyDown,A=t.onKeyUp,M=t.panelRef,D=u.useState(!1),B=ae(D,2),U=B[0],W=B[1],V=u.useState(!1),H=ae(V,2),Q=H[0],q=H[1];rn(function(){q(!0)},[]);var z=Q?r:!1,F=u.useRef(),Y=u.useRef();rn(function(){z&&(Y.current=document.activeElement)},[z]);var ne=function(ue){var Ce;if(W(ue),O==null||O(ue),!ue&&Y.current&&!((Ce=F.current)!==null&&Ce!==void 0&&Ce.contains(Y.current))){var le;(le=Y.current)===null||le===void 0||le.focus({preventScroll:!0})}},te=u.useMemo(function(){return{panel:M}},[M]);if(!R&&!U&&!z&&_)return null;var re={onMouseEnter:I,onMouseOver:T,onMouseLeave:N,onClick:P,onKeyDown:k,onKeyUp:A},fe=K(K({},t),{},{open:z,prefixCls:l,placement:c,autoFocus:m,keyboard:g,width:y,mask:C,maskClosable:w,inline:$===!1,afterOpenChange:ne,ref:F},re);return u.createElement(y2.Provider,{value:te},u.createElement(Md,{open:z||R||U,autoDestroy:!1,getContainer:$,autoLock:C&&(z||U)},u.createElement(Oj,fe)))};const b2=e=>{var t,n;const{prefixCls:r,ariaId:o,title:l,footer:s,extra:c,closable:d,loading:m,onClose:p,headerStyle:g,bodyStyle:v,footerStyle:y,children:S,classNames:C,styles:b}=e,w=gr("drawer");let $;d===!1?$=void 0:d===void 0||d===!0?$="start":$=(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-${$}`]:$==="end"})},N),[p,r,$]),[O,_]=nh(Il(e),Il(w),{closable:!0,closeIconRender:R}),I=()=>{var N,P;return!l&&!O?null:u.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(N=w.styles)===null||N===void 0?void 0:N.header),g),b==null?void 0:b.header),className:ee(`${r}-header`,{[`${r}-header-close-only`]:O&&!l&&!c},(P=w.classNames)===null||P===void 0?void 0:P.header,C==null?void 0:C.header)},u.createElement("div",{className:`${r}-header-title`},$==="start"&&_,l&&u.createElement("div",{className:`${r}-title`,id:o},l)),c&&u.createElement("div",{className:`${r}-extra`},c),$==="end"&&_)},T=()=>{var N,P;if(!s)return null;const k=`${r}-footer`;return u.createElement("div",{className:ee(k,(N=w.classNames)===null||N===void 0?void 0:N.footer,C==null?void 0:C.footer),style:Object.assign(Object.assign(Object.assign({},(P=w.styles)===null||P===void 0?void 0:P.footer),y),b==null?void 0:b.footer)},s)};return u.createElement(u.Fragment,null,I(),u.createElement("div",{className:ee(`${r}-body`,C==null?void 0:C.body,(t=w.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=w.styles)===null||n===void 0?void 0:n.body),v),b==null?void 0:b.body)},m?u.createElement(Sa,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):S),T())},_j=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},C2=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),S2=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},C2({opacity:e},{opacity:1})),Tj=(e,t)=>[S2(.7,t),C2({transform:_j(e)},{transform:"none"})],Pj=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:S2(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:Tj(o,n)}),{})}}},Nj=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:v,lineWidth:y,lineType:S,colorSplit:C,marginXS:b,colorIcon:w,colorIconHover:$,colorBgTextHover:R,colorBgTextActive:O,colorText:_,fontWeightStrong:I,footerPaddingBlock:T,footerPaddingInline:N,calc:P}=e,k=`${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"},[k]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${k}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${k}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${k}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${k}`]:{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:v,borderBottom:`${Z(y)} ${S} ${C}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:P(g).add(d).equal(),height:P(g).add(d).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:w,fontWeight:I,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:b},[`&:not(${n}-close-end)`]:{marginInlineEnd:b},"&:hover":{color:$,backgroundColor:R,textDecoration:"none"},"&:active":{backgroundColor:O}},xo(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:g,lineHeight:v},[`${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(T)} ${Z(N)}`,borderTop:`${Z(y)} ${S} ${C}`},"&-rtl":{direction:"rtl"}}}},kj=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),x2=pn("Drawer",e=>{const t=Xt(e,{});return[Nj(t),Pj(t)]},kj);var w2=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 Mj={distance:180},$2=e=>{const{rootClassName:t,width:n,height:r,size:o="default",mask:l=!0,push:s=Mj,open:c,afterOpenChange:d,onClose:m,prefixCls:p,getContainer:g,panelRef:v=null,style:y,className:S,"aria-labelledby":C,visible:b,afterVisibleChange:w,maskStyle:$,drawerStyle:R,contentWrapperStyle:O,destroyOnClose:_,destroyOnHidden:I}=e,T=w2(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=jd(),P=T.title?N:void 0,{getPopupContainer:k,getPrefixCls:A,direction:M,className:D,style:B,classNames:U,styles:W}=gr("drawer"),V=A("drawer",p),[H,Q,q]=x2(V),z=g===void 0&&k?()=>k(document.body):g,F=ee({"no-mask":!l,[`${V}-rtl`]:M==="rtl"},t,Q,q),Y=u.useMemo(()=>n??(o==="large"?736:378),[n,o]),ne=u.useMemo(()=>r??(o==="large"?736:378),[r,o]),te={motionName:Go(V,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},re=he=>({motionName:Go(V,`panel-motion-${he}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),fe=Fx(),me=Ao(v,fe),[ue,Ce]=kl("Drawer",T.zIndex),{classNames:le={},styles:ce={}}=T;return H(u.createElement(ic,{form:!0,space:!0},u.createElement(Js.Provider,{value:Ce},u.createElement(Ij,Object.assign({prefixCls:V,onClose:m,maskMotion:te,motion:re},T,{classNames:{mask:ee(le.mask,U.mask),content:ee(le.content,U.content),wrapper:ee(le.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ce.mask),$),W.mask),content:Object.assign(Object.assign(Object.assign({},ce.content),R),W.content),wrapper:Object.assign(Object.assign(Object.assign({},ce.wrapper),O),W.wrapper)},open:c??b,mask:l,push:s,width:Y,height:ne,style:Object.assign(Object.assign({},B),y),className:ee(D,S),rootClassName:F,getContainer:z,afterOpenChange:d??w,panelRef:me,zIndex:ue,"aria-labelledby":C??P,destroyOnClose:I??_}),u.createElement(b2,Object.assign({prefixCls:V},T,{ariaId:P,onClose:m}))))))},jj=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,l=w2(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=u.useContext(Et),c=s("drawer",t),[d,m,p]=x2(c),g=ee(c,`${c}-pure`,`${c}-${o}`,m,p,r);return d(u.createElement("div",{className:g,style:n},u.createElement(b2,Object.assign({prefixCls:c},l))))};$2._InternalPanelDoNotUseOrYouWillBeFired=jj;function oC(e){return["small","middle","large"].includes(e)}function iC(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const zj=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}},kd(e,{focus:!1})]}},Lj=pn(["Space","Addon"],e=>[zj(e)]);var Aj=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 Bj=J.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:l}=e,s=Aj(e,["className","children","style","prefixCls"]),{getPrefixCls:c,direction:d}=J.useContext(Et),m=c("space-addon",l),[p,g,v]=Lj(m),{compactItemClassnames:y,compactSize:S}=ec(m,d),C=ee(m,g,y,v,{[`${m}-${S}`]:S},n);return p(J.createElement("div",Object.assign({ref:t,className:C,style:o},s),r))}),E2=J.createContext({latestIndex:0}),Dj=E2.Provider,Hj=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:l}=u.useContext(E2);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))},Fj=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"}}}},Vj=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}}}},Wj=pn("Space",e=>{const t=Xt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Fj(t),Vj(t)]},()=>({}),{resetStyle:!1});var qj=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 Uj=u.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:l,className:s,style:c,classNames:d,styles:m}=gr("space"),{size:p=l??"small",align:g,className:v,rootClassName:y,children:S,direction:C="horizontal",prefixCls:b,split:w,style:$,wrap:R=!1,classNames:O,styles:_}=e,I=qj(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,N]=Array.isArray(p)?p:[p,p],P=oC(N),k=oC(T),A=iC(N),M=iC(T),D=Mr(S,{keepEmpty:!0}),B=g===void 0&&C==="horizontal"?"center":g,U=r("space",b),[W,V,H]=Wj(U),Q=ee(U,s,V,`${U}-${C}`,{[`${U}-rtl`]:o==="rtl",[`${U}-align-${B}`]:B,[`${U}-gap-row-${N}`]:P,[`${U}-gap-col-${T}`]:k},v,y,H),q=ee(`${U}-item`,(n=O==null?void 0:O.item)!==null&&n!==void 0?n:d.item),z=Object.assign(Object.assign({},m.item),_==null?void 0:_.item),F=D.map((te,re)=>{const fe=(te==null?void 0:te.key)||`${q}-${re}`;return u.createElement(Hj,{className:q,key:fe,index:re,split:w,style:z},te)}),Y=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"),!k&&M&&(ne.columnGap=T),!P&&A&&(ne.rowGap=N),W(u.createElement("div",Object.assign({ref:t,className:Q,style:Object.assign(Object.assign(Object.assign({},ne),c),$)},I),u.createElement(Dj,{value:Y},F)))}),Di=Uj;Di.Compact=HO;Di.Addon=Bj;var Gj=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 R2=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=u.useContext(Et),{prefixCls:o,type:l="default",danger:s,disabled:c,loading:d,onClick:m,htmlType:p,children:g,className:v,menu:y,arrow:S,autoFocus:C,overlay:b,trigger:w,align:$,open:R,onOpenChange:O,placement:_,getPopupContainer:I,href:T,icon:N=u.createElement(Ph,null),title:P,buttonsRender:k=le=>le,mouseEnterDelay:A,mouseLeaveDelay:M,overlayClassName:D,overlayStyle:B,destroyOnHidden:U,destroyPopupOnHide:W,dropdownRender:V,popupRender:H}=e,Q=Gj(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"]),q=n("dropdown",o),z=`${q}-button`,Y={menu:y,arrow:S,autoFocus:C,align:$,disabled:c,trigger:c?[]:w,onOpenChange:O,getPopupContainer:I||t,mouseEnterDelay:A,mouseLeaveDelay:M,overlayClassName:D,overlayStyle:B,destroyOnHidden:U,popupRender:H||V},{compactSize:ne,compactItemClassnames:te}=ec(q,r),re=ee(z,te,v);"destroyPopupOnHide"in e&&(Y.destroyPopupOnHide=W),"overlay"in e&&(Y.overlay=b),"open"in e&&(Y.open=R),"placement"in e?Y.placement=_:Y.placement=r==="rtl"?"bottomLeft":"bottomRight";const fe=u.createElement(Rr,{type:l,danger:s,disabled:c,loading:d,onClick:m,htmlType:p,href:T,title:P},g),me=u.createElement(Rr,{type:l,danger:s,icon:N}),[ue,Ce]=k([fe,me]);return u.createElement(Di.Compact,Object.assign({className:re,size:ne,block:!0},Q),ue,u.createElement(qd,Object.assign({},Y),Ce))};R2.__ANT_BUTTON=!0;const Mg=qd;Mg.Button=R2;var Kj={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"},Xj=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:Kj}))},ad=u.forwardRef(Xj),Yj=`
|
|
293
|
+
min-height:0 !important;
|
|
294
|
+
max-height:none !important;
|
|
295
|
+
height:0 !important;
|
|
296
|
+
visibility:hidden !important;
|
|
297
|
+
overflow:hidden !important;
|
|
298
|
+
position:absolute !important;
|
|
299
|
+
z-index:-1000 !important;
|
|
300
|
+
top:0 !important;
|
|
301
|
+
right:0 !important;
|
|
302
|
+
pointer-events: none !important;
|
|
303
|
+
`,Qj=["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"],gp={},eo;function Jj(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&&gp[n])return gp[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=Qj.map(function(m){return"".concat(m,":").concat(r.getPropertyValue(m))}).join(";"),d={sizingStyle:c,paddingSize:l,borderSize:s,boxSizing:o};return t&&n&&(gp[n]=d),d}function Zj(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;eo||(eo=document.createElement("textarea"),eo.setAttribute("tab-index","-1"),eo.setAttribute("aria-hidden","true"),eo.setAttribute("name","hiddenTextarea"),document.body.appendChild(eo)),e.getAttribute("wrap")?eo.setAttribute("wrap",e.getAttribute("wrap")):eo.removeAttribute("wrap");var o=Jj(e,t),l=o.paddingSize,s=o.borderSize,c=o.boxSizing,d=o.sizingStyle;eo.setAttribute("style","".concat(d,";").concat(Yj)),eo.value=e.value||e.placeholder||"";var m=void 0,p=void 0,g,v=eo.scrollHeight;if(c==="border-box"?v+=s:c==="content-box"&&(v-=l),n!==null||r!==null){eo.value=" ";var y=eo.scrollHeight-l;n!==null&&(m=y*n,c==="border-box"&&(m=m+l+s),v=Math.max(m,v)),r!==null&&(p=y*r,c==="border-box"&&(p=p+l+s),g=v>p?"":"hidden",v=Math.min(p,v))}var S={height:v,overflowY:g,resize:"none"};return m&&(S.minHeight=m),p&&(S.maxHeight=p),S}var e7=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],hp=0,vp=1,yp=2,t7=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 v=kt(n,e7),y=Hn(o,{value:l,postState:function(Y){return Y??""}}),S=ae(y,2),C=S[0],b=S[1],w=function(Y){b(Y.target.value),g==null||g(Y)},$=u.useRef();u.useImperativeHandle(t,function(){return{textArea:$.current}});var R=u.useMemo(function(){return s&>(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),O=ae(R,2),_=O[0],I=O[1],T=!!s,N=u.useState(yp),P=ae(N,2),k=P[0],A=P[1],M=u.useState(),D=ae(M,2),B=D[0],U=D[1],W=function(){A(hp)};rn(function(){T&&W()},[l,_,I,T]),rn(function(){if(k===hp)A(vp);else if(k===vp){var F=Zj($.current,!1,_,I);A(yp),U(F)}},[k]);var V=u.useRef(),H=function(){$n.cancel(V.current)},Q=function(Y){k===yp&&(c==null||c(Y),s&&(H(),V.current=$n(function(){W()})))};u.useEffect(function(){return H},[]);var q=T?B:null,z=K(K({},m),q);return(k===hp||k===vp)&&(z.overflowY="hidden",z.overflowX="hidden"),u.createElement(Co,{onResize:Q,disabled:!(s||c)},u.createElement("textarea",Re({},v,{ref:$,style:z,className:ee(r,d,G({},"".concat(r,"-disabled"),p)),disabled:p,value:C,onChange:w})))}),n7=["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"],r7=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,v=e.suffix,y=e.prefixCls,S=y===void 0?"rc-textarea":y,C=e.showCount,b=e.count,w=e.className,$=e.style,R=e.disabled,O=e.hidden,_=e.classNames,I=e.styles,T=e.onResize,N=e.onClear,P=e.onPressEnter,k=e.readOnly,A=e.autoSize,M=e.onKeyDown,D=kt(e,n7),B=Hn(r,{value:o,defaultValue:r}),U=ae(B,2),W=U[0],V=U[1],H=W==null?"":String(W),Q=J.useState(!1),q=ae(Q,2),z=q[0],F=q[1],Y=J.useRef(!1),ne=J.useState(null),te=ae(ne,2),re=te[0],fe=te[1],me=u.useRef(null),ue=u.useRef(null),Ce=function(){var je;return(je=ue.current)===null||je===void 0?void 0:je.textArea},le=function(){Ce().focus()};u.useImperativeHandle(t,function(){var Ye;return{resizableTextArea:ue.current,focus:le,blur:function(){Ce().blur()},nativeElement:((Ye=me.current)===null||Ye===void 0?void 0:Ye.nativeElement)||Ce()}}),u.useEffect(function(){F(function(Ye){return!R&&Ye})},[R]);var ce=J.useState(null),he=ae(ce,2),ye=he[0],de=he[1];J.useEffect(function(){if(ye){var Ye;(Ye=Ce()).setSelectionRange.apply(Ye,Be(ye))}},[ye]);var se=xj(b,C),ve=(n=se.max)!==null&&n!==void 0?n:m,Se=Number(ve)>0,Oe=se.strategy(H),Ne=!!ve&&Oe>ve,we=function(je,Je){var Pe=Je;!Y.current&&se.exceedFormatter&&se.max&&se.strategy(Je)>se.max&&(Pe=se.exceedFormatter(Je,{max:se.max}),Je!==Pe&&de([Ce().selectionStart||0,Ce().selectionEnd||0])),V(Pe),eC(je.currentTarget,je,c,Pe)},$e=function(je){Y.current=!0,p==null||p(je)},ke=function(je){Y.current=!1,we(je,je.currentTarget.value),g==null||g(je)},Ie=function(je){we(je,je.target.value)},Ge=function(je){je.key==="Enter"&&P&&P(je),M==null||M(je)},tt=function(je){F(!0),l==null||l(je)},St=function(je){F(!1),s==null||s(je)},ut=function(je){V(""),le(),eC(Ce(),je,c)},Ue=v,st;se.show&&(se.showFormatter?st=se.showFormatter({value:H,count:Oe,maxLength:ve}):st="".concat(Oe).concat(Se?" / ".concat(ve):""),Ue=J.createElement(J.Fragment,null,Ue,J.createElement("span",{className:ee("".concat(S,"-data-count"),_==null?void 0:_.count),style:I==null?void 0:I.count},st)));var We=function(je){var Je;T==null||T(je),(Je=Ce())!==null&&Je!==void 0&&Je.style.height&&fe(!0)},mt=!A&&!C&&!d;return J.createElement(Cj,{ref:me,value:H,allowClear:d,handleReset:ut,suffix:Ue,prefixCls:S,classNames:K(K({},_),{},{affixWrapper:ee(_==null?void 0:_.affixWrapper,G(G({},"".concat(S,"-show-count"),C),"".concat(S,"-textarea-allow-clear"),d))}),disabled:R,focused:z,className:ee(w,Ne&&"".concat(S,"-out-of-range")),style:K(K({},$),re&&!mt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof st=="string"?st:void 0}},hidden:O,readOnly:k,onClear:N},J.createElement(t7,Re({},D,{autoSize:A,maxLength:m,onKeyDown:Ge,onChange:Ie,onFocus:tt,onBlur:St,onCompositionStart:$e,onCompositionEnd:ke,className:ee(_==null?void 0:_.textarea),style:K(K({},I==null?void 0:I.textarea),{},{resize:$==null?void 0:$.resize}),disabled:R,prefixCls:S,onResize:We,ref:ue,readOnly:k})))});const o7=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"}},[`
|
|
304
|
+
&-allow-clear > ${t},
|
|
305
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
306
|
+
`]:{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}}}}}},i7=pn(["Input","TextArea"],e=>{const t=Xt(e,Ud(e));return o7(t)},Gd,{resetFont:!1});var a7=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=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:v,styles:y,variant:S,showCount:C,onMouseDown:b,onResize:w}=e,$=a7(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:R,direction:O,allowClear:_,autoComplete:I,className:T,style:N,classNames:P,styles:k}=gr("textArea"),A=u.useContext(ha),M=s??A,{status:D,hasFeedback:B,feedbackIcon:U}=u.useContext(ed),W=Sw(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:ve=>{var Se,Oe;bj((Oe=(Se=V.current)===null||Se===void 0?void 0:Se.resizableTextArea)===null||Oe===void 0?void 0:Oe.textArea,ve)},blur:()=>{var ve;return(ve=V.current)===null||ve===void 0?void 0:ve.blur()}}});const H=R("input",r),Q=gi(H),[q,z,F]=hM(H,p),[Y]=i7(H,Q),{compactSize:ne,compactItemClassnames:te}=ec(H,O),re=Qo(se=>{var ve;return(ve=l??ne)!==null&&ve!==void 0?ve:se}),[fe,me]=Ew("textArea",S,o),ue=wj(d??_),[Ce,le]=u.useState(!1),[ce,he]=u.useState(!1),ye=se=>{le(!0),b==null||b(se);const ve=()=>{le(!1),document.removeEventListener("mouseup",ve)};document.addEventListener("mouseup",ve)},de=se=>{var ve,Se;if(w==null||w(se),Ce&&typeof getComputedStyle=="function"){const Oe=(Se=(ve=V.current)===null||ve===void 0?void 0:ve.nativeElement)===null||Se===void 0?void 0:Se.querySelector("textarea");Oe&&getComputedStyle(Oe).resize==="both"&&he(!0)}};return q(Y(u.createElement(r7,Object.assign({autoComplete:I},$,{style:Object.assign(Object.assign({},N),v),styles:Object.assign(Object.assign({},k),y),disabled:M,allowClear:ue,className:ee(F,Q,g,p,te,T,ce&&`${H}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},m),P),{textarea:ee({[`${H}-sm`]:re==="small",[`${H}-lg`]:re==="large"},z,m==null?void 0:m.textarea,P.textarea,Ce&&`${H}-mouse-active`),variant:ee({[`${H}-${fe}`]:me},Cw(H,W)),affixWrapper:ee(`${H}-textarea-affix-wrapper`,{[`${H}-affix-wrapper-rtl`]:O==="rtl",[`${H}-affix-wrapper-sm`]:re==="small",[`${H}-affix-wrapper-lg`]:re==="large",[`${H}-textarea-show-count`]:C||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:H,suffix:B&&u.createElement("span",{className:`${H}-textarea-suffix`},U),showCount:C,ref:V,onResize:de,onMouseDown:ye}))))});function s7(e,t,n){return typeof n=="boolean"?n:e.length?!0:Mr(t).some(o=>o.type===i2)}var O2=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 Yd({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 zh=u.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:l}=e,s=O2(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=u.useContext(Et),d=c("layout",n),[m,p,g]=o2(d),v=r?`${d}-${r}`:d;return m(u.createElement(l,Object.assign({className:ee(n||v,o,p,g),ref:t},s)))}),c7=u.forwardRef((e,t)=>{const{direction:n}=u.useContext(Et),[r,o]=u.useState([]),{prefixCls:l,className:s,rootClassName:c,children:d,hasSider:m,tagName:p,style:g}=e,v=O2(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),y=Xn(v,["suffixCls"]),{getPrefixCls:S,className:C,style:b}=gr("layout"),w=S("layout",l),$=s7(r,d,m),[R,O,_]=o2(w),I=ee(w,{[`${w}-has-sider`]:$,[`${w}-rtl`]:n==="rtl"},C,s,c,O,_),T=u.useMemo(()=>({siderHook:{addSider:N=>{o(P=>[].concat(Be(P),[N]))},removeSider:N=>{o(P=>P.filter(k=>k!==N))}}}),[]);return R(u.createElement(t2.Provider,{value:T},u.createElement(p,Object.assign({ref:t,className:I,style:Object.assign(Object.assign({},b),g)},y),d)))}),u7=Yd({tagName:"div",displayName:"Layout"})(c7),d7=Yd({suffixCls:"header",tagName:"header",displayName:"Header"})(zh),f7=Yd({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(zh),m7=Yd({suffixCls:"content",tagName:"main",displayName:"Content"})(zh),Hi=u7;Hi.Header=d7;Hi.Footer=f7;Hi.Content=m7;Hi.Sider=i2;Hi._InternalSiderContext=Wd;var p7={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"},g7=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:p7}))},aC=u.forwardRef(g7),h7={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"},v7=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:h7}))},lC=u.forwardRef(v7),y7={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:"页码"},b7=[10,20,50,100],C7=function(t){var n=t.pageSizeOptions,r=n===void 0?b7: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,v=t.showSizeChanger,y=t.sizeChangerRender,S=J.useState(""),C=ae(S,2),b=C[0],w=C[1],$=function(){return!b||Number.isNaN(b)?void 0:Number(b)},R=typeof g=="function"?g:function(M){return"".concat(M," ").concat(o.items_per_page)},O=function(D){w(D.target.value)},_=function(D){c||b===""||(w(""),!(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(m,"-item-link"))>=0||D.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&(d==null||d($())))},I=function(D){b!==""&&(D.keyCode===Ve.ENTER||D.type==="click")&&(w(""),d==null||d($()))},T=function(){return r.some(function(D){return D.toString()===s.toString()})?r:r.concat([s]).sort(function(D,B){var U=Number.isNaN(Number(D))?0:Number(D),W=Number.isNaN(Number(B))?0:Number(B);return U-W})},N="".concat(m,"-options");if(!v&&!d)return null;var P=null,k=null,A=null;return v&&y&&(P=y({disabled:p,size:s,onSizeChange:function(D){l==null||l(Number(D))},"aria-label":o.page_size,className:"".concat(N,"-size-changer"),options:T().map(function(M){return{label:R(M),value:M}})})),d&&(c&&(A=typeof c=="boolean"?J.createElement("button",{type:"button",onClick:I,onKeyUp:I,disabled:p,className:"".concat(N,"-quick-jumper-button")},o.jump_to_confirm):J.createElement("span",{onClick:I,onKeyUp:I},c)),k=J.createElement("div",{className:"".concat(N,"-quick-jumper")},o.jump_to,J.createElement("input",{disabled:p,type:"text",value:b,onChange:O,onKeyUp:I,onBlur:_,"aria-label":o.page}),o.page,A)),J.createElement("li",{className:N},P,k)},hs=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),v=function(){c(r)},y=function(b){d(b,c,r)},S=m(r,"page",J.createElement("a",{rel:"nofollow"},r));return S?J.createElement("li",{title:s?String(r):null,className:g,onClick:v,onKeyDown:y,tabIndex:0},S):null},S7=function(t,n,r){return r};function sC(){}function cC(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function la(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var x7=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,v=t.pageSize,y=t.defaultPageSize,S=y===void 0?10:y,C=t.onChange,b=C===void 0?sC:C,w=t.hideOnSinglePage,$=t.align,R=t.showPrevNextJumpers,O=R===void 0?!0:R,_=t.showQuickJumper,I=t.showLessItems,T=t.showTitle,N=T===void 0?!0:T,P=t.onShowSizeChange,k=P===void 0?sC:P,A=t.locale,M=A===void 0?y7:A,D=t.style,B=t.totalBoundaryShowSizeChanger,U=B===void 0?50:B,W=t.disabled,V=t.simple,H=t.showTotal,Q=t.showSizeChanger,q=Q===void 0?g>U:Q,z=t.sizeChangerRender,F=t.pageSizeOptions,Y=t.itemRender,ne=Y===void 0?S7:Y,te=t.jumpPrevIcon,re=t.jumpNextIcon,fe=t.prevIcon,me=t.nextIcon,ue=J.useRef(null),Ce=Hn(10,{value:v,defaultValue:S}),le=ae(Ce,2),ce=le[0],he=le[1],ye=Hn(1,{value:c,defaultValue:m,postState:function(ft){return Math.max(1,Math.min(ft,la(void 0,ce,g)))}}),de=ae(ye,2),se=de[0],ve=de[1],Se=J.useState(se),Oe=ae(Se,2),Ne=Oe[0],we=Oe[1];u.useEffect(function(){we(se)},[se]);var $e=Math.max(1,se-(I?3:5)),ke=Math.min(la(void 0,ce,g),se+(I?3:5));function Ie(Fe,ft){var Ot=Fe||J.createElement("button",{type:"button","aria-label":ft,className:"".concat(r,"-item-link")});return typeof Fe=="function"&&(Ot=J.createElement(Fe,K({},t))),Ot}function Ge(Fe){var ft=Fe.target.value,Ot=la(void 0,ce,g),ln;return ft===""?ln=ft:Number.isNaN(Number(ft))?ln=Ne:ft>=Ot?ln=Ot:ln=Number(ft),ln}function tt(Fe){return cC(Fe)&&Fe!==se&&cC(g)&&g>0}var St=g>ce?_:!1;function ut(Fe){(Fe.keyCode===Ve.UP||Fe.keyCode===Ve.DOWN)&&Fe.preventDefault()}function Ue(Fe){var ft=Ge(Fe);switch(ft!==Ne&&we(ft),Fe.keyCode){case Ve.ENTER:mt(ft);break;case Ve.UP:mt(ft-1);break;case Ve.DOWN:mt(ft+1);break}}function st(Fe){mt(Ge(Fe))}function We(Fe){var ft=la(Fe,ce,g),Ot=se>ft&&ft!==0?ft:se;he(Fe),we(Ot),k==null||k(se,Fe),ve(Ot),b==null||b(Ot,Fe)}function mt(Fe){if(tt(Fe)&&!W){var ft=la(void 0,ce,g),Ot=Fe;return Fe>ft?Ot=ft:Fe<1&&(Ot=1),Ot!==Ne&&we(Ot),ve(Ot),b==null||b(Ot,ce),Ot}return se}var Ye=se>1,je=se<la(void 0,ce,g);function Je(){Ye&&mt(se-1)}function Pe(){je&&mt(se+1)}function He(){mt($e)}function Rt(){mt(ke)}function ht(Fe,ft){if(Fe.key==="Enter"||Fe.charCode===Ve.ENTER||Fe.keyCode===Ve.ENTER){for(var Ot=arguments.length,ln=new Array(Ot>2?Ot-2:0),Vn=2;Vn<Ot;Vn++)ln[Vn-2]=arguments[Vn];ft.apply(void 0,ln)}}function Gt(Fe){ht(Fe,Je)}function qt(Fe){ht(Fe,Pe)}function dn(Fe){ht(Fe,He)}function Sn(Fe){ht(Fe,Rt)}function Yt(Fe){var ft=ne(Fe,"prev",Ie(fe,"prev page"));return J.isValidElement(ft)?J.cloneElement(ft,{disabled:!Ye}):ft}function jt(Fe){var ft=ne(Fe,"next",Ie(me,"next page"));return J.isValidElement(ft)?J.cloneElement(ft,{disabled:!je}):ft}function xt(Fe){(Fe.type==="click"||Fe.keyCode===Ve.ENTER)&&mt(Ne)}var Qt=null,Vt=oo(t,{aria:!0,data:!0}),Ze=H&&J.createElement("li",{className:"".concat(r,"-total-text")},H(g,[g===0?0:(se-1)*ce+1,se*ce>g?g:se*ce])),Ct=null,ct=la(void 0,ce,g);if(w&&g<=ce)return null;var _e=[],Ee={rootPrefixCls:r,onClick:mt,onKeyPress:ht,showTitle:N,itemRender:ne,page:-1},xe=se-1>0?se-1:0,ze=se+1<ct?se+1:ct,Xe=_&&_.goButton,Qe=gt(V)==="object"?V.readOnly:!V,zt=Xe,Ht=null;V&&(Xe&&(typeof Xe=="boolean"?zt=J.createElement("button",{type:"button",onClick:xt,onKeyUp:xt},M.jump_to_confirm):zt=J.createElement("span",{onClick:xt,onKeyUp:xt},Xe),zt=J.createElement("li",{title:N?"".concat(M.jump_to).concat(se,"/").concat(ct):null,className:"".concat(r,"-simple-pager")},zt)),Ht=J.createElement("li",{title:N?"".concat(se,"/").concat(ct):null,className:"".concat(r,"-simple-pager")},Qe?Ne:J.createElement("input",{type:"text","aria-label":M.jump_to,value:Ne,disabled:W,onKeyDown:ut,onKeyUp:Ue,onChange:Ue,onBlur:st,size:3}),J.createElement("span",{className:"".concat(r,"-slash")},"/"),ct));var Tt=I?1:2;if(ct<=3+Tt*2){ct||_e.push(J.createElement(hs,Re({},Ee,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Pt=1;Pt<=ct;Pt+=1)_e.push(J.createElement(hs,Re({},Ee,{key:Pt,page:Pt,active:se===Pt})))}else{var bn=I?M.prev_3:M.prev_5,hn=I?M.next_3:M.next_5,xn=ne($e,"jump-prev",Ie(te,"prev page")),Tn=ne(ke,"jump-next",Ie(re,"next page"));O&&(Qt=xn?J.createElement("li",{title:N?bn:null,key:"prev",onClick:He,tabIndex:0,onKeyDown:dn,className:ee("".concat(r,"-jump-prev"),G({},"".concat(r,"-jump-prev-custom-icon"),!!te))},xn):null,Ct=Tn?J.createElement("li",{title:N?hn:null,key:"next",onClick:Rt,tabIndex:0,onKeyDown:Sn,className:ee("".concat(r,"-jump-next"),G({},"".concat(r,"-jump-next-custom-icon"),!!re))},Tn):null);var Zt=Math.max(1,se-Tt),on=Math.min(se+Tt,ct);se-1<=Tt&&(on=1+Tt*2),ct-se<=Tt&&(Zt=ct-Tt*2);for(var Le=Zt;Le<=on;Le+=1)_e.push(J.createElement(hs,Re({},Ee,{key:Le,page:Le,active:se===Le})));if(se-1>=Tt*2&&se!==3&&(_e[0]=J.cloneElement(_e[0],{className:ee("".concat(r,"-item-after-jump-prev"),_e[0].props.className)}),_e.unshift(Qt)),ct-se>=Tt*2&&se!==ct-2){var qe=_e[_e.length-1];_e[_e.length-1]=J.cloneElement(qe,{className:ee("".concat(r,"-item-before-jump-next"),qe.props.className)}),_e.push(Ct)}Zt!==1&&_e.unshift(J.createElement(hs,Re({},Ee,{key:1,page:1}))),on!==ct&&_e.push(J.createElement(hs,Re({},Ee,{key:ct,page:ct})))}var $t=Yt(xe);if($t){var dt=!Ye||!ct;$t=J.createElement("li",{title:N?M.prev_page:null,onClick:Je,tabIndex:dt?null:0,onKeyDown:Gt,className:ee("".concat(r,"-prev"),G({},"".concat(r,"-disabled"),dt)),"aria-disabled":dt},$t)}var nt=jt(ze);if(nt){var Ke,wt;V?(Ke=!je,wt=Ye?0:null):(Ke=!je||!ct,wt=Ke?null:0),nt=J.createElement("li",{title:N?M.next_page:null,onClick:Pe,tabIndex:wt,onKeyDown:qt,className:ee("".concat(r,"-next"),G({},"".concat(r,"-disabled"),Ke)),"aria-disabled":Ke},nt)}var Ft=ee(r,s,G(G(G(G(G({},"".concat(r,"-start"),$==="start"),"".concat(r,"-center"),$==="center"),"".concat(r,"-end"),$==="end"),"".concat(r,"-simple"),V),"".concat(r,"-disabled"),W));return J.createElement("ul",Re({className:Ft,style:D,ref:ue},Vt),Ze,$t,V?Ht:_e,nt,J.createElement(C7,{locale:M,rootPrefixCls:r,disabled:W,selectPrefixCls:l,changeSize:We,pageSize:ce,pageSizeOptions:F,quickGo:St?mt:null,goButton:zt,showSizeChanger:q,sizeChangerRender:z}))};const w7=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}}}}},$7=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"}}},[`
|
|
307
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
308
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
309
|
+
`]:{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({},kh(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},E7=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}}}}}},R7=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}}},[`
|
|
310
|
+
${t}-prev,
|
|
311
|
+
${t}-jump-prev,
|
|
312
|
+
${t}-jump-next
|
|
313
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
314
|
+
${t}-prev,
|
|
315
|
+
${t}-next,
|
|
316
|
+
${t}-jump-prev,
|
|
317
|
+
${t}-jump-next
|
|
318
|
+
`]:{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({},Mh(e)),Nh(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Kd(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},O7=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}}}}},I7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fn(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"}}),O7(e)),R7(e)),E7(e)),$7(e)),w7(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"}}},_7=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},xo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ol(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ol(e)}}}},I2=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},Gd(e)),_2=e=>Xt(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"},Ud(e)),T7=pn("Pagination",e=>{const t=_2(e);return[I7(t),_7(t)]},I2),P7=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=Ys(["Pagination","bordered"],e=>{const t=_2(e);return P7(t)},I2);function uC(e){return u.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var k7=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 M7=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:v}=e,y=k7(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:S}=Ch(m),[,C]=zr(),{getPrefixCls:b,direction:w,showSizeChanger:$,className:R,style:O}=gr("pagination"),_=b("pagination",n),[I,T,N]=T7(_),P=Qo(c),k=P==="small"||!!(S&&!P&&m),[A]=pi("Pagination",SS),M=Object.assign(Object.assign({},A),d),[D,B]=uC(p),[U,W]=uC($),V=D??U,H=B??W,Q=g||jl,q=u.useMemo(()=>v?v.map(re=>Number(re)):void 0,[v]),z=re=>{var fe;const{disabled:me,size:ue,onSizeChange:Ce,"aria-label":le,className:ce,options:he}=re,{className:ye,onChange:de}=H||{},se=(fe=he.find(ve=>String(ve.value)===String(ue)))===null||fe===void 0?void 0:fe.value;return u.createElement(Q,Object.assign({disabled:me,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ve=>ve.parentNode,"aria-label":le,options:he},H,{value:se,onChange:(ve,Se)=>{Ce==null||Ce(ve),de==null||de(ve,Se)},size:k?"small":"middle",className:ee(ce,ye)}))},F=u.useMemo(()=>{const re=u.createElement("span",{className:`${_}-item-ellipsis`},"•••"),fe=u.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},w==="rtl"?u.createElement(qo,null):u.createElement(Hs,null)),me=u.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},w==="rtl"?u.createElement(Hs,null):u.createElement(qo,null)),ue=u.createElement("a",{className:`${_}-item-link`},u.createElement("div",{className:`${_}-item-container`},w==="rtl"?u.createElement(lC,{className:`${_}-item-link-icon`}):u.createElement(aC,{className:`${_}-item-link-icon`}),re)),Ce=u.createElement("a",{className:`${_}-item-link`},u.createElement("div",{className:`${_}-item-container`},w==="rtl"?u.createElement(aC,{className:`${_}-item-link-icon`}):u.createElement(lC,{className:`${_}-item-link-icon`}),re));return{prevIcon:fe,nextIcon:me,jumpPrevIcon:ue,jumpNextIcon:Ce}},[w,_]),Y=b("select",r),ne=ee({[`${_}-${t}`]:!!t,[`${_}-mini`]:k,[`${_}-rtl`]:w==="rtl",[`${_}-bordered`]:C.wireframe},R,o,l,T,N),te=Object.assign(Object.assign({},O),s);return I(u.createElement(u.Fragment,null,C.wireframe&&u.createElement(N7,{prefixCls:_}),u.createElement(x7,Object.assign({},F,y,{style:te,prefixCls:_,selectPrefixCls:Y,className:ne,locale:M,pageSizeOptions:q,showSizeChanger:V,sizeChangerRender:z}))))},ld=100,T2=ld/5,P2=ld/2-T2/2,bp=P2*2*Math.PI,dC=50,fC=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return u.createElement("circle",{className:ee(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:P2,cx:dC,cy:dC,strokeWidth:T2,style:n})},j7=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[l,s]=u.useState(!1);rn(()=>{e!==0&&s(!0)},[e!==0]);const c=Math.max(Math.min(e,100),0);if(!l)return null;const d={strokeDashoffset:`${bp/4}`,strokeDasharray:`${bp*c/100} ${bp*(100-c)/100}`};return u.createElement("span",{className:ee(r,`${n}-progress`,c<=0&&o)},u.createElement("svg",{viewBox:`0 0 ${ld} ${ld}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},u.createElement(fC,{dotClassName:n,hasCircleCls:!0}),u.createElement(fC,{dotClassName:n,style:d})))};function z7(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(j7,{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)?jr(r,{className:ee((t=r.props)===null||t===void 0?void 0:t.className,l),percent:o}):u.createElement(z7,{prefixCls:n,percent:o})}const A7=new Wt("antSpinMove",{to:{opacity:1}}),B7=new Wt("antRotate",{to:{transform:"rotate(405deg)"}}),D7=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Fn(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:A7,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:B7,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"}})}},H7=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},F7=pn("Spin",e=>{const t=Xt(e,{spinDotDefault:e.colorTextDescription});return D7(t)},H7),V7=200,mC=[[30,.05],[70,.03],[96,.01]];function W7(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<mC.length;d+=1){const[m,p]=mC[d];if(s<=m)return s+c*p}return s})},V7)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[l,e]),l?n:t}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};let N2;function U7(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Qd=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:v=!1,indicator:y,percent:S}=e,C=q7(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:w,className:$,style:R,indicator:O}=gr("spin"),_=b("spin",n),[I,T,N]=F7(_),[P,k]=u.useState(()=>r&&!U7(r,o)),A=W7(P,S);u.useEffect(()=>{if(r){const H=oj(o,()=>{k(!0)});return H(),()=>{var Q;(Q=H==null?void 0:H.cancel)===null||Q===void 0||Q.call(H)}}k(!1)},[o,r]);const M=u.useMemo(()=>typeof g<"u"&&!v,[g,v]),D=ee(_,$,{[`${_}-sm`]:c==="small",[`${_}-lg`]:c==="large",[`${_}-spinning`]:P,[`${_}-show-text`]:!!d,[`${_}-rtl`]:w==="rtl"},l,!v&&s,T,N),B=ee(`${_}-container`,{[`${_}-blur`]:P}),U=(t=y??O)!==null&&t!==void 0?t:N2,W=Object.assign(Object.assign({},R),p),V=u.createElement("div",Object.assign({},C,{style:W,className:D,"aria-live":"polite","aria-busy":P}),u.createElement(L7,{prefixCls:_,indicator:U,percent:A}),d&&(M||v)?u.createElement("div",{className:`${_}-text`},d):null);return I(M?u.createElement("div",Object.assign({},C,{className:ee(`${_}-nested-loading`,m,T,N)}),P&&u.createElement("div",{key:"loading"},V),u.createElement("div",{className:B,key:"container"},g)):v?u.createElement("div",{className:ee(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:P},s,T,N)},V):V)};Qd.setDefaultIndicator=e=>{N2=e};const Lh=J.createContext({});Lh.Consumer;var k2=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 G7=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:l}=e,s=k2(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=u.useContext(Et),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)},K7=J.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:l,styles:s,className:c,classNames:d,colStyle:m}=e,p=k2(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:g,itemLayout:v}=u.useContext(Lh),{getPrefixCls:y,list:S}=u.useContext(Et),C=T=>{var N,P;return ee((P=(N=S==null?void 0:S.item)===null||N===void 0?void 0:N.classNames)===null||P===void 0?void 0:P[T],d==null?void 0:d[T])},b=T=>{var N,P;return Object.assign(Object.assign({},(P=(N=S==null?void 0:S.item)===null||N===void 0?void 0:N.styles)===null||P===void 0?void 0:P[T]),s==null?void 0:s[T])},w=()=>{let T=!1;return u.Children.forEach(r,N=>{typeof N=="string"&&(T=!0)}),T&&u.Children.count(r)>1},$=()=>v==="vertical"?!!l:!w(),R=y("list",n),O=o&&o.length>0&&J.createElement("ul",{className:ee(`${R}-item-action`,C("actions")),key:"actions",style:b("actions")},o.map((T,N)=>J.createElement("li",{key:`${R}-item-action-${N}`},T,N!==o.length-1&&J.createElement("em",{className:`${R}-item-action-split`})))),_=g?"div":"li",I=J.createElement(_,Object.assign({},p,g?{}:{ref:t},{className:ee(`${R}-item`,{[`${R}-item-no-flex`]:!$()},c)}),v==="vertical"&&l?[J.createElement("div",{className:`${R}-item-main`,key:"content"},r,O),J.createElement("div",{className:ee(`${R}-item-extra`,C("extra")),key:"extra",style:b("extra")},l)]:[r,O,jr(l,{key:"extra"})]);return g?J.createElement(lj,{ref:t,flex:1,style:m},I):I}),M2=K7;M2.Meta=G7;const X7=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}}}},Y7=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)}`}}}}}},Q7=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:v,margin:y,colorText:S,colorTextDescription:C,motionDurationSlow:b,lineWidth:w,headerBg:$,footerBg:R,emptyTextPadding:O,metaMarginBottom:_,avatarMarginRight:I,titleMarginBottom:T,descriptionFontSize:N}=e;return{[t]:Object.assign(Object.assign({},Fn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:$},[`${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:S,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:I},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:S},[`${t}-item-meta-title`]:{margin:`0 0 ${Z(e.marginXXS)} 0`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:S,transition:`all ${b}`,"&:hover":{color:m}}},[`${t}-item-meta-description`]:{color:C,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(v)}`,color:C,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:w,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:C,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:O,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:T,color:S,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"}}}}},J7=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}),Z7=pn("List",e=>{const t=Xt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Q7(t),X7(t),Y7(t)]},J7);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};function tz(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:v,dataSource:y=[],size:S,header:C,footer:b,loading:w=!1,rowKey:$,renderItem:R,locale:O}=e,_=ez(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),I=n&&typeof n=="object"?n:{},[T,N]=u.useState(I.defaultCurrent||1),[P,k]=u.useState(I.defaultPageSize||10),{getPrefixCls:A,direction:M,className:D,style:B}=gr("list"),{renderEmpty:U}=u.useContext(Et),W={current:1,total:0,position:"bottom"},V=$e=>(ke,Ie)=>{var Ge;N(ke),k(Ie),n&&((Ge=n==null?void 0:n[$e])===null||Ge===void 0||Ge.call(n,ke,Ie))},H=V("onChange"),Q=V("onShowSizeChange"),q=($e,ke)=>{if(!R)return null;let Ie;return typeof $=="function"?Ie=$($e):$?Ie=$e[$]:Ie=$e.key,Ie||(Ie=`list-item-${ke}`),u.createElement(u.Fragment,{key:Ie},R($e,ke))},z=!!(g||n||b),F=A("list",r),[Y,ne,te]=Z7(F);let re=w;typeof re=="boolean"&&(re={spinning:re});const fe=!!(re!=null&&re.spinning),me=Qo(S);let ue="";switch(me){case"large":ue="lg";break;case"small":ue="sm";break}const Ce=ee(F,{[`${F}-vertical`]:p==="vertical",[`${F}-${ue}`]:ue,[`${F}-split`]:l,[`${F}-bordered`]:o,[`${F}-loading`]:fe,[`${F}-grid`]:!!v,[`${F}-something-after-last-item`]:z,[`${F}-rtl`]:M==="rtl"},D,s,c,ne,te),le=ag(W,{total:y.length,current:T,pageSize:P},n||{}),ce=Math.ceil(le.total/le.pageSize);le.current=Math.min(le.current,ce);const he=n&&u.createElement("div",{className:ee(`${F}-pagination`)},u.createElement(M7,Object.assign({align:"end"},le,{onChange:H,onShowSizeChange:Q})));let ye=Be(y);n&&y.length>(le.current-1)*le.pageSize&&(ye=Be(y).splice((le.current-1)*le.pageSize,le.pageSize));const de=Object.keys(v||{}).some($e=>["xs","sm","md","lg","xl","xxl"].includes($e)),se=Ch(de),ve=u.useMemo(()=>{for(let $e=0;$e<va.length;$e+=1){const ke=va[$e];if(se[ke])return ke}},[se]),Se=u.useMemo(()=>{if(!v)return;const $e=ve&&v[ve]?v[ve]:v.column;if($e)return{width:`${100/$e}%`,maxWidth:`${100/$e}%`}},[JSON.stringify(v),ve]);let Oe=fe&&u.createElement("div",{style:{minHeight:53}});if(ye.length>0){const $e=ye.map(q);Oe=v?u.createElement(uj,{gutter:v.gutter},u.Children.map($e,ke=>u.createElement("div",{key:ke==null?void 0:ke.key,style:Se},ke))):u.createElement("ul",{className:`${F}-items`},$e)}else!m&&!fe&&(Oe=u.createElement("div",{className:`${F}-empty-text`},(O==null?void 0:O.emptyText)||(U==null?void 0:U("List"))||u.createElement($w,{componentName:"List"})));const Ne=le.position,we=u.useMemo(()=>({grid:v,itemLayout:p}),[JSON.stringify(v),p]);return Y(u.createElement(Lh.Provider,{value:we},u.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},B),d),className:Ce},_),(Ne==="top"||Ne==="both")&&he,C&&u.createElement("div",{className:`${F}-header`},C),u.createElement(Qd,Object.assign({},re),Oe,m),b&&u.createElement("div",{className:`${F}-footer`},b),g||(Ne==="bottom"||Ne==="both")&&he)))}const nz=u.forwardRef(tz),Vs=nz;Vs.Item=M2;const rz=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let yo=null,ma=e=>e(),Ws=[],qs={};function pC(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=qs,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,duration:t,rtl:n,maxCount:r,top:o}}const oz=J.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=u.useContext(Et),l=qs.prefixCls||o("message"),s=u.useContext(IT),[c,d]=px(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}),iz=J.forwardRef((e,t)=>{const[n,r]=J.useState(pC),o=()=>{r(pC)};J.useEffect(o,[]);const l=JS(),s=l.getRootPrefixCls(),c=l.getIconPrefixCls(),d=l.getTheme(),m=J.createElement(oz,{ref:t,sync:o,messageConfig:n});return J.createElement(Yo,{prefixCls:s,iconPrefixCls:c,theme:d},l.holderRender?l.holderRender(m):m)}),Jd=()=>{if(!yo){const e=document.createDocumentFragment(),t={fragment:e};yo=t,ma(()=>{ih()(J.createElement(iz,{ref:r=>{const{instance:o,sync:l}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=l,Jd())})}}),e)});return}yo.instance&&(Ws.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ma(()=>{const r=yo.instance.open(Object.assign(Object.assign({},qs),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ma(()=>{yo==null||yo.instance.destroy(e.key)});break;default:ma(()=>{var r;const o=(r=yo.instance)[t].apply(r,Be(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ws=[])};function az(e){qs=Object.assign(Object.assign({},qs),e),ma(()=>{var t;(t=yo==null?void 0:yo.sync)===null||t===void 0||t.call(yo)})}function lz(e){const t=rh(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:l=>{r=l}};return Ws.push(o),()=>{r?ma(()=>{r()}):o.skipped=!0}});return Jd(),t}function sz(e,t){const n=rh(r=>{let o;const l={type:e,args:t,resolve:r,setCloseFn:s=>{o=s}};return Ws.push(l),()=>{o?ma(()=>{o()}):l.skipped=!0}});return Jd(),n}const cz=e=>{Ws.push({type:"destroy",key:e}),Jd()},uz=["success","info","warning","error","loading"],dz={open:lz,destroy:cz,config:az,useMessage:gO,_InternalPanelDoNotUseOrYouWillBeFired:lO},hl=dz;uz.forEach(e=>{hl[e]=(...t)=>sz(e,t)});var fz=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 mz=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:l,title:s,children:c,footer:d}=e,m=fz(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=u.useContext(Et),g=p(),v=t||p("modal"),y=gi(g),[S,C,b]=Kx(v,y),w=`${v}-confirm`;let $={};return l?$={closable:o??!1,title:"",footer:"",children:u.createElement(Yx,Object.assign({},e,{prefixCls:v,confirmPrefixCls:w,rootPrefixCls:g,content:c}))}:$={closable:o??!0,title:s,footer:d!==null&&u.createElement(Wx,Object.assign({},e)),children:c},S(u.createElement(kx,Object.assign({prefixCls:v,className:ee(C,`${v}-pure-panel`,l&&w,l&&`${w}-${l}`,n,b,y)},m,{closeIcon:Vx(v,r),closable:o},$)))},pz=iw(mz);function j2(e){return ac(ew(e))}const Ur=Xx;Ur.useModal=OT;Ur.info=function(t){return ac(tw(t))};Ur.success=function(t){return ac(nw(t))};Ur.error=function(t){return ac(rw(t))};Ur.warning=j2;Ur.warn=j2;Ur.confirm=function(t){return ac(ow(t))};Ur.destroyAll=function(){for(;fa.length;){const t=fa.pop();t&&t()}};Ur.config=xT;Ur._InternalPanelDoNotUseOrYouWillBeFired=pz;var gz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],z2=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,v=e.onClick,y=e.onChange,S=e.onKeyDown,C=kt(e,gz),b=Hn(!1,{value:s,defaultValue:c}),w=ae(b,2),$=w[0],R=w[1];function O(N,P){var k=$;return d||(k=N,R(k),y==null||y(k,P)),k}function _(N){N.which===Ve.LEFT?O(!1,N):N.which===Ve.RIGHT&&O(!0,N),S==null||S(N)}function I(N){var P=O(!$,N);v==null||v(P,N)}var T=ee(o,l,(n={},G(n,"".concat(o,"-checked"),$),G(n,"".concat(o,"-disabled"),d),n));return u.createElement("button",Re({},C,{type:"button",role:"switch","aria-checked":$,disabled:d,className:T,ref:t,onKeyDown:_,onClick:I}),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)))});z2.displayName="Switch";const hz=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()}}}}}}},vz=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}}}},yz=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}}}}},bz=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()}}}}}},Cz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Fn(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}}),xo(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"}})}},Sz=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 cn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+c+c*2,innerMinMarginSM:m/2,innerMaxMarginSM:m+c+c*2}},xz=pn("Switch",e=>{const t=Xt(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[Cz(t),bz(t),yz(t),vz(t),hz(t)]},Sz);var wz=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{prefixCls:n,size:r,disabled:o,loading:l,className:s,rootClassName:c,style:d,checked:m,value:p,defaultChecked:g,defaultValue:v,onChange:y}=e,S=wz(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[C,b]=Hn(!1,{value:m??p,defaultValue:g??v}),{getPrefixCls:w,direction:$,switch:R}=u.useContext(Et),O=u.useContext(ha),_=(o??O)||l,I=w("switch",n),T=u.createElement("div",{className:`${I}-handle`},l&&u.createElement(Qs,{className:`${I}-loading-icon`})),[N,P,k]=xz(I),A=Qo(r),M=ee(R==null?void 0:R.className,{[`${I}-small`]:A==="small",[`${I}-loading`]:l,[`${I}-rtl`]:$==="rtl"},s,c,P,k),D=Object.assign(Object.assign({},R==null?void 0:R.style),d),B=(...U)=>{b(U[0]),y==null||y.apply(void 0,U)};return N(u.createElement(lh,{component:"Switch",disabled:_},u.createElement(z2,Object.assign({},S,{checked:C,onChange:B,prefixCls:I,className:M,style:D,disabled:_,ref:t,loadingIcon:T}))))}),Du=$z;Du.__ANT_SWITCH=!0;var Ez={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Rz=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:Ez}))},Oz=u.forwardRef(Rz);const Iz=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({},Fn(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}}},Ah=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Xt(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})},Bh=e=>({defaultBg:new cn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),L2=pn("Tag",e=>{const t=Ah(e);return Iz(t)},Bh);var _z=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 Tz=u.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:l,children:s,icon:c,onChange:d,onClick:m}=e,p=_z(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:v}=u.useContext(Et),y=R=>{d==null||d(!l),m==null||m(R)},S=g("tag",n),[C,b,w]=L2(S),$=ee(S,`${S}-checkable`,{[`${S}-checkable-checked`]:l},v==null?void 0:v.className,o,b,w);return C(u.createElement("span",Object.assign({},p,{ref:t,style:Object.assign(Object.assign({},r),v==null?void 0:v.style),className:$,onClick:y}),c,u.createElement("span",null,s)))}),Pz=e=>xd(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"}}})),Nz=Ys(["Tag","preset"],e=>{const t=Ah(e);return Pz(t)},Bh);function kz(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Cu=(e,t,n)=>{const r=kz(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"}}}},Mz=Ys(["Tag","status"],e=>{const t=Ah(e);return[Cu(t,"success","Success"),Cu(t,"processing","Info"),Cu(t,"error","Error"),Cu(t,"warning","Warning")]},Bh);var jz=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 zz=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,v=jz(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:y,direction:S,tag:C}=u.useContext(Et),[b,w]=u.useState(!0),$=Xn(v,["closeIcon","closable"]);u.useEffect(()=>{g!==void 0&&w(g)},[g]);const R=Hd(d),O=aN(d),_=R||O,I=Object.assign(Object.assign({backgroundColor:d&&!_?d:void 0},C==null?void 0:C.style),l),T=y("tag",n),[N,P,k]=L2(T),A=ee(T,C==null?void 0:C.className,{[`${T}-${d}`]:_,[`${T}-has-color`]:d&&!_,[`${T}-hidden`]:!b,[`${T}-rtl`]:S==="rtl",[`${T}-borderless`]:!p},r,o,P,k),M=H=>{H.stopPropagation(),m==null||m(H),!H.defaultPrevented&&w(!1)},[,D]=nh(Il(e),Il(C),{closable:!1,closeIconRender:H=>{const Q=u.createElement("span",{className:`${T}-close-icon`,onClick:M},H);return lx(H,Q,q=>({onClick:z=>{var F;(F=q==null?void 0:q.onClick)===null||F===void 0||F.call(q,z),M(z)},className:ee(q==null?void 0:q.className,`${T}-close-icon`)}))}}),B=typeof v.onClick=="function"||s&&s.type==="a",U=c||null,W=U?u.createElement(u.Fragment,null,U,s&&u.createElement("span",null,s)):s,V=u.createElement("span",Object.assign({},$,{ref:t,className:A,style:I}),W,D,R&&u.createElement(Nz,{key:"preset",prefixCls:T}),O&&u.createElement(Mz,{key:"status",prefixCls:T}));return N(B?u.createElement(lh,{component:"Tag"},V):V)}),bo=zz;bo.CheckableTag=Tz;const ho=(e,t)=>new cn(e).setA(t).toRgbString(),al=(e,t)=>new cn(e).lighten(t).toHexString(),Lz=e=>{const t=ga(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]}},Az=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.85),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.18),colorFillSecondary:ho(r,.12),colorFillTertiary:ho(r,.08),colorFillQuaternary:ho(r,.04),colorBgSolid:ho(r,.95),colorBgSolidHover:ho(r,1),colorBgSolidActive:ho(r,.9),colorBgElevated:al(n,12),colorBgContainer:al(n,8),colorBgLayout:al(n,0),colorBgSpotlight:al(n,26),colorBgBlur:ho(r,.04),colorBorder:al(n,26),colorBorderSecondary:al(n,19)}},Bz=(e,t)=>{const n=Object.keys(eh).map(l=>{const s=ga(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??OS(e),o=RS(e,{generateColorPalettes:Lz,generateNeutralColorPalettes:Az});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})},Dz={defaultSeed:Uu.token,darkAlgorithm:Bz};var Hz={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"},Fz=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:Hz}))},Vz=u.forwardRef(Fz),Wz={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"},qz=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:Wz}))},Uz=u.forwardRef(qz);const Gz=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Kz=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
319
|
+
h${r}&,
|
|
320
|
+
div&-h${r},
|
|
321
|
+
div&-h${r} > textarea,
|
|
322
|
+
h${r}
|
|
323
|
+
`]=Gz(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Xz=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},AS(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Yz=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:Wu[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}}),Qz=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"}}}},Jz=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Zz=()=>({"\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"}}),e9=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"}},Kz(e)),{[`
|
|
324
|
+
& + h1${t},
|
|
325
|
+
& + h2${t},
|
|
326
|
+
& + h3${t},
|
|
327
|
+
& + h4${t},
|
|
328
|
+
& + h5${t}
|
|
329
|
+
`]:{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}}}),Yz(e)),Xz(e)),{[`
|
|
330
|
+
${t}-expand,
|
|
331
|
+
${t}-collapse,
|
|
332
|
+
${t}-edit,
|
|
333
|
+
${t}-copy
|
|
334
|
+
`]:Object.assign(Object.assign({},AS(e)),{marginInlineStart:e.marginXXS})}),Qz(e)),Jz(e)),Zz()),{"&-rtl":{direction:"rtl"}})}},t9=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),A2=pn("Typography",e9,t9),n9=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:v,enterIcon:y=u.createElement(Uz,null)}=e,S=u.useRef(null),C=u.useRef(!1),b=u.useRef(null),[w,$]=u.useState(d);u.useEffect(()=>{$(d)},[d]),u.useEffect(()=>{var B;if(!((B=S.current)===null||B===void 0)&&B.resizableTextArea){const{textArea:U}=S.current.resizableTextArea;U.focus();const{length:W}=U.value;U.setSelectionRange(W,W)}},[]);const R=({target:B})=>{$(B.value.replace(/[\n\r]/g,""))},O=()=>{C.current=!0},_=()=>{C.current=!1},I=({keyCode:B})=>{C.current||(b.current=B)},T=()=>{m(w.trim())},N=({keyCode:B,ctrlKey:U,altKey:W,metaKey:V,shiftKey:H})=>{b.current!==B||C.current||U||W||V||H||(B===Ve.ENTER?(T(),g==null||g()):B===Ve.ESC&&p())},P=()=>{T()},[k,A,M]=A2(t),D=ee(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${v}`]:!!v},r,A,M);return k(u.createElement("div",{className:D,style:o},u.createElement(l7,{ref:S,maxLength:s,value:w,onChange:R,onKeyDown:I,onKeyUp:N,onCompositionStart:O,onCompositionEnd:_,onBlur:P,"aria-label":n,rows:1,autoSize:c}),y!==null?jr(y,{className:`${t}-edit-content-confirm`}):null))};var Cp,gC;function r9(){return gC||(gC=1,Cp=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()}}),Cp}var Sp,hC;function o9(){if(hC)return Sp;hC=1;var e=r9(),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,v,y=!1;s||(s={}),c=s.debug||!1;try{m=e(),p=document.createRange(),g=document.getSelection(),v=document.createElement("span"),v.textContent=l,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(C){if(C.stopPropagation(),s.format)if(C.preventDefault(),typeof C.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=t[s.format]||t.default;window.clipboardData.setData(b,l)}else C.clipboardData.clearData(),C.clipboardData.setData(s.format,l);s.onCopy&&(C.preventDefault(),s.onCopy(C.clipboardData))}),document.body.appendChild(v),p.selectNodeContents(v),g.addRange(p);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");y=!0}catch(C){c&&console.error("unable to copy using execCommand: ",C),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(b){c&&console.error("unable to copy using clipboardData: ",b),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()),v&&document.body.removeChild(v),m()}return y}return Sp=o,Sp}var i9=o9();const a9=Gs(i9);var l9=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 s9=({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=Bn(p=>l9(void 0,void 0,void 0,function*(){var g;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const v=typeof e.text=="function"?yield e.text():e.text;a9(v||rz(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(v){throw l(!1),v}}));return{copied:n,copyLoading:o,onClick:m}};function xp(e,t){return u.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const c9=e=>{const t=u.useRef(void 0);return u.useEffect(()=>{t.current=e}),t.current},u9=(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 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};const B2=u.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:s,children:c,direction:d,style:m}=e,p=d9(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:v,className:y,style:S}=gr("typography"),C=d??v,b=s?Ao(t,s):t,w=g("typography",n),[$,R,O]=A2(w),_=ee(w,y,{[`${w}-rtl`]:C==="rtl"},o,l,R,O),I=Object.assign(Object.assign({},S),m);return $(u.createElement(r,Object.assign({className:_,style:I,ref:b},p),c))});var f9={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"},m9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:f9}))},jg=u.forwardRef(m9);function vC(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function wp(e,t,n){return e===!0||e===void 0?t:e||n&&t}function p9(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 Dh=e=>["string","number"].includes(typeof e),g9=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:s,onCopy:c,loading:d})=>{const m=vC(o),p=vC(l),{copied:g,copy:v}=n??{},y=t?g:v,S=wp(m[t?1:0],y),C=typeof S=="string"?S:y;return u.createElement(di,{title:S},u.createElement("button",{type:"button",className:ee(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":C,tabIndex:s},t?wp(p[1],u.createElement(_w,null),!0):wp(p[0],d?u.createElement(Qs,null):u.createElement(jg,null),!0)))},Su=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)}),h9=e=>e.reduce((t,n)=>t+(Dh(n)?String(n).length:1),0);function yC(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=Dh(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 $p=0,Ep=1,Rp=2,Op=3,bC=4,xu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function v9(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(()=>h9(m),[r]),g=u.useMemo(()=>o(m,!1),[r]),[v,y]=u.useState(null),S=u.useRef(null),C=u.useRef(null),b=u.useRef(null),w=u.useRef(null),$=u.useRef(null),[R,O]=u.useState(!1),[_,I]=u.useState($p),[T,N]=u.useState(0),[P,k]=u.useState(null);rn(()=>{I(t&&n&&p?Ep:$p)},[n,r,l,t,m]),rn(()=>{var B,U,W,V;if(_===Ep){I(Rp);const H=C.current&&getComputedStyle(C.current).whiteSpace;k(H)}else if(_===Rp){const H=!!(!((B=b.current)===null||B===void 0)&&B.isExceed());I(H?Op:bC),y(H?[0,p]:null),O(H);const Q=((U=b.current)===null||U===void 0?void 0:U.getHeight())||0,q=l===1?0:((W=w.current)===null||W===void 0?void 0:W.getHeight())||0,z=((V=$.current)===null||V===void 0?void 0:V.getHeight())||0,F=Math.max(Q,q+z);N(F+1),d(H)}},[_]);const A=v?Math.ceil((v[0]+v[1])/2):0;rn(()=>{var B;const[U,W]=v||[0,0];if(U!==W){const H=(((B=S.current)===null||B===void 0?void 0:B.getHeight())||0)>T;let Q=A;W-U===1&&(Q=H?U:W),y(H?[U,Q]:[Q,W])}},[v,A]);const M=u.useMemo(()=>{if(!t)return o(m,!1);if(_!==Op||!v||v[0]!==v[1]){const B=o(m,!1);return[bC,$p].includes(_)?B:u.createElement("span",{style:Object.assign(Object.assign({},xu),{WebkitLineClamp:l})},B)}return o(s?m:yC(m,v[0]),R)},[s,_,v,m].concat(Be(c))),D={width:n,margin:0,padding:0,whiteSpace:P==="nowrap"?"normal":"inherit"};return u.createElement(u.Fragment,null,M,_===Rp&&u.createElement(u.Fragment,null,u.createElement(Su,{style:Object.assign(Object.assign(Object.assign({},D),xu),{WebkitLineClamp:l}),ref:b},g),u.createElement(Su,{style:Object.assign(Object.assign(Object.assign({},D),xu),{WebkitLineClamp:l-1}),ref:w},g),u.createElement(Su,{style:Object.assign(Object.assign(Object.assign({},D),xu),{WebkitLineClamp:1}),ref:$},o([],!0))),_===Op&&v&&v[0]!==v[1]&&u.createElement(Su,{style:Object.assign(Object.assign({},D),{top:400}),ref:S},o(yC(m,A),!0)),_===Ep&&u.createElement("span",{style:{whiteSpace:"inherit"},ref:C}))}const y9=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:u.createElement(di,Object.assign({open:t?void 0:!1},r),n);var b9=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 C9({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 S9="...",CC=["delete","mark","code","underline","strong","keyboard","italic"],Zd=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:v,title:y}=e,S=b9(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:C,direction:b}=u.useContext(Et),[w]=pi("Text"),$=u.useRef(null),R=u.useRef(null),O=C("typography",r),_=Xn(S,CC),[I,T]=xp(p),[N,P]=Hn(!1,{value:T.editing}),{triggerType:k=["icon"]}=T,A=Pe=>{var He;Pe&&((He=T.onStart)===null||He===void 0||He.call(T)),P(Pe)},M=c9(N);rn(()=>{var Pe;!N&&M&&((Pe=R.current)===null||Pe===void 0||Pe.focus())},[N]);const D=Pe=>{Pe==null||Pe.preventDefault(),A(!0)},B=Pe=>{var He;(He=T.onChange)===null||He===void 0||He.call(T,Pe),A(!1)},U=()=>{var Pe;(Pe=T.onCancel)===null||Pe===void 0||Pe.call(T),A(!1)},[W,V]=xp(g),{copied:H,copyLoading:Q,onClick:q}=s9({copyConfig:V,children:d}),[z,F]=u.useState(!1),[Y,ne]=u.useState(!1),[te,re]=u.useState(!1),[fe,me]=u.useState(!1),[ue,Ce]=u.useState(!0),[le,ce]=xp(m,{expandable:!1,symbol:Pe=>Pe?w==null?void 0:w.collapse:w==null?void 0:w.expand}),[he,ye]=Hn(ce.defaultExpanded||!1,{value:ce.expanded}),de=le&&(!he||ce.expandable==="collapsible"),{rows:se=1}=ce,ve=u.useMemo(()=>de&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||I||W),[de,ce,I,W]);rn(()=>{le&&!ve&&(F(Ub("webkitLineClamp")),ne(Ub("textOverflow")))},[ve,le]);const[Se,Oe]=u.useState(de),Ne=u.useMemo(()=>ve?!1:se===1?Y:z,[ve,Y,z]);rn(()=>{Oe(Ne&&de)},[Ne,de]);const we=de&&(Se?fe:te),$e=de&&se===1&&Se,ke=de&&se>1&&Se,Ie=(Pe,He)=>{var Rt;ye(He.expanded),(Rt=ce.onExpand)===null||Rt===void 0||Rt.call(ce,Pe,He)},[Ge,tt]=u.useState(0),St=({offsetWidth:Pe})=>{tt(Pe)},ut=Pe=>{var He;re(Pe),te!==Pe&&((He=ce.onEllipsis)===null||He===void 0||He.call(ce,Pe))};u.useEffect(()=>{const Pe=$.current;if(le&&Se&&Pe){const He=p9(Pe);fe!==He&&me(He)}},[le,Se,d,ke,ue,Ge]),u.useEffect(()=>{const Pe=$.current;if(typeof IntersectionObserver>"u"||!Pe||!Se||!de)return;const He=new IntersectionObserver(()=>{Ce(!!Pe.offsetParent)});return He.observe(Pe),()=>{He.disconnect()}},[Se,de]);const Ue=u9(ce.tooltip,T.text,d),st=u.useMemo(()=>{if(!(!le||Se))return[T.text,d,y,Ue.title].find(Dh)},[le,Se,y,Ue.title,we]);if(N)return u.createElement(n9,{value:(n=T.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:B,onCancel:U,onEnd:T.onEnd,prefixCls:O,className:o,style:l,direction:b,component:v,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const We=()=>{const{expandable:Pe,symbol:He}=ce;return Pe?u.createElement("button",{type:"button",key:"expand",className:`${O}-${he?"collapse":"expand"}`,onClick:Rt=>Ie(Rt,{expanded:!he}),"aria-label":he?w.collapse:w==null?void 0:w.expand},typeof He=="function"?He(he):He):null},mt=()=>{if(!I)return;const{icon:Pe,tooltip:He,tabIndex:Rt}=T,ht=Mr(He)[0]||(w==null?void 0:w.edit),Gt=typeof ht=="string"?ht:"";return k.includes("icon")?u.createElement(di,{key:"edit",title:He===!1?"":ht},u.createElement("button",{type:"button",ref:R,className:`${O}-edit`,onClick:D,"aria-label":Gt,tabIndex:Rt},Pe||u.createElement(Vz,{role:"button"}))):null},Ye=()=>W?u.createElement(g9,Object.assign({key:"copy"},V,{prefixCls:O,copied:H,locale:w,onCopy:q,loading:Q,iconOnly:d==null})):null,je=Pe=>[Pe&&We(),mt(),Ye()],Je=Pe=>[Pe&&!he&&u.createElement("span",{"aria-hidden":!0,key:"ellipsis"},S9),ce.suffix,je(Pe)];return u.createElement(Co,{onResize:St,disabled:!de},Pe=>u.createElement(y9,{tooltipProps:Ue,enableEllipsis:de,isEllipsis:we},u.createElement(B2,Object.assign({className:ee({[`${O}-${s}`]:s,[`${O}-disabled`]:c,[`${O}-ellipsis`]:le,[`${O}-ellipsis-single-line`]:$e,[`${O}-ellipsis-multiple-line`]:ke},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:ke?se:void 0}),component:v,ref:Ao(Pe,$,t),direction:b,onClick:k.includes("text")?D:void 0,"aria-label":st==null?void 0:st.toString(),title:y},_),u.createElement(v9,{enableMeasure:de&&!Se,text:d,rows:se,width:Ge,onEllipsis:ut,expanded:he,miscDeps:[H,he,Q,I,W,w].concat(Be(CC.map(He=>e[He])))},(He,Rt)=>C9(e,u.createElement(u.Fragment,null,He.length>0&&Rt&&!he&&st?u.createElement("span",{key:"show-content","aria-hidden":!0},He):He,Je(Rt)))))))});var x9=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=x9(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},s),{rel:r===void 0&&s.target==="_blank"?"noopener noreferrer":r});return u.createElement(Zd,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),o)});var $9=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 E9=u.forwardRef((e,t)=>{const{children:n}=e,r=$9(e,["children"]);return u.createElement(Zd,Object.assign({ref:t},r,{component:"div"}),n)});var R9=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 O9=(e,t)=>{const{ellipsis:n,children:r}=e,o=R9(e,["ellipsis","children"]),l=u.useMemo(()=>n&&typeof n=="object"?Xn(n,["expandable","rows"]):n,[n]);return u.createElement(Zd,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},I9=u.forwardRef(O9);var _9=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 T9=[1,2,3,4,5],P9=u.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=_9(e,["level","children"]),l=T9.includes(n)?`h${n}`:"h1";return u.createElement(Zd,Object.assign({ref:t},o,{component:l}),r)}),Jo=B2;Jo.Text=I9;Jo.Link=w9;Jo.Title=P9;Jo.Paragraph=E9;var N9={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"},k9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:N9}))},M9=u.forwardRef(k9),j9={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"},z9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:j9}))},SC=u.forwardRef(z9),L9={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"},A9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:L9}))},B9=u.forwardRef(A9),D9={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"},H9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:D9}))},F9=u.forwardRef(H9),V9={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"},W9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:V9}))},q9=u.forwardRef(W9),U9={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"},G9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:U9}))},K9=u.forwardRef(G9),X9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},Y9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:X9}))},Q9=u.forwardRef(Y9),J9={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"},Z9=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:J9}))},xC=u.forwardRef(Z9),eL={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"},tL=function(t,n){return u.createElement(un,Re({},t,{ref:n,icon:eL}))},nL=u.forwardRef(tL);function rL(e,t){var y,S;const n=e[t];if(!(n!=null&&n.mainAgent))return null;const r=(S=(y=n.response)==null?void 0:y.body)==null?void 0:S.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 C=t-1;C>=0;C--)if(e[C].mainAgent){s=e[C];break}if(!s)return null;if(n.timestamp-s.timestamp>300*1e3)return{reason:"ttl"};const d=s.body,m=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||[],v=m.messages||[];if(v.length<g.length)p.push("msg_truncated");else{const C=Math.min(g.length,v.length);let b=!0;for(let w=0;w<C;w++)if(JSON.stringify(g[w])!==JSON.stringify(v[w])){b=!1;break}b||p.push("msg_modified")}return p.length===0?{reason:"key_change"}:{reason:p[0],reasons:p}}function sd(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}function wC(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(`
|
|
335
|
+
`):JSON.stringify(e.content):String(e.content??"")}const oL=[{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 iL(e){if(!e)return null;for(const t of oL)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:$s("agent")}}function $s(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 $C(e){return e?/^Base directory for this skill:/i.test(e.trim()):!1}function cd(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 no(e){return e==null||e===0?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function ud(e){if(Array.isArray(e))return e.map(ud);if(e&&typeof e=="object"){const t={};for(const n of Object.keys(e))n.startsWith("_")||(t[n]=ud(e[n]));return t}return e}function aL(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 lL(e){return e?e.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}const sL={"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:`
|
|
336
|
+
如需卸载,请运行: ccv --uninstall`,en:`
|
|
337
|
+
To uninstall, run: ccv --uninstall`,"zh-TW":`
|
|
338
|
+
如需卸載,請執行: ccv --uninstall`,ko:`
|
|
339
|
+
제거하려면 실행: ccv --uninstall`,ja:`
|
|
340
|
+
アンインストールするには: ccv --uninstall`,de:`
|
|
341
|
+
Zum Deinstallieren: ccv --uninstall`,es:`
|
|
342
|
+
Para desinstalar, ejecute: ccv --uninstall`,fr:`
|
|
343
|
+
Pour désinstaller, exécutez : ccv --uninstall`,it:`
|
|
344
|
+
Per disinstallare, esegui: ccv --uninstall`,da:`
|
|
345
|
+
For at afinstallere, kør: ccv --uninstall`,pl:`
|
|
346
|
+
Aby odinstalować, uruchom: ccv --uninstall`,ru:`
|
|
347
|
+
Для удаления выполните: ccv --uninstall`,ar:`
|
|
348
|
+
لإلغاء التثبيت، قم بتشغيل: ccv --uninstall`,no:`
|
|
349
|
+
For å avinstallere, kjør: ccv --uninstall`,"pt-BR":`
|
|
350
|
+
Para desinstalar, execute: ccv --uninstall`,th:`
|
|
351
|
+
หากต้องการถอนการติดตั้ง ให้เรียกใช้: ccv --uninstall`,tr:`
|
|
352
|
+
Kaldırmak için çalıştırın: ccv --uninstall`,uk:`
|
|
353
|
+
Для видалення виконайте: ccv --uninstall`},"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:`
|
|
354
|
+
🗑️ CC Viewer 已完全卸载`,en:`
|
|
355
|
+
🗑️ CC Viewer fully uninstalled`,"zh-TW":`
|
|
356
|
+
🗑️ CC Viewer 已完全卸載`,ko:`
|
|
357
|
+
🗑️ CC Viewer 완전히 제거됨`,ja:`
|
|
358
|
+
🗑️ CC Viewer を完全にアンインストールしました`,de:`
|
|
359
|
+
🗑️ CC Viewer vollständig deinstalliert`,es:`
|
|
360
|
+
🗑️ CC Viewer desinstalado completamente`,fr:`
|
|
361
|
+
🗑️ CC Viewer entièrement désinstallé`,it:`
|
|
362
|
+
🗑️ CC Viewer completamente disinstallato`,da:`
|
|
363
|
+
🗑️ CC Viewer fuldstændigt afinstalleret`,pl:`
|
|
364
|
+
🗑️ CC Viewer całkowicie odinstalowany`,ru:`
|
|
365
|
+
🗑️ CC Viewer полностью удалён`,ar:`
|
|
366
|
+
🗑️ تم إلغاء تثبيت CC Viewer بالكامل`,no:`
|
|
367
|
+
🗑️ CC Viewer fullstendig avinstallert`,"pt-BR":`
|
|
368
|
+
🗑️ CC Viewer completamente desinstalado`,th:`
|
|
369
|
+
🗑️ CC Viewer ถูกถอนการติดตั้งอย่างสมบูรณ์`,tr:`
|
|
370
|
+
🗑️ CC Viewer tamamen kaldırıldı`,uk:`
|
|
371
|
+
🗑️ CC Viewer повністю видалено`},"server.started":{zh:`
|
|
372
|
+
Claude 请求监控服务已启动: http://{host}:{port}
|
|
373
|
+
`,en:`
|
|
374
|
+
CC Viewer started: http://{host}:{port}
|
|
375
|
+
`,"zh-TW":`
|
|
376
|
+
Claude 請求監控服務已啟動: http://{host}:{port}
|
|
377
|
+
`,ko:`
|
|
378
|
+
CC Viewer 시작됨: http://{host}:{port}
|
|
379
|
+
`,ja:`
|
|
380
|
+
CC Viewer 起動: http://{host}:{port}
|
|
381
|
+
`,de:`
|
|
382
|
+
CC Viewer gestartet: http://{host}:{port}
|
|
383
|
+
`,es:`
|
|
384
|
+
CC Viewer iniciado: http://{host}:{port}
|
|
385
|
+
`,fr:`
|
|
386
|
+
CC Viewer démarré : http://{host}:{port}
|
|
387
|
+
`,it:`
|
|
388
|
+
CC Viewer avviato: http://{host}:{port}
|
|
389
|
+
`,da:`
|
|
390
|
+
CC Viewer startet: http://{host}:{port}
|
|
391
|
+
`,pl:`
|
|
392
|
+
CC Viewer uruchomiony: http://{host}:{port}
|
|
393
|
+
`,ru:`
|
|
394
|
+
CC Viewer запущен: http://{host}:{port}
|
|
395
|
+
`,ar:`
|
|
396
|
+
تم تشغيل CC Viewer: http://{host}:{port}
|
|
397
|
+
`,no:`
|
|
398
|
+
CC Viewer startet: http://{host}:{port}
|
|
399
|
+
`,"pt-BR":`
|
|
400
|
+
CC Viewer iniciado: http://{host}:{port}
|
|
401
|
+
`,th:`
|
|
402
|
+
CC Viewer เริ่มทำงาน: http://{host}:{port}
|
|
403
|
+
`,tr:`
|
|
404
|
+
CC Viewer başlatıldı: http://{host}:{port}
|
|
405
|
+
`,uk:`
|
|
406
|
+
CC Viewer запущено: http://{host}:{port}
|
|
407
|
+
`},"server.reuse":{zh:`
|
|
408
|
+
CC Viewer 已在运行: http://{host}:{port}
|
|
409
|
+
`,en:`
|
|
410
|
+
CC Viewer already running: http://{host}:{port}
|
|
411
|
+
`,"zh-TW":`
|
|
412
|
+
CC Viewer 已在運行: http://{host}:{port}
|
|
413
|
+
`,ko:`
|
|
414
|
+
CC Viewer 이미 실행 중: http://{host}:{port}
|
|
415
|
+
`,ja:`
|
|
416
|
+
CC Viewer は既に実行中: http://{host}:{port}
|
|
417
|
+
`,de:`
|
|
418
|
+
CC Viewer läuft bereits: http://{host}:{port}
|
|
419
|
+
`,es:`
|
|
420
|
+
CC Viewer ya en ejecución: http://{host}:{port}
|
|
421
|
+
`,fr:`
|
|
422
|
+
CC Viewer déjà en cours d'exécution : http://{host}:{port}
|
|
423
|
+
`,it:`
|
|
424
|
+
CC Viewer già in esecuzione: http://{host}:{port}
|
|
425
|
+
`,da:`
|
|
426
|
+
CC Viewer kører allerede: http://{host}:{port}
|
|
427
|
+
`,pl:`
|
|
428
|
+
CC Viewer już działa: http://{host}:{port}
|
|
429
|
+
`,ru:`
|
|
430
|
+
CC Viewer уже запущен: http://{host}:{port}
|
|
431
|
+
`,ar:`
|
|
432
|
+
CC Viewer يعمل بالفعل: http://{host}:{port}
|
|
433
|
+
`,no:`
|
|
434
|
+
CC Viewer kjører allerede: http://{host}:{port}
|
|
435
|
+
`,"pt-BR":`
|
|
436
|
+
CC Viewer já em execução: http://{host}:{port}
|
|
437
|
+
`,th:`
|
|
438
|
+
CC Viewer กำลังทำงานอยู่แล้ว: http://{host}:{port}
|
|
439
|
+
`,tr:`
|
|
440
|
+
CC Viewer zaten çalışıyor: http://{host}:{port}
|
|
441
|
+
`,uk:`
|
|
442
|
+
CC Viewer вже працює: http://{host}:{port}
|
|
443
|
+
`},"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:"Import local logs","zh-TW":"匯入本地日誌",ko:"로컬 로그 가져오기",ja:"ローカルログをインポート",de:"Lokale Logs importieren",es:"Importar logs locales",fr:"Importer les logs locaux",it:"Importa log locali",da:"Importér lokale logs",pl:"Importuj lokalne logi",ru:"Импорт локальных логов",ar:"استيراد السجلات المحلية",no:"Importer lokale logger","pt-BR":"Importar logs locais",th:"นำเข้าบันทึกในเครื่อง",tr:"Yerel logları içe aktar",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:"文件大小不能超过 200MB",en:"File size cannot exceed 200MB","zh-TW":"檔案大小不能超過 200MB",ko:"파일 크기는 200MB를 초과할 수 없습니다",ja:"ファイルサイズは200MBを超えることはできません",de:"Dateigröße darf 200MB nicht überschreiten",es:"El tamaño del archivo no puede superar 200MB",fr:"La taille du fichier ne peut pas dépasser 200 Mo",it:"La dimensione del file non può superare 200MB",da:"Filstørrelsen må ikke overstige 200MB",pl:"Rozmiar pliku nie może przekraczać 200MB",ru:"Размер файла не может превышать 200МБ",ar:"حجم الملف لا يمكن أن يتجاوز 200 ميجابايت",no:"Filstørrelsen kan ikke overstige 200MB","pt-BR":"O tamanho do arquivo não pode exceder 200MB",th:"ขนาดไฟล์ต้องไม่เกิน 200MB",tr:"Dosya boyutu 200MB'ı aşamaz",uk:"Розмір файлу не може перевищувати 200МБ"},"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:"Token 消耗统计",en:"Token Stats","zh-TW":"Token 消耗統計",ko:"Token 소비 통계",ja:"Token 消費統計",de:"Token-Statistik",es:"Estadísticas de Token",fr:"Statistiques Token",it:"Statistiche Token",da:"Token-statistik",pl:"Statystyki Token",ru:"Статистика Token",ar:"إحصائيات Token",no:"Token-statistikk","pt-BR":"Estatísticas de Token",th:"สถิติ Token",tr:"Token İstatistikleri",uk:"Статистика Token"},"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.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.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.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.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:"Перебудова кешу: ключ кешу змінено (причина невідома)"}},Cl={};for(const[e,t]of Object.entries(sL))for(const[n,r]of Object.entries(t))Cl[n]||(Cl[n]={}),Cl[n][e]=r;let Hh="zh";const wu={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 cL(e){if(!e)return"en";const t=e.toLowerCase().replace(/_/g,"-");if(wu[t])return wu[t];const n=t.split("-")[0];return wu[n]?wu[n]:"en"}function uL(){return typeof navigator<"u"&&navigator.language?cL(navigator.language):"en"}function Fh(e){Hh=Cl[e]?e:"en"}function Us(){return Hh}function rt(e,t){var r;let n=((r=Cl[Hh])==null?void 0:r[e])||Cl.en[e]||e;if(t)for(const[o,l]of Object.entries(t))n=n.replaceAll(`{${o}}`,l);return n}Fh(uL());const dL="_headerBar_wnllt_2",fL="_titleText_wnllt_11",mL="_titleArrow_wnllt_17",pL="_tokenStatsTag_wnllt_23",gL="_tokenStatsIcon_wnllt_31",hL="_liveTag_wnllt_36",vL="_liveTagText_wnllt_40",yL="_countdownStrong_wnllt_45",bL="_langSelector_wnllt_50",CL="_settingsBtn_wnllt_61",SL="_settingsItem_wnllt_77",xL="_settingsLabel_wnllt_84",wL="_tokenStatsEmpty_wnllt_89",$L="_tokenStatsContainer_wnllt_96",EL="_modelCard_wnllt_101",RL="_modelCardSpaced_wnllt_107 _modelCard_wnllt_101",OL="_modelName_wnllt_113",IL="_statsTable_wnllt_123",_L="_th_wnllt_128",TL="_td_wnllt_138",PL="_label_wnllt_147",NL="_rowBorder_wnllt_157",kL="_promptExportBar_wnllt_162",ML="_promptScrollArea_wnllt_166",jL="_promptEmpty_wnllt_171",zL="_promptTimestamp_wnllt_177",LL="_textPromptCard_wnllt_185",AL="_preText_wnllt_194",BL="_systemCollapse_wnllt_204",DL="_systemLabel_wnllt_211",HL="_preSys_wnllt_216",At={headerBar:dL,titleText:fL,titleArrow:mL,tokenStatsTag:pL,tokenStatsIcon:gL,liveTag:hL,liveTagText:vL,countdownStrong:yL,langSelector:bL,settingsBtn:CL,settingsItem:SL,settingsLabel:xL,tokenStatsEmpty:wL,tokenStatsContainer:$L,modelCard:EL,modelCardSpaced:RL,modelName:OL,statsTable:IL,th:_L,td:TL,label:PL,rowBorder:NL,promptExportBar:kL,promptScrollArea:ML,promptEmpty:jL,promptTimestamp:zL,textPromptCard:LL,preText:AL,systemCollapse:BL,systemLabel:DL,preSys:HL},EC=[{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:FL}=Jo,zi=class zi extends J.Component{constructor(n){super(n);Bt(this,"handleShowPrompts",()=>{this.setState({promptModalVisible:!0,promptData:this.extractUserPrompts()})});Bt(this,"handleExportPromptsTxt",()=>{const n=this.state.promptData;if(!n||n.length===0)return;const r=[];for(const c of n){const d=c.timestamp?new Date(c.timestamp).toLocaleString():"";d&&r.push(`${d}:`);const m=(c.segments||[]).filter(p=>p.type==="text").map(p=>p.content);m.length>0&&r.push(m.join(`
|
|
444
|
+
`)),r.push("")}if(r.length===0)return;const o=new Blob([r.join(`
|
|
445
|
+
`)],{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)});this.state={countdownText:"",promptModalVisible:!1,promptData:[],settingsDrawerVisible:!1,globalSettingsVisible:!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:rt("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=rt("ui.minuteSecond",{m:s,s:String(c).padStart(2,"0")})}else l=rt("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,zi.COMMAND_TAGS.has(m))continue;const p=new RegExp(`^<${m}(?:\\s[^>]*)?>([\\s\\S]*)<\\/${m}>$`),g=s[0].match(p),v=g?g[1].trim():s[0].trim();r.push({type:"system",content:v,label:m})}const c=n.slice(l).trim();return c&&r.push({type:"text",content:c}),r}static extractSlashCommand(n){const r=n.match(/<command-name>([\s\S]*?)<\/command-name>/i);if(!r)return null;const o=r[1].trim();return o.startsWith("/")?o:`/${o}`}static extractUserTexts(n){var s;const r=[],o=[];let l=null;for(const c of n)if(c.role==="user"){if(typeof c.content=="string"){const d=c.content.trim();if(!d)continue;if(cd(d)){const m=zi.extractSlashCommand(d);m&&(l=m)}else{if(/^Implement the following plan:/i.test(d))continue;r.push(d),o.push(d)}}else if(Array.isArray(c.content)){const d=c.content.some(g=>g.type==="text"&&/<command-message>/i.test(g.text||"")),m=[],p=[];for(const g of c.content){if(g.type!=="text"||!((s=g.text)!=null&&s.trim()))continue;const v=g.text.trim();if(p.push(v),cd(v)){const y=zi.extractSlashCommand(v);y&&(l=y)}else{if(/^Implement the following plan:/i.test(v)||d)continue;m.push(v)}}m.length>0&&(r.push(m.join(`
|
|
446
|
+
`)),o.push(p.join(`
|
|
447
|
+
`)))}}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=>d.mainAgent);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:v,fullTexts:y,slashCmd:S}=zi.extractUserTexts(p);S&&S!=="/compact"&&S!==l&&r.push({type:"prompt",segments:[{type:"text",content:S}],timestamp:g}),l=S;for(let C=0;C<v.length;C++){const b=v[C];if(o.has(b))continue;o.add(b);const w=y[C]||b;r.push({type:"prompt",segments:zi.parseSegments(w),timestamp:g})}}return r}renderTokenStats(){const{requests:n=[]}=this.props,r=aL(n),o=Object.keys(r);return o.length===0?L.jsx("div",{className:At.tokenStatsEmpty,children:"暂无 token 数据"}):L.jsx("div",{className:At.tokenStatsContainer,children:o.map(l=>{const s=r[l],c=s.input+s.cacheCreation+s.cacheRead,d=c>0?(s.cacheRead/c*100).toFixed(1):"0.0";return L.jsxs("div",{className:o.length>1?At.modelCardSpaced:At.modelCard,children:[L.jsx("div",{className:At.modelName,children:l}),L.jsx("table",{className:At.statsTable,children:L.jsxs("tbody",{children:[L.jsxs("tr",{children:[L.jsx("td",{className:At.label,children:"Token"}),L.jsx("td",{className:At.th,children:"input"}),L.jsx("td",{className:At.th,children:"output"})]}),L.jsxs("tr",{className:At.rowBorder,children:[L.jsx("td",{className:At.label}),L.jsx("td",{className:At.td,children:no(c)}),L.jsx("td",{className:At.td,children:no(s.output)})]}),L.jsxs("tr",{children:[L.jsx("td",{className:At.label,children:"Cache"}),L.jsx("td",{className:At.th,children:"create"}),L.jsx("td",{className:At.th,children:"read"})]}),L.jsxs("tr",{className:At.rowBorder,children:[L.jsx("td",{className:At.label}),L.jsx("td",{className:At.td,children:no(s.cacheCreation)}),L.jsx("td",{className:At.td,children:no(s.cacheRead)})]}),L.jsxs("tr",{children:[L.jsx("td",{className:At.label,children:rt("ui.hitRate")}),L.jsxs("td",{colSpan:2,className:At.td,children:[d,"%"]})]})]})})]},l)})})}renderTextPrompt(n){return L.jsx("div",{className:At.textPromptCard,children:n.segments.map((r,o)=>r.type==="text"?L.jsx("pre",{className:At.preText,children:r.content},o):L.jsx(ml,{size:"small",className:At.systemCollapse,items:[{key:`sys-${o}`,label:L.jsx("span",{className:At.systemLabel,children:r.label}),children:L.jsx("pre",{className:At.preSys,children:r.content})}]},o))})}render(){var R;const{requestCount:n,viewMode:r,cacheType:o,onToggleViewMode:l,onImportLocalLogs:s,onLangChange:c,isLocalLog:d,localLogFile:m,projectName:p,collapseToolResults:g,onCollapseToolResultsChange:v,expandThinking:y,onExpandThinkingChange:S,filterIrrelevant:C,onFilterIrrelevantChange:b}=this.props,{countdownText:w}=this.state,$=[{key:"import-local",icon:L.jsx(q9,{}),label:rt("ui.importLocalLogs"),onClick:s},{key:"save-log",icon:L.jsx(Q9,{}),label:rt("ui.saveLog"),onClick:()=>{const O=document.createElement("a");O.href="/api/download-log",O.download="",O.click()}},{key:"export-prompts",icon:L.jsx(F9,{}),label:rt("ui.exportPrompts"),onClick:this.handleShowPrompts},{type:"divider"},{key:"global-settings",icon:L.jsx(xC,{}),label:rt("ui.globalSettings"),onClick:()=>this.setState({globalSettingsVisible:!0})}];return L.jsxs("div",{className:At.headerBar,children:[L.jsxs(Di,{size:"middle",children:[L.jsx(Mg,{menu:{items:$},trigger:["hover"],children:L.jsxs(FL,{strong:!0,className:At.titleText,children:["CC-Viewer ",L.jsx(gl,{className:At.titleArrow})]})}),L.jsx(Bw,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:L.jsxs(bo,{className:At.tokenStatsTag,children:[L.jsx(B9,{className:At.tokenStatsIcon}),rt("ui.tokenStats")]})}),L.jsxs(bo,{color:"green",className:At.liveTag,children:[L.jsx(Fw,{status:"processing",color:"green"}),L.jsx("span",{className:At.liveTagText,children:d?rt("ui.historyLog",{file:m}):rt("ui.liveMonitoring")+(p?`:${p}`:"")})]})]}),L.jsxs(Di,{size:"middle",children:[w&&L.jsxs(bo,{color:w===rt("ui.cacheExpired")?"red":"green",children:[rt("ui.cacheCountdown",{type:o?`(${o})`:""}),L.jsx("strong",{className:At.countdownStrong,children:w})]}),r==="chat"&&L.jsxs("span",{className:At.settingsBtn,onClick:()=>this.setState({settingsDrawerVisible:!0}),children:[L.jsx(xC,{})," ",rt("ui.settings")]}),L.jsx(Mg,{trigger:["hover"],placement:"bottom",menu:{items:EC.map(O=>({key:O.value,label:O.label,style:O.value===Us()?{color:"#3b82f6"}:{}})),onClick:({key:O})=>{Fh(O),c&&c()}},children:L.jsx("span",{className:At.langSelector,children:((R=EC.find(O=>O.value===Us()))==null?void 0:R.short)||"zh"})}),L.jsx(Rr,{type:r==="raw"?"primary":"default",icon:r==="raw"?L.jsx(K9,{}):L.jsx(ad,{}),onClick:l,children:rt(r==="raw"?"ui.chatMode":"ui.rawMode")})]}),L.jsxs(Ur,{title:rt("ui.userPrompt"),open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:[L.jsx("div",{className:At.promptExportBar,children:L.jsx(Rr,{icon:L.jsx(M9,{}),onClick:this.handleExportPromptsTxt,children:rt("ui.exportPromptsTxt")})}),L.jsxs("div",{className:At.promptScrollArea,children:[this.state.promptData.length===0&&L.jsx("div",{className:At.promptEmpty,children:rt("ui.noPrompt")}),this.state.promptData.map((O,_)=>{const I=O.timestamp?new Date(O.timestamp).toLocaleString():rt("ui.unknownTime");return L.jsxs("div",{children:[L.jsxs("div",{className:At.promptTimestamp,children:[I,":"]}),this.renderTextPrompt(O)]},_)})]})]}),L.jsxs($2,{title:rt("ui.settings"),placement:"right",width:320,open:this.state.settingsDrawerVisible,onClose:()=>this.setState({settingsDrawerVisible:!1}),children:[L.jsxs("div",{className:At.settingsItem,children:[L.jsx("span",{className:At.settingsLabel,children:rt("ui.collapseToolResults")}),L.jsx(Du,{checked:!!g,onChange:O=>v&&v(O)})]}),L.jsxs("div",{className:At.settingsItem,children:[L.jsx("span",{className:At.settingsLabel,children:rt("ui.expandThinking")}),L.jsx(Du,{checked:!!y,onChange:O=>S&&S(O)})]})]}),L.jsx(Ur,{title:rt("ui.globalSettings"),open:this.state.globalSettingsVisible,onCancel:()=>this.setState({globalSettingsVisible:!1}),footer:null,width:400,children:L.jsxs("div",{className:At.settingsItem,children:[L.jsx("span",{className:At.settingsLabel,children:rt("ui.filterIrrelevant")}),L.jsx(Du,{checked:!!C,onChange:O=>b&&b(O)})]})})]})}};Bt(zi,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let zg=zi;function Vh(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 Wh(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 RC(e){const t=e.body||{},n=Wh(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"Task";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=Vh(r[o]);if(/^Command:/m.test(l))return"Bash";break}return null}function VL(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 WL(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=Vh(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=Wh(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(v=>{const y=v==null?void 0:v.content;return typeof y=="string"?y.includes(p):Array.isArray(y)?y.some(S=>(S==null?void 0:S.type)==="text"&&S.text&&S.text.includes(p)):!1}))return!0}return!1}function D2(e,t){var r;if(e.mainAgent){const o=Wh(e.body||{});return/command execution specialist|file search specialist|planning specialist|general-purpose agent/i.test(o)?{type:"SubAgent",subType:RC(e)}:{type:"MainAgent",subType:null}}if(e.isCountTokens||VL(e))return{type:"Count",subType:null};if(WL(e,t)){const o=Vh((((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:RC(e)}}function OC(e,t){return e==="Plan"&&t?`Plan:${t}`:e==="SubAgent"&&t?`Tools:${t}`:e}const qL="_centerEmpty_1cxb0_1",UL="_scrollContainer_1cxb0_8",GL="_listItem_1cxb0_13",KL="_listItemActive_1cxb0_25",XL="_itemContent_1cxb0_34",YL="_itemHeader_1cxb0_39",QL="_tagNoMargin_1cxb0_47",JL="_modelName_1cxb0_52",ZL="_time_1cxb0_56",eA="_detailRow_1cxb0_62",tA="_urlText_1cxb0_69",nA="_duration_1cxb0_78",rA="_statusOk_1cxb0_83",oA="_statusErr_1cxb0_88",iA="_statusDefault_1cxb0_93",aA="_usageBox_1cxb0_98",lA="_cacheDot_1cxb0_108",sA="_cacheDotLoss_1cxb0_117",cA="_cacheDotNormal_1cxb0_122",An={centerEmpty:qL,scrollContainer:UL,listItem:GL,listItemActive:KL,itemContent:XL,itemHeader:YL,tagNoMargin:QL,modelName:JL,time:ZL,detailRow:eA,urlText:tA,duration:nA,statusOk:rA,statusErr:oA,statusDefault:iA,usageBox:aA,cacheDot:lA,cacheDotLoss:sA,cacheDotNormal:cA};class uA extends J.Component{constructor(t){super(t),this.activeItemRef=J.createRef()}componentDidMount(){this.scrollToSelected(!0)}componentDidUpdate(t){(t.selectedIndex!==this.props.selectedIndex||t.requests!==this.props.requests)&&this.scrollToSelected(this.props.scrollCenter)}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?L.jsx("div",{className:An.centerEmpty,children:L.jsx(Mo,{description:rt("ui.waitingRequests")})}):L.jsx("div",{className:An.scrollContainer,children:L.jsx(Vs,{dataSource:t,size:"small",split:!1,renderItem:(o,l)=>{var O,_,I;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=lL((O=o.body)==null?void 0:O.model),g=l+1<t.length?t[l+1]:null,{type:v,subType:y}=D2(o,g),S=(I=(_=o.response)==null?void 0:_.body)==null?void 0:I.usage,C=S?(S.input_tokens||0)+(S.cache_read_input_tokens||0)+(S.cache_creation_input_tokens||0):null,b=(S==null?void 0:S.output_tokens)||null,w=(S==null?void 0:S.cache_read_input_tokens)||0,$=(S==null?void 0:S.cache_creation_input_tokens)||0;let R=o.url;try{const T=new URL(o.url);R=T.host+T.pathname}catch{}return L.jsx(Vs.Item,{ref:c?this.activeItemRef:void 0,onClick:()=>r(l),className:`${An.listItem} ${c?An.listItemActive:""}`,children:L.jsxs("div",{className:An.itemContent,children:[L.jsxs("div",{className:An.itemHeader,children:[v==="MainAgent"?L.jsx(bo,{color:"orange",className:An.tagNoMargin,children:"MainAgent"}):v==="Plan"?L.jsx(bo,{className:An.tagNoMargin,style:{color:"#a33",borderColor:"#a33",backgroundColor:"#000"},children:OC(v,y)}):v==="Count"||v==="Preflight"?L.jsx(bo,{className:An.tagNoMargin,style:{color:"#666",borderColor:"#444",backgroundColor:"#000"},children:v}):L.jsx(bo,{className:An.tagNoMargin,children:OC(v,y)}),p&&L.jsx("span",{className:An.modelName,style:{color:v==="MainAgent"?"#d4822d":"#8c8c8c"},children:p}),L.jsx("span",{className:An.time,children:s})]}),L.jsxs("div",{className:An.detailRow,children:[L.jsx("span",{className:An.urlText,title:o.url,children:R}),o.duration&&L.jsxs("span",{className:An.duration,children:[o.duration,"ms"]}),o.response&&L.jsx("span",{className:d?An.statusOk:m?An.statusErr:An.statusDefault,children:o.response.status})]}),S&&L.jsxs("div",{className:An.usageBox,children:[L.jsxs("div",{children:["token: output:",no(b)||0,", input: ",no(C)||0]}),(w>0||$>0)&&L.jsx("div",{children:(()=>{const T=rL(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 P;if(T){const A=(T.reasons||[T.reason]).map(M=>rt(N[M]||N.key_change)).join(`
|
|
448
|
+
`);P=L.jsx(di,{title:L.jsx("span",{style:{whiteSpace:"pre-line"},children:A}),children:L.jsx("span",{className:`${An.cacheDot} ${An.cacheDotLoss}`})})}else P=L.jsx("span",{className:`${An.cacheDot} ${An.cacheDotNormal}`});return L.jsxs(L.Fragment,{children:["cache",P,": ",w>0?`read:${no(w)}`:"",w>0&&$>0?", ":"",$>0?`create:${no($)}`:""]})})()})]})]})})}})})}}const dA=e=>typeof e=="boolean"||e instanceof Boolean,fA=e=>typeof e=="number"||e instanceof Number,mA=e=>typeof e=="bigint"||e instanceof BigInt,H2=e=>!!e&&e instanceof Date,pA=e=>typeof e=="string"||e instanceof String,gA=e=>Array.isArray(e),F2=e=>typeof e=="object"&&e!==null,V2=e=>!!e&&e instanceof Object&&typeof e=="function";function dd(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function hA(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function W2(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:v}=e;const y=u.useRef(!1),[S,C]=u.useState(()=>m(c,n,t)),b=u.useRef(null);u.useEffect(()=>{y.current?C(m(c,n,t)):y.current=!0},[m]);const w=u.useId();if(r.length===0)return vA({field:t,openBracket:l,closeBracket:s,lastElement:o,style:d});const $=S?d.collapseIcon:d.expandIcon,R=S?d.ariaLables.collapseJson:d.ariaLables.expandJson,O=c+1,_=r.length-1,I=P=>{S!==P&&(!v||v({level:c,value:n,field:t,newExpandValue:P}))&&C(P)},T=P=>{if(P.key==="ArrowRight"||P.key==="ArrowLeft")P.preventDefault(),I(P.key==="ArrowRight");else if(P.key==="ArrowUp"||P.key==="ArrowDown"){P.preventDefault();const k=P.key==="ArrowUp"?-1:1;if(!g.current)return;const A=g.current.querySelectorAll("[role=button]");let M=-1;for(let B=0;B<A.length;B++)if(A[B].tabIndex===0){M=B;break}if(M<0)return;const D=(M+k+A.length)%A.length;A[M].tabIndex=-1,A[D].tabIndex=0,A[D].focus()}},N=()=>{var P;I(!S);const k=b.current;if(!k)return;const A=(P=g.current)===null||P===void 0?void 0:P.querySelector('[role=button][tabindex="0"]');A&&(A.tabIndex=-1),k.tabIndex=0,k.focus()};return u.createElement("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":S,"aria-selected":void 0},u.createElement("span",{className:$,onClick:N,onKeyDown:T,role:"button","aria-label":R,"aria-expanded":S,"aria-controls":S?w:void 0,ref:b,tabIndex:c===0?0:-1}),(t||t==="")&&(p?u.createElement("span",{className:d.clickableLabel,onClick:N,onKeyDown:T},dd(t,d.quotesForFieldNames),":"):u.createElement("span",{className:d.label},dd(t,d.quotesForFieldNames),":")),u.createElement("span",{className:d.punctuation},l),S?u.createElement("ul",{id:w,role:"group",className:d.childFieldsContainer},r.map((P,k)=>u.createElement(Lg,{key:P[0]||k,field:P[0],value:P[1],style:d,lastElement:k===_,level:O,shouldExpandNode:m,clickToExpandNode:p,beforeExpandChange:v,outerRef:g}))):u.createElement("span",{className:d.collapsedContent,onClick:N,onKeyDown:T}),u.createElement("span",{className:d.punctuation},s),!o&&u.createElement("span",{className:d.punctuation},","))}function vA(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},dd(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 yA(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:l,clickToExpandNode:s,level:c,outerRef:d,beforeExpandChange:m}=e;return W2({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 bA(e){let{field:t,value:n,style:r,lastElement:o,level:l,shouldExpandNode:s,clickToExpandNode:c,outerRef:d,beforeExpandChange:m}=e;return W2({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 CA(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):pA(n)?(l=hA(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):dA(n)?(l=n?"true":"false",s=r.booleanValue):fA(n)?(l=n.toString(),s=r.numberValue):mA(n)?(l=`${n.toString()}n`,s=r.numberValue):H2(n)?l=n.toISOString():V2(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},dd(t,r.quotesForFieldNames),":"),u.createElement("span",{className:s},l),!o&&u.createElement("span",{className:r.punctuation},","))}function Lg(e){const t=e.value;return gA(t)?u.createElement(bA,Object.assign({},e)):F2(t)&&!H2(t)&&!V2(t)?u.createElement(yA,Object.assign({},e)):u.createElement(CA,Object.assign({},e))}var yn={"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 q2={collapseJson:"collapse JSON",expandJson:"expand JSON"},Ip={container:yn["container-light"],basicChildStyle:yn["basic-element-style"],childFieldsContainer:yn["child-fields-container"],label:yn["label-light"],clickableLabel:yn["clickable-label-light"],nullValue:yn["value-null-light"],undefinedValue:yn["value-undefined-light"],stringValue:yn["value-string-light"],booleanValue:yn["value-boolean-light"],numberValue:yn["value-number-light"],otherValue:yn["value-other-light"],punctuation:yn["punctuation-light"],collapseIcon:yn["collapse-icon-light"],expandIcon:yn["expand-icon-light"],collapsedContent:yn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:q2,stringifyStringValues:!1},SA={container:yn["container-dark"],basicChildStyle:yn["basic-element-style"],childFieldsContainer:yn["child-fields-container"],label:yn["label-dark"],clickableLabel:yn["clickable-label-dark"],nullValue:yn["value-null-dark"],undefinedValue:yn["value-undefined-dark"],stringValue:yn["value-string-dark"],booleanValue:yn["value-boolean-dark"],numberValue:yn["value-number-dark"],otherValue:yn["value-other-dark"],punctuation:yn["punctuation-dark"],collapseIcon:yn["collapse-icon-dark"],expandIcon:yn["expand-icon-dark"],collapsedContent:yn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:q2,stringifyStringValues:!1},xA=()=>!0,wA=e=>{let{data:t,style:n=Ip,shouldExpandNode:r=xA,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&&F2(t)?Object.entries(t).map(m=>{let[p,g]=m;return u.createElement(Lg,{key:p,field:p,value:g,style:{...Ip,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:o,beforeExpandChange:l,outerRef:d})}):u.createElement(Lg,{value:t,style:{...Ip,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:d,beforeExpandChange:l}))},$A="_container_1h2lr_1",EA={container:$A},RA={...SA,container:"rjv-container"};class IC 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 L.jsx("div",{className:EA.container,children:L.jsx(wA,{data:t,shouldExpandNode:o,style:RA})})}}const OA="_container_1iit6_1",IA="_emptyState_1iit6_7",_A="_urlSection_1iit6_14",TA="_urlLeft_1iit6_21",PA="_tokenStatsBox_1iit6_26",NA="_tokenGrid_1iit6_33",kA="_tokenRows_1iit6_43",MA="_tokenRow_1iit6_43",jA="_tokenRowBorder_1iit6_51",zA="_tokenLabel_1iit6_55",LA="_tokenTd_1iit6_62",AA="_tokenHitRate_1iit6_71",BA="_tokenHitRateLabel_1iit6_84",DA="_urlText_1iit6_94",HA="_metaText_1iit6_101",FA="_headersContainer_1iit6_105",VA="_headerRow_1iit6_109",WA="_headerKey_1iit6_115",qA="_headerValue_1iit6_120",UA="_streamingBox_1iit6_125",GA="_rawTextPre_1iit6_138",KA="_tabContent_1iit6_151",XA="_bodyLabel_1iit6_159",YA="_bodyHeader_1iit6_163",QA="_diffSection_1iit6_170",JA="_diffToggle_1iit6_174",ZA="_diffIcon_1iit6_180",Mt={container:OA,emptyState:IA,urlSection:_A,urlLeft:TA,tokenStatsBox:PA,tokenGrid:NA,tokenRows:kA,tokenRow:MA,tokenRowBorder:jA,tokenLabel:zA,tokenTd:LA,tokenHitRate:AA,tokenHitRateLabel:BA,urlText:DA,metaText:HA,headersContainer:FA,headerRow:VA,headerKey:WA,headerValue:qA,streamingBox:UA,rawTextPre:GA,tabContent:KA,bodyLabel:XA,bodyHeader:YA,diffSection:QA,diffToggle:JA,diffIcon:ZA},{Text:qr,Paragraph:eB}=Jo;class tB extends J.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json"},diffExpanded:!1,requestHeadersExpanded:!1,responseHeadersExpanded:!1,diffTooltipDismissed:!1}}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){return t.request!==this.props.request&&this.setState({diffExpanded:!1,requestHeadersExpanded:!1,responseHeadersExpanded:!1}),t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||t.selectedIndex!==this.props.selectedIndex||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}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;const r=t==="request"?n.body:(s=n.response)==null?void 0:s.body;if(r==null)return;const o=typeof r=="object"?ud(r):r,l=typeof o=="string"?o:JSON.stringify(o,null,2);navigator.clipboard.writeText(l).then(()=>hl.success(rt("ui.copySuccess")))}renderHeaders(t){return!t||Object.keys(t).length===0?L.jsx(qr,{type:"secondary",children:rt("ui.noHeaders")}):L.jsx("div",{className:Mt.headersContainer,children:Object.entries(t).map(([n,r])=>L.jsxs("div",{className:Mt.headerRow,children:[L.jsx(qr,{code:!0,className:Mt.headerKey,children:n}),L.jsx(qr,{type:"secondary",className:Mt.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}=D2(r,s);if(c==="Preflight"){const d=new Set,m=p=>{p&&typeof p=="object"&&(d.add(p),Array.isArray(p)?p.forEach(m):Object.values(p).forEach(m))};return Array.isArray(t.messages)&&m(t.messages),Array.isArray(t.system)&&t.system.length>=3&&m(t.system[2]),(p,g,v)=>!!(p<2||d.has(g)||p===1&&v==="system")}if(c==="MainAgent"&&Array.isArray(t.messages)&&t.messages.length===1){const d=t.messages[0],m=d&&Array.isArray(d.content)?d.content:null,p=m&&m.length>0?m[m.length-1]:null,g=new Set,v=y=>{y&&typeof y=="object"&&(g.add(y),Array.isArray(y)?y.forEach(v):Object.values(y).forEach(v))};return p&&v(p),g.add(t.messages),d&&typeof d=="object"&&g.add(d),m&&g.add(m),(y,S,C)=>!!(y<2||g.has(S))}}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return L.jsx(qr,{type:"secondary",children:rt("ui.noBody")});if(typeof t=="string"&&t.includes("Streaming Response"))return L.jsx("div",{className:Mt.streamingBox,children:L.jsx(qr,{type:"secondary",children:rt("ui.streamingResponse")})});const o=typeof t=="object"?ud(t):t,l=r[n]==="json",s=this.getRequestExpandNode(o,n);return L.jsx("div",{children:l?L.jsx(IC,{data:o,defaultExpand:n==="response"?"all":"root",expandNode:s}):L.jsx("pre",{className:Mt.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(t[r].mainAgent)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 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 p,g;const{request:t,currentTab:n,onTabChange:r}=this.props;if(!t)return L.jsx("div",{className:Mt.emptyState,children:L.jsx(Mo,{description:"选择一个请求查看详情"})});const o=new Date(t.timestamp).toLocaleString("zh-CN"),l=t.response&&t.response.status<400;let s=null;if(t.mainAgent){const v=this.getPrevMainAgentRequest();if(v){const y=JSON.stringify(t.body).length,S=JSON.stringify(v.body).length;if(y<S)s=L.jsxs("div",{className:Mt.diffSection,children:[L.jsxs(di,{title:this.state.diffTooltipDismissed?null:L.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[L.jsx("span",{style:{flex:1},children:rt("ui.diffTooltip")}),L.jsx(qi,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:b=>{b.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",L.jsxs(qr,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(b=>({diffExpanded:!b.diffExpanded})),children:["Body Diff JSON ",this.state.diffExpanded?L.jsx(gl,{className:Mt.diffIcon}):L.jsx(qo,{className:Mt.diffIcon})]})]}),this.state.diffExpanded&&L.jsx(qr,{type:"secondary",children:rt("ui.diffSessionChanged")})]});else{const b=this.computeDiff(v.body,t.body);b&&(s=L.jsxs("div",{className:Mt.diffSection,children:[L.jsxs(di,{title:this.state.diffTooltipDismissed?null:L.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[L.jsx("span",{style:{flex:1},children:rt("ui.diffTooltip")}),L.jsx(qi,{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:[" ",L.jsxs(qr,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(w=>({diffExpanded:!w.diffExpanded})),children:["Body Diff JSON ",this.state.diffExpanded?L.jsx(gl,{className:Mt.diffIcon}):L.jsx(qo,{className:Mt.diffIcon})]})]}),this.state.diffExpanded&&L.jsx(IC,{data:b,defaultExpand:"all"})]}))}}}const c=[{key:"request",label:"Request",children:L.jsxs("div",{className:Mt.tabContent,children:[L.jsxs("div",{className:Mt.diffSection,children:[L.jsxs(qr,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(v=>({requestHeadersExpanded:!v.requestHeadersExpanded})),children:["Headers ",this.state.requestHeadersExpanded?L.jsx(gl,{className:Mt.diffIcon}):L.jsx(qo,{className:Mt.diffIcon})]}),this.state.requestHeadersExpanded&&this.renderHeaders(t.headers)]}),s,L.jsxs("div",{children:[L.jsxs("div",{className:Mt.bodyHeader,children:[L.jsx(qr,{strong:!0,className:Mt.bodyLabel,children:"Body"}),L.jsxs(Di,{size:"small",children:[L.jsx(Rr,{size:"small",icon:this.state.bodyViewMode.request==="json"?L.jsx(ad,{}):L.jsx(SC,{}),onClick:()=>this.toggleBodyViewMode("request"),children:this.state.bodyViewMode.request==="json"?"Text":"JSON"}),L.jsx(Rr,{size:"small",icon:L.jsx(jg,{}),onClick:()=>this.copyBody("request"),children:rt("ui.copy")})]})]}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:L.jsx("div",{className:Mt.tabContent,children:t.response?L.jsxs(L.Fragment,{children:[L.jsxs("div",{className:Mt.diffSection,children:[L.jsxs(qr,{strong:!0,className:Mt.diffToggle,onClick:()=>this.setState(v=>({responseHeadersExpanded:!v.responseHeadersExpanded})),children:["Headers ",this.state.responseHeadersExpanded?L.jsx(gl,{className:Mt.diffIcon}):L.jsx(qo,{className:Mt.diffIcon})]}),this.state.responseHeadersExpanded&&this.renderHeaders(t.response.headers)]}),L.jsxs("div",{children:[L.jsxs("div",{className:Mt.bodyHeader,children:[L.jsx(qr,{strong:!0,className:Mt.bodyLabel,children:"Body"}),L.jsxs(Di,{size:"small",children:[L.jsx(Rr,{size:"small",icon:this.state.bodyViewMode.response==="json"?L.jsx(ad,{}):L.jsx(SC,{}),onClick:()=>this.toggleBodyViewMode("response"),children:this.state.bodyViewMode.response==="json"?"Text":"JSON"}),L.jsx(Rr,{size:"small",icon:L.jsx(jg,{}),onClick:()=>this.copyBody("response"),children:rt("ui.copy")})]})]}),this.renderBody(t.response.body,"response")]})]}):L.jsx(Mo,{description:rt("ui.responseNotCaptured")})})}],d=(g=(p=t.response)==null?void 0:p.body)==null?void 0:g.usage,m=d?(()=>{const v=d.input_tokens||0,y=d.output_tokens||0,S=d.cache_creation_input_tokens||0,C=d.cache_read_input_tokens||0,b=v+S+C,w=b>0?(C/b*100).toFixed(1):"0.0";return{input:v,output:y,cacheCreate:S,cacheRead:C,hitRate:w}})():null;return L.jsxs("div",{className:Mt.container,children:[L.jsxs("div",{className:Mt.urlSection,children:[L.jsxs("div",{className:Mt.urlLeft,children:[L.jsx(eB,{className:Mt.urlText,ellipsis:{rows:2,expandable:!0},children:t.url}),L.jsxs(Di,{size:"small",wrap:!0,children:[L.jsx(bo,{color:t.method==="POST"?"blue":"green",children:t.method}),L.jsxs(qr,{type:"secondary",className:Mt.metaText,children:["🕐 ",o]}),t.duration&&L.jsxs(qr,{type:"secondary",className:Mt.metaText,children:["⏱️ ",t.duration,"ms"]}),t.response&&L.jsxs(bo,{color:l?"success":"error",children:["HTTP ",t.response.status]})]})]}),m&&L.jsx("div",{className:Mt.tokenStatsBox,children:L.jsxs("div",{className:Mt.tokenGrid,children:[L.jsxs("div",{className:Mt.tokenRows,children:[L.jsxs("div",{className:Mt.tokenRow,children:[L.jsx("span",{className:Mt.tokenLabel,children:"Token"}),L.jsxs("span",{className:Mt.tokenTd,children:["input: ",no(m.input)]}),L.jsxs("span",{className:Mt.tokenTd,children:["output: ",no(m.output)]})]}),L.jsxs("div",{className:`${Mt.tokenRow} ${Mt.tokenRowBorder}`,children:[L.jsx("span",{className:Mt.tokenLabel,children:"Cache"}),L.jsxs("span",{className:Mt.tokenTd,children:["create: ",no(m.cacheCreate)]}),L.jsxs("span",{className:Mt.tokenTd,children:["read: ",no(m.cacheRead)]})]})]}),L.jsxs("div",{className:Mt.tokenHitRate,children:[L.jsxs("div",{children:[m.hitRate,"%"]}),L.jsx("div",{className:Mt.tokenHitRateLabel,children:rt("ui.hitRate")})]})]})})]}),L.jsx(h2,{activeKey:n,onChange:r,items:c,size:"small"})]})}}function qh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xa=qh();function U2(e){xa=e}var ua={exec:()=>null};function an(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(kr.caret,"$1"),n=n.replace(o,s),r},getRegex:()=>new RegExp(n,t)};return r}var nB=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),kr={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)}}>`)},rB=/^(?:[ \t]*(?:\n|$))+/,oB=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,iB=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,uc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,aB=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Uh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,G2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,K2=an(G2).replace(/bull/g,Uh).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(),lB=an(G2).replace(/bull/g,Uh).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(),Gh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sB=/^[^\n]+/,Kh=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,cB=an(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),uB=an(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Uh).getRegex(),ef="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",Xh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dB=an("^ {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",Xh).replace("tag",ef).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),X2=an(Gh).replace("hr",uc).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",ef).getRegex(),fB=an(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",X2).getRegex(),Yh={blockquote:fB,code:oB,def:cB,fences:iB,heading:aB,hr:uc,html:dB,lheading:K2,list:uB,newline:rB,paragraph:X2,table:ua,text:sB},_C=an("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",uc).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",ef).getRegex(),mB={...Yh,lheading:lB,table:_C,paragraph:an(Gh).replace("hr",uc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",_C).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",ef).getRegex()},pB={...Yh,html:an(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xh).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:ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:an(Gh).replace("hr",uc).replace("heading",` *#{1,6} *[^
|
|
449
|
+
]`).replace("lheading",K2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},gB=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hB=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Y2=/^( {2,}|\\)\n(?!\s*$)/,vB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tf=/[\p{P}\p{S}]/u,Qh=/[\s\p{P}\p{S}]/u,Q2=/[^\s\p{P}\p{S}]/u,yB=an(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Qh).getRegex(),J2=/(?!~)[\p{P}\p{S}]/u,bB=/(?!~)[\s\p{P}\p{S}]/u,CB=/(?:[^\s\p{P}\p{S}]|~)/u,Z2=/(?![*_])[\p{P}\p{S}]/u,SB=/(?![*_])[\s\p{P}\p{S}]/u,xB=/(?:[^\s\p{P}\p{S}]|[*_])/u,wB=an(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",nB?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),e$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$B=an(e$,"u").replace(/punct/g,tf).getRegex(),EB=an(e$,"u").replace(/punct/g,J2).getRegex(),t$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",RB=an(t$,"gu").replace(/notPunctSpace/g,Q2).replace(/punctSpace/g,Qh).replace(/punct/g,tf).getRegex(),OB=an(t$,"gu").replace(/notPunctSpace/g,CB).replace(/punctSpace/g,bB).replace(/punct/g,J2).getRegex(),IB=an("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Q2).replace(/punctSpace/g,Qh).replace(/punct/g,tf).getRegex(),_B=an(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Z2).getRegex(),TB="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",PB=an(TB,"gu").replace(/notPunctSpace/g,xB).replace(/punctSpace/g,SB).replace(/punct/g,Z2).getRegex(),NB=an(/\\(punct)/,"gu").replace(/punct/g,tf).getRegex(),kB=an(/^<(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(),MB=an(Xh).replace("(?:-->|$)","-->").getRegex(),jB=an("^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",MB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fd=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,zB=an(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fd).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),n$=an(/^!?\[(label)\]\[(ref)\]/).replace("label",fd).replace("ref",Kh).getRegex(),r$=an(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kh).getRegex(),LB=an("reflink|nolink(?!\\()","g").replace("reflink",n$).replace("nolink",r$).getRegex(),TC=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Jh={_backpedal:ua,anyPunctuation:NB,autolink:kB,blockSkip:wB,br:Y2,code:hB,del:ua,delLDelim:ua,delRDelim:ua,emStrongLDelim:$B,emStrongRDelimAst:RB,emStrongRDelimUnd:IB,escape:gB,link:zB,nolink:r$,punctuation:yB,reflink:n$,reflinkSearch:LB,tag:jB,text:vB,url:ua},AB={...Jh,link:an(/^!?\[(label)\]\((.*?)\)/).replace("label",fd).getRegex(),reflink:an(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fd).getRegex()},Ag={...Jh,emStrongRDelimAst:OB,emStrongLDelim:EB,delLDelim:_B,delRDelim:PB,url:an(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",TC).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:an(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",TC).getRegex()},BB={...Ag,br:an(Y2).replace("{2,}","*").getRegex(),text:an(Ag.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},$u={normal:Yh,gfm:mB,pedantic:pB},vs={normal:Jh,gfm:Ag,breaks:BB,pedantic:AB},DB={"&":"&","<":"<",">":">",'"':""","'":"'"},PC=e=>DB[e];function ci(e,t){if(t){if(kr.escapeTest.test(e))return e.replace(kr.escapeReplace,PC)}else if(kr.escapeTestNoEncode.test(e))return e.replace(kr.escapeReplaceNoEncode,PC);return e}function NC(e){try{e=encodeURI(e).replace(kr.percentDecode,"%")}catch{return null}return e}function kC(e,t){var l;let n=e.replace(kr.findPipe,(s,c,d)=>{let m=!1,p=c;for(;--p>=0&&d[p]==="\\";)m=!m;return m?"|":" |"}),r=n.split(kr.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(kr.slashPipe,"|");return r}function ys(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 HB(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 FB(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 MC(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 VB(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
|
|
450
|
+
`).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(`
|
|
451
|
+
`)}var md=class{constructor(e){Bt(this,"options");Bt(this,"rules");Bt(this,"lexer");this.options=e||xa}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:ys(n,`
|
|
452
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=VB(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=ys(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:ys(t[0],`
|
|
453
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=ys(t[0],`
|
|
454
|
+
`).split(`
|
|
455
|
+
`),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(`
|
|
456
|
+
`),p=m.replace(this.rules.other.blockquoteSetextReplace,`
|
|
457
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
458
|
+
${m}`:m,o=o?`${o}
|
|
459
|
+
${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 v=l.at(-1);if((v==null?void 0:v.type)==="code")break;if((v==null?void 0:v.type)==="blockquote"){let y=v,S=y.raw+`
|
|
460
|
+
`+n.join(`
|
|
461
|
+
`),C=this.blockquote(S);l[l.length-1]=C,r=r.substring(0,r.length-y.raw.length)+C.raw,o=o.substring(0,o.length-y.text.length)+C.text;break}else if((v==null?void 0:v.type)==="list"){let y=v,S=y.raw+`
|
|
462
|
+
`+n.join(`
|
|
463
|
+
`),C=this.list(S);l[l.length-1]=C,r=r.substring(0,r.length-v.raw.length)+C.raw,o=o.substring(0,o.length-y.raw.length)+C.raw,n=S.substring(l.at(-1).raw.length).split(`
|
|
464
|
+
`);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="",v="";if(!(t=c.exec(e))||this.rules.block.hr.test(e))break;g=t[0],e=e.substring(g.length);let y=FB(t[2].split(`
|
|
465
|
+
`,1)[0],t[1].length),S=e.split(`
|
|
466
|
+
`,1)[0],C=!y.trim(),b=0;if(this.options.pedantic?(b=2,v=y.trimStart()):C?b=t[1].length+1:(b=y.search(this.rules.other.nonSpaceChar),b=b>4?1:b,v=y.slice(b),b+=t[1].length),C&&this.rules.other.blankLine.test(S)&&(g+=S+`
|
|
467
|
+
`,e=e.substring(S.length+1),p=!0),!p){let w=this.rules.other.nextBulletRegex(b),$=this.rules.other.hrRegex(b),R=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),_=this.rules.other.htmlBeginRegex(b),I=this.rules.other.blockquoteBeginRegex(b);for(;e;){let T=e.split(`
|
|
468
|
+
`,1)[0],N;if(S=T,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),N=S):N=S.replace(this.rules.other.tabCharGlobal," "),R.test(S)||O.test(S)||_.test(S)||I.test(S)||w.test(S)||$.test(S))break;if(N.search(this.rules.other.nonSpaceChar)>=b||!S.trim())v+=`
|
|
469
|
+
`+N.slice(b);else{if(C||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(y)||O.test(y)||$.test(y))break;v+=`
|
|
470
|
+
`+S}C=!S.trim(),g+=T+`
|
|
471
|
+
`,e=e.substring(T.length+1),y=N.slice(b)}}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(v),loose:!1,text:v,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 v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}}let g=this.rules.other.listTaskCheckbox.exec(p.raw);if(g){let v={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};p.checked=v.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=v.raw+p.tokens[0].raw,p.tokens[0].text=v.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(v)):p.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):p.tokens.unshift(v)}}if(!s.loose){let g=p.tokens.filter(y=>y.type==="space"),v=g.length>0&&g.some(y=>this.rules.other.anyLine.test(y.raw));s.loose=v}}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=kC(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(`
|
|
472
|
+
`):[],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(kC(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)===`
|
|
473
|
+
`?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=ys(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=HB(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)),MC(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 MC(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 v=g.slice(2,-2);return{type:"strong",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}}}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}}}},No=class Bg{constructor(t){Bt(this,"tokens");Bt(this,"options");Bt(this,"state");Bt(this,"inlineQueue");Bt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||xa,this.options.tokenizer=this.options.tokenizer||new md,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:kr,block:$u.normal,inline:vs.normal};this.options.pedantic?(n.block=$u.pedantic,n.inline=vs.pedantic):this.options.gfm&&(n.block=$u.gfm,this.options.breaks?n.inline=vs.breaks:n.inline=vs.gfm),this.tokenizer.rules=n}static get rules(){return{block:$u,inline:vs}}static lex(t,n){return new Bg(n).lex(t)}static lexInline(t,n){return new Bg(n).inlineTokens(t)}lex(t){t=t.replace(kr.carriageReturn,`
|
|
474
|
+
`),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(kr.tabCharGlobal," ").replace(kr.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+=`
|
|
475
|
+
`: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(`
|
|
476
|
+
`)?"":`
|
|
477
|
+
`)+c.raw,m.text+=`
|
|
478
|
+
`+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(`
|
|
479
|
+
`)?"":`
|
|
480
|
+
`)+c.raw,m.text+=`
|
|
481
|
+
`+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(v=>{g=v.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(`
|
|
482
|
+
`)?"":`
|
|
483
|
+
`)+c.raw,m.text+=`
|
|
484
|
+
`+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(`
|
|
485
|
+
`)?"":`
|
|
486
|
+
`)+c.raw,m.text+=`
|
|
487
|
+
`+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,v;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(C=>(y=C.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 C=n.at(-1);y.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=y.raw,C.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 S=t;if((v=this.options.extensions)!=null&&v.startInline){let C=1/0,b=t.slice(1),w;this.options.extensions.startInline.forEach($=>{w=$.call({lexer:this},b),typeof w=="number"&&w>=0&&(C=Math.min(C,w))}),C<1/0&&C>=0&&(S=t.substring(0,C+1))}if(y=this.tokenizer.inlineText(S)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(c=y.raw.slice(-1)),s=!0;let C=n.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=y.raw,C.text+=y.text):n.push(y);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return n}},pd=class{constructor(e){Bt(this,"options");Bt(this,"parser");this.options=e||xa}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let r=(l=(t||"").match(kr.notSpaceStart))==null?void 0:l[0],o=e.replace(kr.endingNewline,"")+`
|
|
488
|
+
`;return r?'<pre><code class="language-'+ci(r)+'">'+(n?o:ci(o,!0))+`</code></pre>
|
|
489
|
+
`:"<pre><code>"+(n?o:ci(o,!0))+`</code></pre>
|
|
490
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
491
|
+
${this.parser.parse(e)}</blockquote>
|
|
492
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
493
|
+
`}hr(e){return`<hr>
|
|
494
|
+
`}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+`>
|
|
495
|
+
`+r+"</"+o+`>
|
|
496
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
497
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
498
|
+
`}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>
|
|
499
|
+
<thead>
|
|
500
|
+
`+t+`</thead>
|
|
501
|
+
`+r+`</table>
|
|
502
|
+
`}tablerow({text:e}){return`<tr>
|
|
503
|
+
${e}</tr>
|
|
504
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
505
|
+
`}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>${ci(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=NC(e);if(o===null)return r;e=o;let l='<a href="'+e+'"';return t&&(l+=' title="'+ci(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=NC(e);if(o===null)return ci(n);e=o;let l=`<img src="${e}" alt="${n}"`;return t&&(l+=` title="${ci(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ci(e.text)}},Zh=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}},ko=class Dg{constructor(t){Bt(this,"options");Bt(this,"renderer");Bt(this,"textRenderer");this.options=t||xa,this.options.renderer=this.options.renderer||new pd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zh}static parse(t,n){return new Dg(n).parse(t)}static parseInline(t,n){return new Dg(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}},Ru,Es=(Ru=class{constructor(e){Bt(this,"options");Bt(this,"block");this.options=e||xa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?No.lex:No.lexInline}provideParser(){return this.block?ko.parse:ko.parseInline}},Bt(Ru,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Bt(Ru,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ru),WB=class{constructor(...e){Bt(this,"defaults",qh());Bt(this,"options",this.setOptions);Bt(this,"parse",this.parseMarkdown(!0));Bt(this,"parseInline",this.parseMarkdown(!1));Bt(this,"Parser",ko);Bt(this,"Renderer",pd);Bt(this,"TextRenderer",Zh);Bt(this,"Lexer",No);Bt(this,"Tokenizer",md);Bt(this,"Hooks",Es);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 pd(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 md(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 Es;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];Es.passThroughHooks.has(l)?o[s]=m=>{if(this.defaults.async&&Es.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 No.lex(e,t??this.defaults)}parser(e,t){return ko.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?No.lex:No.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?ko.parse:ko.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?No.lex:No.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?ko.parse:ko.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+=`
|
|
506
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ci(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},ya=new WB;function Cn(e,t){return ya.parse(e,t)}Cn.options=Cn.setOptions=function(e){return ya.setOptions(e),Cn.defaults=ya.defaults,U2(Cn.defaults),Cn};Cn.getDefaults=qh;Cn.defaults=xa;Cn.use=function(...e){return ya.use(...e),Cn.defaults=ya.defaults,U2(Cn.defaults),Cn};Cn.walkTokens=function(e,t){return ya.walkTokens(e,t)};Cn.parseInline=ya.parseInline;Cn.Parser=ko;Cn.parser=ko.parse;Cn.Renderer=pd;Cn.TextRenderer=Zh;Cn.Lexer=No;Cn.lexer=No.lex;Cn.Tokenizer=md;Cn.Hooks=Es;Cn.parse=Cn;Cn.options;Cn.setOptions;Cn.use;Cn.walkTokens;Cn.parseInline;ko.parse;No.lex;function cl(e){if(!e)return"";try{return Cn.parse(e,{breaks:!0})}catch{return sd(e)}}const qB=["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 UB(e){if(!e)return{segments:[]};const t=new RegExp("<("+qB.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 GB(e){const{segments:t}=UB(e);return t.length===0?{segments:[]}:{segments:t}}const KB="_wrapper_1o255_1",XB="_header_1o255_5",YB="_filePath_1o255_12",QB="_toggle_1o255_18",JB="_code_1o255_25",bs={wrapper:KB,header:XB,filePath:YB,toggle:QB,code:JB},{Text:jC}=Jo;function ZB({file_path:e,old_string:t,new_string:n}){const[r,o]=u.useState(!1),l=t.split(`
|
|
507
|
+
`),s=n.split(`
|
|
508
|
+
`),c=[];return l.forEach(d=>{c.push({type:"del",text:d})}),s.forEach(d=>{c.push({type:"add",text:d})}),L.jsxs("div",{className:`diff-view ${bs.wrapper}`,children:[L.jsxs("div",{className:bs.header,children:[L.jsxs(jC,{className:bs.filePath,children:["Edit: ",e]}),L.jsx(jC,{className:bs.toggle,onClick:()=>o(d=>!d),children:rt(r?"ui.expand":"ui.collapse")})]}),!r&&L.jsx("pre",{className:bs.code,children:c.map((d,m)=>L.jsxs("div",{className:d.type==="del"?"diff-line-del":"diff-line-add",children:[d.type==="del"?"- ":"+ ",d.text]},m))})]})}const eD="_plainResult_1uh60_1",tD="_plainTitle_1uh60_7",nD="_plainPre_1uh60_11",rD="_codeResult_1uh60_20",oD="_codeHeader_1uh60_27",iD="_codeTitle_1uh60_36",aD="_codeToggle_1uh60_41",lD="_codePre_1uh60_48",sD="_markdownBody_1uh60_57",Nr={plainResult:eD,plainTitle:tD,plainPre:nD,codeResult:rD,codeHeader:oD,codeTitle:iD,codeToggle:aD,codePre:lD,markdownBody:sD},{Text:ll}=Jo,sl={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"},cD=["Read","Grep","Glob","Bash","Write","Edit"];function uD(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const o=r.split(".").pop().toLowerCase();if(sl[o])return sl[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(sl[c])return sl[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&&sl[l[1].toLowerCase()])return sl[l[1].toLowerCase()]}return"shell-output"}return n?dD(n):null}function dD(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 fD={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"}]},mD=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],pD=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],gD=[{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 hD(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=pD:n==="file-list"?r=gD:r=fD[n]||mD;const o=/^(\s*\d+→)/gm,l=[];let s=e.replace(o,p=>{const g=l.length;return l.push(p),`L${g}`});const c=sd(s),d=[];let m=c;for(const p of r)p.pattern.lastIndex=0,m=m.replace(p.pattern,g=>{const v=d.length;return d.push(`<span class="${p.cls}">${g}</span>`),`P${v}`});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">${sd(l[parseInt(g)])}</span>`),m}function zC({toolName:e,toolInput:t,resultText:n,defaultCollapsed:r}){const[o,l]=u.useState(r??!1);u.useEffect(()=>{l(r??!1)},[r]);const s=cD.includes(e),c=s?uD(e,t,n):null,d=n.length>5e3?n.substring(0,5e3)+`
|
|
509
|
+
... (truncated)`:n;let m=e?rt("ui.toolReturnNamed",{name:e}):"Result";if(t){const g=t.file_path||t.path||"";if(g){const v=g.split("/");m=`${e}: ${v[v.length-1]}`}}if(!s)return e==="Task"?L.jsxs("div",{className:Nr.plainResult,children:[L.jsxs("div",{className:Nr.codeHeader,children:[L.jsx(ll,{type:"secondary",className:Nr.plainTitle,children:m}),L.jsx(ll,{className:Nr.codeToggle,onClick:()=>l(g=>!g),children:rt(o?"ui.expand":"ui.collapse")})]}),!o&&L.jsx("div",{className:`chat-md ${Nr.markdownBody}`,dangerouslySetInnerHTML:{__html:cl(d)}})]}):L.jsxs("div",{className:Nr.plainResult,children:[L.jsxs("div",{className:Nr.codeHeader,children:[L.jsx(ll,{type:"secondary",className:Nr.plainTitle,children:m}),L.jsx(ll,{className:Nr.codeToggle,onClick:()=>l(g=>!g),children:rt(o?"ui.expand":"ui.collapse")})]}),!o&&L.jsx("pre",{className:Nr.plainPre,children:d})]});const p=hD(d,c||"fallback");return L.jsxs("div",{className:`tool-result-code ${Nr.codeResult}`,children:[L.jsxs("div",{className:Nr.codeHeader,children:[L.jsxs(ll,{className:Nr.codeTitle,children:[m,c?` (${c})`:""]}),L.jsx(ll,{className:Nr.codeToggle,onClick:()=>l(g=>!g),children:rt(o?"ui.expand":"ui.collapse")})]}),!o&&L.jsx("pre",{className:`code-highlight ${Nr.codePre}`,dangerouslySetInnerHTML:{__html:p}})]})}const vD="_tag_17wfp_1",yD="_tagActive_17wfp_22",bD="_tagLoading_17wfp_27",CD="_spinner_17wfp_32",Eu={tag:vD,tagActive:yD,tagLoading:bD,spinner:CD};function SD({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:Us()})}).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=rt(n==="loading"?"ui.translating":"ui.translate");return L.jsxs("span",{className:`${Eu.tag} ${n==="done"?Eu.tagActive:""} ${n==="loading"?Eu.tagLoading:""}`,onClick:l,children:[n==="loading"&&L.jsx("span",{className:Eu.spinner}),s]})}const xD="_avatar_1xxv7_3",wD="_avatarImg_1xxv7_13",$D="_messageRow_1xxv7_32",ED="_messageRowEnd_1xxv7_38",RD="_contentCol_1xxv7_47",OD="_contentColLimited_1xxv7_52",ID="_labelRow_1xxv7_60",_D="_labelRight_1xxv7_67",TD="_labelText_1xxv7_75",PD="_timeText_1xxv7_79",ND="_timeTextNoMargin_1xxv7_85",kD="_labelTextRight_1xxv7_91",MD="_bubbleUser_1xxv7_98 _bubble_1xxv7_21",jD="_bubbleAssistant_1xxv7_104 _bubble_1xxv7_21",zD="_bubblePlan_1xxv7_110 _bubble_1xxv7_21",LD="_bubbleSubAgent_1xxv7_118 _bubble_1xxv7_21",AD="_bubbleSelection_1xxv7_124 _bubble_1xxv7_21",BD="_systemTagLabel_1xxv7_132",DD="_skillLabel_1xxv7_136",HD="_systemTagPre_1xxv7_141",FD="_collapseMargin_1xxv7_149",VD="_collapseNoMargin_1xxv7_153",WD="_thinkingLabel_1xxv7_159",qD="_toolBox_1xxv7_165",UD="_toolLabel_1xxv7_174",GD="_codePre_1xxv7_180",KD="_pathTag_1xxv7_192",XD="_descSpan_1xxv7_199",YD="_secondarySpan_1xxv7_204",QD="_patternSpan_1xxv7_208",JD="_kvContainer_1xxv7_214",ZD="_kvItem_1xxv7_219",eH="_kvKey_1xxv7_223",tH="_kvValue_1xxv7_227",nH="_toolResult_1xxv7_233",rH="_toolResultLabel_1xxv7_242",oH="_compactLabel_1xxv7_248",iH="_compactPre_1xxv7_253",aH="_viewRequestBtn_1xxv7_263",lH="_optionList_1xxv7_277",sH="_optionDesc_1xxv7_281",cH="_questionText_1xxv7_289",uH="_questionSpacing_1xxv7_295",dH="_option_1xxv7_277",lt={avatar:xD,avatarImg:wD,messageRow:$D,messageRowEnd:ED,contentCol:RD,contentColLimited:OD,labelRow:ID,labelRight:_D,labelText:TD,timeText:PD,timeTextNoMargin:ND,labelTextRight:kD,bubbleUser:MD,bubbleAssistant:jD,bubblePlan:zD,bubbleSubAgent:LD,bubbleSelection:AD,systemTagLabel:BD,skillLabel:DD,systemTagPre:HD,collapseMargin:FD,collapseNoMargin:VD,thinkingLabel:WD,toolBox:qD,toolLabel:UD,codePre:GD,pathTag:KD,descSpan:XD,secondarySpan:YD,patternSpan:QD,kvContainer:JD,kvItem:ZD,kvKey:eH,kvValue:tH,toolResult:nH,toolResultLabel:rH,compactLabel:oH,compactPre:iH,viewRequestBtn:aH,optionList:lH,optionDesc:sH,questionText:cH,questionSpacing:uH,option:dH},{Text:vo}=Jo;class sa extends J.Component{constructor(n){super(n);Bt(this,"handleThinkingTranslated",(n,r)=>{this.setState(o=>({thinkingTranslated:{...o.thinkingTranslated,[n]:r?cl(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:L.jsx("span",{className:lt.viewRequestBtn,onClick:o=>{o.stopPropagation(),r(n)},children:rt("ui.viewRequest")})}renderLabel(n,r){const{timestamp:o}=this.props,l=this.formatTime(o);return L.jsxs("div",{className:lt.labelRow,children:[L.jsxs(vo,{type:"secondary",className:lt.labelText,children:[n,r||""]}),L.jsxs("span",{className:lt.labelRight,children:[this.renderViewRequestBtn(),l&&L.jsx(vo,{className:lt.timeText,children:l})]})]})}renderUserAvatar(n){const{userProfile:r}=this.props;return r!=null&&r.avatar?L.jsx("img",{src:r.avatar,className:lt.avatarImg,alt:r.name||"User"}):L.jsx("div",{className:lt.avatar,style:{background:n},dangerouslySetInnerHTML:{__html:$s("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"?L.jsx(ml,{ghost:!0,size:"small",items:[{key:"1",label:L.jsx(vo,{type:"secondary",className:lt.systemTagLabel,children:r.tag}),children:L.jsx("pre",{className:lt.systemTagPre,children:r.content})}],className:lt.collapseMargin},o):L.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:cl(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 L.jsx(ZB,{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)=>L.jsxs("div",{className:lt.toolBox,children:[L.jsx(vo,{strong:!0,className:lt.toolLabel,children:p}),g]},n.id),l=(p,g)=>L.jsx("pre",{className:lt.codePre,style:{color:g},children:p}),s=p=>L.jsx("span",{className:lt.pathTag,children:p});if(n.name==="Bash"){const p=r.command||"",g=r.description||"";return o(L.jsxs(L.Fragment,{children:["Bash",g?L.jsxs("span",{className:lt.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 v=g.length?` (${g.join(", ")})`:"";return o(L.jsxs(L.Fragment,{children:["Read: ",s(p),L.jsx("span",{className:lt.secondarySpan,children:v})]}),null)}if(n.name==="Write"){const p=r.file_path||"",g=r.content||"",v=g.split(`
|
|
510
|
+
`),y=v.length>20?v.slice(0,20).join(`
|
|
511
|
+
`)+`
|
|
512
|
+
... (${v.length} lines total)`:g;return o(L.jsxs(L.Fragment,{children:["Write: ",s(p)," ",L.jsxs("span",{className:lt.secondarySpan,children:["(",v.length," lines)"]})]}),l(y,"#c9d1d9"))}if(n.name==="Glob"){const p=r.pattern||"",g=r.path||"";return o(L.jsxs(L.Fragment,{children:["Glob: ",L.jsx("span",{className:lt.patternSpan,children:p}),g?L.jsxs("span",{className:lt.secondarySpan,children:[" in ",g]}):""]}),null)}if(n.name==="Grep"){const p=r.pattern||"",g=r.path||"",v=[];r.glob&&v.push(`glob: ${r.glob}`),r.output_mode&&v.push(`mode: ${r.output_mode}`),r.head_limit&&v.push(`limit: ${r.head_limit}`);const y=v.length?` (${v.join(", ")})`:"";return o(L.jsxs(L.Fragment,{children:["Grep: ",L.jsxs("span",{className:lt.patternSpan,children:["/",p,"/"]}),g?L.jsxs("span",{className:lt.secondarySpan,children:[" in ",g]}):"",L.jsx("span",{className:lt.secondarySpan,children:y})]}),null)}if(n.name==="Task"){const p=r.subagent_type||"",g=r.description||"";return o(L.jsxs(L.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],v=typeof g=="string"?g:JSON.stringify(g),y=v.length>200?v.substring(0,200)+"...":v;return L.jsxs("div",{className:lt.kvItem,children:[L.jsxs("span",{className:lt.kvKey,children:[p,": "]}),L.jsx("span",{className:lt.kvValue,children:y})]},p)});return o(c,L.jsx("div",{className:lt.kvContainer,children:m}))}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")?L.jsxs("div",{className:lt.messageRowEnd,children:[L.jsxs("div",{className:lt.contentColLimited,children:[L.jsxs("div",{className:lt.labelRow,children:[o&&L.jsx(vo,{className:lt.timeTextNoMargin,children:o}),this.renderViewRequestBtn(),L.jsxs(vo,{type:"secondary",className:lt.labelTextRight,children:[l," — /compact"]})]}),L.jsx("div",{className:lt.bubbleUser,children:L.jsx(ml,{ghost:!0,size:"small",items:[{key:"1",label:L.jsx(vo,{className:lt.compactLabel,children:"Compact Summary"}),children:L.jsx("pre",{className:lt.compactPre,children:n})}],className:lt.collapseNoMargin})})]}),this.renderUserAvatar("#1e40af")]}):L.jsxs("div",{className:lt.messageRowEnd,children:[L.jsxs("div",{className:lt.contentColLimited,children:[L.jsxs("div",{className:lt.labelRow,children:[o&&L.jsx(vo,{className:lt.timeTextNoMargin,children:o}),this.renderViewRequestBtn(),L.jsx(vo,{type:"secondary",className:lt.labelTextRight,children:l})]}),L.jsx("div",{className:lt.bubbleUser,children:sd(n)})]}),this.renderUserAvatar("#1e40af")]})}renderToolResult(n){return n?L.jsxs("div",{className:lt.toolResult,children:[L.jsx(vo,{type:"secondary",className:lt.toolResultLabel,children:n.label}),L.jsx(zC,{toolName:n.toolName,toolInput:n.toolInput,resultText:n.resultText,defaultCollapsed:this.props.collapseToolResults})]}):null}renderAssistantMessage(){const{content:n,toolResultMap:r={},modelInfo:o}=this.props,l=n.filter(m=>m.type==="thinking"),s=n.filter(m=>m.type==="text"),c=n.filter(m=>m.type==="tool_use");let d=[];return l.forEach((m,p)=>{const v=this.state.thinkingTranslated[p]||cl(m.thinking||"");d.push(L.jsx(ml,{ghost:!0,size:"small",defaultActiveKey:this.props.expandThinking?["1"]:[],items:[{key:"1",label:L.jsxs("span",{children:[L.jsx(vo,{type:"secondary",className:lt.thinkingLabel,children:rt("ui.thinking")}),L.jsx(SD,{text:m.thinking||"",onTranslated:y=>this.handleThinkingTranslated(p,y)})]}),children:L.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:v}})}],className:lt.collapseMargin},`think-${p}-${this.props.expandThinking?"e":"c"}`))}),s.forEach((m,p)=>{if(m.text){const{segments:g}=GB(m.text);d.push(L.jsx("div",{children:this.renderSegments(g)},`text-${p}`))}}),c.forEach(m=>{d.push(this.renderToolCall(m));const p=r[m.id];p&&d.push(L.jsx(J.Fragment,{children:this.renderToolResult(p)},`tr-${m.id}`))}),d.length===0?null:L.jsxs("div",{className:lt.messageRow,children:[L.jsx("div",{className:lt.avatar,style:{background:(o==null?void 0:o.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(o==null?void 0:o.svg)||$s("agent")}}),L.jsxs("div",{className:lt.contentCol,children:[this.renderLabel((o==null?void 0:o.name)||"MainAgent"),L.jsx("div",{className:lt.bubbleAssistant,children:d})]})]})}renderSubAgentMessage(){const{label:n,resultText:r,toolName:o,toolInput:l}=this.props;return L.jsxs("div",{className:lt.messageRow,children:[L.jsx("div",{className:lt.avatar,style:{background:"#4a1d96"},dangerouslySetInnerHTML:{__html:$s("sub")}}),L.jsxs("div",{className:lt.contentCol,children:[this.renderLabel(n),L.jsx("div",{className:lt.bubbleSubAgent,children:L.jsx(zC,{toolName:o,toolInput:l,resultText:r})})]})]})}renderUserSelectionMessage(){const{questions:n,answers:r}=this.props,o=this.getUserName();return L.jsxs("div",{className:lt.messageRowEnd,children:[L.jsxs("div",{className:lt.contentColLimited,children:[this.renderLabel(o," — 选择"),L.jsx("div",{className:lt.bubbleSelection,children:n&&n.map((l,s)=>{const c=(r==null?void 0:r[l.question])||"未选择";return L.jsxs("div",{className:s<n.length-1?lt.questionSpacing:void 0,children:[L.jsx("div",{className:lt.questionText,children:l.question}),L.jsx("div",{className:lt.optionList,children:l.options&&l.options.map((d,m)=>{const p=c===d.label;return L.jsxs("div",{className:lt.option,style:{color:p?"#e5e5e5":"#666",fontWeight:p?600:"normal"},children:[p?"● ":"○ ",d.label,d.description&&L.jsxs("span",{className:lt.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 L.jsxs("div",{className:lt.messageRow,children:[L.jsx("div",{className:lt.avatar,style:{background:(o==null?void 0:o.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(o==null?void 0:o.svg)||$s("agent")}}),L.jsxs("div",{className:lt.contentColLimited,children:[this.renderLabel((o==null?void 0:o.name)||"MainAgent"," (Plan)"),L.jsx("div",{className:lt.bubblePlan,children:L.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:cl(l)}})})]})]})}renderSkillLoadedMessage(){const{text:n,skillName:r,timestamp:o}=this.props,l=this.formatTime(o);return L.jsxs("div",{className:lt.messageRow,children:[L.jsx("div",{style:{width:32,flexShrink:0}}),L.jsx("div",{className:lt.contentCol,children:L.jsx(ml,{ghost:!0,size:"small",items:[{key:"1",label:L.jsxs("span",{className:lt.skillLabel,children:["📦 ",rt("ui.skillLoaded"),": ",r,l&&L.jsx(vo,{className:lt.timeTextNoMargin,style:{marginLeft:8},children:l})]}),children:L.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:cl(n)}})}],className:lt.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"?this.renderSubAgentMessage():null}}const fH="_centerEmpty_1j3v3_1",mH="_container_1j3v3_8",pH="_sessionDividerText_1j3v3_16",gH="_lastResponseLabel_1j3v3_21",Cs={centerEmpty:fH,container:mH,sessionDividerText:pH,lastResponseLabel:gH},{Text:LC}=Jo,hH=20;function vH(){return 100+Math.random()*50}class yH extends J.Component{constructor(t){super(t),this.containerRef=J.createRef(),this.state={visibleCount:0,loading:!1,allItems:[]},this._queueTimer=null,this._prevItemsLen=0,this._scrollTargetIdx=null,this._scrollTargetRef=J.createRef()}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)}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>hH)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)})},vH()))}scrollToBottom(){if(this._scrollTargetRef.current){this._scrollTargetRef.current.scrollIntoView({block:"center",behavior:"instant"}),this._scrollTargetRef=J.createRef(),this.props.onScrollTsDone&&this.props.onScrollTsDone();return}const t=this.containerRef.current;t&&(t.scrollTop=t.scrollHeight)}renderSessionMessages(t,n,r,o){var v;const{userProfile:l,collapseToolResults:s,expandThinking:c,onViewRequest:d}=this.props,m={};for(const y of t)if(y.role==="assistant"&&Array.isArray(y.content))for(const S of y.content)S.type==="tool_use"&&(m[S.id]=S);const p={};for(const y of t)if(y.role==="user"&&Array.isArray(y.content)){for(const S of y.content)if(S.type==="tool_result"){const C=m[S.tool_use_id];let b=rt("ui.toolReturn"),w=null,$=null;if(C)if(w=C.name,$=C.input,C.name==="Task"&&C.input){const R=C.input.subagent_type||"",O=C.input.description||"";b=`SubAgent: ${R}${O?" — "+O:""}`}else b=rt("ui.toolReturnNamed",{name:C.name});p[S.tool_use_id]={label:b,toolName:w,toolInput:$,resultText:wC(S)}}}const g=[];for(let y=0;y<t.length;y++){const S=t[y],C=S.content,b=S._timestamp||null,w=b?o[b]:void 0,$=w!=null&&d?{requestIndex:w,onViewRequest:d}:{};if(S.role==="user"){if(Array.isArray(C)){const R=C.find(I=>I.type==="text"&&/^\[SUGGESTION MODE:/i.test((I.text||"").trim())),O=C.filter(I=>I.type==="tool_result"),_=C.some(I=>I.type==="text"&&/<command-message>/i.test(I.text||""));if(R&&O.length>0){let I=null,T={};for(const N of O){const P=m[N.tool_use_id];if(P&&P.name==="AskUserQuestion"&&((v=P.input)!=null&&v.questions)){I=P.input.questions;const k=wC(N);try{T=JSON.parse(k).answers||{}}catch{}break}}I&&g.push(L.jsx(sa,{role:"user-selection",questions:I,answers:T,timestamp:b,userProfile:l,...$},`${n}-selection-${y}`))}else{let I=C.filter(N=>N.type==="text"&&!cd(N.text));_&&(I=[]);const T=C.filter(N=>N.type==="text"&&$C(N.text));for(const N of T){const P=N.text.match(/^#\s+(.+)$/m),k=P?P[1]:"Skill";g.push(L.jsx(sa,{role:"skill-loaded",text:N.text,skillName:k,timestamp:b,...$},`${n}-skill-${y}`))}T.length>0&&(I=I.filter(N=>!$C(N.text)));for(let N=0;N<I.length;N++){const P=/^Implement the following plan:/i.test((I[N].text||"").trim());g.push(L.jsx(sa,{role:P?"plan-prompt":"user",text:I[N].text,timestamp:b,userProfile:l,modelInfo:r,...$},`${n}-user-${y}-${N}`))}}}else if(typeof C=="string"&&!cd(C)){const R=/^Implement the following plan:/i.test(C.trim());g.push(L.jsx(sa,{role:R?"plan-prompt":"user",text:C,timestamp:b,userProfile:l,modelInfo:r,...$},`${n}-user-${y}`))}}else S.role==="assistant"&&(Array.isArray(C)?g.push(L.jsx(sa,{role:"assistant",content:C,toolResultMap:p,timestamp:b,modelInfo:r,collapseToolResults:s,expandThinking:c,...$},`${n}-asst-${y}`)):typeof C=="string"&&g.push(L.jsx(sa,{role:"assistant",content:[{type:"text",text:C}],toolResultMap:p,timestamp:b,modelInfo:r,collapseToolResults:s,expandThinking:c,...$},`${n}-asst-${y}`)))}return g}buildAllItems(){var v;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 y=0;y<n.length;y++)n[y].mainAgent&&n[y].timestamp&&(s[n[y].timestamp]=y);let c=null;if(n){for(let y=n.length-1;y>=0;y--)if(n[y].mainAgent&&((v=n[y].body)!=null&&v.model)){c=n[y].body.model;break}}const d=iL(c),m=[],p={};t.forEach((y,S)=>{var b,w;S>0&&m.push(L.jsx(J1,{style:{borderColor:"#333",margin:"16px 0"},children:L.jsx(LC,{className:Cs.sessionDividerText,children:"Session"})},`session-div-${S}`));const C=this.renderSessionMessages(y.messages,`s${S}`,d,s);for(const $ of C)$.props.timestamp&&(p[$.props.timestamp]=m.length),m.push($);if(S===t.length-1&&((w=(b=y.response)==null?void 0:b.body)!=null&&w.content)){const $=y.response.body.content;Array.isArray($)&&(m.push(L.jsx(J.Fragment,{children:L.jsx(J1,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:L.jsx(LC,{type:"secondary",className:Cs.lastResponseLabel,children:rt("ui.lastResponse")})})},"resp-divider")),m.push(L.jsx(sa,{role:"assistant",content:$,modelInfo:d,collapseToolResults:r,expandThinking:o,toolResultMap:{}},"resp-asst")))}});const{scrollToTimestamp:g}=this.props;return this._scrollTargetIdx=g&&p[g]!=null?p[g]:null,m}render(){const{mainAgentSessions:t}=this.props,{allItems:n,visibleCount:r,loading:o}=this.state;if(!t||t.length===0)return L.jsx("div",{className:Cs.centerEmpty,children:L.jsx(Mo,{description:rt("ui.noChat")})});if(o)return L.jsx("div",{className:Cs.centerEmpty,children:L.jsx(Qd,{size:"large"})});const l=this._scrollTargetIdx,s=n.slice(0,r);return L.jsx("div",{ref:this.containerRef,className:Cs.container,children:s.map((c,d)=>d===l?L.jsx("div",{ref:this._scrollTargetRef,children:c},c.key+"-anchor"):c)})}}const bH="_resizer_yamj2_1",CH={resizer:bH};class SH 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 L.jsx("div",{onMouseDown:this.handleMouseDown,className:CH.resizer})}}const xH="_layout_lzqdt_1",wH="_header_lzqdt_6",$H="_content_lzqdt_14",EH="_mainContainer_lzqdt_19",RH="_leftPanel_lzqdt_24",OH="_leftPanelHeader_lzqdt_32",IH="_leftPanelCount_lzqdt_43",_H="_leftPanelBody_lzqdt_49",TH="_rightPanel_lzqdt_54",PH="_modalActions_lzqdt_60",NH="_spinCenter_lzqdt_64",kH="_emptyCenter_lzqdt_69",MH="_logListItem_lzqdt_75",jH="_logItemRow_lzqdt_80",zH="_logFileIcon_lzqdt_87",LH="_folderIcon_lzqdt_92",AH="_logTag_lzqdt_96",BH="_loadingOverlay_lzqdt_100",DH="_loadingText_lzqdt_113",HH="_footer_lzqdt_119",FH="_footerRight_lzqdt_129",VH="_footerLink_lzqdt_137",WH="_footerIcon_lzqdt_149",qH="_footerDivider_lzqdt_154",kn={layout:xH,header:wH,content:$H,mainContainer:EH,leftPanel:RH,leftPanelHeader:OH,leftPanelCount:IH,leftPanelBody:_H,rightPanel:TH,modalActions:PH,spinCenter:NH,emptyCenter:kH,logListItem:MH,logItemRow:jH,logFileIcon:zH,folderIcon:LH,logTag:AH,loadingOverlay:BH,loadingText:DH,footer:HH,footerRight:FH,footerLink:VH,footerIcon:WH,footerDivider:qH};class UH extends J.Component{constructor(n){super(n);Bt(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n})});Bt(this,"handleViewRequest",n=>{this.setState({viewMode:"raw",selectedIndex:n,scrollCenter:!0})});Bt(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:n.requests.filter(c=>!c.isHeartbeat&&!c.isCountTokens&&!/\/api\/eval\/sdk-/.test(c.url||"")&&!/\/messages\/count_tokens/.test(c.url||""));return{viewMode:r,selectedIndex:s.length>0?s.length-1:null,scrollCenter:!0}}return{viewMode:r,scrollCenter:!0}}const o=n.showAll?n.requests:n.requests.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||"")),l=n.selectedIndex!=null?o[n.selectedIndex]:null;if(l){let s=null;if(l.mainAgent&&l.timestamp)s=l.timestamp;else{const c=n.requests.indexOf(l);if(c>=0){for(let d=c-1;d>=0;d--)if(n.requests[d].mainAgent&&n.requests[d].timestamp){s=n.requests[d].timestamp;break}}s||hl.info(rt("ui.cannotMap"))}return{viewMode:r,chatScrollToTs:s}}return{viewMode:r,chatScrollToTs:null}})});Bt(this,"handleLangChange",()=>{const n=Us();this.setState({lang:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:n})}).catch(()=>{})});Bt(this,"handleCollapseToolResultsChange",n=>{this.setState({collapseToolResults:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collapseToolResults:n})}).catch(()=>{})});Bt(this,"handleExpandThinkingChange",n=>{this.setState({expandThinking:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expandThinking:n})}).catch(()=>{})});Bt(this,"handleFilterIrrelevantChange",n=>{this.setState(r=>{const o=!n,l=o?r.requests:r.requests.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));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(()=>{})});Bt(this,"handleTabChange",n=>{this.setState({currentTab:n})});Bt(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})});Bt(this,"handleImportLocalLogs",()=>{this.setState({importModalVisible:!0,localLogsLoading:!0}),fetch("/api/local-logs").then(n=>n.json()).then(n=>{this.setState({localLogs:n,localLogsLoading:!1})}).catch(()=>{this.setState({localLogs:{},localLogsLoading:!1})})});Bt(this,"handleCloseImportModal",()=>{this.setState({importModalVisible:!1})});Bt(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})});Bt(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))});Bt(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>200*1024*1024){hl.error(rt("ui.fileTooLarge"));return}this.setState({fileLoading:!0,fileLoadingCount:0});const l=new FileReader;l.onload=s=>{try{const d=s.target.result.split(`
|
|
513
|
+
---
|
|
514
|
+
`).filter(m=>m.trim()).map(m=>{try{return JSON.parse(m)}catch{return null}}).filter(Boolean);if(d.length===0){hl.error(rt("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0});return}this.animateLoadingCount(d.length,()=>{let m=[];for(const g of d)g.mainAgent&&g.body&&Array.isArray(g.body.messages)&&(m=this.mergeMainAgentSessions(m,g));const p=d.filter(g=>!g.isHeartbeat&&!g.isCountTokens&&!/\/api\/eval\/sdk-/.test(g.url||"")&&!/\/messages\/count_tokens/.test(g.url||""));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{hl.error(rt("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:Us(),userProfile:null,projectName:"",resumeModalVisible:!1,resumeFileName:"",collapseToolResults:!1,expandThinking:!1,fileLoading:!1,fileLoadingCount:0},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=J.createRef()}componentDidMount(){fetch("/api/preferences").then(o=>o.json()).then(o=>{o.lang&&(Fh(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});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(()=>{});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("full_reload",n=>{try{const r=JSON.parse(n.data);if(Array.isArray(r)){this.assignMessageTimestamps(r);const o=this.buildSessionsFromEntries(r),l=r.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));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=r.filter(s=>!s.isHeartbeat&&!s.isCountTokens&&!/\/api\/eval\/sdk-/.test(s.url||"")&&!/\/messages\/count_tokens/.test(s.url||""));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,v;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(r.mainAgent){const y=(v=(g=r.response)==null?void 0:g.body)==null?void 0:v.usage;if(y!=null&&y.cache_creation){const S=y.cache_creation,C=r.timestamp?new Date(r.timestamp).getTime():Date.now();let b=null,w=null;if(S.ephemeral_1h_input_tokens>0?(b=C+3600*1e3,w="1h"):S.ephemeral_5m_input_tokens>0&&(b=C+300*1e3,w="5m"),b&&b>Date.now()){c=b;const $=(y.cache_read_input_tokens||0)+(y.cache_creation_input_tokens||0);d=$>0?no($):w,localStorage.setItem("ccv_cacheExpireAt",String(c)),localStorage.setItem("ccv_cacheType",d)}}}let m=o.mainAgentSessions;if(r.mainAgent&&r.body&&Array.isArray(r.body.messages)){const y=r.timestamp||new Date().toISOString(),S=m.length>0?m[m.length-1]:null,C=(S==null?void 0:S.messages)||[],b=r.body.messages,w=C.length,$=w>0&&b.length<w*.5&&w-b.length>4;for(let R=0;R<b.length;R++)!$&&R<w&&C[R]._timestamp?b[R]._timestamp=C[R]._timestamp:b[R]._timestamp||(b[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 S=y.showAll?y.requests:y.requests.filter(C=>!C.isHeartbeat&&!C.isCountTokens&&!/\/api\/eval\/sdk-/.test(C.url||"")&&!/\/messages\/count_tokens/.test(C.url||""));return S.length>0?{selectedIndex:S.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(!s.mainAgent||!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)o.mainAgent&&o.body&&Array.isArray(o.body.messages)&&(r=this.mergeMainAgentSessions(r,o));return r}mergeMainAgentSessions(n,r){var p;const o=r.body.messages,l=r.response,s=((p=r.body.metadata)==null?void 0:p.user_id)||null;if(n.length===0)return[{userId:s,messages:o,response:l}];const c=n[n.length-1],d=c.messages?c.messages.length:0,m=d>0&&o.length<d*.5&&d-o.length>4;if(s&&s===c.userId&&!m){const g=[...n];return g[g.length-1]={userId:s,messages:o,response:l},g}else return[...n,{userId:s,messages:o,response:l}]}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:v}=this.state,y=p?n:n.filter(C=>!C.isHeartbeat&&!C.isCountTokens&&!/\/api\/eval\/sdk-/.test(C.url||"")&&!/\/messages\/count_tokens/.test(C.url||"")),S=r!==null?y[r]:null;return L.jsxs(Yo,{theme:{algorithm:Dz.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[g&&L.jsx("div",{className:kn.loadingOverlay,children:L.jsxs("div",{className:kn.loadingText,children:["Loading...(",v,")"]})}),L.jsxs(Hi,{className:kn.layout,children:[L.jsx(Hi.Header,{className:kn.header,children:L.jsx(zg,{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,filterIrrelevant:!this.state.showAll,onFilterIrrelevantChange:this.handleFilterIrrelevantChange})}),L.jsx(Hi.Content,{className:kn.content,children:o==="raw"?L.jsxs("div",{ref:this.mainContainerRef,className:kn.mainContainer,children:[L.jsxs("div",{className:kn.leftPanel,style:{width:d},children:[L.jsxs("div",{className:kn.leftPanelHeader,children:[L.jsx("span",{children:rt("ui.requestList")}),L.jsx("span",{className:kn.leftPanelCount,children:rt("ui.totalRequests",{count:y.length})})]}),L.jsx("div",{className:kn.leftPanelBody,children:L.jsx(uA,{requests:y,selectedIndex:r,scrollCenter:this.state.scrollCenter,onSelect:this.handleSelectRequest,onScrollDone:()=>this.setState({scrollCenter:!1})})})]}),L.jsx(SH,{onResize:this.handleResize}),L.jsx("div",{className:kn.rightPanel,children:L.jsx(tB,{request:S,requests:y,selectedIndex:r,currentTab:l,onTabChange:this.handleTabChange})})]}):L.jsx(yH,{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})})}),L.jsx("div",{className:kn.footer,children:L.jsxs("div",{className:kn.footerRight,children:[L.jsxs("a",{href:"https://github.com/weiesky/cc-viewer",target:"_blank",rel:"noopener noreferrer",className:kn.footerLink,children:[L.jsx("svg",{className:kn.footerIcon,viewBox:"0 0 16 16",fill:"currentColor",children:L.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"]}),L.jsx("span",{className:kn.footerDivider,children:"|"}),L.jsx("a",{href:"dingtalk://dingtalkclient/action/sendmsg?dingtalk_id=sthk5es",className:kn.footerLink,children:rt("ui.footer.contact")})]})})]}),L.jsx(Ur,{title:rt("ui.resume.title"),open:this.state.resumeModalVisible,closable:!1,maskClosable:!1,keyboard:!1,footer:[L.jsx(Rr,{type:"primary",onClick:()=>this.handleResumeChoice("continue"),children:rt("ui.resume.continue")},"continue"),L.jsx(Rr,{onClick:()=>this.handleResumeChoice("new"),children:rt("ui.resume.new")},"new")],children:L.jsx("p",{children:rt("ui.resume.message",{file:this.state.resumeFileName})})}),L.jsxs(Ur,{title:rt("ui.importLocalLogs"),open:this.state.importModalVisible,onCancel:this.handleCloseImportModal,footer:null,width:600,styles:{body:{maxHeight:"60vh",overflow:"auto"}},children:[L.jsx("div",{className:kn.modalActions,children:L.jsx(Rr,{icon:L.jsx(nL,{}),onClick:this.handleLoadLocalJsonlFile,children:rt("ui.loadLocalJsonl")})}),this.state.localLogsLoading?L.jsx("div",{className:kn.spinCenter,children:L.jsx(Qd,{})}):Object.keys(this.state.localLogs).length===0?L.jsx("div",{className:kn.emptyCenter,children:rt("ui.noLogs")}):L.jsx(ml,{defaultActiveKey:Object.keys(this.state.localLogs),items:Object.entries(this.state.localLogs).map(([C,b])=>({key:C,label:L.jsxs("span",{children:[L.jsx(Oz,{className:kn.folderIcon}),C,L.jsx(bo,{className:kn.logTag,children:rt("ui.logCount",{count:b.length})})]}),children:L.jsx(Vs,{size:"small",dataSource:b,renderItem:w=>L.jsx(Vs.Item,{className:kn.logListItem,onClick:()=>this.handleOpenLogFile(w.file),children:L.jsxs("div",{className:kn.logItemRow,children:[L.jsxs("span",{children:[L.jsx(ad,{className:kn.logFileIcon}),this.formatTimestamp(w.timestamp)]}),L.jsx(bo,{color:"blue",children:this.formatSize(w.size)})]})})})}))})]})]})}}const GH=VE.createRoot(document.getElementById("root"));GH.render(L.jsx(UH,{}));
|