cc-viewer 1.4.7 → 1.4.9
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/dist/assets/index-BtUV1IH_.js +634 -0
- package/dist/assets/index-Cplbs2JB.css +41 -0
- package/dist/index.html +2 -2
- package/interceptor.js +3 -2
- package/package.json +8 -3
- package/proxy-env.js +21 -0
- package/server.js +182 -2
- package/dist/assets/index-BtBbkSY4.js +0 -617
- package/dist/assets/index-tbq5NdU4.css +0 -32
|
@@ -1,617 +0,0 @@
|
|
|
1
|
-
var P5=Object.defineProperty;var O5=(e,t,n)=>t in e?P5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rt=(e,t,n)=>O5(e,typeof t!="symbol"?t+"":t,n);function x2(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var og={exports:{}},Hc={},sg={exports:{}},rn={};/**
|
|
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 iS;function I5(){if(iS)return rn;iS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function g(H){return H===null||typeof H!="object"?null:(H=m&&H[m]||H["@@iterator"],typeof H=="function"?H:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,S={};function _(H,U,K){this.props=H,this.context=U,this.refs=S,this.updater=K||v}_.prototype.isReactComponent={},_.prototype.setState=function(H,U){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,U,"setState")},_.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function C(){}C.prototype=_.prototype;function w(H,U,K){this.props=H,this.context=U,this.refs=S,this.updater=K||v}var k=w.prototype=new C;k.constructor=w,y(k,_.prototype),k.isPureReactComponent=!0;var $=Array.isArray,T=Object.prototype.hasOwnProperty,R={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function N(H,U,K){var G,J={},ee=null,de=null;if(U!=null)for(G in U.ref!==void 0&&(de=U.ref),U.key!==void 0&&(ee=""+U.key),U)T.call(U,G)&&!O.hasOwnProperty(G)&&(J[G]=U[G]);var oe=arguments.length-2;if(oe===1)J.children=K;else if(1<oe){for(var ae=Array(oe),_e=0;_e<oe;_e++)ae[_e]=arguments[_e+2];J.children=ae}if(H&&H.defaultProps)for(G in oe=H.defaultProps,oe)J[G]===void 0&&(J[G]=oe[G]);return{$$typeof:e,type:H,key:ee,ref:de,props:J,_owner:R.current}}function I(H,U){return{$$typeof:e,type:H.type,key:U,ref:H.ref,props:H.props,_owner:H._owner}}function j(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function L(H){var U={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(K){return U[K]})}var M=/\/+/g;function B(H,U){return typeof H=="object"&&H!==null&&H.key!=null?L(""+H.key):U.toString(36)}function z(H,U,K,G,J){var ee=typeof H;(ee==="undefined"||ee==="boolean")&&(H=null);var de=!1;if(H===null)de=!0;else switch(ee){case"string":case"number":de=!0;break;case"object":switch(H.$$typeof){case e:case t:de=!0}}if(de)return de=H,J=J(de),H=G===""?"."+B(de,0):G,$(J)?(K="",H!=null&&(K=H.replace(M,"$&/")+"/"),z(J,U,K,"",function(_e){return _e})):J!=null&&(j(J)&&(J=I(J,K+(!J.key||de&&de.key===J.key?"":(""+J.key).replace(M,"$&/")+"/")+H)),U.push(J)),1;if(de=0,G=G===""?".":G+":",$(H))for(var oe=0;oe<H.length;oe++){ee=H[oe];var ae=G+B(ee,oe);de+=z(ee,U,K,ae,J)}else if(ae=g(H),typeof ae=="function")for(H=ae.call(H),oe=0;!(ee=H.next()).done;)ee=ee.value,ae=G+B(ee,oe++),de+=z(ee,U,K,ae,J);else if(ee==="object")throw U=String(H),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.");return de}function D(H,U,K){if(H==null)return H;var G=[],J=0;return z(H,G,"","",function(ee){return U.call(K,ee,J++)}),G}function F(H){if(H._status===-1){var U=H._result;U=U(),U.then(function(K){(H._status===0||H._status===-1)&&(H._status=1,H._result=K)},function(K){(H._status===0||H._status===-1)&&(H._status=2,H._result=K)}),H._status===-1&&(H._status=0,H._result=U)}if(H._status===1)return H._result.default;throw H._result}var V={current:null},A={transition:null},X={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:A,ReactCurrentOwner:R};function q(){throw Error("act(...) is not supported in production builds of React.")}return rn.Children={map:D,forEach:function(H,U,K){D(H,function(){U.apply(this,arguments)},K)},count:function(H){var U=0;return D(H,function(){U++}),U},toArray:function(H){return D(H,function(U){return U})||[]},only:function(H){if(!j(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},rn.Component=_,rn.Fragment=n,rn.Profiler=i,rn.PureComponent=w,rn.StrictMode=r,rn.Suspense=u,rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,rn.act=q,rn.cloneElement=function(H,U,K){if(H==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+H+".");var G=y({},H.props),J=H.key,ee=H.ref,de=H._owner;if(U!=null){if(U.ref!==void 0&&(ee=U.ref,de=R.current),U.key!==void 0&&(J=""+U.key),H.type&&H.type.defaultProps)var oe=H.type.defaultProps;for(ae in U)T.call(U,ae)&&!O.hasOwnProperty(ae)&&(G[ae]=U[ae]===void 0&&oe!==void 0?oe[ae]:U[ae])}var ae=arguments.length-2;if(ae===1)G.children=K;else if(1<ae){oe=Array(ae);for(var _e=0;_e<ae;_e++)oe[_e]=arguments[_e+2];G.children=oe}return{$$typeof:e,type:H.type,key:J,ref:ee,props:G,_owner:de}},rn.createContext=function(H){return H={$$typeof:a,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},H.Provider={$$typeof:o,_context:H},H.Consumer=H},rn.createElement=N,rn.createFactory=function(H){var U=N.bind(null,H);return U.type=H,U},rn.createRef=function(){return{current:null}},rn.forwardRef=function(H){return{$$typeof:l,render:H}},rn.isValidElement=j,rn.lazy=function(H){return{$$typeof:f,_payload:{_status:-1,_result:H},_init:F}},rn.memo=function(H,U){return{$$typeof:d,type:H,compare:U===void 0?null:U}},rn.startTransition=function(H){var U=A.transition;A.transition={};try{H()}finally{A.transition=U}},rn.unstable_act=q,rn.useCallback=function(H,U){return V.current.useCallback(H,U)},rn.useContext=function(H){return V.current.useContext(H)},rn.useDebugValue=function(){},rn.useDeferredValue=function(H){return V.current.useDeferredValue(H)},rn.useEffect=function(H,U){return V.current.useEffect(H,U)},rn.useId=function(){return V.current.useId()},rn.useImperativeHandle=function(H,U,K){return V.current.useImperativeHandle(H,U,K)},rn.useInsertionEffect=function(H,U){return V.current.useInsertionEffect(H,U)},rn.useLayoutEffect=function(H,U){return V.current.useLayoutEffect(H,U)},rn.useMemo=function(H,U){return V.current.useMemo(H,U)},rn.useReducer=function(H,U,K){return V.current.useReducer(H,U,K)},rn.useRef=function(H){return V.current.useRef(H)},rn.useState=function(H){return V.current.useState(H)},rn.useSyncExternalStore=function(H,U,K){return V.current.useSyncExternalStore(H,U,K)},rn.useTransition=function(){return V.current.useTransition()},rn.version="18.3.1",rn}var oS;function gy(){return oS||(oS=1,sg.exports=I5()),sg.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 sS;function N5(){if(sS)return Hc;sS=1;var e=gy(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,u,d){var f,m={},g=null,v=null;d!==void 0&&(g=""+d),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(v=u.ref);for(f in u)r.call(u,f)&&!o.hasOwnProperty(f)&&(m[f]=u[f]);if(l&&l.defaultProps)for(f in u=l.defaultProps,u)m[f]===void 0&&(m[f]=u[f]);return{$$typeof:t,type:l,key:g,ref:v,props:m,_owner:i.current}}return Hc.Fragment=n,Hc.jsx=a,Hc.jsxs=a,Hc}var aS;function M5(){return aS||(aS=1,og.exports=N5()),og.exports}var x=M5();(function(){let e=null;function t(){return e||(e=new URLSearchParams(window.location.search).get("token")||"",e)}function n(a){const l=t();if(!l)return a;if(a.startsWith("/")){const u=a.includes("?")?"&":"?";return`${a}${u}token=${encodeURIComponent(l)}`}try{const u=new URL(a);if(u.origin===window.location.origin)return u.searchParams.set("token",l),u.toString()}catch{}return a}const r=window.fetch;window.fetch=function(a,l){return r(n(a),l)};const i=window.EventSource;window.EventSource=function(a,l){return new i(n(a),l)};const o=window.WebSocket;window.WebSocket=function(a,l){return new o(n(a),l)},window.WebSocket.prototype=o.prototype,window.WebSocket.CONNECTING=o.CONNECTING,window.WebSocket.OPEN=o.OPEN,window.WebSocket.CLOSING=o.CLOSING,window.WebSocket.CLOSED=o.CLOSED})();var h=gy();const Q=Hu(h),Df=x2({__proto__:null,default:Q},[h]);var ah={},ag={exports:{}},$i={},lg={exports:{}},cg={};/**
|
|
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 lS;function j5(){return lS||(lS=1,(function(e){function t(A,X){var q=A.length;A.push(X);e:for(;0<q;){var H=q-1>>>1,U=A[H];if(0<i(U,X))A[H]=X,A[q]=U,q=H;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var X=A[0],q=A.pop();if(q!==X){A[0]=q;e:for(var H=0,U=A.length,K=U>>>1;H<K;){var G=2*(H+1)-1,J=A[G],ee=G+1,de=A[ee];if(0>i(J,q))ee<U&&0>i(de,J)?(A[H]=de,A[ee]=q,H=ee):(A[H]=J,A[G]=q,H=G);else if(ee<U&&0>i(de,q))A[H]=de,A[ee]=q,H=ee;else break e}}return X}function i(A,X){var q=A.sortIndex-X.sortIndex;return q!==0?q:A.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],d=[],f=1,m=null,g=3,v=!1,y=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(A){for(var X=n(d);X!==null;){if(X.callback===null)r(d);else if(X.startTime<=A)r(d),X.sortIndex=X.expirationTime,t(u,X);else break;X=n(d)}}function $(A){if(S=!1,k(A),!y)if(n(u)!==null)y=!0,F(T);else{var X=n(d);X!==null&&V($,X.startTime-A)}}function T(A,X){y=!1,S&&(S=!1,C(N),N=-1),v=!0;var q=g;try{for(k(X),m=n(u);m!==null&&(!(m.expirationTime>X)||A&&!L());){var H=m.callback;if(typeof H=="function"){m.callback=null,g=m.priorityLevel;var U=H(m.expirationTime<=X);X=e.unstable_now(),typeof U=="function"?m.callback=U:m===n(u)&&r(u),k(X)}else r(u);m=n(u)}if(m!==null)var K=!0;else{var G=n(d);G!==null&&V($,G.startTime-X),K=!1}return K}finally{m=null,g=q,v=!1}}var R=!1,O=null,N=-1,I=5,j=-1;function L(){return!(e.unstable_now()-j<I)}function M(){if(O!==null){var A=e.unstable_now();j=A;var X=!0;try{X=O(!0,A)}finally{X?B():(R=!1,O=null)}}else R=!1}var B;if(typeof w=="function")B=function(){w(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,D=z.port2;z.port1.onmessage=M,B=function(){D.postMessage(null)}}else B=function(){_(M,0)};function F(A){O=A,R||(R=!0,B())}function V(A,X){N=_(function(){A(e.unstable_now())},X)}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(A){A.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,F(T))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(A){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var q=g;g=X;try{return A()}finally{g=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,X){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var q=g;g=A;try{return X()}finally{g=q}},e.unstable_scheduleCallback=function(A,X,q){var H=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?H+q:H):q=H,A){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=q+U,A={id:f++,callback:X,priorityLevel:A,startTime:q,expirationTime:U,sortIndex:-1},q>H?(A.sortIndex=q,t(d,A),n(u)===null&&A===n(d)&&(S?(C(N),N=-1):S=!0,V($,q-H))):(A.sortIndex=U,t(u,A),y||v||(y=!0,F(T))),A},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(A){var X=g;return function(){var q=g;g=X;try{return A.apply(this,arguments)}finally{g=q}}}})(cg)),cg}var cS;function z5(){return cS||(cS=1,lg.exports=j5()),lg.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 uS;function B5(){if(uS)return $i;uS=1;var e=gy(),t=z5();function n(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(s,c){a(s,c),a(s+"Capture",c)}function a(s,c){for(i[s]=c,s=0;s<c.length;s++)r.add(c[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,f={},m={};function g(s){return u.call(m,s)?!0:u.call(f,s)?!1:d.test(s)?m[s]=!0:(f[s]=!0,!1)}function v(s,c,p,b){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return b?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function y(s,c,p,b){if(c===null||typeof c>"u"||v(s,c,p,b))return!0;if(b)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function S(s,c,p,b,E,P,W){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=b,this.attributeNamespace=E,this.mustUseProperty=p,this.propertyName=s,this.type=c,this.sanitizeURL=P,this.removeEmptyString=W}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){_[s]=new S(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];_[c]=new S(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){_[s]=new S(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){_[s]=new S(s,2,!1,s,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(s){_[s]=new S(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){_[s]=new S(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){_[s]=new S(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){_[s]=new S(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){_[s]=new S(s,5,!1,s.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function w(s){return s[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(s){var c=s.replace(C,w);_[c]=new S(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(C,w);_[c]=new S(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(C,w);_[c]=new S(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){_[s]=new S(s,1,!1,s.toLowerCase(),null,!1,!1)}),_.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){_[s]=new S(s,1,!1,s.toLowerCase(),null,!0,!0)});function k(s,c,p,b){var E=_.hasOwnProperty(c)?_[c]:null;(E!==null?E.type!==0:b||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(y(c,p,E,b)&&(p=null),b||E===null?g(c)&&(p===null?s.removeAttribute(c):s.setAttribute(c,""+p)):E.mustUseProperty?s[E.propertyName]=p===null?E.type===3?!1:"":p:(c=E.attributeName,b=E.attributeNamespace,p===null?s.removeAttribute(c):(E=E.type,p=E===3||E===4&&p===!0?"":""+p,b?s.setAttributeNS(b,c,p):s.setAttribute(c,p))))}var $=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),R=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),A=Symbol.iterator;function X(s){return s===null||typeof s!="object"?null:(s=A&&s[A]||s["@@iterator"],typeof s=="function"?s:null)}var q=Object.assign,H;function U(s){if(H===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);H=c&&c[1]||""}return`
|
|
34
|
-
`+H+s}var K=!1;function G(s,c){if(!s||K)return"";K=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(Se){var b=Se}Reflect.construct(s,[],c)}else{try{c.call()}catch(Se){b=Se}s.call(c.prototype)}else{try{throw Error()}catch(Se){b=Se}s()}}catch(Se){if(Se&&b&&typeof Se.stack=="string"){for(var E=Se.stack.split(`
|
|
35
|
-
`),P=b.stack.split(`
|
|
36
|
-
`),W=E.length-1,te=P.length-1;1<=W&&0<=te&&E[W]!==P[te];)te--;for(;1<=W&&0<=te;W--,te--)if(E[W]!==P[te]){if(W!==1||te!==1)do if(W--,te--,0>te||E[W]!==P[te]){var ie=`
|
|
37
|
-
`+E[W].replace(" at new "," at ");return s.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",s.displayName)),ie}while(1<=W&&0<=te);break}}}finally{K=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?U(s):""}function J(s){switch(s.tag){case 5:return U(s.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return s=G(s.type,!1),s;case 11:return s=G(s.type.render,!1),s;case 1:return s=G(s.type,!0),s;default:return""}}function ee(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case O:return"Fragment";case R:return"Portal";case I:return"Profiler";case N:return"StrictMode";case B:return"Suspense";case z:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case L:return(s.displayName||"Context")+".Consumer";case j:return(s._context.displayName||"Context")+".Provider";case M:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case D:return c=s.displayName||null,c!==null?c:ee(s.type)||"Memo";case F:c=s._payload,s=s._init;try{return ee(s(c))}catch{}}return null}function de(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(c);case 8:return c===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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function oe(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ae(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function _e(s){var c=ae(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),b=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var E=p.get,P=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return E.call(this)},set:function(W){b=""+W,P.call(this,W)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return b},setValue:function(W){b=""+W},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function se(s){s._valueTracker||(s._valueTracker=_e(s))}function ce(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),b="";return s&&(b=ae(s)?s.checked?"true":"false":s.value),s=b,s!==p?(c.setValue(s),!0):!1}function he(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function ve(s,c){var p=c.checked;return q({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function me(s,c){var p=c.defaultValue==null?"":c.defaultValue,b=c.checked!=null?c.checked:c.defaultChecked;p=oe(c.value!=null?c.value:p),s._wrapperState={initialChecked:b,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function fe(s,c){c=c.checked,c!=null&&k(s,"checked",c,!1)}function ye(s,c){fe(s,c);var p=oe(c.value),b=c.type;if(p!=null)b==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(b==="submit"||b==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?Ee(s,c.type,p):c.hasOwnProperty("defaultValue")&&Ee(s,c.type,oe(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function xe(s,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var b=c.type;if(!(b!=="submit"&&b!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,p||c===s.value||(s.value=c),s.defaultValue=c}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function Ee(s,c,p){(c!=="number"||he(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var Ne=Array.isArray;function Te(s,c,p,b){if(s=s.options,c){c={};for(var E=0;E<p.length;E++)c["$"+p[E]]=!0;for(p=0;p<s.length;p++)E=c.hasOwnProperty("$"+s[p].value),s[p].selected!==E&&(s[p].selected=E),E&&b&&(s[p].defaultSelected=!0)}else{for(p=""+oe(p),c=null,E=0;E<s.length;E++){if(s[E].value===p){s[E].selected=!0,b&&(s[E].defaultSelected=!0);return}c!==null||s[E].disabled||(c=s[E])}c!==null&&(c.selected=!0)}}function Pe(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(n(91));return q({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function ke(s,c){var p=c.value;if(p==null){if(p=c.children,c=c.defaultValue,p!=null){if(c!=null)throw Error(n(92));if(Ne(p)){if(1<p.length)throw Error(n(93));p=p[0]}c=p}c==null&&(c=""),p=c}s._wrapperState={initialValue:oe(p)}}function Ce(s,c){var p=oe(c.value),b=oe(c.defaultValue);p!=null&&(p=""+p,p!==s.value&&(s.value=p),c.defaultValue==null&&s.defaultValue!==p&&(s.defaultValue=p)),b!=null&&(s.defaultValue=""+b)}function Ve(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function Ze(s){switch(s){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 _t(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?Ze(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var nt,Ye=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,p,b,E){MSApp.execUnsafeLocalFunction(function(){return s(c,p,b,E)})}:s})(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(nt=nt||document.createElement("div"),nt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=nt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function mt(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var Je={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},yt=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(s){yt.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Je[c]=Je[s]})});function rt(s,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||Je.hasOwnProperty(s)&&Je[s]?(""+c).trim():c+"px"}function Le(s,c){s=s.style;for(var p in c)if(c.hasOwnProperty(p)){var b=p.indexOf("--")===0,E=rt(p,c[p],b);p==="float"&&(p="cssFloat"),b?s.setProperty(p,E):s[p]=E}}var ot=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 ze(s,c){if(c){if(ot[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(n(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(n(61))}if(c.style!=null&&typeof c.style!="object")throw Error(n(62))}}function Ke(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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 It=null;function Ct(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var nn=null,Qt=null,Sn=null;function In(s){if(s=kc(s)){if(typeof nn!="function")throw Error(n(280));var c=s.stateNode;c&&(c=Cd(c),nn(s.stateNode,s.type,c))}}function on(s){Qt?Sn?Sn.push(s):Sn=[s]:Qt=s}function Ht(){if(Qt){var s=Qt,c=Sn;if(Sn=Qt=null,In(s),c)for(s=0;s<c.length;s++)In(c[s])}}function Tt(s,c){return s(c)}function sn(){}var Xt=!1;function at(s,c,p){if(Xt)return s(c,p);Xt=!0;try{return Tt(s,c,p)}finally{Xt=!1,(Qt!==null||Sn!==null)&&(sn(),Ht())}}function $t(s,c){var p=s.stateNode;if(p===null)return null;var b=Cd(p);if(b===null)return null;p=b[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(n(231,c,typeof p));return p}var pt=!1;if(l)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){pt=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch{pt=!1}function Oe(s,c,p,b,E,P,W,te,ie){var Se=Array.prototype.slice.call(arguments,3);try{c.apply(p,Se)}catch(Be){this.onError(Be)}}var Re=!1,De=null,tt=!1,it=null,Wt={onError:function(s){Re=!0,De=s}};function Kt(s,c,p,b,E,P,W,te,ie){Re=!1,De=null,Oe.apply(Wt,arguments)}function Lt(s,c,p,b,E,P,W,te,ie){if(Kt.apply(this,arguments),Re){if(Re){var Se=De;Re=!1,De=null}else throw Error(n(198));tt||(tt=!0,it=Se)}}function At(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function Pn(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function $n(s){if(At(s)!==s)throw Error(n(188))}function Nn(s){var c=s.alternate;if(!c){if(c=At(s),c===null)throw Error(n(188));return c!==s?null:s}for(var p=s,b=c;;){var E=p.return;if(E===null)break;var P=E.alternate;if(P===null){if(b=E.return,b!==null){p=b;continue}break}if(E.child===P.child){for(P=E.child;P;){if(P===p)return $n(E),s;if(P===b)return $n(E),c;P=P.sibling}throw Error(n(188))}if(p.return!==b.return)p=E,b=P;else{for(var W=!1,te=E.child;te;){if(te===p){W=!0,p=E,b=P;break}if(te===b){W=!0,b=E,p=P;break}te=te.sibling}if(!W){for(te=P.child;te;){if(te===p){W=!0,p=P,b=E;break}if(te===b){W=!0,b=P,p=E;break}te=te.sibling}if(!W)throw Error(n(189))}}if(p.alternate!==b)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?s:c}function Hn(s){return s=Nn(s),s!==null?cn(s):null}function cn(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=cn(s);if(c!==null)return c;s=s.sibling}return null}var pn=t.unstable_scheduleCallback,Fe=t.unstable_cancelCallback,Qe=t.unstable_shouldYield,Ot=t.unstable_requestPaint,gt=t.unstable_now,ct=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,Pt=t.unstable_UserBlockingPriority,Gt=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,vt=t.unstable_IdlePriority,Nt=null,yn=null;function lr(s){if(yn&&typeof yn.onCommitFiberRoot=="function")try{yn.onCommitFiberRoot(Nt,s,void 0,(s.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:Jr,Yr=Math.log,_r=Math.LN2;function Jr(s){return s>>>=0,s===0?32:31-(Yr(s)/_r|0)|0}var Sr=64,Fr=4194304;function Qr(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function dn(s,c){var p=s.pendingLanes;if(p===0)return 0;var b=0,E=s.suspendedLanes,P=s.pingedLanes,W=p&268435455;if(W!==0){var te=W&~E;te!==0?b=Qr(te):(P&=W,P!==0&&(b=Qr(P)))}else W=p&~E,W!==0?b=Qr(W):P!==0&&(b=Qr(P));if(b===0)return 0;if(c!==0&&c!==b&&(c&E)===0&&(E=b&-b,P=c&-c,E>=P||E===16&&(P&4194240)!==0))return c;if((b&4)!==0&&(b|=p&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=b;0<c;)p=31-Ln(c),E=1<<p,b|=s[p],c&=~E;return b}function dt(s,c){switch(s){case 1:case 2:case 4:return c+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 c+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 lt(s,c){for(var p=s.suspendedLanes,b=s.pingedLanes,E=s.expirationTimes,P=s.pendingLanes;0<P;){var W=31-Ln(P),te=1<<W,ie=E[W];ie===-1?((te&p)===0||(te&b)!==0)&&(E[W]=dt(te,c)):ie<=c&&(s.expiredLanes|=te),P&=~te}}function an(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function hn(){var s=Sr;return Sr<<=1,(Sr&4194240)===0&&(Sr=64),s}function Cn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function xn(s,c,p){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Ln(c),s[c]=p}function Wr(s,c){var p=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var b=s.eventTimes;for(s=s.expirationTimes;0<p;){var E=31-Ln(p),P=1<<E;c[E]=0,b[E]=-1,s[E]=-1,p&=~P}}function cr(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var b=31-Ln(p),E=1<<b;E&c|s[b]&c&&(s[b]|=c),p&=~E}}var qt=0;function Cr(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Tr,_i,Pr,ws,Ga,Xa=!1,ns=[],Jn=null,Zr=null,ci=null,Si=new Map,Yi=new Map,ji=[],Ya="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 Ja(s,c){switch(s){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Zr=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":Si.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yi.delete(c.pointerId)}}function ht(s,c,p,b,E,P){return s===null||s.nativeEvent!==P?(s={blockedOn:c,domEventName:p,eventSystemFlags:b,nativeEvent:P,targetContainers:[E]},c!==null&&(c=kc(c),c!==null&&_i(c)),s):(s.eventSystemFlags|=b,c=s.targetContainers,E!==null&&c.indexOf(E)===-1&&c.push(E),s)}function Dt(s,c,p,b,E){switch(c){case"focusin":return Jn=ht(Jn,s,c,p,b,E),!0;case"dragenter":return Zr=ht(Zr,s,c,p,b,E),!0;case"mouseover":return ci=ht(ci,s,c,p,b,E),!0;case"pointerover":var P=E.pointerId;return Si.set(P,ht(Si.get(P)||null,s,c,p,b,E)),!0;case"gotpointercapture":return P=E.pointerId,Yi.set(P,ht(Yi.get(P)||null,s,c,p,b,E)),!0}return!1}function zn(s){var c=oa(s.target);if(c!==null){var p=At(c);if(p!==null){if(c=p.tag,c===13){if(c=Pn(p),c!==null){s.blockedOn=c,Ga(s.priority,function(){Pr(p)});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function An(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=Im(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var b=new p.constructor(p.type,p);It=b,p.target.dispatchEvent(b),It=null}else return c=kc(p),c!==null&&_i(c),s.blockedOn=p,!1;c.shift()}return!0}function Bn(s,c,p){An(s)&&p.delete(c)}function Qa(){Xa=!1,Jn!==null&&An(Jn)&&(Jn=null),Zr!==null&&An(Zr)&&(Zr=null),ci!==null&&An(ci)&&(ci=null),Si.forEach(Bn),Yi.forEach(Bn)}function rs(s,c){s.blockedOn===c&&(s.blockedOn=null,Xa||(Xa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Qa)))}function xs(s){function c(E){return rs(E,s)}if(0<ns.length){rs(ns[0],s);for(var p=1;p<ns.length;p++){var b=ns[p];b.blockedOn===s&&(b.blockedOn=null)}}for(Jn!==null&&rs(Jn,s),Zr!==null&&rs(Zr,s),ci!==null&&rs(ci,s),Si.forEach(c),Yi.forEach(c),p=0;p<ji.length;p++)b=ji[p],b.blockedOn===s&&(b.blockedOn=null);for(;0<ji.length&&(p=ji[0],p.blockedOn===null);)zn(p),p.blockedOn===null&&ji.shift()}var vo=$.ReactCurrentBatchConfig,cd=!0;function tR(s,c,p,b){var E=qt,P=vo.transition;vo.transition=null;try{qt=1,Om(s,c,p,b)}finally{qt=E,vo.transition=P}}function nR(s,c,p,b){var E=qt,P=vo.transition;vo.transition=null;try{qt=4,Om(s,c,p,b)}finally{qt=E,vo.transition=P}}function Om(s,c,p,b){if(cd){var E=Im(s,c,p,b);if(E===null)Xm(s,c,b,ud,p),Ja(s,b);else if(Dt(E,s,c,p,b))b.stopPropagation();else if(Ja(s,b),c&4&&-1<Ya.indexOf(s)){for(;E!==null;){var P=kc(E);if(P!==null&&Tr(P),P=Im(s,c,p,b),P===null&&Xm(s,c,b,ud,p),P===E)break;E=P}E!==null&&b.stopPropagation()}else Xm(s,c,b,null,p)}}var ud=null;function Im(s,c,p,b){if(ud=null,s=Ct(b),s=oa(s),s!==null)if(c=At(s),c===null)s=null;else if(p=c.tag,p===13){if(s=Pn(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return ud=s,null}function Vb(s){switch(s){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(ct()){case et:return 1;case Pt:return 4;case Gt:case Ge:return 16;case vt:return 536870912;default:return 16}default:return 16}}var Es=null,Nm=null,dd=null;function Ub(){if(dd)return dd;var s,c=Nm,p=c.length,b,E="value"in Es?Es.value:Es.textContent,P=E.length;for(s=0;s<p&&c[s]===E[s];s++);var W=p-s;for(b=1;b<=W&&c[p-b]===E[P-b];b++);return dd=E.slice(s,1<b?1-b:void 0)}function hd(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function fd(){return!0}function qb(){return!1}function zi(s){function c(p,b,E,P,W){this._reactName=p,this._targetInst=E,this.type=b,this.nativeEvent=P,this.target=W,this.currentTarget=null;for(var te in s)s.hasOwnProperty(te)&&(p=s[te],this[te]=p?p(P):P[te]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?fd:qb,this.isPropagationStopped=qb,this}return q(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=fd)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=fd)},persist:function(){},isPersistent:fd}),c}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mm=zi(Za),pc=q({},Za,{view:0,detail:0}),rR=zi(pc),jm,zm,gc,md=q({},pc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==gc&&(gc&&s.type==="mousemove"?(jm=s.screenX-gc.screenX,zm=s.screenY-gc.screenY):zm=jm=0,gc=s),jm)},movementY:function(s){return"movementY"in s?s.movementY:zm}}),Kb=zi(md),iR=q({},md,{dataTransfer:0}),oR=zi(iR),sR=q({},pc,{relatedTarget:0}),Bm=zi(sR),aR=q({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),lR=zi(aR),cR=q({},Za,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),uR=zi(cR),dR=q({},Za,{data:0}),Gb=zi(dR),hR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fR={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"},mR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pR(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=mR[s])?!!c[s]:!1}function Lm(){return pR}var gR=q({},pc,{key:function(s){if(s.key){var c=hR[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=hd(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?fR[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lm,charCode:function(s){return s.type==="keypress"?hd(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?hd(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),vR=zi(gR),yR=q({},md,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xb=zi(yR),bR=q({},pc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lm}),_R=zi(bR),SR=q({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),CR=zi(SR),wR=q({},md,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),xR=zi(wR),ER=[9,13,27,32],Am=l&&"CompositionEvent"in window,vc=null;l&&"documentMode"in document&&(vc=document.documentMode);var kR=l&&"TextEvent"in window&&!vc,Yb=l&&(!Am||vc&&8<vc&&11>=vc),Jb=" ",Qb=!1;function Zb(s,c){switch(s){case"keyup":return ER.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function e1(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var el=!1;function $R(s,c){switch(s){case"compositionend":return e1(c);case"keypress":return c.which!==32?null:(Qb=!0,Jb);case"textInput":return s=c.data,s===Jb&&Qb?null:s;default:return null}}function RR(s,c){if(el)return s==="compositionend"||!Am&&Zb(s,c)?(s=Ub(),dd=Nm=Es=null,el=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Yb&&c.locale!=="ko"?null:c.data;default:return null}}var TR={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 t1(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!TR[s.type]:c==="textarea"}function n1(s,c,p,b){on(b),c=bd(c,"onChange"),0<c.length&&(p=new Mm("onChange","change",null,p,b),s.push({event:p,listeners:c}))}var yc=null,bc=null;function PR(s){_1(s,0)}function pd(s){var c=ol(s);if(ce(c))return s}function OR(s,c){if(s==="change")return c}var r1=!1;if(l){var Dm;if(l){var Hm="oninput"in document;if(!Hm){var i1=document.createElement("div");i1.setAttribute("oninput","return;"),Hm=typeof i1.oninput=="function"}Dm=Hm}else Dm=!1;r1=Dm&&(!document.documentMode||9<document.documentMode)}function o1(){yc&&(yc.detachEvent("onpropertychange",s1),bc=yc=null)}function s1(s){if(s.propertyName==="value"&&pd(bc)){var c=[];n1(c,bc,s,Ct(s)),at(PR,c)}}function IR(s,c,p){s==="focusin"?(o1(),yc=c,bc=p,yc.attachEvent("onpropertychange",s1)):s==="focusout"&&o1()}function NR(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return pd(bc)}function MR(s,c){if(s==="click")return pd(c)}function jR(s,c){if(s==="input"||s==="change")return pd(c)}function zR(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var yo=typeof Object.is=="function"?Object.is:zR;function _c(s,c){if(yo(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),b=Object.keys(c);if(p.length!==b.length)return!1;for(b=0;b<p.length;b++){var E=p[b];if(!u.call(c,E)||!yo(s[E],c[E]))return!1}return!0}function a1(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function l1(s,c){var p=a1(s);s=0;for(var b;p;){if(p.nodeType===3){if(b=s+p.textContent.length,s<=c&&b>=c)return{node:p,offset:c-s};s=b}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=a1(p)}}function c1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?c1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function u1(){for(var s=window,c=he();c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=he(s.document)}return c}function Fm(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function BR(s){var c=u1(),p=s.focusedElem,b=s.selectionRange;if(c!==p&&p&&p.ownerDocument&&c1(p.ownerDocument.documentElement,p)){if(b!==null&&Fm(p)){if(c=b.start,s=b.end,s===void 0&&(s=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(s,p.value.length);else if(s=(c=p.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var E=p.textContent.length,P=Math.min(b.start,E);b=b.end===void 0?P:Math.min(b.end,E),!s.extend&&P>b&&(E=b,b=P,P=E),E=l1(p,P);var W=l1(p,b);E&&W&&(s.rangeCount!==1||s.anchorNode!==E.node||s.anchorOffset!==E.offset||s.focusNode!==W.node||s.focusOffset!==W.offset)&&(c=c.createRange(),c.setStart(E.node,E.offset),s.removeAllRanges(),P>b?(s.addRange(c),s.extend(W.node,W.offset)):(c.setEnd(W.node,W.offset),s.addRange(c)))}}for(c=[],s=p;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<c.length;p++)s=c[p],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var LR=l&&"documentMode"in document&&11>=document.documentMode,tl=null,Wm=null,Sc=null,Vm=!1;function d1(s,c,p){var b=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Vm||tl==null||tl!==he(b)||(b=tl,"selectionStart"in b&&Fm(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),Sc&&_c(Sc,b)||(Sc=b,b=bd(Wm,"onSelect"),0<b.length&&(c=new Mm("onSelect","select",null,c,p),s.push({event:c,listeners:b}),c.target=tl)))}function gd(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var nl={animationend:gd("Animation","AnimationEnd"),animationiteration:gd("Animation","AnimationIteration"),animationstart:gd("Animation","AnimationStart"),transitionend:gd("Transition","TransitionEnd")},Um={},h1={};l&&(h1=document.createElement("div").style,"AnimationEvent"in window||(delete nl.animationend.animation,delete nl.animationiteration.animation,delete nl.animationstart.animation),"TransitionEvent"in window||delete nl.transitionend.transition);function vd(s){if(Um[s])return Um[s];if(!nl[s])return s;var c=nl[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in h1)return Um[s]=c[p];return s}var f1=vd("animationend"),m1=vd("animationiteration"),p1=vd("animationstart"),g1=vd("transitionend"),v1=new Map,y1="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 ks(s,c){v1.set(s,c),o(c,[s])}for(var qm=0;qm<y1.length;qm++){var Km=y1[qm],AR=Km.toLowerCase(),DR=Km[0].toUpperCase()+Km.slice(1);ks(AR,"on"+DR)}ks(f1,"onAnimationEnd"),ks(m1,"onAnimationIteration"),ks(p1,"onAnimationStart"),ks("dblclick","onDoubleClick"),ks("focusin","onFocus"),ks("focusout","onBlur"),ks(g1,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cc="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(" "),HR=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cc));function b1(s,c,p){var b=s.type||"unknown-event";s.currentTarget=p,Lt(b,c,void 0,s),s.currentTarget=null}function _1(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var b=s[p],E=b.event;b=b.listeners;e:{var P=void 0;if(c)for(var W=b.length-1;0<=W;W--){var te=b[W],ie=te.instance,Se=te.currentTarget;if(te=te.listener,ie!==P&&E.isPropagationStopped())break e;b1(E,te,Se),P=ie}else for(W=0;W<b.length;W++){if(te=b[W],ie=te.instance,Se=te.currentTarget,te=te.listener,ie!==P&&E.isPropagationStopped())break e;b1(E,te,Se),P=ie}}}if(tt)throw s=it,tt=!1,it=null,s}function Fn(s,c){var p=c[tp];p===void 0&&(p=c[tp]=new Set);var b=s+"__bubble";p.has(b)||(S1(c,s,2,!1),p.add(b))}function Gm(s,c,p){var b=0;c&&(b|=4),S1(p,s,b,c)}var yd="_reactListening"+Math.random().toString(36).slice(2);function wc(s){if(!s[yd]){s[yd]=!0,r.forEach(function(p){p!=="selectionchange"&&(HR.has(p)||Gm(p,!1,s),Gm(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[yd]||(c[yd]=!0,Gm("selectionchange",!1,c))}}function S1(s,c,p,b){switch(Vb(c)){case 1:var E=tR;break;case 4:E=nR;break;default:E=Om}p=E.bind(null,c,p,s),E=void 0,!pt||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(E=!0),b?E!==void 0?s.addEventListener(c,p,{capture:!0,passive:E}):s.addEventListener(c,p,!0):E!==void 0?s.addEventListener(c,p,{passive:E}):s.addEventListener(c,p,!1)}function Xm(s,c,p,b,E){var P=b;if((c&1)===0&&(c&2)===0&&b!==null)e:for(;;){if(b===null)return;var W=b.tag;if(W===3||W===4){var te=b.stateNode.containerInfo;if(te===E||te.nodeType===8&&te.parentNode===E)break;if(W===4)for(W=b.return;W!==null;){var ie=W.tag;if((ie===3||ie===4)&&(ie=W.stateNode.containerInfo,ie===E||ie.nodeType===8&&ie.parentNode===E))return;W=W.return}for(;te!==null;){if(W=oa(te),W===null)return;if(ie=W.tag,ie===5||ie===6){b=P=W;continue e}te=te.parentNode}}b=b.return}at(function(){var Se=P,Be=Ct(p),We=[];e:{var je=v1.get(s);if(je!==void 0){var ft=Mm,wt=s;switch(s){case"keypress":if(hd(p)===0)break e;case"keydown":case"keyup":ft=vR;break;case"focusin":wt="focus",ft=Bm;break;case"focusout":wt="blur",ft=Bm;break;case"beforeblur":case"afterblur":ft=Bm;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ft=Kb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ft=oR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ft=_R;break;case f1:case m1:case p1:ft=lR;break;case g1:ft=CR;break;case"scroll":ft=rR;break;case"wheel":ft=xR;break;case"copy":case"cut":case"paste":ft=uR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ft=Xb}var xt=(c&4)!==0,ur=!xt&&s==="scroll",pe=xt?je!==null?je+"Capture":null:je;xt=[];for(var ue=Se,be;ue!==null;){be=ue;var Ue=be.stateNode;if(be.tag===5&&Ue!==null&&(be=Ue,pe!==null&&(Ue=$t(ue,pe),Ue!=null&&xt.push(xc(ue,Ue,be)))),ur)break;ue=ue.return}0<xt.length&&(je=new ft(je,wt,null,p,Be),We.push({event:je,listeners:xt}))}}if((c&7)===0){e:{if(je=s==="mouseover"||s==="pointerover",ft=s==="mouseout"||s==="pointerout",je&&p!==It&&(wt=p.relatedTarget||p.fromElement)&&(oa(wt)||wt[is]))break e;if((ft||je)&&(je=Be.window===Be?Be:(je=Be.ownerDocument)?je.defaultView||je.parentWindow:window,ft?(wt=p.relatedTarget||p.toElement,ft=Se,wt=wt?oa(wt):null,wt!==null&&(ur=At(wt),wt!==ur||wt.tag!==5&&wt.tag!==6)&&(wt=null)):(ft=null,wt=Se),ft!==wt)){if(xt=Kb,Ue="onMouseLeave",pe="onMouseEnter",ue="mouse",(s==="pointerout"||s==="pointerover")&&(xt=Xb,Ue="onPointerLeave",pe="onPointerEnter",ue="pointer"),ur=ft==null?je:ol(ft),be=wt==null?je:ol(wt),je=new xt(Ue,ue+"leave",ft,p,Be),je.target=ur,je.relatedTarget=be,Ue=null,oa(Be)===Se&&(xt=new xt(pe,ue+"enter",wt,p,Be),xt.target=be,xt.relatedTarget=ur,Ue=xt),ur=Ue,ft&&wt)t:{for(xt=ft,pe=wt,ue=0,be=xt;be;be=rl(be))ue++;for(be=0,Ue=pe;Ue;Ue=rl(Ue))be++;for(;0<ue-be;)xt=rl(xt),ue--;for(;0<be-ue;)pe=rl(pe),be--;for(;ue--;){if(xt===pe||pe!==null&&xt===pe.alternate)break t;xt=rl(xt),pe=rl(pe)}xt=null}else xt=null;ft!==null&&C1(We,je,ft,xt,!1),wt!==null&&ur!==null&&C1(We,ur,wt,xt,!0)}}e:{if(je=Se?ol(Se):window,ft=je.nodeName&&je.nodeName.toLowerCase(),ft==="select"||ft==="input"&&je.type==="file")var Et=OR;else if(t1(je))if(r1)Et=jR;else{Et=NR;var Mt=IR}else(ft=je.nodeName)&&ft.toLowerCase()==="input"&&(je.type==="checkbox"||je.type==="radio")&&(Et=MR);if(Et&&(Et=Et(s,Se))){n1(We,Et,p,Be);break e}Mt&&Mt(s,je,Se),s==="focusout"&&(Mt=je._wrapperState)&&Mt.controlled&&je.type==="number"&&Ee(je,"number",je.value)}switch(Mt=Se?ol(Se):window,s){case"focusin":(t1(Mt)||Mt.contentEditable==="true")&&(tl=Mt,Wm=Se,Sc=null);break;case"focusout":Sc=Wm=tl=null;break;case"mousedown":Vm=!0;break;case"contextmenu":case"mouseup":case"dragend":Vm=!1,d1(We,p,Be);break;case"selectionchange":if(LR)break;case"keydown":case"keyup":d1(We,p,Be)}var jt;if(Am)e:{switch(s){case"compositionstart":var Vt="onCompositionStart";break e;case"compositionend":Vt="onCompositionEnd";break e;case"compositionupdate":Vt="onCompositionUpdate";break e}Vt=void 0}else el?Zb(s,p)&&(Vt="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(Vt="onCompositionStart");Vt&&(Yb&&p.locale!=="ko"&&(el||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&el&&(jt=Ub()):(Es=Be,Nm="value"in Es?Es.value:Es.textContent,el=!0)),Mt=bd(Se,Vt),0<Mt.length&&(Vt=new Gb(Vt,s,null,p,Be),We.push({event:Vt,listeners:Mt}),jt?Vt.data=jt:(jt=e1(p),jt!==null&&(Vt.data=jt)))),(jt=kR?$R(s,p):RR(s,p))&&(Se=bd(Se,"onBeforeInput"),0<Se.length&&(Be=new Gb("onBeforeInput","beforeinput",null,p,Be),We.push({event:Be,listeners:Se}),Be.data=jt))}_1(We,c)})}function xc(s,c,p){return{instance:s,listener:c,currentTarget:p}}function bd(s,c){for(var p=c+"Capture",b=[];s!==null;){var E=s,P=E.stateNode;E.tag===5&&P!==null&&(E=P,P=$t(s,p),P!=null&&b.unshift(xc(s,P,E)),P=$t(s,c),P!=null&&b.push(xc(s,P,E))),s=s.return}return b}function rl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function C1(s,c,p,b,E){for(var P=c._reactName,W=[];p!==null&&p!==b;){var te=p,ie=te.alternate,Se=te.stateNode;if(ie!==null&&ie===b)break;te.tag===5&&Se!==null&&(te=Se,E?(ie=$t(p,P),ie!=null&&W.unshift(xc(p,ie,te))):E||(ie=$t(p,P),ie!=null&&W.push(xc(p,ie,te)))),p=p.return}W.length!==0&&s.push({event:c,listeners:W})}var FR=/\r\n?/g,WR=/\u0000|\uFFFD/g;function w1(s){return(typeof s=="string"?s:""+s).replace(FR,`
|
|
38
|
-
`).replace(WR,"")}function _d(s,c,p){if(c=w1(c),w1(s)!==c&&p)throw Error(n(425))}function Sd(){}var Ym=null,Jm=null;function Qm(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Zm=typeof setTimeout=="function"?setTimeout:void 0,VR=typeof clearTimeout=="function"?clearTimeout:void 0,x1=typeof Promise=="function"?Promise:void 0,UR=typeof queueMicrotask=="function"?queueMicrotask:typeof x1<"u"?function(s){return x1.resolve(null).then(s).catch(qR)}:Zm;function qR(s){setTimeout(function(){throw s})}function ep(s,c){var p=c,b=0;do{var E=p.nextSibling;if(s.removeChild(p),E&&E.nodeType===8)if(p=E.data,p==="/$"){if(b===0){s.removeChild(E),xs(c);return}b--}else p!=="$"&&p!=="$?"&&p!=="$!"||b++;p=E}while(p);xs(c)}function $s(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function E1(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}var il=Math.random().toString(36).slice(2),zo="__reactFiber$"+il,Ec="__reactProps$"+il,is="__reactContainer$"+il,tp="__reactEvents$"+il,KR="__reactListeners$"+il,GR="__reactHandles$"+il;function oa(s){var c=s[zo];if(c)return c;for(var p=s.parentNode;p;){if(c=p[is]||p[zo]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=E1(s);s!==null;){if(p=s[zo])return p;s=E1(s)}return c}s=p,p=s.parentNode}return null}function kc(s){return s=s[zo]||s[is],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function ol(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function Cd(s){return s[Ec]||null}var np=[],sl=-1;function Rs(s){return{current:s}}function Wn(s){0>sl||(s.current=np[sl],np[sl]=null,sl--)}function Dn(s,c){sl++,np[sl]=s.current,s.current=c}var Ts={},ei=Rs(Ts),Ci=Rs(!1),sa=Ts;function al(s,c){var p=s.type.contextTypes;if(!p)return Ts;var b=s.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===c)return b.__reactInternalMemoizedMaskedChildContext;var E={},P;for(P in p)E[P]=c[P];return b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=E),E}function wi(s){return s=s.childContextTypes,s!=null}function wd(){Wn(Ci),Wn(ei)}function k1(s,c,p){if(ei.current!==Ts)throw Error(n(168));Dn(ei,c),Dn(Ci,p)}function $1(s,c,p){var b=s.stateNode;if(c=c.childContextTypes,typeof b.getChildContext!="function")return p;b=b.getChildContext();for(var E in b)if(!(E in c))throw Error(n(108,de(s)||"Unknown",E));return q({},p,b)}function xd(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ts,sa=ei.current,Dn(ei,s),Dn(Ci,Ci.current),!0}function R1(s,c,p){var b=s.stateNode;if(!b)throw Error(n(169));p?(s=$1(s,c,sa),b.__reactInternalMemoizedMergedChildContext=s,Wn(Ci),Wn(ei),Dn(ei,s)):Wn(Ci),Dn(Ci,p)}var os=null,Ed=!1,rp=!1;function T1(s){os===null?os=[s]:os.push(s)}function XR(s){Ed=!0,T1(s)}function Ps(){if(!rp&&os!==null){rp=!0;var s=0,c=qt;try{var p=os;for(qt=1;s<p.length;s++){var b=p[s];do b=b(!0);while(b!==null)}os=null,Ed=!1}catch(E){throw os!==null&&(os=os.slice(s+1)),pn(et,Ps),E}finally{qt=c,rp=!1}}return null}var ll=[],cl=0,kd=null,$d=0,Ji=[],Qi=0,aa=null,ss=1,as="";function la(s,c){ll[cl++]=$d,ll[cl++]=kd,kd=s,$d=c}function P1(s,c,p){Ji[Qi++]=ss,Ji[Qi++]=as,Ji[Qi++]=aa,aa=s;var b=ss;s=as;var E=32-Ln(b)-1;b&=~(1<<E),p+=1;var P=32-Ln(c)+E;if(30<P){var W=E-E%5;P=(b&(1<<W)-1).toString(32),b>>=W,E-=W,ss=1<<32-Ln(c)+E|p<<E|b,as=P+s}else ss=1<<P|p<<E|b,as=s}function ip(s){s.return!==null&&(la(s,1),P1(s,1,0))}function op(s){for(;s===kd;)kd=ll[--cl],ll[cl]=null,$d=ll[--cl],ll[cl]=null;for(;s===aa;)aa=Ji[--Qi],Ji[Qi]=null,as=Ji[--Qi],Ji[Qi]=null,ss=Ji[--Qi],Ji[Qi]=null}var Bi=null,Li=null,Kn=!1,bo=null;function O1(s,c){var p=no(5,null,null,0);p.elementType="DELETED",p.stateNode=c,p.return=s,c=s.deletions,c===null?(s.deletions=[p],s.flags|=16):c.push(p)}function I1(s,c){switch(s.tag){case 5:var p=s.type;return c=c.nodeType!==1||p.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,Bi=s,Li=$s(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,Bi=s,Li=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(p=aa!==null?{id:ss,overflow:as}:null,s.memoizedState={dehydrated:c,treeContext:p,retryLane:1073741824},p=no(18,null,null,0),p.stateNode=c,p.return=s,s.child=p,Bi=s,Li=null,!0):!1;default:return!1}}function sp(s){return(s.mode&1)!==0&&(s.flags&128)===0}function ap(s){if(Kn){var c=Li;if(c){var p=c;if(!I1(s,c)){if(sp(s))throw Error(n(418));c=$s(p.nextSibling);var b=Bi;c&&I1(s,c)?O1(b,p):(s.flags=s.flags&-4097|2,Kn=!1,Bi=s)}}else{if(sp(s))throw Error(n(418));s.flags=s.flags&-4097|2,Kn=!1,Bi=s}}}function N1(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;Bi=s}function Rd(s){if(s!==Bi)return!1;if(!Kn)return N1(s),Kn=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Qm(s.type,s.memoizedProps)),c&&(c=Li)){if(sp(s))throw M1(),Error(n(418));for(;c;)O1(s,c),c=$s(c.nextSibling)}if(N1(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="/$"){if(c===0){Li=$s(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++}s=s.nextSibling}Li=null}}else Li=Bi?$s(s.stateNode.nextSibling):null;return!0}function M1(){for(var s=Li;s;)s=$s(s.nextSibling)}function ul(){Li=Bi=null,Kn=!1}function lp(s){bo===null?bo=[s]:bo.push(s)}var YR=$.ReactCurrentBatchConfig;function $c(s,c,p){if(s=p.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var b=p.stateNode}if(!b)throw Error(n(147,s));var E=b,P=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===P?c.ref:(c=function(W){var te=E.refs;W===null?delete te[P]:te[P]=W},c._stringRef=P,c)}if(typeof s!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,s))}return s}function Td(s,c){throw s=Object.prototype.toString.call(c),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function j1(s){var c=s._init;return c(s._payload)}function z1(s){function c(pe,ue){if(s){var be=pe.deletions;be===null?(pe.deletions=[ue],pe.flags|=16):be.push(ue)}}function p(pe,ue){if(!s)return null;for(;ue!==null;)c(pe,ue),ue=ue.sibling;return null}function b(pe,ue){for(pe=new Map;ue!==null;)ue.key!==null?pe.set(ue.key,ue):pe.set(ue.index,ue),ue=ue.sibling;return pe}function E(pe,ue){return pe=Ls(pe,ue),pe.index=0,pe.sibling=null,pe}function P(pe,ue,be){return pe.index=be,s?(be=pe.alternate,be!==null?(be=be.index,be<ue?(pe.flags|=2,ue):be):(pe.flags|=2,ue)):(pe.flags|=1048576,ue)}function W(pe){return s&&pe.alternate===null&&(pe.flags|=2),pe}function te(pe,ue,be,Ue){return ue===null||ue.tag!==6?(ue=Zp(be,pe.mode,Ue),ue.return=pe,ue):(ue=E(ue,be),ue.return=pe,ue)}function ie(pe,ue,be,Ue){var Et=be.type;return Et===O?Be(pe,ue,be.props.children,Ue,be.key):ue!==null&&(ue.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===F&&j1(Et)===ue.type)?(Ue=E(ue,be.props),Ue.ref=$c(pe,ue,be),Ue.return=pe,Ue):(Ue=Zd(be.type,be.key,be.props,null,pe.mode,Ue),Ue.ref=$c(pe,ue,be),Ue.return=pe,Ue)}function Se(pe,ue,be,Ue){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==be.containerInfo||ue.stateNode.implementation!==be.implementation?(ue=eg(be,pe.mode,Ue),ue.return=pe,ue):(ue=E(ue,be.children||[]),ue.return=pe,ue)}function Be(pe,ue,be,Ue,Et){return ue===null||ue.tag!==7?(ue=ga(be,pe.mode,Ue,Et),ue.return=pe,ue):(ue=E(ue,be),ue.return=pe,ue)}function We(pe,ue,be){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=Zp(""+ue,pe.mode,be),ue.return=pe,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case T:return be=Zd(ue.type,ue.key,ue.props,null,pe.mode,be),be.ref=$c(pe,null,ue),be.return=pe,be;case R:return ue=eg(ue,pe.mode,be),ue.return=pe,ue;case F:var Ue=ue._init;return We(pe,Ue(ue._payload),be)}if(Ne(ue)||X(ue))return ue=ga(ue,pe.mode,be,null),ue.return=pe,ue;Td(pe,ue)}return null}function je(pe,ue,be,Ue){var Et=ue!==null?ue.key:null;if(typeof be=="string"&&be!==""||typeof be=="number")return Et!==null?null:te(pe,ue,""+be,Ue);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case T:return be.key===Et?ie(pe,ue,be,Ue):null;case R:return be.key===Et?Se(pe,ue,be,Ue):null;case F:return Et=be._init,je(pe,ue,Et(be._payload),Ue)}if(Ne(be)||X(be))return Et!==null?null:Be(pe,ue,be,Ue,null);Td(pe,be)}return null}function ft(pe,ue,be,Ue,Et){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number")return pe=pe.get(be)||null,te(ue,pe,""+Ue,Et);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case T:return pe=pe.get(Ue.key===null?be:Ue.key)||null,ie(ue,pe,Ue,Et);case R:return pe=pe.get(Ue.key===null?be:Ue.key)||null,Se(ue,pe,Ue,Et);case F:var Mt=Ue._init;return ft(pe,ue,be,Mt(Ue._payload),Et)}if(Ne(Ue)||X(Ue))return pe=pe.get(be)||null,Be(ue,pe,Ue,Et,null);Td(ue,Ue)}return null}function wt(pe,ue,be,Ue){for(var Et=null,Mt=null,jt=ue,Vt=ue=0,Nr=null;jt!==null&&Vt<be.length;Vt++){jt.index>Vt?(Nr=jt,jt=null):Nr=jt.sibling;var wn=je(pe,jt,be[Vt],Ue);if(wn===null){jt===null&&(jt=Nr);break}s&&jt&&wn.alternate===null&&c(pe,jt),ue=P(wn,ue,Vt),Mt===null?Et=wn:Mt.sibling=wn,Mt=wn,jt=Nr}if(Vt===be.length)return p(pe,jt),Kn&&la(pe,Vt),Et;if(jt===null){for(;Vt<be.length;Vt++)jt=We(pe,be[Vt],Ue),jt!==null&&(ue=P(jt,ue,Vt),Mt===null?Et=jt:Mt.sibling=jt,Mt=jt);return Kn&&la(pe,Vt),Et}for(jt=b(pe,jt);Vt<be.length;Vt++)Nr=ft(jt,pe,Vt,be[Vt],Ue),Nr!==null&&(s&&Nr.alternate!==null&&jt.delete(Nr.key===null?Vt:Nr.key),ue=P(Nr,ue,Vt),Mt===null?Et=Nr:Mt.sibling=Nr,Mt=Nr);return s&&jt.forEach(function(As){return c(pe,As)}),Kn&&la(pe,Vt),Et}function xt(pe,ue,be,Ue){var Et=X(be);if(typeof Et!="function")throw Error(n(150));if(be=Et.call(be),be==null)throw Error(n(151));for(var Mt=Et=null,jt=ue,Vt=ue=0,Nr=null,wn=be.next();jt!==null&&!wn.done;Vt++,wn=be.next()){jt.index>Vt?(Nr=jt,jt=null):Nr=jt.sibling;var As=je(pe,jt,wn.value,Ue);if(As===null){jt===null&&(jt=Nr);break}s&&jt&&As.alternate===null&&c(pe,jt),ue=P(As,ue,Vt),Mt===null?Et=As:Mt.sibling=As,Mt=As,jt=Nr}if(wn.done)return p(pe,jt),Kn&&la(pe,Vt),Et;if(jt===null){for(;!wn.done;Vt++,wn=be.next())wn=We(pe,wn.value,Ue),wn!==null&&(ue=P(wn,ue,Vt),Mt===null?Et=wn:Mt.sibling=wn,Mt=wn);return Kn&&la(pe,Vt),Et}for(jt=b(pe,jt);!wn.done;Vt++,wn=be.next())wn=ft(jt,pe,Vt,wn.value,Ue),wn!==null&&(s&&wn.alternate!==null&&jt.delete(wn.key===null?Vt:wn.key),ue=P(wn,ue,Vt),Mt===null?Et=wn:Mt.sibling=wn,Mt=wn);return s&&jt.forEach(function(T5){return c(pe,T5)}),Kn&&la(pe,Vt),Et}function ur(pe,ue,be,Ue){if(typeof be=="object"&&be!==null&&be.type===O&&be.key===null&&(be=be.props.children),typeof be=="object"&&be!==null){switch(be.$$typeof){case T:e:{for(var Et=be.key,Mt=ue;Mt!==null;){if(Mt.key===Et){if(Et=be.type,Et===O){if(Mt.tag===7){p(pe,Mt.sibling),ue=E(Mt,be.props.children),ue.return=pe,pe=ue;break e}}else if(Mt.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===F&&j1(Et)===Mt.type){p(pe,Mt.sibling),ue=E(Mt,be.props),ue.ref=$c(pe,Mt,be),ue.return=pe,pe=ue;break e}p(pe,Mt);break}else c(pe,Mt);Mt=Mt.sibling}be.type===O?(ue=ga(be.props.children,pe.mode,Ue,be.key),ue.return=pe,pe=ue):(Ue=Zd(be.type,be.key,be.props,null,pe.mode,Ue),Ue.ref=$c(pe,ue,be),Ue.return=pe,pe=Ue)}return W(pe);case R:e:{for(Mt=be.key;ue!==null;){if(ue.key===Mt)if(ue.tag===4&&ue.stateNode.containerInfo===be.containerInfo&&ue.stateNode.implementation===be.implementation){p(pe,ue.sibling),ue=E(ue,be.children||[]),ue.return=pe,pe=ue;break e}else{p(pe,ue);break}else c(pe,ue);ue=ue.sibling}ue=eg(be,pe.mode,Ue),ue.return=pe,pe=ue}return W(pe);case F:return Mt=be._init,ur(pe,ue,Mt(be._payload),Ue)}if(Ne(be))return wt(pe,ue,be,Ue);if(X(be))return xt(pe,ue,be,Ue);Td(pe,be)}return typeof be=="string"&&be!==""||typeof be=="number"?(be=""+be,ue!==null&&ue.tag===6?(p(pe,ue.sibling),ue=E(ue,be),ue.return=pe,pe=ue):(p(pe,ue),ue=Zp(be,pe.mode,Ue),ue.return=pe,pe=ue),W(pe)):p(pe,ue)}return ur}var dl=z1(!0),B1=z1(!1),Pd=Rs(null),Od=null,hl=null,cp=null;function up(){cp=hl=Od=null}function dp(s){var c=Pd.current;Wn(Pd),s._currentValue=c}function hp(s,c,p){for(;s!==null;){var b=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,b!==null&&(b.childLanes|=c)):b!==null&&(b.childLanes&c)!==c&&(b.childLanes|=c),s===p)break;s=s.return}}function fl(s,c){Od=s,cp=hl=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(xi=!0),s.firstContext=null)}function Zi(s){var c=s._currentValue;if(cp!==s)if(s={context:s,memoizedValue:c,next:null},hl===null){if(Od===null)throw Error(n(308));hl=s,Od.dependencies={lanes:0,firstContext:s}}else hl=hl.next=s;return c}var ca=null;function fp(s){ca===null?ca=[s]:ca.push(s)}function L1(s,c,p,b){var E=c.interleaved;return E===null?(p.next=p,fp(c)):(p.next=E.next,E.next=p),c.interleaved=p,ls(s,b)}function ls(s,c){s.lanes|=c;var p=s.alternate;for(p!==null&&(p.lanes|=c),p=s,s=s.return;s!==null;)s.childLanes|=c,p=s.alternate,p!==null&&(p.childLanes|=c),p=s,s=s.return;return p.tag===3?p.stateNode:null}var Os=!1;function mp(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A1(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function cs(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function Is(s,c,p){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(bn&2)!==0){var E=b.pending;return E===null?c.next=c:(c.next=E.next,E.next=c),b.pending=c,ls(s,p)}return E=b.interleaved,E===null?(c.next=c,fp(b)):(c.next=E.next,E.next=c),b.interleaved=c,ls(s,p)}function Id(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var b=c.lanes;b&=s.pendingLanes,p|=b,c.lanes=p,cr(s,p)}}function D1(s,c){var p=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,p===b)){var E=null,P=null;if(p=p.firstBaseUpdate,p!==null){do{var W={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};P===null?E=P=W:P=P.next=W,p=p.next}while(p!==null);P===null?E=P=c:P=P.next=c}else E=P=c;p={baseState:b.baseState,firstBaseUpdate:E,lastBaseUpdate:P,shared:b.shared,effects:b.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}function Nd(s,c,p,b){var E=s.updateQueue;Os=!1;var P=E.firstBaseUpdate,W=E.lastBaseUpdate,te=E.shared.pending;if(te!==null){E.shared.pending=null;var ie=te,Se=ie.next;ie.next=null,W===null?P=Se:W.next=Se,W=ie;var Be=s.alternate;Be!==null&&(Be=Be.updateQueue,te=Be.lastBaseUpdate,te!==W&&(te===null?Be.firstBaseUpdate=Se:te.next=Se,Be.lastBaseUpdate=ie))}if(P!==null){var We=E.baseState;W=0,Be=Se=ie=null,te=P;do{var je=te.lane,ft=te.eventTime;if((b&je)===je){Be!==null&&(Be=Be.next={eventTime:ft,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var wt=s,xt=te;switch(je=c,ft=p,xt.tag){case 1:if(wt=xt.payload,typeof wt=="function"){We=wt.call(ft,We,je);break e}We=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=xt.payload,je=typeof wt=="function"?wt.call(ft,We,je):wt,je==null)break e;We=q({},We,je);break e;case 2:Os=!0}}te.callback!==null&&te.lane!==0&&(s.flags|=64,je=E.effects,je===null?E.effects=[te]:je.push(te))}else ft={eventTime:ft,lane:je,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Be===null?(Se=Be=ft,ie=We):Be=Be.next=ft,W|=je;if(te=te.next,te===null){if(te=E.shared.pending,te===null)break;je=te,te=je.next,je.next=null,E.lastBaseUpdate=je,E.shared.pending=null}}while(!0);if(Be===null&&(ie=We),E.baseState=ie,E.firstBaseUpdate=Se,E.lastBaseUpdate=Be,c=E.shared.interleaved,c!==null){E=c;do W|=E.lane,E=E.next;while(E!==c)}else P===null&&(E.shared.lanes=0);ha|=W,s.lanes=W,s.memoizedState=We}}function H1(s,c,p){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var b=s[c],E=b.callback;if(E!==null){if(b.callback=null,b=p,typeof E!="function")throw Error(n(191,E));E.call(b)}}}var Rc={},Bo=Rs(Rc),Tc=Rs(Rc),Pc=Rs(Rc);function ua(s){if(s===Rc)throw Error(n(174));return s}function pp(s,c){switch(Dn(Pc,c),Dn(Tc,s),Dn(Bo,Rc),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:_t(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=_t(c,s)}Wn(Bo),Dn(Bo,c)}function ml(){Wn(Bo),Wn(Tc),Wn(Pc)}function F1(s){ua(Pc.current);var c=ua(Bo.current),p=_t(c,s.type);c!==p&&(Dn(Tc,s),Dn(Bo,p))}function gp(s){Tc.current===s&&(Wn(Bo),Wn(Tc))}var Qn=Rs(0);function Md(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var vp=[];function yp(){for(var s=0;s<vp.length;s++)vp[s]._workInProgressVersionPrimary=null;vp.length=0}var jd=$.ReactCurrentDispatcher,bp=$.ReactCurrentBatchConfig,da=0,Zn=null,wr=null,Or=null,zd=!1,Oc=!1,Ic=0,JR=0;function ti(){throw Error(n(321))}function _p(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!yo(s[p],c[p]))return!1;return!0}function Sp(s,c,p,b,E,P){if(da=P,Zn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,jd.current=s===null||s.memoizedState===null?t5:n5,s=p(b,E),Oc){P=0;do{if(Oc=!1,Ic=0,25<=P)throw Error(n(301));P+=1,Or=wr=null,c.updateQueue=null,jd.current=r5,s=p(b,E)}while(Oc)}if(jd.current=Ad,c=wr!==null&&wr.next!==null,da=0,Or=wr=Zn=null,zd=!1,c)throw Error(n(300));return s}function Cp(){var s=Ic!==0;return Ic=0,s}function Lo(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Or===null?Zn.memoizedState=Or=s:Or=Or.next=s,Or}function eo(){if(wr===null){var s=Zn.alternate;s=s!==null?s.memoizedState:null}else s=wr.next;var c=Or===null?Zn.memoizedState:Or.next;if(c!==null)Or=c,wr=s;else{if(s===null)throw Error(n(310));wr=s,s={memoizedState:wr.memoizedState,baseState:wr.baseState,baseQueue:wr.baseQueue,queue:wr.queue,next:null},Or===null?Zn.memoizedState=Or=s:Or=Or.next=s}return Or}function Nc(s,c){return typeof c=="function"?c(s):c}function wp(s){var c=eo(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var b=wr,E=b.baseQueue,P=p.pending;if(P!==null){if(E!==null){var W=E.next;E.next=P.next,P.next=W}b.baseQueue=E=P,p.pending=null}if(E!==null){P=E.next,b=b.baseState;var te=W=null,ie=null,Se=P;do{var Be=Se.lane;if((da&Be)===Be)ie!==null&&(ie=ie.next={lane:0,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null}),b=Se.hasEagerState?Se.eagerState:s(b,Se.action);else{var We={lane:Be,action:Se.action,hasEagerState:Se.hasEagerState,eagerState:Se.eagerState,next:null};ie===null?(te=ie=We,W=b):ie=ie.next=We,Zn.lanes|=Be,ha|=Be}Se=Se.next}while(Se!==null&&Se!==P);ie===null?W=b:ie.next=te,yo(b,c.memoizedState)||(xi=!0),c.memoizedState=b,c.baseState=W,c.baseQueue=ie,p.lastRenderedState=b}if(s=p.interleaved,s!==null){E=s;do P=E.lane,Zn.lanes|=P,ha|=P,E=E.next;while(E!==s)}else E===null&&(p.lanes=0);return[c.memoizedState,p.dispatch]}function xp(s){var c=eo(),p=c.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var b=p.dispatch,E=p.pending,P=c.memoizedState;if(E!==null){p.pending=null;var W=E=E.next;do P=s(P,W.action),W=W.next;while(W!==E);yo(P,c.memoizedState)||(xi=!0),c.memoizedState=P,c.baseQueue===null&&(c.baseState=P),p.lastRenderedState=P}return[P,b]}function W1(){}function V1(s,c){var p=Zn,b=eo(),E=c(),P=!yo(b.memoizedState,E);if(P&&(b.memoizedState=E,xi=!0),b=b.queue,Ep(K1.bind(null,p,b,s),[s]),b.getSnapshot!==c||P||Or!==null&&Or.memoizedState.tag&1){if(p.flags|=2048,Mc(9,q1.bind(null,p,b,E,c),void 0,null),Ir===null)throw Error(n(349));(da&30)!==0||U1(p,c,E)}return E}function U1(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=Zn.updateQueue,c===null?(c={lastEffect:null,stores:null},Zn.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function q1(s,c,p,b){c.value=p,c.getSnapshot=b,G1(c)&&X1(s)}function K1(s,c,p){return p(function(){G1(c)&&X1(s)})}function G1(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!yo(s,p)}catch{return!0}}function X1(s){var c=ls(s,1);c!==null&&wo(c,s,1,-1)}function Y1(s){var c=Lo();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nc,lastRenderedState:s},c.queue=s,s=s.dispatch=e5.bind(null,Zn,s),[c.memoizedState,s]}function Mc(s,c,p,b){return s={tag:s,create:c,destroy:p,deps:b,next:null},c=Zn.updateQueue,c===null?(c={lastEffect:null,stores:null},Zn.updateQueue=c,c.lastEffect=s.next=s):(p=c.lastEffect,p===null?c.lastEffect=s.next=s:(b=p.next,p.next=s,s.next=b,c.lastEffect=s)),s}function J1(){return eo().memoizedState}function Bd(s,c,p,b){var E=Lo();Zn.flags|=s,E.memoizedState=Mc(1|c,p,void 0,b===void 0?null:b)}function Ld(s,c,p,b){var E=eo();b=b===void 0?null:b;var P=void 0;if(wr!==null){var W=wr.memoizedState;if(P=W.destroy,b!==null&&_p(b,W.deps)){E.memoizedState=Mc(c,p,P,b);return}}Zn.flags|=s,E.memoizedState=Mc(1|c,p,P,b)}function Q1(s,c){return Bd(8390656,8,s,c)}function Ep(s,c){return Ld(2048,8,s,c)}function Z1(s,c){return Ld(4,2,s,c)}function e_(s,c){return Ld(4,4,s,c)}function t_(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function n_(s,c,p){return p=p!=null?p.concat([s]):null,Ld(4,4,t_.bind(null,c,s),p)}function kp(){}function r_(s,c){var p=eo();c=c===void 0?null:c;var b=p.memoizedState;return b!==null&&c!==null&&_p(c,b[1])?b[0]:(p.memoizedState=[s,c],s)}function i_(s,c){var p=eo();c=c===void 0?null:c;var b=p.memoizedState;return b!==null&&c!==null&&_p(c,b[1])?b[0]:(s=s(),p.memoizedState=[s,c],s)}function o_(s,c,p){return(da&21)===0?(s.baseState&&(s.baseState=!1,xi=!0),s.memoizedState=p):(yo(p,c)||(p=hn(),Zn.lanes|=p,ha|=p,s.baseState=!0),c)}function QR(s,c){var p=qt;qt=p!==0&&4>p?p:4,s(!0);var b=bp.transition;bp.transition={};try{s(!1),c()}finally{qt=p,bp.transition=b}}function s_(){return eo().memoizedState}function ZR(s,c,p){var b=zs(s);if(p={lane:b,action:p,hasEagerState:!1,eagerState:null,next:null},a_(s))l_(c,p);else if(p=L1(s,c,p,b),p!==null){var E=di();wo(p,s,b,E),c_(p,c,b)}}function e5(s,c,p){var b=zs(s),E={lane:b,action:p,hasEagerState:!1,eagerState:null,next:null};if(a_(s))l_(c,E);else{var P=s.alternate;if(s.lanes===0&&(P===null||P.lanes===0)&&(P=c.lastRenderedReducer,P!==null))try{var W=c.lastRenderedState,te=P(W,p);if(E.hasEagerState=!0,E.eagerState=te,yo(te,W)){var ie=c.interleaved;ie===null?(E.next=E,fp(c)):(E.next=ie.next,ie.next=E),c.interleaved=E;return}}catch{}finally{}p=L1(s,c,E,b),p!==null&&(E=di(),wo(p,s,b,E),c_(p,c,b))}}function a_(s){var c=s.alternate;return s===Zn||c!==null&&c===Zn}function l_(s,c){Oc=zd=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function c_(s,c,p){if((p&4194240)!==0){var b=c.lanes;b&=s.pendingLanes,p|=b,c.lanes=p,cr(s,p)}}var Ad={readContext:Zi,useCallback:ti,useContext:ti,useEffect:ti,useImperativeHandle:ti,useInsertionEffect:ti,useLayoutEffect:ti,useMemo:ti,useReducer:ti,useRef:ti,useState:ti,useDebugValue:ti,useDeferredValue:ti,useTransition:ti,useMutableSource:ti,useSyncExternalStore:ti,useId:ti,unstable_isNewReconciler:!1},t5={readContext:Zi,useCallback:function(s,c){return Lo().memoizedState=[s,c===void 0?null:c],s},useContext:Zi,useEffect:Q1,useImperativeHandle:function(s,c,p){return p=p!=null?p.concat([s]):null,Bd(4194308,4,t_.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Bd(4194308,4,s,c)},useInsertionEffect:function(s,c){return Bd(4,2,s,c)},useMemo:function(s,c){var p=Lo();return c=c===void 0?null:c,s=s(),p.memoizedState=[s,c],s},useReducer:function(s,c,p){var b=Lo();return c=p!==void 0?p(c):c,b.memoizedState=b.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},b.queue=s,s=s.dispatch=ZR.bind(null,Zn,s),[b.memoizedState,s]},useRef:function(s){var c=Lo();return s={current:s},c.memoizedState=s},useState:Y1,useDebugValue:kp,useDeferredValue:function(s){return Lo().memoizedState=s},useTransition:function(){var s=Y1(!1),c=s[0];return s=QR.bind(null,s[1]),Lo().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,p){var b=Zn,E=Lo();if(Kn){if(p===void 0)throw Error(n(407));p=p()}else{if(p=c(),Ir===null)throw Error(n(349));(da&30)!==0||U1(b,c,p)}E.memoizedState=p;var P={value:p,getSnapshot:c};return E.queue=P,Q1(K1.bind(null,b,P,s),[s]),b.flags|=2048,Mc(9,q1.bind(null,b,P,p,c),void 0,null),p},useId:function(){var s=Lo(),c=Ir.identifierPrefix;if(Kn){var p=as,b=ss;p=(b&~(1<<32-Ln(b)-1)).toString(32)+p,c=":"+c+"R"+p,p=Ic++,0<p&&(c+="H"+p.toString(32)),c+=":"}else p=JR++,c=":"+c+"r"+p.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},n5={readContext:Zi,useCallback:r_,useContext:Zi,useEffect:Ep,useImperativeHandle:n_,useInsertionEffect:Z1,useLayoutEffect:e_,useMemo:i_,useReducer:wp,useRef:J1,useState:function(){return wp(Nc)},useDebugValue:kp,useDeferredValue:function(s){var c=eo();return o_(c,wr.memoizedState,s)},useTransition:function(){var s=wp(Nc)[0],c=eo().memoizedState;return[s,c]},useMutableSource:W1,useSyncExternalStore:V1,useId:s_,unstable_isNewReconciler:!1},r5={readContext:Zi,useCallback:r_,useContext:Zi,useEffect:Ep,useImperativeHandle:n_,useInsertionEffect:Z1,useLayoutEffect:e_,useMemo:i_,useReducer:xp,useRef:J1,useState:function(){return xp(Nc)},useDebugValue:kp,useDeferredValue:function(s){var c=eo();return wr===null?c.memoizedState=s:o_(c,wr.memoizedState,s)},useTransition:function(){var s=xp(Nc)[0],c=eo().memoizedState;return[s,c]},useMutableSource:W1,useSyncExternalStore:V1,useId:s_,unstable_isNewReconciler:!1};function _o(s,c){if(s&&s.defaultProps){c=q({},c),s=s.defaultProps;for(var p in s)c[p]===void 0&&(c[p]=s[p]);return c}return c}function $p(s,c,p,b){c=s.memoizedState,p=p(b,c),p=p==null?c:q({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Dd={isMounted:function(s){return(s=s._reactInternals)?At(s)===s:!1},enqueueSetState:function(s,c,p){s=s._reactInternals;var b=di(),E=zs(s),P=cs(b,E);P.payload=c,p!=null&&(P.callback=p),c=Is(s,P,E),c!==null&&(wo(c,s,E,b),Id(c,s,E))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var b=di(),E=zs(s),P=cs(b,E);P.tag=1,P.payload=c,p!=null&&(P.callback=p),c=Is(s,P,E),c!==null&&(wo(c,s,E,b),Id(c,s,E))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=di(),b=zs(s),E=cs(p,b);E.tag=2,c!=null&&(E.callback=c),c=Is(s,E,b),c!==null&&(wo(c,s,b,p),Id(c,s,b))}};function u_(s,c,p,b,E,P,W){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,P,W):c.prototype&&c.prototype.isPureReactComponent?!_c(p,b)||!_c(E,P):!0}function d_(s,c,p){var b=!1,E=Ts,P=c.contextType;return typeof P=="object"&&P!==null?P=Zi(P):(E=wi(c)?sa:ei.current,b=c.contextTypes,P=(b=b!=null)?al(s,E):Ts),c=new c(p,P),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Dd,s.stateNode=c,c._reactInternals=s,b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=E,s.__reactInternalMemoizedMaskedChildContext=P),c}function h_(s,c,p,b){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,b),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,b),c.state!==s&&Dd.enqueueReplaceState(c,c.state,null)}function Rp(s,c,p,b){var E=s.stateNode;E.props=p,E.state=s.memoizedState,E.refs={},mp(s);var P=c.contextType;typeof P=="object"&&P!==null?E.context=Zi(P):(P=wi(c)?sa:ei.current,E.context=al(s,P)),E.state=s.memoizedState,P=c.getDerivedStateFromProps,typeof P=="function"&&($p(s,c,P,p),E.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(c=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),c!==E.state&&Dd.enqueueReplaceState(E,E.state,null),Nd(s,p,E,b),E.state=s.memoizedState),typeof E.componentDidMount=="function"&&(s.flags|=4194308)}function pl(s,c){try{var p="",b=c;do p+=J(b),b=b.return;while(b);var E=p}catch(P){E=`
|
|
39
|
-
Error generating stack: `+P.message+`
|
|
40
|
-
`+P.stack}return{value:s,source:c,stack:E,digest:null}}function Tp(s,c,p){return{value:s,source:null,stack:p??null,digest:c??null}}function Pp(s,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var i5=typeof WeakMap=="function"?WeakMap:Map;function f_(s,c,p){p=cs(-1,p),p.tag=3,p.payload={element:null};var b=c.value;return p.callback=function(){Kd||(Kd=!0,Up=b),Pp(s,c)},p}function m_(s,c,p){p=cs(-1,p),p.tag=3;var b=s.type.getDerivedStateFromError;if(typeof b=="function"){var E=c.value;p.payload=function(){return b(E)},p.callback=function(){Pp(s,c)}}var P=s.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(p.callback=function(){Pp(s,c),typeof b!="function"&&(Ms===null?Ms=new Set([this]):Ms.add(this));var W=c.stack;this.componentDidCatch(c.value,{componentStack:W!==null?W:""})}),p}function p_(s,c,p){var b=s.pingCache;if(b===null){b=s.pingCache=new i5;var E=new Set;b.set(c,E)}else E=b.get(c),E===void 0&&(E=new Set,b.set(c,E));E.has(p)||(E.add(p),s=y5.bind(null,s,c,p),c.then(s,s))}function g_(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function v_(s,c,p,b,E){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=cs(-1,1),c.tag=2,Is(p,c,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=E,s)}var o5=$.ReactCurrentOwner,xi=!1;function ui(s,c,p,b){c.child=s===null?B1(c,null,p,b):dl(c,s.child,p,b)}function y_(s,c,p,b,E){p=p.render;var P=c.ref;return fl(c,E),b=Sp(s,c,p,b,P,E),p=Cp(),s!==null&&!xi?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~E,us(s,c,E)):(Kn&&p&&ip(c),c.flags|=1,ui(s,c,b,E),c.child)}function b_(s,c,p,b,E){if(s===null){var P=p.type;return typeof P=="function"&&!Qp(P)&&P.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=P,__(s,c,P,b,E)):(s=Zd(p.type,null,b,c,c.mode,E),s.ref=c.ref,s.return=c,c.child=s)}if(P=s.child,(s.lanes&E)===0){var W=P.memoizedProps;if(p=p.compare,p=p!==null?p:_c,p(W,b)&&s.ref===c.ref)return us(s,c,E)}return c.flags|=1,s=Ls(P,b),s.ref=c.ref,s.return=c,c.child=s}function __(s,c,p,b,E){if(s!==null){var P=s.memoizedProps;if(_c(P,b)&&s.ref===c.ref)if(xi=!1,c.pendingProps=b=P,(s.lanes&E)!==0)(s.flags&131072)!==0&&(xi=!0);else return c.lanes=s.lanes,us(s,c,E)}return Op(s,c,p,b,E)}function S_(s,c,p){var b=c.pendingProps,E=b.children,P=s!==null?s.memoizedState:null;if(b.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dn(vl,Ai),Ai|=p;else{if((p&1073741824)===0)return s=P!==null?P.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Dn(vl,Ai),Ai|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=P!==null?P.baseLanes:p,Dn(vl,Ai),Ai|=b}else P!==null?(b=P.baseLanes|p,c.memoizedState=null):b=p,Dn(vl,Ai),Ai|=b;return ui(s,c,E,p),c.child}function C_(s,c){var p=c.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function Op(s,c,p,b,E){var P=wi(p)?sa:ei.current;return P=al(c,P),fl(c,E),p=Sp(s,c,p,b,P,E),b=Cp(),s!==null&&!xi?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~E,us(s,c,E)):(Kn&&b&&ip(c),c.flags|=1,ui(s,c,p,E),c.child)}function w_(s,c,p,b,E){if(wi(p)){var P=!0;xd(c)}else P=!1;if(fl(c,E),c.stateNode===null)Fd(s,c),d_(c,p,b),Rp(c,p,b,E),b=!0;else if(s===null){var W=c.stateNode,te=c.memoizedProps;W.props=te;var ie=W.context,Se=p.contextType;typeof Se=="object"&&Se!==null?Se=Zi(Se):(Se=wi(p)?sa:ei.current,Se=al(c,Se));var Be=p.getDerivedStateFromProps,We=typeof Be=="function"||typeof W.getSnapshotBeforeUpdate=="function";We||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(te!==b||ie!==Se)&&h_(c,W,b,Se),Os=!1;var je=c.memoizedState;W.state=je,Nd(c,b,W,E),ie=c.memoizedState,te!==b||je!==ie||Ci.current||Os?(typeof Be=="function"&&($p(c,p,Be,b),ie=c.memoizedState),(te=Os||u_(c,p,te,b,je,ie,Se))?(We||typeof W.UNSAFE_componentWillMount!="function"&&typeof W.componentWillMount!="function"||(typeof W.componentWillMount=="function"&&W.componentWillMount(),typeof W.UNSAFE_componentWillMount=="function"&&W.UNSAFE_componentWillMount()),typeof W.componentDidMount=="function"&&(c.flags|=4194308)):(typeof W.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=b,c.memoizedState=ie),W.props=b,W.state=ie,W.context=Se,b=te):(typeof W.componentDidMount=="function"&&(c.flags|=4194308),b=!1)}else{W=c.stateNode,A1(s,c),te=c.memoizedProps,Se=c.type===c.elementType?te:_o(c.type,te),W.props=Se,We=c.pendingProps,je=W.context,ie=p.contextType,typeof ie=="object"&&ie!==null?ie=Zi(ie):(ie=wi(p)?sa:ei.current,ie=al(c,ie));var ft=p.getDerivedStateFromProps;(Be=typeof ft=="function"||typeof W.getSnapshotBeforeUpdate=="function")||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(te!==We||je!==ie)&&h_(c,W,b,ie),Os=!1,je=c.memoizedState,W.state=je,Nd(c,b,W,E);var wt=c.memoizedState;te!==We||je!==wt||Ci.current||Os?(typeof ft=="function"&&($p(c,p,ft,b),wt=c.memoizedState),(Se=Os||u_(c,p,Se,b,je,wt,ie)||!1)?(Be||typeof W.UNSAFE_componentWillUpdate!="function"&&typeof W.componentWillUpdate!="function"||(typeof W.componentWillUpdate=="function"&&W.componentWillUpdate(b,wt,ie),typeof W.UNSAFE_componentWillUpdate=="function"&&W.UNSAFE_componentWillUpdate(b,wt,ie)),typeof W.componentDidUpdate=="function"&&(c.flags|=4),typeof W.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof W.componentDidUpdate!="function"||te===s.memoizedProps&&je===s.memoizedState||(c.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||te===s.memoizedProps&&je===s.memoizedState||(c.flags|=1024),c.memoizedProps=b,c.memoizedState=wt),W.props=b,W.state=wt,W.context=ie,b=Se):(typeof W.componentDidUpdate!="function"||te===s.memoizedProps&&je===s.memoizedState||(c.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||te===s.memoizedProps&&je===s.memoizedState||(c.flags|=1024),b=!1)}return Ip(s,c,p,b,P,E)}function Ip(s,c,p,b,E,P){C_(s,c);var W=(c.flags&128)!==0;if(!b&&!W)return E&&R1(c,p,!1),us(s,c,P);b=c.stateNode,o5.current=c;var te=W&&typeof p.getDerivedStateFromError!="function"?null:b.render();return c.flags|=1,s!==null&&W?(c.child=dl(c,s.child,null,P),c.child=dl(c,null,te,P)):ui(s,c,te,P),c.memoizedState=b.state,E&&R1(c,p,!0),c.child}function x_(s){var c=s.stateNode;c.pendingContext?k1(s,c.pendingContext,c.pendingContext!==c.context):c.context&&k1(s,c.context,!1),pp(s,c.containerInfo)}function E_(s,c,p,b,E){return ul(),lp(E),c.flags|=256,ui(s,c,p,b),c.child}var Np={dehydrated:null,treeContext:null,retryLane:0};function Mp(s){return{baseLanes:s,cachePool:null,transitions:null}}function k_(s,c,p){var b=c.pendingProps,E=Qn.current,P=!1,W=(c.flags&128)!==0,te;if((te=W)||(te=s!==null&&s.memoizedState===null?!1:(E&2)!==0),te?(P=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(E|=1),Dn(Qn,E&1),s===null)return ap(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(W=b.children,s=b.fallback,P?(b=c.mode,P=c.child,W={mode:"hidden",children:W},(b&1)===0&&P!==null?(P.childLanes=0,P.pendingProps=W):P=eh(W,b,0,null),s=ga(s,b,p,null),P.return=c,s.return=c,P.sibling=s,c.child=P,c.child.memoizedState=Mp(p),c.memoizedState=Np,s):jp(c,W));if(E=s.memoizedState,E!==null&&(te=E.dehydrated,te!==null))return s5(s,c,W,b,te,E,p);if(P){P=b.fallback,W=c.mode,E=s.child,te=E.sibling;var ie={mode:"hidden",children:b.children};return(W&1)===0&&c.child!==E?(b=c.child,b.childLanes=0,b.pendingProps=ie,c.deletions=null):(b=Ls(E,ie),b.subtreeFlags=E.subtreeFlags&14680064),te!==null?P=Ls(te,P):(P=ga(P,W,p,null),P.flags|=2),P.return=c,b.return=c,b.sibling=P,c.child=b,b=P,P=c.child,W=s.child.memoizedState,W=W===null?Mp(p):{baseLanes:W.baseLanes|p,cachePool:null,transitions:W.transitions},P.memoizedState=W,P.childLanes=s.childLanes&~p,c.memoizedState=Np,b}return P=s.child,s=P.sibling,b=Ls(P,{mode:"visible",children:b.children}),(c.mode&1)===0&&(b.lanes=p),b.return=c,b.sibling=null,s!==null&&(p=c.deletions,p===null?(c.deletions=[s],c.flags|=16):p.push(s)),c.child=b,c.memoizedState=null,b}function jp(s,c){return c=eh({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function Hd(s,c,p,b){return b!==null&&lp(b),dl(c,s.child,null,p),s=jp(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function s5(s,c,p,b,E,P,W){if(p)return c.flags&256?(c.flags&=-257,b=Tp(Error(n(422))),Hd(s,c,W,b)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(P=b.fallback,E=c.mode,b=eh({mode:"visible",children:b.children},E,0,null),P=ga(P,E,W,null),P.flags|=2,b.return=c,P.return=c,b.sibling=P,c.child=b,(c.mode&1)!==0&&dl(c,s.child,null,W),c.child.memoizedState=Mp(W),c.memoizedState=Np,P);if((c.mode&1)===0)return Hd(s,c,W,null);if(E.data==="$!"){if(b=E.nextSibling&&E.nextSibling.dataset,b)var te=b.dgst;return b=te,P=Error(n(419)),b=Tp(P,b,void 0),Hd(s,c,W,b)}if(te=(W&s.childLanes)!==0,xi||te){if(b=Ir,b!==null){switch(W&-W){case 4:E=2;break;case 16:E=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:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(b.suspendedLanes|W))!==0?0:E,E!==0&&E!==P.retryLane&&(P.retryLane=E,ls(s,E),wo(b,s,E,-1))}return Jp(),b=Tp(Error(n(421))),Hd(s,c,W,b)}return E.data==="$?"?(c.flags|=128,c.child=s.child,c=b5.bind(null,s),E._reactRetry=c,null):(s=P.treeContext,Li=$s(E.nextSibling),Bi=c,Kn=!0,bo=null,s!==null&&(Ji[Qi++]=ss,Ji[Qi++]=as,Ji[Qi++]=aa,ss=s.id,as=s.overflow,aa=c),c=jp(c,b.children),c.flags|=4096,c)}function $_(s,c,p){s.lanes|=c;var b=s.alternate;b!==null&&(b.lanes|=c),hp(s.return,c,p)}function zp(s,c,p,b,E){var P=s.memoizedState;P===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:b,tail:p,tailMode:E}:(P.isBackwards=c,P.rendering=null,P.renderingStartTime=0,P.last=b,P.tail=p,P.tailMode=E)}function R_(s,c,p){var b=c.pendingProps,E=b.revealOrder,P=b.tail;if(ui(s,c,b.children,p),b=Qn.current,(b&2)!==0)b=b&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&$_(s,p,c);else if(s.tag===19)$_(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}if(Dn(Qn,b),(c.mode&1)===0)c.memoizedState=null;else switch(E){case"forwards":for(p=c.child,E=null;p!==null;)s=p.alternate,s!==null&&Md(s)===null&&(E=p),p=p.sibling;p=E,p===null?(E=c.child,c.child=null):(E=p.sibling,p.sibling=null),zp(c,!1,E,p,P);break;case"backwards":for(p=null,E=c.child,c.child=null;E!==null;){if(s=E.alternate,s!==null&&Md(s)===null){c.child=E;break}s=E.sibling,E.sibling=p,p=E,E=s}zp(c,!0,p,null,P);break;case"together":zp(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Fd(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function us(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),ha|=c.lanes,(p&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(n(153));if(c.child!==null){for(s=c.child,p=Ls(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=Ls(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function a5(s,c,p){switch(c.tag){case 3:x_(c),ul();break;case 5:F1(c);break;case 1:wi(c.type)&&xd(c);break;case 4:pp(c,c.stateNode.containerInfo);break;case 10:var b=c.type._context,E=c.memoizedProps.value;Dn(Pd,b._currentValue),b._currentValue=E;break;case 13:if(b=c.memoizedState,b!==null)return b.dehydrated!==null?(Dn(Qn,Qn.current&1),c.flags|=128,null):(p&c.child.childLanes)!==0?k_(s,c,p):(Dn(Qn,Qn.current&1),s=us(s,c,p),s!==null?s.sibling:null);Dn(Qn,Qn.current&1);break;case 19:if(b=(p&c.childLanes)!==0,(s.flags&128)!==0){if(b)return R_(s,c,p);c.flags|=128}if(E=c.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),Dn(Qn,Qn.current),b)break;return null;case 22:case 23:return c.lanes=0,S_(s,c,p)}return us(s,c,p)}var T_,Bp,P_,O_;T_=function(s,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Bp=function(){},P_=function(s,c,p,b){var E=s.memoizedProps;if(E!==b){s=c.stateNode,ua(Bo.current);var P=null;switch(p){case"input":E=ve(s,E),b=ve(s,b),P=[];break;case"select":E=q({},E,{value:void 0}),b=q({},b,{value:void 0}),P=[];break;case"textarea":E=Pe(s,E),b=Pe(s,b),P=[];break;default:typeof E.onClick!="function"&&typeof b.onClick=="function"&&(s.onclick=Sd)}ze(p,b);var W;p=null;for(Se in E)if(!b.hasOwnProperty(Se)&&E.hasOwnProperty(Se)&&E[Se]!=null)if(Se==="style"){var te=E[Se];for(W in te)te.hasOwnProperty(W)&&(p||(p={}),p[W]="")}else Se!=="dangerouslySetInnerHTML"&&Se!=="children"&&Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&Se!=="autoFocus"&&(i.hasOwnProperty(Se)?P||(P=[]):(P=P||[]).push(Se,null));for(Se in b){var ie=b[Se];if(te=E!=null?E[Se]:void 0,b.hasOwnProperty(Se)&&ie!==te&&(ie!=null||te!=null))if(Se==="style")if(te){for(W in te)!te.hasOwnProperty(W)||ie&&ie.hasOwnProperty(W)||(p||(p={}),p[W]="");for(W in ie)ie.hasOwnProperty(W)&&te[W]!==ie[W]&&(p||(p={}),p[W]=ie[W])}else p||(P||(P=[]),P.push(Se,p)),p=ie;else Se==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,te=te?te.__html:void 0,ie!=null&&te!==ie&&(P=P||[]).push(Se,ie)):Se==="children"?typeof ie!="string"&&typeof ie!="number"||(P=P||[]).push(Se,""+ie):Se!=="suppressContentEditableWarning"&&Se!=="suppressHydrationWarning"&&(i.hasOwnProperty(Se)?(ie!=null&&Se==="onScroll"&&Fn("scroll",s),P||te===ie||(P=[])):(P=P||[]).push(Se,ie))}p&&(P=P||[]).push("style",p);var Se=P;(c.updateQueue=Se)&&(c.flags|=4)}},O_=function(s,c,p,b){p!==b&&(c.flags|=4)};function jc(s,c){if(!Kn)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function ni(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,b=0;if(c)for(var E=s.child;E!==null;)p|=E.lanes|E.childLanes,b|=E.subtreeFlags&14680064,b|=E.flags&14680064,E.return=s,E=E.sibling;else for(E=s.child;E!==null;)p|=E.lanes|E.childLanes,b|=E.subtreeFlags,b|=E.flags,E.return=s,E=E.sibling;return s.subtreeFlags|=b,s.childLanes=p,c}function l5(s,c,p){var b=c.pendingProps;switch(op(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ni(c),null;case 1:return wi(c.type)&&wd(),ni(c),null;case 3:return b=c.stateNode,ml(),Wn(Ci),Wn(ei),yp(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(s===null||s.child===null)&&(Rd(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,bo!==null&&(Gp(bo),bo=null))),Bp(s,c),ni(c),null;case 5:gp(c);var E=ua(Pc.current);if(p=c.type,s!==null&&c.stateNode!=null)P_(s,c,p,b,E),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!b){if(c.stateNode===null)throw Error(n(166));return ni(c),null}if(s=ua(Bo.current),Rd(c)){b=c.stateNode,p=c.type;var P=c.memoizedProps;switch(b[zo]=c,b[Ec]=P,s=(c.mode&1)!==0,p){case"dialog":Fn("cancel",b),Fn("close",b);break;case"iframe":case"object":case"embed":Fn("load",b);break;case"video":case"audio":for(E=0;E<Cc.length;E++)Fn(Cc[E],b);break;case"source":Fn("error",b);break;case"img":case"image":case"link":Fn("error",b),Fn("load",b);break;case"details":Fn("toggle",b);break;case"input":me(b,P),Fn("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!P.multiple},Fn("invalid",b);break;case"textarea":ke(b,P),Fn("invalid",b)}ze(p,P),E=null;for(var W in P)if(P.hasOwnProperty(W)){var te=P[W];W==="children"?typeof te=="string"?b.textContent!==te&&(P.suppressHydrationWarning!==!0&&_d(b.textContent,te,s),E=["children",te]):typeof te=="number"&&b.textContent!==""+te&&(P.suppressHydrationWarning!==!0&&_d(b.textContent,te,s),E=["children",""+te]):i.hasOwnProperty(W)&&te!=null&&W==="onScroll"&&Fn("scroll",b)}switch(p){case"input":se(b),xe(b,P,!0);break;case"textarea":se(b),Ve(b);break;case"select":case"option":break;default:typeof P.onClick=="function"&&(b.onclick=Sd)}b=E,c.updateQueue=b,b!==null&&(c.flags|=4)}else{W=E.nodeType===9?E:E.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=Ze(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=W.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof b.is=="string"?s=W.createElement(p,{is:b.is}):(s=W.createElement(p),p==="select"&&(W=s,b.multiple?W.multiple=!0:b.size&&(W.size=b.size))):s=W.createElementNS(s,p),s[zo]=c,s[Ec]=b,T_(s,c,!1,!1),c.stateNode=s;e:{switch(W=Ke(p,b),p){case"dialog":Fn("cancel",s),Fn("close",s),E=b;break;case"iframe":case"object":case"embed":Fn("load",s),E=b;break;case"video":case"audio":for(E=0;E<Cc.length;E++)Fn(Cc[E],s);E=b;break;case"source":Fn("error",s),E=b;break;case"img":case"image":case"link":Fn("error",s),Fn("load",s),E=b;break;case"details":Fn("toggle",s),E=b;break;case"input":me(s,b),E=ve(s,b),Fn("invalid",s);break;case"option":E=b;break;case"select":s._wrapperState={wasMultiple:!!b.multiple},E=q({},b,{value:void 0}),Fn("invalid",s);break;case"textarea":ke(s,b),E=Pe(s,b),Fn("invalid",s);break;default:E=b}ze(p,E),te=E;for(P in te)if(te.hasOwnProperty(P)){var ie=te[P];P==="style"?Le(s,ie):P==="dangerouslySetInnerHTML"?(ie=ie?ie.__html:void 0,ie!=null&&Ye(s,ie)):P==="children"?typeof ie=="string"?(p!=="textarea"||ie!=="")&&mt(s,ie):typeof ie=="number"&&mt(s,""+ie):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(i.hasOwnProperty(P)?ie!=null&&P==="onScroll"&&Fn("scroll",s):ie!=null&&k(s,P,ie,W))}switch(p){case"input":se(s),xe(s,b,!1);break;case"textarea":se(s),Ve(s);break;case"option":b.value!=null&&s.setAttribute("value",""+oe(b.value));break;case"select":s.multiple=!!b.multiple,P=b.value,P!=null?Te(s,!!b.multiple,P,!1):b.defaultValue!=null&&Te(s,!!b.multiple,b.defaultValue,!0);break;default:typeof E.onClick=="function"&&(s.onclick=Sd)}switch(p){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return ni(c),null;case 6:if(s&&c.stateNode!=null)O_(s,c,s.memoizedProps,b);else{if(typeof b!="string"&&c.stateNode===null)throw Error(n(166));if(p=ua(Pc.current),ua(Bo.current),Rd(c)){if(b=c.stateNode,p=c.memoizedProps,b[zo]=c,(P=b.nodeValue!==p)&&(s=Bi,s!==null))switch(s.tag){case 3:_d(b.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&_d(b.nodeValue,p,(s.mode&1)!==0)}P&&(c.flags|=4)}else b=(p.nodeType===9?p:p.ownerDocument).createTextNode(b),b[zo]=c,c.stateNode=b}return ni(c),null;case 13:if(Wn(Qn),b=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Kn&&Li!==null&&(c.mode&1)!==0&&(c.flags&128)===0)M1(),ul(),c.flags|=98560,P=!1;else if(P=Rd(c),b!==null&&b.dehydrated!==null){if(s===null){if(!P)throw Error(n(318));if(P=c.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(n(317));P[zo]=c}else ul(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;ni(c),P=!1}else bo!==null&&(Gp(bo),bo=null),P=!0;if(!P)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=p,c):(b=b!==null,b!==(s!==null&&s.memoizedState!==null)&&b&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(Qn.current&1)!==0?xr===0&&(xr=3):Jp())),c.updateQueue!==null&&(c.flags|=4),ni(c),null);case 4:return ml(),Bp(s,c),s===null&&wc(c.stateNode.containerInfo),ni(c),null;case 10:return dp(c.type._context),ni(c),null;case 17:return wi(c.type)&&wd(),ni(c),null;case 19:if(Wn(Qn),P=c.memoizedState,P===null)return ni(c),null;if(b=(c.flags&128)!==0,W=P.rendering,W===null)if(b)jc(P,!1);else{if(xr!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(W=Md(s),W!==null){for(c.flags|=128,jc(P,!1),b=W.updateQueue,b!==null&&(c.updateQueue=b,c.flags|=4),c.subtreeFlags=0,b=p,p=c.child;p!==null;)P=p,s=b,P.flags&=14680066,W=P.alternate,W===null?(P.childLanes=0,P.lanes=s,P.child=null,P.subtreeFlags=0,P.memoizedProps=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null,P.stateNode=null):(P.childLanes=W.childLanes,P.lanes=W.lanes,P.child=W.child,P.subtreeFlags=0,P.deletions=null,P.memoizedProps=W.memoizedProps,P.memoizedState=W.memoizedState,P.updateQueue=W.updateQueue,P.type=W.type,s=W.dependencies,P.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return Dn(Qn,Qn.current&1|2),c.child}s=s.sibling}P.tail!==null&>()>yl&&(c.flags|=128,b=!0,jc(P,!1),c.lanes=4194304)}else{if(!b)if(s=Md(W),s!==null){if(c.flags|=128,b=!0,p=s.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),jc(P,!0),P.tail===null&&P.tailMode==="hidden"&&!W.alternate&&!Kn)return ni(c),null}else 2*gt()-P.renderingStartTime>yl&&p!==1073741824&&(c.flags|=128,b=!0,jc(P,!1),c.lanes=4194304);P.isBackwards?(W.sibling=c.child,c.child=W):(p=P.last,p!==null?p.sibling=W:c.child=W,P.last=W)}return P.tail!==null?(c=P.tail,P.rendering=c,P.tail=c.sibling,P.renderingStartTime=gt(),c.sibling=null,p=Qn.current,Dn(Qn,b?p&1|2:p&1),c):(ni(c),null);case 22:case 23:return Yp(),b=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==b&&(c.flags|=8192),b&&(c.mode&1)!==0?(Ai&1073741824)!==0&&(ni(c),c.subtreeFlags&6&&(c.flags|=8192)):ni(c),null;case 24:return null;case 25:return null}throw Error(n(156,c.tag))}function c5(s,c){switch(op(c),c.tag){case 1:return wi(c.type)&&wd(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return ml(),Wn(Ci),Wn(ei),yp(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return gp(c),null;case 13:if(Wn(Qn),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(n(340));ul()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Wn(Qn),null;case 4:return ml(),null;case 10:return dp(c.type._context),null;case 22:case 23:return Yp(),null;case 24:return null;default:return null}}var Wd=!1,ri=!1,u5=typeof WeakSet=="function"?WeakSet:Set,bt=null;function gl(s,c){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(b){ir(s,c,b)}else p.current=null}function Lp(s,c,p){try{p()}catch(b){ir(s,c,b)}}var I_=!1;function d5(s,c){if(Ym=cd,s=u1(),Fm(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var b=p.getSelection&&p.getSelection();if(b&&b.rangeCount!==0){p=b.anchorNode;var E=b.anchorOffset,P=b.focusNode;b=b.focusOffset;try{p.nodeType,P.nodeType}catch{p=null;break e}var W=0,te=-1,ie=-1,Se=0,Be=0,We=s,je=null;t:for(;;){for(var ft;We!==p||E!==0&&We.nodeType!==3||(te=W+E),We!==P||b!==0&&We.nodeType!==3||(ie=W+b),We.nodeType===3&&(W+=We.nodeValue.length),(ft=We.firstChild)!==null;)je=We,We=ft;for(;;){if(We===s)break t;if(je===p&&++Se===E&&(te=W),je===P&&++Be===b&&(ie=W),(ft=We.nextSibling)!==null)break;We=je,je=We.parentNode}We=ft}p=te===-1||ie===-1?null:{start:te,end:ie}}else p=null}p=p||{start:0,end:0}}else p=null;for(Jm={focusedElem:s,selectionRange:p},cd=!1,bt=c;bt!==null;)if(c=bt,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,bt=s;else for(;bt!==null;){c=bt;try{var wt=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(wt!==null){var xt=wt.memoizedProps,ur=wt.memoizedState,pe=c.stateNode,ue=pe.getSnapshotBeforeUpdate(c.elementType===c.type?xt:_o(c.type,xt),ur);pe.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var be=c.stateNode.containerInfo;be.nodeType===1?be.textContent="":be.nodeType===9&&be.documentElement&&be.removeChild(be.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ue){ir(c,c.return,Ue)}if(s=c.sibling,s!==null){s.return=c.return,bt=s;break}bt=c.return}return wt=I_,I_=!1,wt}function zc(s,c,p){var b=c.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var E=b=b.next;do{if((E.tag&s)===s){var P=E.destroy;E.destroy=void 0,P!==void 0&&Lp(c,p,P)}E=E.next}while(E!==b)}}function Vd(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&s)===s){var b=p.create;p.destroy=b()}p=p.next}while(p!==c)}}function Ap(s){var c=s.ref;if(c!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof c=="function"?c(s):c.current=s}}function N_(s){var c=s.alternate;c!==null&&(s.alternate=null,N_(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[zo],delete c[Ec],delete c[tp],delete c[KR],delete c[GR])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function M_(s){return s.tag===5||s.tag===3||s.tag===4}function j_(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||M_(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Dp(s,c,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(s,c):p.insertBefore(s,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(s,p)):(c=p,c.appendChild(s)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Sd));else if(b!==4&&(s=s.child,s!==null))for(Dp(s,c,p),s=s.sibling;s!==null;)Dp(s,c,p),s=s.sibling}function Hp(s,c,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(b!==4&&(s=s.child,s!==null))for(Hp(s,c,p),s=s.sibling;s!==null;)Hp(s,c,p),s=s.sibling}var Vr=null,So=!1;function Ns(s,c,p){for(p=p.child;p!==null;)z_(s,c,p),p=p.sibling}function z_(s,c,p){if(yn&&typeof yn.onCommitFiberUnmount=="function")try{yn.onCommitFiberUnmount(Nt,p)}catch{}switch(p.tag){case 5:ri||gl(p,c);case 6:var b=Vr,E=So;Vr=null,Ns(s,c,p),Vr=b,So=E,Vr!==null&&(So?(s=Vr,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):Vr.removeChild(p.stateNode));break;case 18:Vr!==null&&(So?(s=Vr,p=p.stateNode,s.nodeType===8?ep(s.parentNode,p):s.nodeType===1&&ep(s,p),xs(s)):ep(Vr,p.stateNode));break;case 4:b=Vr,E=So,Vr=p.stateNode.containerInfo,So=!0,Ns(s,c,p),Vr=b,So=E;break;case 0:case 11:case 14:case 15:if(!ri&&(b=p.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){E=b=b.next;do{var P=E,W=P.destroy;P=P.tag,W!==void 0&&((P&2)!==0||(P&4)!==0)&&Lp(p,c,W),E=E.next}while(E!==b)}Ns(s,c,p);break;case 1:if(!ri&&(gl(p,c),b=p.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=p.memoizedProps,b.state=p.memoizedState,b.componentWillUnmount()}catch(te){ir(p,c,te)}Ns(s,c,p);break;case 21:Ns(s,c,p);break;case 22:p.mode&1?(ri=(b=ri)||p.memoizedState!==null,Ns(s,c,p),ri=b):Ns(s,c,p);break;default:Ns(s,c,p)}}function B_(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new u5),c.forEach(function(b){var E=_5.bind(null,s,b);p.has(b)||(p.add(b),b.then(E,E))})}}function Co(s,c){var p=c.deletions;if(p!==null)for(var b=0;b<p.length;b++){var E=p[b];try{var P=s,W=c,te=W;e:for(;te!==null;){switch(te.tag){case 5:Vr=te.stateNode,So=!1;break e;case 3:Vr=te.stateNode.containerInfo,So=!0;break e;case 4:Vr=te.stateNode.containerInfo,So=!0;break e}te=te.return}if(Vr===null)throw Error(n(160));z_(P,W,E),Vr=null,So=!1;var ie=E.alternate;ie!==null&&(ie.return=null),E.return=null}catch(Se){ir(E,c,Se)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)L_(c,s),c=c.sibling}function L_(s,c){var p=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Co(c,s),Ao(s),b&4){try{zc(3,s,s.return),Vd(3,s)}catch(xt){ir(s,s.return,xt)}try{zc(5,s,s.return)}catch(xt){ir(s,s.return,xt)}}break;case 1:Co(c,s),Ao(s),b&512&&p!==null&&gl(p,p.return);break;case 5:if(Co(c,s),Ao(s),b&512&&p!==null&&gl(p,p.return),s.flags&32){var E=s.stateNode;try{mt(E,"")}catch(xt){ir(s,s.return,xt)}}if(b&4&&(E=s.stateNode,E!=null)){var P=s.memoizedProps,W=p!==null?p.memoizedProps:P,te=s.type,ie=s.updateQueue;if(s.updateQueue=null,ie!==null)try{te==="input"&&P.type==="radio"&&P.name!=null&&fe(E,P),Ke(te,W);var Se=Ke(te,P);for(W=0;W<ie.length;W+=2){var Be=ie[W],We=ie[W+1];Be==="style"?Le(E,We):Be==="dangerouslySetInnerHTML"?Ye(E,We):Be==="children"?mt(E,We):k(E,Be,We,Se)}switch(te){case"input":ye(E,P);break;case"textarea":Ce(E,P);break;case"select":var je=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!P.multiple;var ft=P.value;ft!=null?Te(E,!!P.multiple,ft,!1):je!==!!P.multiple&&(P.defaultValue!=null?Te(E,!!P.multiple,P.defaultValue,!0):Te(E,!!P.multiple,P.multiple?[]:"",!1))}E[Ec]=P}catch(xt){ir(s,s.return,xt)}}break;case 6:if(Co(c,s),Ao(s),b&4){if(s.stateNode===null)throw Error(n(162));E=s.stateNode,P=s.memoizedProps;try{E.nodeValue=P}catch(xt){ir(s,s.return,xt)}}break;case 3:if(Co(c,s),Ao(s),b&4&&p!==null&&p.memoizedState.isDehydrated)try{xs(c.containerInfo)}catch(xt){ir(s,s.return,xt)}break;case 4:Co(c,s),Ao(s);break;case 13:Co(c,s),Ao(s),E=s.child,E.flags&8192&&(P=E.memoizedState!==null,E.stateNode.isHidden=P,!P||E.alternate!==null&&E.alternate.memoizedState!==null||(Vp=gt())),b&4&&B_(s);break;case 22:if(Be=p!==null&&p.memoizedState!==null,s.mode&1?(ri=(Se=ri)||Be,Co(c,s),ri=Se):Co(c,s),Ao(s),b&8192){if(Se=s.memoizedState!==null,(s.stateNode.isHidden=Se)&&!Be&&(s.mode&1)!==0)for(bt=s,Be=s.child;Be!==null;){for(We=bt=Be;bt!==null;){switch(je=bt,ft=je.child,je.tag){case 0:case 11:case 14:case 15:zc(4,je,je.return);break;case 1:gl(je,je.return);var wt=je.stateNode;if(typeof wt.componentWillUnmount=="function"){b=je,p=je.return;try{c=b,wt.props=c.memoizedProps,wt.state=c.memoizedState,wt.componentWillUnmount()}catch(xt){ir(b,p,xt)}}break;case 5:gl(je,je.return);break;case 22:if(je.memoizedState!==null){H_(We);continue}}ft!==null?(ft.return=je,bt=ft):H_(We)}Be=Be.sibling}e:for(Be=null,We=s;;){if(We.tag===5){if(Be===null){Be=We;try{E=We.stateNode,Se?(P=E.style,typeof P.setProperty=="function"?P.setProperty("display","none","important"):P.display="none"):(te=We.stateNode,ie=We.memoizedProps.style,W=ie!=null&&ie.hasOwnProperty("display")?ie.display:null,te.style.display=rt("display",W))}catch(xt){ir(s,s.return,xt)}}}else if(We.tag===6){if(Be===null)try{We.stateNode.nodeValue=Se?"":We.memoizedProps}catch(xt){ir(s,s.return,xt)}}else if((We.tag!==22&&We.tag!==23||We.memoizedState===null||We===s)&&We.child!==null){We.child.return=We,We=We.child;continue}if(We===s)break e;for(;We.sibling===null;){if(We.return===null||We.return===s)break e;Be===We&&(Be=null),We=We.return}Be===We&&(Be=null),We.sibling.return=We.return,We=We.sibling}}break;case 19:Co(c,s),Ao(s),b&4&&B_(s);break;case 21:break;default:Co(c,s),Ao(s)}}function Ao(s){var c=s.flags;if(c&2){try{e:{for(var p=s.return;p!==null;){if(M_(p)){var b=p;break e}p=p.return}throw Error(n(160))}switch(b.tag){case 5:var E=b.stateNode;b.flags&32&&(mt(E,""),b.flags&=-33);var P=j_(s);Hp(s,P,E);break;case 3:case 4:var W=b.stateNode.containerInfo,te=j_(s);Dp(s,te,W);break;default:throw Error(n(161))}}catch(ie){ir(s,s.return,ie)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function h5(s,c,p){bt=s,A_(s)}function A_(s,c,p){for(var b=(s.mode&1)!==0;bt!==null;){var E=bt,P=E.child;if(E.tag===22&&b){var W=E.memoizedState!==null||Wd;if(!W){var te=E.alternate,ie=te!==null&&te.memoizedState!==null||ri;te=Wd;var Se=ri;if(Wd=W,(ri=ie)&&!Se)for(bt=E;bt!==null;)W=bt,ie=W.child,W.tag===22&&W.memoizedState!==null?F_(E):ie!==null?(ie.return=W,bt=ie):F_(E);for(;P!==null;)bt=P,A_(P),P=P.sibling;bt=E,Wd=te,ri=Se}D_(s)}else(E.subtreeFlags&8772)!==0&&P!==null?(P.return=E,bt=P):D_(s)}}function D_(s){for(;bt!==null;){var c=bt;if((c.flags&8772)!==0){var p=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:ri||Vd(5,c);break;case 1:var b=c.stateNode;if(c.flags&4&&!ri)if(p===null)b.componentDidMount();else{var E=c.elementType===c.type?p.memoizedProps:_o(c.type,p.memoizedProps);b.componentDidUpdate(E,p.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var P=c.updateQueue;P!==null&&H1(c,P,b);break;case 3:var W=c.updateQueue;if(W!==null){if(p=null,c.child!==null)switch(c.child.tag){case 5:p=c.child.stateNode;break;case 1:p=c.child.stateNode}H1(c,W,p)}break;case 5:var te=c.stateNode;if(p===null&&c.flags&4){p=te;var ie=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":ie.autoFocus&&p.focus();break;case"img":ie.src&&(p.src=ie.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var Se=c.alternate;if(Se!==null){var Be=Se.memoizedState;if(Be!==null){var We=Be.dehydrated;We!==null&&xs(We)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}ri||c.flags&512&&Ap(c)}catch(je){ir(c,c.return,je)}}if(c===s){bt=null;break}if(p=c.sibling,p!==null){p.return=c.return,bt=p;break}bt=c.return}}function H_(s){for(;bt!==null;){var c=bt;if(c===s){bt=null;break}var p=c.sibling;if(p!==null){p.return=c.return,bt=p;break}bt=c.return}}function F_(s){for(;bt!==null;){var c=bt;try{switch(c.tag){case 0:case 11:case 15:var p=c.return;try{Vd(4,c)}catch(ie){ir(c,p,ie)}break;case 1:var b=c.stateNode;if(typeof b.componentDidMount=="function"){var E=c.return;try{b.componentDidMount()}catch(ie){ir(c,E,ie)}}var P=c.return;try{Ap(c)}catch(ie){ir(c,P,ie)}break;case 5:var W=c.return;try{Ap(c)}catch(ie){ir(c,W,ie)}}}catch(ie){ir(c,c.return,ie)}if(c===s){bt=null;break}var te=c.sibling;if(te!==null){te.return=c.return,bt=te;break}bt=c.return}}var f5=Math.ceil,Ud=$.ReactCurrentDispatcher,Fp=$.ReactCurrentOwner,to=$.ReactCurrentBatchConfig,bn=0,Ir=null,mr=null,Ur=0,Ai=0,vl=Rs(0),xr=0,Bc=null,ha=0,qd=0,Wp=0,Lc=null,Ei=null,Vp=0,yl=1/0,ds=null,Kd=!1,Up=null,Ms=null,Gd=!1,js=null,Xd=0,Ac=0,qp=null,Yd=-1,Jd=0;function di(){return(bn&6)!==0?gt():Yd!==-1?Yd:Yd=gt()}function zs(s){return(s.mode&1)===0?1:(bn&2)!==0&&Ur!==0?Ur&-Ur:YR.transition!==null?(Jd===0&&(Jd=hn()),Jd):(s=qt,s!==0||(s=window.event,s=s===void 0?16:Vb(s.type)),s)}function wo(s,c,p,b){if(50<Ac)throw Ac=0,qp=null,Error(n(185));xn(s,p,b),((bn&2)===0||s!==Ir)&&(s===Ir&&((bn&2)===0&&(qd|=p),xr===4&&Bs(s,Ur)),ki(s,b),p===1&&bn===0&&(c.mode&1)===0&&(yl=gt()+500,Ed&&Ps()))}function ki(s,c){var p=s.callbackNode;lt(s,c);var b=dn(s,s===Ir?Ur:0);if(b===0)p!==null&&Fe(p),s.callbackNode=null,s.callbackPriority=0;else if(c=b&-b,s.callbackPriority!==c){if(p!=null&&Fe(p),c===1)s.tag===0?XR(V_.bind(null,s)):T1(V_.bind(null,s)),UR(function(){(bn&6)===0&&Ps()}),p=null;else{switch(Cr(b)){case 1:p=et;break;case 4:p=Pt;break;case 16:p=Gt;break;case 536870912:p=vt;break;default:p=Gt}p=Q_(p,W_.bind(null,s))}s.callbackPriority=c,s.callbackNode=p}}function W_(s,c){if(Yd=-1,Jd=0,(bn&6)!==0)throw Error(n(327));var p=s.callbackNode;if(bl()&&s.callbackNode!==p)return null;var b=dn(s,s===Ir?Ur:0);if(b===0)return null;if((b&30)!==0||(b&s.expiredLanes)!==0||c)c=Qd(s,b);else{c=b;var E=bn;bn|=2;var P=q_();(Ir!==s||Ur!==c)&&(ds=null,yl=gt()+500,ma(s,c));do try{g5();break}catch(te){U_(s,te)}while(!0);up(),Ud.current=P,bn=E,mr!==null?c=0:(Ir=null,Ur=0,c=xr)}if(c!==0){if(c===2&&(E=an(s),E!==0&&(b=E,c=Kp(s,E))),c===1)throw p=Bc,ma(s,0),Bs(s,b),ki(s,gt()),p;if(c===6)Bs(s,b);else{if(E=s.current.alternate,(b&30)===0&&!m5(E)&&(c=Qd(s,b),c===2&&(P=an(s),P!==0&&(b=P,c=Kp(s,P))),c===1))throw p=Bc,ma(s,0),Bs(s,b),ki(s,gt()),p;switch(s.finishedWork=E,s.finishedLanes=b,c){case 0:case 1:throw Error(n(345));case 2:pa(s,Ei,ds);break;case 3:if(Bs(s,b),(b&130023424)===b&&(c=Vp+500-gt(),10<c)){if(dn(s,0)!==0)break;if(E=s.suspendedLanes,(E&b)!==b){di(),s.pingedLanes|=s.suspendedLanes&E;break}s.timeoutHandle=Zm(pa.bind(null,s,Ei,ds),c);break}pa(s,Ei,ds);break;case 4:if(Bs(s,b),(b&4194240)===b)break;for(c=s.eventTimes,E=-1;0<b;){var W=31-Ln(b);P=1<<W,W=c[W],W>E&&(E=W),b&=~P}if(b=E,b=gt()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*f5(b/1960))-b,10<b){s.timeoutHandle=Zm(pa.bind(null,s,Ei,ds),b);break}pa(s,Ei,ds);break;case 5:pa(s,Ei,ds);break;default:throw Error(n(329))}}}return ki(s,gt()),s.callbackNode===p?W_.bind(null,s):null}function Kp(s,c){var p=Lc;return s.current.memoizedState.isDehydrated&&(ma(s,c).flags|=256),s=Qd(s,c),s!==2&&(c=Ei,Ei=p,c!==null&&Gp(c)),s}function Gp(s){Ei===null?Ei=s:Ei.push.apply(Ei,s)}function m5(s){for(var c=s;;){if(c.flags&16384){var p=c.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var b=0;b<p.length;b++){var E=p[b],P=E.getSnapshot;E=E.value;try{if(!yo(P(),E))return!1}catch{return!1}}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Bs(s,c){for(c&=~Wp,c&=~qd,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var p=31-Ln(c),b=1<<p;s[p]=-1,c&=~b}}function V_(s){if((bn&6)!==0)throw Error(n(327));bl();var c=dn(s,0);if((c&1)===0)return ki(s,gt()),null;var p=Qd(s,c);if(s.tag!==0&&p===2){var b=an(s);b!==0&&(c=b,p=Kp(s,b))}if(p===1)throw p=Bc,ma(s,0),Bs(s,c),ki(s,gt()),p;if(p===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,pa(s,Ei,ds),ki(s,gt()),null}function Xp(s,c){var p=bn;bn|=1;try{return s(c)}finally{bn=p,bn===0&&(yl=gt()+500,Ed&&Ps())}}function fa(s){js!==null&&js.tag===0&&(bn&6)===0&&bl();var c=bn;bn|=1;var p=to.transition,b=qt;try{if(to.transition=null,qt=1,s)return s()}finally{qt=b,to.transition=p,bn=c,(bn&6)===0&&Ps()}}function Yp(){Ai=vl.current,Wn(vl)}function ma(s,c){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,VR(p)),mr!==null)for(p=mr.return;p!==null;){var b=p;switch(op(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&wd();break;case 3:ml(),Wn(Ci),Wn(ei),yp();break;case 5:gp(b);break;case 4:ml();break;case 13:Wn(Qn);break;case 19:Wn(Qn);break;case 10:dp(b.type._context);break;case 22:case 23:Yp()}p=p.return}if(Ir=s,mr=s=Ls(s.current,null),Ur=Ai=c,xr=0,Bc=null,Wp=qd=ha=0,Ei=Lc=null,ca!==null){for(c=0;c<ca.length;c++)if(p=ca[c],b=p.interleaved,b!==null){p.interleaved=null;var E=b.next,P=p.pending;if(P!==null){var W=P.next;P.next=E,b.next=W}p.pending=b}ca=null}return s}function U_(s,c){do{var p=mr;try{if(up(),jd.current=Ad,zd){for(var b=Zn.memoizedState;b!==null;){var E=b.queue;E!==null&&(E.pending=null),b=b.next}zd=!1}if(da=0,Or=wr=Zn=null,Oc=!1,Ic=0,Fp.current=null,p===null||p.return===null){xr=1,Bc=c,mr=null;break}e:{var P=s,W=p.return,te=p,ie=c;if(c=Ur,te.flags|=32768,ie!==null&&typeof ie=="object"&&typeof ie.then=="function"){var Se=ie,Be=te,We=Be.tag;if((Be.mode&1)===0&&(We===0||We===11||We===15)){var je=Be.alternate;je?(Be.updateQueue=je.updateQueue,Be.memoizedState=je.memoizedState,Be.lanes=je.lanes):(Be.updateQueue=null,Be.memoizedState=null)}var ft=g_(W);if(ft!==null){ft.flags&=-257,v_(ft,W,te,P,c),ft.mode&1&&p_(P,Se,c),c=ft,ie=Se;var wt=c.updateQueue;if(wt===null){var xt=new Set;xt.add(ie),c.updateQueue=xt}else wt.add(ie);break e}else{if((c&1)===0){p_(P,Se,c),Jp();break e}ie=Error(n(426))}}else if(Kn&&te.mode&1){var ur=g_(W);if(ur!==null){(ur.flags&65536)===0&&(ur.flags|=256),v_(ur,W,te,P,c),lp(pl(ie,te));break e}}P=ie=pl(ie,te),xr!==4&&(xr=2),Lc===null?Lc=[P]:Lc.push(P),P=W;do{switch(P.tag){case 3:P.flags|=65536,c&=-c,P.lanes|=c;var pe=f_(P,ie,c);D1(P,pe);break e;case 1:te=ie;var ue=P.type,be=P.stateNode;if((P.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||be!==null&&typeof be.componentDidCatch=="function"&&(Ms===null||!Ms.has(be)))){P.flags|=65536,c&=-c,P.lanes|=c;var Ue=m_(P,te,c);D1(P,Ue);break e}}P=P.return}while(P!==null)}G_(p)}catch(Et){c=Et,mr===p&&p!==null&&(mr=p=p.return);continue}break}while(!0)}function q_(){var s=Ud.current;return Ud.current=Ad,s===null?Ad:s}function Jp(){(xr===0||xr===3||xr===2)&&(xr=4),Ir===null||(ha&268435455)===0&&(qd&268435455)===0||Bs(Ir,Ur)}function Qd(s,c){var p=bn;bn|=2;var b=q_();(Ir!==s||Ur!==c)&&(ds=null,ma(s,c));do try{p5();break}catch(E){U_(s,E)}while(!0);if(up(),bn=p,Ud.current=b,mr!==null)throw Error(n(261));return Ir=null,Ur=0,xr}function p5(){for(;mr!==null;)K_(mr)}function g5(){for(;mr!==null&&!Qe();)K_(mr)}function K_(s){var c=J_(s.alternate,s,Ai);s.memoizedProps=s.pendingProps,c===null?G_(s):mr=c,Fp.current=null}function G_(s){var c=s;do{var p=c.alternate;if(s=c.return,(c.flags&32768)===0){if(p=l5(p,c,Ai),p!==null){mr=p;return}}else{if(p=c5(p,c),p!==null){p.flags&=32767,mr=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{xr=6,mr=null;return}}if(c=c.sibling,c!==null){mr=c;return}mr=c=s}while(c!==null);xr===0&&(xr=5)}function pa(s,c,p){var b=qt,E=to.transition;try{to.transition=null,qt=1,v5(s,c,p,b)}finally{to.transition=E,qt=b}return null}function v5(s,c,p,b){do bl();while(js!==null);if((bn&6)!==0)throw Error(n(327));p=s.finishedWork;var E=s.finishedLanes;if(p===null)return null;if(s.finishedWork=null,s.finishedLanes=0,p===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var P=p.lanes|p.childLanes;if(Wr(s,P),s===Ir&&(mr=Ir=null,Ur=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Gd||(Gd=!0,Q_(Gt,function(){return bl(),null})),P=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||P){P=to.transition,to.transition=null;var W=qt;qt=1;var te=bn;bn|=4,Fp.current=null,d5(s,p),L_(p,s),BR(Jm),cd=!!Ym,Jm=Ym=null,s.current=p,h5(p),Ot(),bn=te,qt=W,to.transition=P}else s.current=p;if(Gd&&(Gd=!1,js=s,Xd=E),P=s.pendingLanes,P===0&&(Ms=null),lr(p.stateNode),ki(s,gt()),c!==null)for(b=s.onRecoverableError,p=0;p<c.length;p++)E=c[p],b(E.value,{componentStack:E.stack,digest:E.digest});if(Kd)throw Kd=!1,s=Up,Up=null,s;return(Xd&1)!==0&&s.tag!==0&&bl(),P=s.pendingLanes,(P&1)!==0?s===qp?Ac++:(Ac=0,qp=s):Ac=0,Ps(),null}function bl(){if(js!==null){var s=Cr(Xd),c=to.transition,p=qt;try{if(to.transition=null,qt=16>s?16:s,js===null)var b=!1;else{if(s=js,js=null,Xd=0,(bn&6)!==0)throw Error(n(331));var E=bn;for(bn|=4,bt=s.current;bt!==null;){var P=bt,W=P.child;if((bt.flags&16)!==0){var te=P.deletions;if(te!==null){for(var ie=0;ie<te.length;ie++){var Se=te[ie];for(bt=Se;bt!==null;){var Be=bt;switch(Be.tag){case 0:case 11:case 15:zc(8,Be,P)}var We=Be.child;if(We!==null)We.return=Be,bt=We;else for(;bt!==null;){Be=bt;var je=Be.sibling,ft=Be.return;if(N_(Be),Be===Se){bt=null;break}if(je!==null){je.return=ft,bt=je;break}bt=ft}}}var wt=P.alternate;if(wt!==null){var xt=wt.child;if(xt!==null){wt.child=null;do{var ur=xt.sibling;xt.sibling=null,xt=ur}while(xt!==null)}}bt=P}}if((P.subtreeFlags&2064)!==0&&W!==null)W.return=P,bt=W;else e:for(;bt!==null;){if(P=bt,(P.flags&2048)!==0)switch(P.tag){case 0:case 11:case 15:zc(9,P,P.return)}var pe=P.sibling;if(pe!==null){pe.return=P.return,bt=pe;break e}bt=P.return}}var ue=s.current;for(bt=ue;bt!==null;){W=bt;var be=W.child;if((W.subtreeFlags&2064)!==0&&be!==null)be.return=W,bt=be;else e:for(W=ue;bt!==null;){if(te=bt,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:Vd(9,te)}}catch(Et){ir(te,te.return,Et)}if(te===W){bt=null;break e}var Ue=te.sibling;if(Ue!==null){Ue.return=te.return,bt=Ue;break e}bt=te.return}}if(bn=E,Ps(),yn&&typeof yn.onPostCommitFiberRoot=="function")try{yn.onPostCommitFiberRoot(Nt,s)}catch{}b=!0}return b}finally{qt=p,to.transition=c}}return!1}function X_(s,c,p){c=pl(p,c),c=f_(s,c,1),s=Is(s,c,1),c=di(),s!==null&&(xn(s,1,c),ki(s,c))}function ir(s,c,p){if(s.tag===3)X_(s,s,p);else for(;c!==null;){if(c.tag===3){X_(c,s,p);break}else if(c.tag===1){var b=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Ms===null||!Ms.has(b))){s=pl(p,s),s=m_(c,s,1),c=Is(c,s,1),s=di(),c!==null&&(xn(c,1,s),ki(c,s));break}}c=c.return}}function y5(s,c,p){var b=s.pingCache;b!==null&&b.delete(c),c=di(),s.pingedLanes|=s.suspendedLanes&p,Ir===s&&(Ur&p)===p&&(xr===4||xr===3&&(Ur&130023424)===Ur&&500>gt()-Vp?ma(s,0):Wp|=p),ki(s,c)}function Y_(s,c){c===0&&((s.mode&1)===0?c=1:(c=Fr,Fr<<=1,(Fr&130023424)===0&&(Fr=4194304)));var p=di();s=ls(s,c),s!==null&&(xn(s,c,p),ki(s,p))}function b5(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),Y_(s,p)}function _5(s,c){var p=0;switch(s.tag){case 13:var b=s.stateNode,E=s.memoizedState;E!==null&&(p=E.retryLane);break;case 19:b=s.stateNode;break;default:throw Error(n(314))}b!==null&&b.delete(c),Y_(s,p)}var J_;J_=function(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps||Ci.current)xi=!0;else{if((s.lanes&p)===0&&(c.flags&128)===0)return xi=!1,a5(s,c,p);xi=(s.flags&131072)!==0}else xi=!1,Kn&&(c.flags&1048576)!==0&&P1(c,$d,c.index);switch(c.lanes=0,c.tag){case 2:var b=c.type;Fd(s,c),s=c.pendingProps;var E=al(c,ei.current);fl(c,p),E=Sp(null,c,b,s,E,p);var P=Cp();return c.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,wi(b)?(P=!0,xd(c)):P=!1,c.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,mp(c),E.updater=Dd,c.stateNode=E,E._reactInternals=c,Rp(c,b,s,p),c=Ip(null,c,b,!0,P,p)):(c.tag=0,Kn&&P&&ip(c),ui(null,c,E,p),c=c.child),c;case 16:b=c.elementType;e:{switch(Fd(s,c),s=c.pendingProps,E=b._init,b=E(b._payload),c.type=b,E=c.tag=C5(b),s=_o(b,s),E){case 0:c=Op(null,c,b,s,p);break e;case 1:c=w_(null,c,b,s,p);break e;case 11:c=y_(null,c,b,s,p);break e;case 14:c=b_(null,c,b,_o(b.type,s),p);break e}throw Error(n(306,b,""))}return c;case 0:return b=c.type,E=c.pendingProps,E=c.elementType===b?E:_o(b,E),Op(s,c,b,E,p);case 1:return b=c.type,E=c.pendingProps,E=c.elementType===b?E:_o(b,E),w_(s,c,b,E,p);case 3:e:{if(x_(c),s===null)throw Error(n(387));b=c.pendingProps,P=c.memoizedState,E=P.element,A1(s,c),Nd(c,b,null,p);var W=c.memoizedState;if(b=W.element,P.isDehydrated)if(P={element:b,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},c.updateQueue.baseState=P,c.memoizedState=P,c.flags&256){E=pl(Error(n(423)),c),c=E_(s,c,b,p,E);break e}else if(b!==E){E=pl(Error(n(424)),c),c=E_(s,c,b,p,E);break e}else for(Li=$s(c.stateNode.containerInfo.firstChild),Bi=c,Kn=!0,bo=null,p=B1(c,null,b,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(ul(),b===E){c=us(s,c,p);break e}ui(s,c,b,p)}c=c.child}return c;case 5:return F1(c),s===null&&ap(c),b=c.type,E=c.pendingProps,P=s!==null?s.memoizedProps:null,W=E.children,Qm(b,E)?W=null:P!==null&&Qm(b,P)&&(c.flags|=32),C_(s,c),ui(s,c,W,p),c.child;case 6:return s===null&&ap(c),null;case 13:return k_(s,c,p);case 4:return pp(c,c.stateNode.containerInfo),b=c.pendingProps,s===null?c.child=dl(c,null,b,p):ui(s,c,b,p),c.child;case 11:return b=c.type,E=c.pendingProps,E=c.elementType===b?E:_o(b,E),y_(s,c,b,E,p);case 7:return ui(s,c,c.pendingProps,p),c.child;case 8:return ui(s,c,c.pendingProps.children,p),c.child;case 12:return ui(s,c,c.pendingProps.children,p),c.child;case 10:e:{if(b=c.type._context,E=c.pendingProps,P=c.memoizedProps,W=E.value,Dn(Pd,b._currentValue),b._currentValue=W,P!==null)if(yo(P.value,W)){if(P.children===E.children&&!Ci.current){c=us(s,c,p);break e}}else for(P=c.child,P!==null&&(P.return=c);P!==null;){var te=P.dependencies;if(te!==null){W=P.child;for(var ie=te.firstContext;ie!==null;){if(ie.context===b){if(P.tag===1){ie=cs(-1,p&-p),ie.tag=2;var Se=P.updateQueue;if(Se!==null){Se=Se.shared;var Be=Se.pending;Be===null?ie.next=ie:(ie.next=Be.next,Be.next=ie),Se.pending=ie}}P.lanes|=p,ie=P.alternate,ie!==null&&(ie.lanes|=p),hp(P.return,p,c),te.lanes|=p;break}ie=ie.next}}else if(P.tag===10)W=P.type===c.type?null:P.child;else if(P.tag===18){if(W=P.return,W===null)throw Error(n(341));W.lanes|=p,te=W.alternate,te!==null&&(te.lanes|=p),hp(W,p,c),W=P.sibling}else W=P.child;if(W!==null)W.return=P;else for(W=P;W!==null;){if(W===c){W=null;break}if(P=W.sibling,P!==null){P.return=W.return,W=P;break}W=W.return}P=W}ui(s,c,E.children,p),c=c.child}return c;case 9:return E=c.type,b=c.pendingProps.children,fl(c,p),E=Zi(E),b=b(E),c.flags|=1,ui(s,c,b,p),c.child;case 14:return b=c.type,E=_o(b,c.pendingProps),E=_o(b.type,E),b_(s,c,b,E,p);case 15:return __(s,c,c.type,c.pendingProps,p);case 17:return b=c.type,E=c.pendingProps,E=c.elementType===b?E:_o(b,E),Fd(s,c),c.tag=1,wi(b)?(s=!0,xd(c)):s=!1,fl(c,p),d_(c,b,E),Rp(c,b,E,p),Ip(null,c,b,!0,s,p);case 19:return R_(s,c,p);case 22:return S_(s,c,p)}throw Error(n(156,c.tag))};function Q_(s,c){return pn(s,c)}function S5(s,c,p,b){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function no(s,c,p,b){return new S5(s,c,p,b)}function Qp(s){return s=s.prototype,!(!s||!s.isReactComponent)}function C5(s){if(typeof s=="function")return Qp(s)?1:0;if(s!=null){if(s=s.$$typeof,s===M)return 11;if(s===D)return 14}return 2}function Ls(s,c){var p=s.alternate;return p===null?(p=no(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function Zd(s,c,p,b,E,P){var W=2;if(b=s,typeof s=="function")Qp(s)&&(W=1);else if(typeof s=="string")W=5;else e:switch(s){case O:return ga(p.children,E,P,c);case N:W=8,E|=8;break;case I:return s=no(12,p,c,E|2),s.elementType=I,s.lanes=P,s;case B:return s=no(13,p,c,E),s.elementType=B,s.lanes=P,s;case z:return s=no(19,p,c,E),s.elementType=z,s.lanes=P,s;case V:return eh(p,E,P,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case j:W=10;break e;case L:W=9;break e;case M:W=11;break e;case D:W=14;break e;case F:W=16,b=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return c=no(W,p,c,E),c.elementType=s,c.type=b,c.lanes=P,c}function ga(s,c,p,b){return s=no(7,s,b,c),s.lanes=p,s}function eh(s,c,p,b){return s=no(22,s,b,c),s.elementType=V,s.lanes=p,s.stateNode={isHidden:!1},s}function Zp(s,c,p){return s=no(6,s,null,c),s.lanes=p,s}function eg(s,c,p){return c=no(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function w5(s,c,p,b,E){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cn(0),this.expirationTimes=Cn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cn(0),this.identifierPrefix=b,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function tg(s,c,p,b,E,P,W,te,ie){return s=new w5(s,c,p,te,ie),c===1?(c=1,P===!0&&(c|=8)):c=0,P=no(3,null,null,c),s.current=P,P.stateNode=s,P.memoizedState={element:b,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},mp(P),s}function x5(s,c,p){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:b==null?null:""+b,children:s,containerInfo:c,implementation:p}}function Z_(s){if(!s)return Ts;s=s._reactInternals;e:{if(At(s)!==s||s.tag!==1)throw Error(n(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(wi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(n(171))}if(s.tag===1){var p=s.type;if(wi(p))return $1(s,p,c)}return c}function eS(s,c,p,b,E,P,W,te,ie){return s=tg(p,b,!0,s,E,P,W,te,ie),s.context=Z_(null),p=s.current,b=di(),E=zs(p),P=cs(b,E),P.callback=c??null,Is(p,P,E),s.current.lanes=E,xn(s,E,b),ki(s,b),s}function th(s,c,p,b){var E=c.current,P=di(),W=zs(E);return p=Z_(p),c.context===null?c.context=p:c.pendingContext=p,c=cs(P,W),c.payload={element:s},b=b===void 0?null:b,b!==null&&(c.callback=b),s=Is(E,c,W),s!==null&&(wo(s,E,W,P),Id(s,E,W)),W}function nh(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function tS(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function ng(s,c){tS(s,c),(s=s.alternate)&&tS(s,c)}function E5(){return null}var nS=typeof reportError=="function"?reportError:function(s){console.error(s)};function rg(s){this._internalRoot=s}rh.prototype.render=rg.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(n(409));th(s,c,null,null)},rh.prototype.unmount=rg.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;fa(function(){th(null,s,null,null)}),c[is]=null}};function rh(s){this._internalRoot=s}rh.prototype.unstable_scheduleHydration=function(s){if(s){var c=ws();s={blockedOn:null,target:s,priority:c};for(var p=0;p<ji.length&&c!==0&&c<ji[p].priority;p++);ji.splice(p,0,s),p===0&&zn(s)}};function ig(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function ih(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function rS(){}function k5(s,c,p,b,E){if(E){if(typeof b=="function"){var P=b;b=function(){var Se=nh(W);P.call(Se)}}var W=eS(c,b,s,0,null,!1,!1,"",rS);return s._reactRootContainer=W,s[is]=W.current,wc(s.nodeType===8?s.parentNode:s),fa(),W}for(;E=s.lastChild;)s.removeChild(E);if(typeof b=="function"){var te=b;b=function(){var Se=nh(ie);te.call(Se)}}var ie=tg(s,0,!1,null,null,!1,!1,"",rS);return s._reactRootContainer=ie,s[is]=ie.current,wc(s.nodeType===8?s.parentNode:s),fa(function(){th(c,ie,p,b)}),ie}function oh(s,c,p,b,E){var P=p._reactRootContainer;if(P){var W=P;if(typeof E=="function"){var te=E;E=function(){var ie=nh(W);te.call(ie)}}th(c,W,s,E)}else W=k5(p,c,s,E,b);return nh(W)}Tr=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var p=Qr(c.pendingLanes);p!==0&&(cr(c,p|1),ki(c,gt()),(bn&6)===0&&(yl=gt()+500,Ps()))}break;case 13:fa(function(){var b=ls(s,1);if(b!==null){var E=di();wo(b,s,1,E)}}),ng(s,1)}},_i=function(s){if(s.tag===13){var c=ls(s,134217728);if(c!==null){var p=di();wo(c,s,134217728,p)}ng(s,134217728)}},Pr=function(s){if(s.tag===13){var c=zs(s),p=ls(s,c);if(p!==null){var b=di();wo(p,s,c,b)}ng(s,c)}},ws=function(){return qt},Ga=function(s,c){var p=qt;try{return qt=s,c()}finally{qt=p}},nn=function(s,c,p){switch(c){case"input":if(ye(s,p),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<p.length;c++){var b=p[c];if(b!==s&&b.form===s.form){var E=Cd(b);if(!E)throw Error(n(90));ce(b),ye(b,E)}}}break;case"textarea":Ce(s,p);break;case"select":c=p.value,c!=null&&Te(s,!!p.multiple,c,!1)}},Tt=Xp,sn=fa;var $5={usingClientEntryPoint:!1,Events:[kc,ol,Cd,on,Ht,Xp]},Dc={findFiberByHostInstance:oa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},R5={bundleType:Dc.bundleType,version:Dc.version,rendererPackageName:Dc.rendererPackageName,rendererConfig:Dc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Hn(s),s===null?null:s.stateNode},findFiberByHostInstance:Dc.findFiberByHostInstance||E5,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 sh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sh.isDisabled&&sh.supportsFiber)try{Nt=sh.inject(R5),yn=sh}catch{}}return $i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$5,$i.createPortal=function(s,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ig(c))throw Error(n(200));return x5(s,c,null,p)},$i.createRoot=function(s,c){if(!ig(s))throw Error(n(299));var p=!1,b="",E=nS;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(b=c.identifierPrefix),c.onRecoverableError!==void 0&&(E=c.onRecoverableError)),c=tg(s,1,!1,null,null,p,!1,b,E),s[is]=c.current,wc(s.nodeType===8?s.parentNode:s),new rg(c)},$i.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=Hn(c),s=s===null?null:s.stateNode,s},$i.flushSync=function(s){return fa(s)},$i.hydrate=function(s,c,p){if(!ih(c))throw Error(n(200));return oh(null,s,c,!0,p)},$i.hydrateRoot=function(s,c,p){if(!ig(s))throw Error(n(405));var b=p!=null&&p.hydratedSources||null,E=!1,P="",W=nS;if(p!=null&&(p.unstable_strictMode===!0&&(E=!0),p.identifierPrefix!==void 0&&(P=p.identifierPrefix),p.onRecoverableError!==void 0&&(W=p.onRecoverableError)),c=eS(c,null,s,1,p??null,E,!1,P,W),s[is]=c.current,wc(s),b)for(s=0;s<b.length;s++)p=b[s],E=p._getVersion,E=E(p._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[p,E]:c.mutableSourceEagerHydrationData.push(p,E);return new rh(c)},$i.render=function(s,c,p){if(!ih(c))throw Error(n(200));return oh(null,s,c,!1,p)},$i.unmountComponentAtNode=function(s){if(!ih(s))throw Error(n(40));return s._reactRootContainer?(fa(function(){oh(null,null,s,!1,function(){s._reactRootContainer=null,s[is]=null})}),!0):!1},$i.unstable_batchedUpdates=Xp,$i.unstable_renderSubtreeIntoContainer=function(s,c,p,b){if(!ih(p))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return oh(s,c,p,!1,b)},$i.version="18.3.1-next-f1338f8080-20240426",$i}var dS;function E2(){if(dS)return ag.exports;dS=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(),ag.exports=B5(),ag.exports}var hS;function L5(){if(hS)return ah;hS=1;var e=E2();return ah.createRoot=e.createRoot,ah.hydrateRoot=e.hydrateRoot,ah}var A5=L5();const D5=Hu(A5);var ug={exports:{}};/*!
|
|
41
|
-
Copyright (c) 2018 Jed Watson.
|
|
42
|
-
Licensed under the MIT License (MIT), see
|
|
43
|
-
http://jedwatson.github.io/classnames
|
|
44
|
-
*/var fS;function H5(){return fS||(fS=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var l in o)t.call(o,l)&&o[l]&&(a=i(a,l));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ug)),ug.exports}var F5=H5();const ne=Hu(F5);function $e(){return $e=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},$e.apply(null,arguments)}function St(e){"@babel/helpers - typeof";return St=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},St(e)}var W5=Symbol.for("react.element"),V5=Symbol.for("react.transitional.element"),U5=Symbol.for("react.fragment");function k2(e){return e&&St(e)==="object"&&(e.$$typeof===W5||e.$$typeof===V5)&&e.type===U5}function pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Q.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(pi(r)):k2(r)&&r.props?n=n.concat(pi(r.props.children,t)):n.push(r))}),n}var vv={},q5=function(t){};function K5(e,t){}function G5(e,t){}function X5(){vv={}}function $2(e,t,n){!t&&!vv[n]&&(e(!1,n),vv[n]=!0)}function Ar(e,t){$2(K5,e,t)}function Y5(e,t){$2(G5,e,t)}Ar.preMessage=q5;Ar.resetWarned=X5;Ar.noteOnce=Y5;function J5(e,t){if(St(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(St(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R2(e){var t=J5(e,"string");return St(t)=="symbol"?t:t+""}function Y(e,t,n){return(t=R2(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zs=E2();const yv=Hu(Zs),Q5=x2({__proto__:null,default:yv},[Zs]);function _u(e){return e instanceof HTMLElement||e instanceof SVGElement}function Z5(e){return e&&St(e)==="object"&&_u(e.nativeElement)?e.nativeElement:_u(e)?e:null}function Nh(e){var t=Z5(e);if(t)return t;if(e instanceof Q.Component){var n;return(n=yv.findDOMNode)===null||n===void 0?void 0:n.call(yv,e)}return null}var dg={exports:{}},Rn={};/**
|
|
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 pS;function eT(){if(pS)return Rn;pS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function S(_){if(typeof _=="object"&&_!==null){var C=_.$$typeof;switch(C){case e:switch(_=_.type,_){case n:case i:case r:case d:case f:return _;default:switch(_=_&&_.$$typeof,_){case l:case a:case u:case g:case m:case o:return _;default:return C}}case t:return C}}}return Rn.ContextConsumer=a,Rn.ContextProvider=o,Rn.Element=e,Rn.ForwardRef=u,Rn.Fragment=n,Rn.Lazy=g,Rn.Memo=m,Rn.Portal=t,Rn.Profiler=i,Rn.StrictMode=r,Rn.Suspense=d,Rn.SuspenseList=f,Rn.isAsyncMode=function(){return!1},Rn.isConcurrentMode=function(){return!1},Rn.isContextConsumer=function(_){return S(_)===a},Rn.isContextProvider=function(_){return S(_)===o},Rn.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},Rn.isForwardRef=function(_){return S(_)===u},Rn.isFragment=function(_){return S(_)===n},Rn.isLazy=function(_){return S(_)===g},Rn.isMemo=function(_){return S(_)===m},Rn.isPortal=function(_){return S(_)===t},Rn.isProfiler=function(_){return S(_)===i},Rn.isStrictMode=function(_){return S(_)===r},Rn.isSuspense=function(_){return S(_)===d},Rn.isSuspenseList=function(_){return S(_)===f},Rn.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===i||_===r||_===d||_===f||_===v||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===o||_.$$typeof===a||_.$$typeof===u||_.$$typeof===y||_.getModuleId!==void 0)},Rn.typeOf=S,Rn}var gS;function tT(){return gS||(gS=1,dg.exports=eT()),dg.exports}var hg=tT();function Fu(e,t,n){var r=h.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var nT=Number(h.version.split(".")[0]),vy=function(t,n){typeof t=="function"?t(n):St(t)==="object"&&t&&"current"in t&&(t.current=n)},gi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(o){n.forEach(function(a){vy(a,o)})}},ts=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fu(function(){return gi.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,l){return a!==o[l]})})},ia=function(t){var n,r;if(!t)return!1;if(yy(t)&&nT>=19)return!0;var i=hg.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==hg.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==hg.ForwardRef)};function yy(e){return h.isValidElement(e)&&!k2(e)}var rT=function(t){return yy(t)&&ia(t)},Ha=function(t){if(t&&yy(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},bv=h.createContext(null);function iT(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),i=h.useRef([]),o=h.useContext(bv),a=h.useCallback(function(l,u,d){r.current+=1;var f=r.current;i.current.push({size:l,element:u,data:d}),Promise.resolve().then(function(){f===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(l,u,d)},[n,o]);return h.createElement(bv.Provider,{value:a},t)}var T2=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!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),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,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 i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},t})()})(),_v=typeof window<"u"&&typeof document<"u"&&window.document===document,ef=(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")()})(),oT=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ef):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),sT=2;function aT(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function a(){oT(o)}function l(){var u=Date.now();if(n){if(u-i<sT)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=u}return l}var lT=20,cT=["top","right","bottom","left","width","height","size","weight"],uT=typeof MutationObserver<"u",dT=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=aT(this.refresh.bind(this),lT)}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(){!_v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),uT?(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(){!_v||!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,i=cT.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),P2=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e}),Yl=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ef}),O2=Hf(0,0,0,0);function tf(e){return parseFloat(e)||0}function vS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var o=e["border-"+i+"-width"];return r+tf(o)},0)}function hT(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=tf(a)}return n}function fT(e){var t=e.getBBox();return Hf(0,0,t.width,t.height)}function mT(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return O2;var r=Yl(e).getComputedStyle(e),i=hT(r),o=i.left+i.right,a=i.top+i.bottom,l=tf(r.width),u=tf(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+o)!==t&&(l-=vS(r,"left","right")+o),Math.round(u+a)!==n&&(u-=vS(r,"top","bottom")+a)),!gT(e)){var d=Math.round(l+o)-t,f=Math.round(u+a)-n;Math.abs(d)!==1&&(l-=d),Math.abs(f)!==1&&(u-=f)}return Hf(i.left,i.top,l,u)}var pT=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Yl(e).SVGGraphicsElement}:function(e){return e instanceof Yl(e).SVGElement&&typeof e.getBBox=="function"}})();function gT(e){return e===Yl(e).document.documentElement}function vT(e){return _v?pT(e)?fT(e):mT(e):O2}function yT(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return P2(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function Hf(e,t,n,r){return{x:e,y:t,width:n,height:r}}var bT=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Hf(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=vT(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})(),_T=(function(){function e(t,n){var r=yT(n);P2(this,{target:t,contentRect:r})}return e})(),ST=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new T2,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 Yl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new bT(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 Yl(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 _T(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})(),I2=typeof WeakMap<"u"?new WeakMap:new T2,N2=(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=dT.getInstance(),r=new ST(t,n,this);I2.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){N2.prototype[e]=function(){var t;return(t=I2.get(this))[e].apply(t,arguments)}});var CT=(function(){return typeof ef.ResizeObserver<"u"?ef.ResizeObserver:N2})(),Ks=new Map;function wT(e){e.forEach(function(t){var n,r=t.target;(n=Ks.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var M2=new CT(wT);function xT(e,t){Ks.has(e)||(Ks.set(e,new Set),M2.observe(e)),Ks.get(e).add(t)}function ET(e,t){Ks.has(e)&&(Ks.get(e).delete(t),Ks.get(e).size||(M2.unobserve(e),Ks.delete(e)))}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yS(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,R2(r.key),r)}}function br(e,t,n){return t&&yS(e.prototype,t),n&&yS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Su(e,t){return Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Su(e,t)}function ys(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&&Su(e,t)}function Cu(e){return Cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cu(e)}function by(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(by=function(){return!!e})()}function en(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kT(e,t){if(t&&(St(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return en(e)}function bs(e){var t=by();return function(){var n,r=Cu(e);if(t){var i=Cu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kT(this,n)}}var $T=(function(e){ys(n,e);var t=bs(n);function n(){return yr(this,n),t.apply(this,arguments)}return br(n,[{key:"render",value:function(){return this.props.children}}]),n})(h.Component);function RT(e,t){var n=e.children,r=e.disabled,i=h.useRef(null),o=h.useRef(null),a=h.useContext(bv),l=typeof n=="function",u=l?n(i):n,d=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&h.isValidElement(u)&&ia(u),m=f?Ha(u):null,g=ts(m,i),v=function(){var C;return Nh(i.current)||(i.current&&St(i.current)==="object"?Nh((C=i.current)===null||C===void 0?void 0:C.nativeElement):null)||Nh(o.current)};h.useImperativeHandle(t,function(){return v()});var y=h.useRef(e);y.current=e;var S=h.useCallback(function(_){var C=y.current,w=C.onResize,k=C.data,$=_.getBoundingClientRect(),T=$.width,R=$.height,O=_.offsetWidth,N=_.offsetHeight,I=Math.floor(T),j=Math.floor(R);if(d.current.width!==I||d.current.height!==j||d.current.offsetWidth!==O||d.current.offsetHeight!==N){var L={width:I,height:j,offsetWidth:O,offsetHeight:N};d.current=L;var M=O===Math.round(T)?T:O,B=N===Math.round(R)?R:N,z=Z(Z({},L),{},{offsetWidth:M,offsetHeight:B});a==null||a(z,_,k),w&&Promise.resolve().then(function(){w(z,_)})}},[]);return h.useEffect(function(){var _=v();return _&&!r&&xT(_,S),function(){return ET(_,S)}},[i.current,r]),h.createElement($T,{ref:o},f?h.cloneElement(u,{ref:g}):u)}var TT=h.forwardRef(RT),PT="rc-observer-key";function OT(e,t){var n=e.children,r=typeof n=="function"?[n]:pi(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(PT,"-").concat(o);return h.createElement(TT,$e({},e,{key:a,ref:o===0?t:void 0}),i)})}var ho=h.forwardRef(OT);ho.Collection=iT;function Sv(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 IT(e){if(Array.isArray(e))return Sv(e)}function j2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _y(e,t){if(e){if(typeof e=="string")return Sv(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)?Sv(e,t):void 0}}function NT(){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 Ae(e){return IT(e)||j2(e)||_y(e)||NT()}var z2=function(t){return+setTimeout(t,16)},B2=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(z2=function(t){return window.requestAnimationFrame(t)},B2=function(t){return window.cancelAnimationFrame(t)});var bS=0,Sy=new Map;function L2(e){Sy.delete(e)}var kn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;bS+=1;var r=bS;function i(o){if(o===0)L2(r),t();else{var a=z2(function(){i(o-1)});Sy.set(r,a)}}return i(n),r};kn.cancel=function(e){var t=Sy.get(e);return L2(e),B2(t)};function A2(e){if(Array.isArray(e))return e}function MT(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],u=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){d=!0,i=f}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function D2(){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 le(e,t){return A2(e)||MT(e,t)||_y(e,t)||D2()}function wu(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 ai(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cv(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 _S="data-rc-order",SS="data-rc-priority",jT="rc-util-key",wv=new Map;function H2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):jT}function Ff(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function zT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cy(e){return Array.from((wv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function F2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ai())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=zT(r),l=a==="prependQueue",u=document.createElement("style");u.setAttribute(_S,a),l&&o&&u.setAttribute(SS,"".concat(o)),n!=null&&n.nonce&&(u.nonce=n==null?void 0:n.nonce),u.innerHTML=e;var d=Ff(t),f=d.firstChild;if(r){if(l){var m=(t.styles||Cy(d)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(_S)))return!1;var v=Number(g.getAttribute(SS)||0);return o>=v});if(m.length)return d.insertBefore(u,m[m.length-1].nextSibling),u}d.insertBefore(u,f)}else d.appendChild(u);return u}function W2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ff(t);return(t.styles||Cy(n)).find(function(r){return r.getAttribute(H2(t))===e})}function xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=W2(e,t);if(n){var r=Ff(t);r.removeChild(n)}}function BT(e,t){var n=wv.get(e);if(!n||!Cv(document,n)){var r=F2("",t),i=r.parentNode;wv.set(e,i),e.removeChild(r)}}function vs(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ff(n),i=Cy(r),o=Z(Z({},n),{},{styles:i});BT(r,o);var a=W2(t,o);if(a){var l,u;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((u=o.csp)===null||u===void 0?void 0:u.nonce)){var d;a.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=F2(e,o);return f.setAttribute(H2(o),t),f}function LT(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 Bt(e,t){if(e==null)return{};var n,r,i=LT(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Eu(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=r.has(o);if(Ar(!u,"Warning: There may be circular references"),u)return!1;if(o===a)return!0;if(n&&l>1)return!1;r.add(o);var d=l+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f<o.length;f++)if(!i(o[f],a[f],d))return!1;return!0}if(o&&a&&St(o)==="object"&&St(a)==="object"){var m=Object.keys(o);return m.length!==Object.keys(a).length?!1:m.every(function(g){return i(o[g],a[g],d)})}return!1}return i(e,t)}var AT="%";function xv(e){return e.join(AT)}var DT=(function(){function e(t){yr(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),Y(this,"extracted",new Set),this.instanceId=t}return br(e,[{key:"get",value:function(n){return this.opGet(xv(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(xv(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),e})(),Jl="data-token-hash",Oo="data-css-hash",Gs="__cssinjs_instance__";function HT(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Oo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[Gs]=i[Gs]||e,i[Gs]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Oo,"]"))).forEach(function(i){var o=i.getAttribute(Oo);if(r[o]){if(i[Gs]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new DT(e)}var Wu=h.createContext({hashPriority:"low",cache:HT(),defaultCache:!0});function FT(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 wy=(function(){function e(){yr(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return br(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var u;a=(u=a)===null||u===void 0||(u=u.map)===null||u===void 0?void 0:u.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.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 i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,f){var m=le(d,2),g=m[1];return i.internalGet(f)[1]<g?[f,i.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=le(o,1),l=a[0];this.delete(l)}this.keys.push(n)}var u=this.cache;n.forEach(function(d,f){if(f===n.length-1)u.set(d,{value:[r,i.cacheCallTimes++]});else{var m=u.get(d);m?m.map||(m.map=new Map):u.set(d,{map:new Map}),u=u.get(d).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!FT(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();Y(wy,"MAX_CACHE_SIZE",20);Y(wy,"MAX_CACHE_OFFSET",5);var CS=0,V2=(function(){function e(t){yr(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=CS,t.length===0&&(t.length>0,void 0),CS+=1}return br(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e})(),fg=new wy;function Ev(e){var t=Array.isArray(e)?e:[e];return fg.has(t)||fg.set(t,new V2(t)),fg.get(t)}var WT=new WeakMap,mg={};function VT(e,t){for(var n=WT,r=0;r<t.length;r+=1){var i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(mg)||n.set(mg,e()),n.get(mg)}var wS=new WeakMap;function mu(e){var t=wS.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof V2?t+=r.id:r&&St(r)==="object"?t+=mu(r):t+=r}),t=wu(t),wS.set(e,t)),t}function xS(e,t){return wu("".concat(t,"_").concat(mu(e)))}var kv=ai();function re(e){return typeof e=="number"?"".concat(e,"px"):e}function nf(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=Z(Z({},r),{},Y(Y({},Jl,t),Oo,n)),a=Object.keys(o).map(function(l){var u=o[l];return u?"".concat(l,'="').concat(u,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Mh=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()},UT=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(i){var o=le(i,2),a=o[0],l=o[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},U2=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var l,u,d=le(a,2),f=d[0],m=d[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[f])o[f]=m;else if((typeof m=="string"||typeof m=="number")&&!(r!=null&&(u=r.ignore)!==null&&u!==void 0&&u[f])){var g,v=Mh(f,r==null?void 0:r.prefix);i[v]=typeof m=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[f])?"".concat(m,"px"):String(m),o[f]="var(".concat(v,")")}}),[o,UT(i,n,{scope:r==null?void 0:r.scope})]},ES=ai()?h.useLayoutEffect:h.useEffect,fn=function(t,n){var r=h.useRef(!0);ES(function(){return t(r.current)},n),ES(function(){return r.current=!1,function(){r.current=!0}},[])},$v=function(t,n){fn(function(r){if(!r)return t()},n)},qT=Z({},Df),kS=qT.useInsertionEffect,KT=function(t,n,r){h.useMemo(t,r),fn(function(){return n(!0)},r)},GT=kS?function(e,t,n){return kS(function(){return e(),t()},n)}:KT,XT=Z({},Df),YT=XT.useInsertionEffect,JT=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},QT=function(){return function(t){t()}},ZT=typeof YT<"u"?JT:QT;function xy(e,t,n,r,i){var o=h.useContext(Wu),a=o.cache,l=[e].concat(Ae(t)),u=xv(l),d=ZT([u]),f=function(y){a.opUpdate(u,function(S){var _=S||[void 0,void 0],C=le(_,2),w=C[0],k=w===void 0?0:w,$=C[1],T=$,R=T||n(),O=[k,R];return y?y(O):O})};h.useMemo(function(){f()},[u]);var m=a.opGet(u),g=m[1];return GT(function(){i==null||i(g)},function(v){return f(function(y){var S=le(y,2),_=S[0],C=S[1];return v&&_===0&&(i==null||i(g)),[_+1,C]}),function(){a.opUpdate(u,function(y){var S=y||[],_=le(S,2),C=_[0],w=C===void 0?0:C,k=_[1],$=w-1;return $===0?(d(function(){(v||!a.opGet(u))&&(r==null||r(k,!1))}),null):[w-1,k]})}},[u]),g}var eP={},tP="css",Ca=new Map;function nP(e){Ca.set(e,(Ca.get(e)||0)+1)}function rP(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Jl,'="').concat(e,'"]'));n.forEach(function(r){if(r[Gs]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var iP=0;function oP(e,t){Ca.set(e,(Ca.get(e)||0)-1);var n=new Set;Ca.forEach(function(r,i){r<=0&&n.add(i)}),Ca.size-n.size>iP&&n.forEach(function(r){rP(r,t),Ca.delete(r)})}var sP=function(t,n,r,i){var o=r.getDerivativeToken(t),a=Z(Z({},o),n);return i&&(a=i(a)),a},q2="token";function aP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(Wu),i=r.cache.instanceId,o=r.container,a=n.salt,l=a===void 0?"":a,u=n.override,d=u===void 0?eP:u,f=n.formatToken,m=n.getComputedToken,g=n.cssVar,v=VT(function(){return Object.assign.apply(Object,[{}].concat(Ae(t)))},t),y=mu(v),S=mu(d),_=g?mu(g):"",C=xy(q2,[l,e.id,y,S,_],function(){var w,k=m?m(v,d,e):sP(v,d,e,f),$=Z({},k),T="";if(g){var R=U2(k,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),O=le(R,2);k=O[0],T=O[1]}var N=xS(k,l);k._tokenKey=N,$._tokenKey=xS($,l);var I=(w=g==null?void 0:g.key)!==null&&w!==void 0?w:N;k._themeKey=I,nP(I);var j="".concat(tP,"-").concat(wu(N));return k._hashId=j,[k,j,$,T,(g==null?void 0:g.key)||""]},function(w){oP(w[0]._themeKey,i)},function(w){var k=le(w,4),$=k[0],T=k[3];if(g&&T){var R=vs(T,wu("css-variables-".concat($._themeKey)),{mark:Oo,prepend:"queue",attachTo:o,priority:-999});R[Gs]=i,R.setAttribute(Jl,$._themeKey)}});return C}var lP=function(t,n,r){var i=le(t,5),o=i[2],a=i[3],l=i[4],u=r||{},d=u.plain;if(!a)return null;var f=o._tokenKey,m=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},v=nf(a,l,f,g,d);return[m,f,v]},cP={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},K2="comm",G2="rule",X2="decl",uP="@import",dP="@namespace",hP="@keyframes",fP="@layer",Y2=Math.abs,Ey=String.fromCharCode;function J2(e){return e.trim()}function jh(e,t,n){return e.replace(t,n)}function mP(e,t,n){return e.indexOf(t,n)}function Ul(e,t){return e.charCodeAt(t)|0}function Ql(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function pP(e){return e.length}function lh(e,t){return t.push(e),e}var Wf=1,Zl=1,Q2=0,mo=0,gr=0,oc="";function ky(e,t,n,r,i,o,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Wf,column:Zl,length:a,return:"",siblings:l}}function gP(){return gr}function vP(){return gr=mo>0?Ul(oc,--mo):0,Zl--,gr===10&&(Zl=1,Wf--),gr}function Io(){return gr=mo<Q2?Ul(oc,mo++):0,Zl++,gr===10&&(Zl=1,Wf++),gr}function Xs(){return Ul(oc,mo)}function zh(){return mo}function Vf(e,t){return Ql(oc,e,t)}function ku(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 yP(e){return Wf=Zl=1,Q2=Vo(oc=e),mo=0,[]}function bP(e){return oc="",e}function pg(e){return J2(Vf(mo-1,Rv(e===91?e+2:e===40?e+1:e)))}function _P(e){for(;(gr=Xs())&&gr<33;)Io();return ku(e)>2||ku(gr)>3?"":" "}function SP(e,t){for(;--t&&Io()&&!(gr<48||gr>102||gr>57&&gr<65||gr>70&&gr<97););return Vf(e,zh()+(t<6&&Xs()==32&&Io()==32))}function Rv(e){for(;Io();)switch(gr){case e:return mo;case 34:case 39:e!==34&&e!==39&&Rv(gr);break;case 40:e===41&&Rv(e);break;case 92:Io();break}return mo}function CP(e,t){for(;Io()&&e+gr!==57;)if(e+gr===84&&Xs()===47)break;return"/*"+Vf(t,mo-1)+"*"+Ey(e===47?e:Io())}function wP(e){for(;!ku(Xs());)Io();return Vf(e,mo)}function xP(e){return bP(Bh("",null,null,null,[""],e=yP(e),0,[0],e))}function Bh(e,t,n,r,i,o,a,l,u){for(var d=0,f=0,m=a,g=0,v=0,y=0,S=1,_=1,C=1,w=0,k="",$=i,T=o,R=r,O=k;_;)switch(y=w,w=Io()){case 40:if(y!=108&&Ul(O,m-1)==58){mP(O+=jh(pg(w),"&","&\f"),"&\f",Y2(d?l[d-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:O+=pg(w);break;case 9:case 10:case 13:case 32:O+=_P(y);break;case 92:O+=SP(zh()-1,7);continue;case 47:switch(Xs()){case 42:case 47:lh(EP(CP(Io(),zh()),t,n,u),u),(ku(y||1)==5||ku(Xs()||1)==5)&&Vo(O)&&Ql(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*S:l[d++]=Vo(O)*C;case 125*S:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+f:C==-1&&(O=jh(O,/\f/g,"")),v>0&&(Vo(O)-m||S===0&&y===47)&&lh(v>32?RS(O+";",r,n,m-1,u):RS(jh(O," ","")+";",r,n,m-2,u),u);break;case 59:O+=";";default:if(lh(R=$S(O,t,n,d,f,i,l,k,$=[],T=[],m,o),o),w===123)if(f===0)Bh(O,t,R,R,$,o,m,l,T);else{switch(g){case 99:if(Ul(O,3)===110)break;case 108:if(Ul(O,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Bh(e,R,R,r&&lh($S(e,R,R,0,0,i,l,k,i,$=[],m,T),T),i,T,m,l,r?$:T):Bh(O,R,R,R,[""],T,0,l,T)}}d=f=v=0,S=C=1,k=O="",m=a;break;case 58:m=1+Vo(O),v=y;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&vP()==125)continue}switch(O+=Ey(w),w*S){case 38:C=f>0?1:(O+="\f",-1);break;case 44:l[d++]=(Vo(O)-1)*C,C=1;break;case 64:Xs()===45&&(O+=pg(Io())),g=Xs(),f=m=Vo(k=O+=wP(zh())),w++;break;case 45:y===45&&Vo(O)==2&&(S=0)}}return o}function $S(e,t,n,r,i,o,a,l,u,d,f,m){for(var g=i-1,v=i===0?o:[""],y=pP(v),S=0,_=0,C=0;S<r;++S)for(var w=0,k=Ql(e,g+1,g=Y2(_=a[S])),$=e;w<y;++w)($=J2(_>0?v[w]+" "+k:jh(k,/&\f/g,v[w])))&&(u[C++]=$);return ky(e,t,n,i===0?G2:l,u,d,f,m)}function EP(e,t,n,r){return ky(e,t,n,K2,Ey(gP()),Ql(e,2,-2),0,r)}function RS(e,t,n,r,i){return ky(e,t,n,X2,Ql(e,0,r),Ql(e,r+1,-1),r,i)}function Tv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function kP(e,t,n,r){switch(e.type){case fP:if(e.children.length)break;case uP:case dP:case X2:return e.return=e.return||e.value;case K2:return"";case hP:return e.return=e.value+"{"+Tv(e.children,r)+"}";case G2:if(!Vo(e.value=e.props.join(",")))return""}return Vo(n=Tv(e.children,r))?e.return=e.value+"{"+n+"}":""}var TS="data-ant-cssinjs-cache-path",Z2="_FILE_STYLE__",Ra,eE=!0;function $P(){if(!Ra&&(Ra={},ai())){var e=document.createElement("div");e.className=TS,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),a=le(o,2),l=a[0],u=a[1];Ra[l]=u});var n=document.querySelector("style[".concat(TS,"]"));if(n){var r;eE=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function RP(e){return $P(),!!Ra[e]}function TP(e){var t=Ra[e],n=null;if(t&&ai())if(eE)n=Z2;else{var r=document.querySelector("style[".concat(Oo,'="').concat(Ra[e],'"]'));r?n=r.innerHTML:delete Ra[e]}return[n,t]}var PP="_skip_check_",tE="_multi_value_";function Lh(e){var t=Tv(xP(e),kP);return t.replace(/\{%%%\:[^;];}/g,";")}function OP(e){return St(e)==="object"&&e&&(PP in e||tE in e)}function PS(e,t,n){if(!t)return e;var r=".".concat(t),i=n==="low"?":where(".concat(r,")"):r,o=e.split(",").map(function(a){var l,u=a.trim().split(/\s+/),d=u[0]||"",f=((l=d.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return d="".concat(f).concat(i).concat(d.slice(f.length)),[d].concat(Ae(u.slice(1))).join(" ")});return o.join(",")}var IP=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:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,l=n.hashId,u=n.layer;n.path;var d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f;n.linters;var g="",v={};function y(C){var w=C.getName(l);if(!v[w]){var k=e(C.style,n,{root:!1,parentSelectors:a}),$=le(k,1),T=$[0];v[w]="@keyframes ".concat(C.getName(l)).concat(T)}}function S(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(k){Array.isArray(k)?S(k,w):k&&w.push(k)}),w}var _=S(Array.isArray(t)?t:[t]);return _.forEach(function(C){var w=typeof C=="string"&&!i?{}:C;if(typeof w=="string")g+="".concat(w,`
|
|
55
|
-
`);else if(w._keyframe)y(w);else{var k=m.reduce(function($,T){var R;return(T==null||(R=T.visit)===null||R===void 0?void 0:R.call(T,$))||$},w);Object.keys(k).forEach(function($){var T=k[$];if(St(T)==="object"&&T&&($!=="animationName"||!T._keyframe)&&!OP(T)){var R=!1,O=$.trim(),N=!1;(i||o)&&l?O.startsWith("@")?R=!0:O==="&"?O=PS("",l,d):O=PS($,l,d):i&&!l&&(O==="&"||O==="")&&(O="",N=!0);var I=e(T,n,{root:N,injectHash:R,parentSelectors:[].concat(Ae(a),[O])}),j=le(I,2),L=j[0],M=j[1];v=Z(Z({},v),M),g+="".concat(O).concat(L)}else{let D=function(F,V){var A=F.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),X=V;!cP[F]&&typeof X=="number"&&X!==0&&(X="".concat(X,"px")),F==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(y(V),X=V.getName(l)),g+="".concat(A,":").concat(X,";")};var B,z=(B=T==null?void 0:T.value)!==null&&B!==void 0?B:T;St(T)==="object"&&T!==null&&T!==void 0&&T[tE]&&Array.isArray(z)?z.forEach(function(F){D($,F)}):D($,z)}})}}),i?u&&(g&&(g="@layer ".concat(u.name," {").concat(g,"}")),u.dependencies&&(v["@layer ".concat(u.name)]=u.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(u.name,";")}).join(`
|
|
56
|
-
`))):g="{".concat(g,"}"),[g,v]};function nE(e,t){return wu("".concat(e.join("%")).concat(t))}function NP(){return null}var rE="style";function Pv(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,l=e.clientOnly,u=e.order,d=u===void 0?0:u,f=h.useContext(Wu),m=f.autoClear;f.mock;var g=f.defaultCache,v=f.hashPriority,y=f.container,S=f.ssrInline,_=f.transformers,C=f.linters,w=f.cache,k=f.layer,$=n._tokenKey,T=[$];k&&T.push("layer"),T.push.apply(T,Ae(r));var R=kv,O=xy(rE,T,function(){var M=T.join("|");if(RP(M)){var B=TP(M),z=le(B,2),D=z[0],F=z[1];if(D)return[D,$,F,{},l,d]}var V=t(),A=IP(V,{hashId:i,hashPriority:v,layer:k?o:void 0,path:r.join("-"),transformers:_,linters:C}),X=le(A,2),q=X[0],H=X[1],U=Lh(q),K=nE(T,U);return[U,$,K,H,l,d]},function(M,B){var z=le(M,3),D=z[2];(B||m)&&kv&&xu(D,{mark:Oo,attachTo:y})},function(M){var B=le(M,4),z=B[0];B[1];var D=B[2],F=B[3];if(R&&z!==Z2){var V={mark:Oo,prepend:k?!1:"queue",attachTo:y,priority:d},A=typeof a=="function"?a():a;A&&(V.csp={nonce:A});var X=[],q=[];Object.keys(F).forEach(function(U){U.startsWith("@layer")?X.push(U):q.push(U)}),X.forEach(function(U){vs(Lh(F[U]),"_layer-".concat(U),Z(Z({},V),{},{prepend:!0}))});var H=vs(z,D,V);H[Gs]=w.instanceId,H.setAttribute(Jl,$),q.forEach(function(U){vs(Lh(F[U]),"_effect-".concat(U),V)})}}),N=le(O,3),I=N[0],j=N[1],L=N[2];return function(M){var B;return!S||R||!g?B=h.createElement(NP,null):B=h.createElement("style",$e({},Y(Y({},Jl,j),Oo,L),{dangerouslySetInnerHTML:{__html:I}})),h.createElement(h.Fragment,null,B,M)}}var MP=function(t,n,r){var i=le(t,6),o=i[0],a=i[1],l=i[2],u=i[3],d=i[4],f=i[5],m=r||{},g=m.plain;if(d)return null;var v=o,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return v=nf(o,a,l,y,g),u&&Object.keys(u).forEach(function(S){if(!n[S]){n[S]=!0;var _=Lh(u[S]),C=nf(_,a,"_effect-".concat(S),y,g);S.startsWith("@layer")?v=C+v:v+=C}}),[f,l,v]},iE="cssVar",jP=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,l=t.token,u=t.scope,d=u===void 0?"":u,f=h.useContext(Wu),m=f.cache.instanceId,g=f.container,v=l._tokenKey,y=[].concat(Ae(t.path),[r,d,v]),S=xy(iE,y,function(){var _=n(),C=U2(_,r,{prefix:i,unitless:o,ignore:a,scope:d}),w=le(C,2),k=w[0],$=w[1],T=nE(y,$);return[k,$,T,r]},function(_){var C=le(_,3),w=C[2];kv&&xu(w,{mark:Oo,attachTo:g})},function(_){var C=le(_,3),w=C[1],k=C[2];if(w){var $=vs(w,k,{mark:Oo,prepend:"queue",attachTo:g,priority:-999});$[Gs]=m,$.setAttribute(Jl,r)}});return S},zP=function(t,n,r){var i=le(t,4),o=i[1],a=i[2],l=i[3],u=r||{},d=u.plain;if(!o)return null;var f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=nf(o,l,a,m,d);return[f,a,g]};Y(Y(Y({},rE,MP),q2,lP),iE,zP);var Yt=(function(){function e(t,n){yr(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=n}return br(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 _l(e){return e.notSplit=!0,e}_l(["borderTop","borderBottom"]),_l(["borderTop"]),_l(["borderBottom"]),_l(["borderLeft","borderRight"]),_l(["borderLeft"]),_l(["borderRight"]);var $y=h.createContext({});function oE(e){return A2(e)||j2(e)||_y(e)||D2()}function Uo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function sE(e,t,n,r){if(!t.length)return n;var i=oE(t),o=i[0],a=i.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=Ae(e):l=Z({},e),r&&n===void 0&&a.length===1?delete l[o][a[0]]:l[o]=sE(l[o],a,n,r),l}function ko(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Uo(e,t.slice(0,-1))?e:sE(e,t,n,r)}function BP(e){return St(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function OS(e){return Array.isArray(e)?[]:{}}var LP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ll(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=OS(t[0]);return t.forEach(function(i){function o(a,l){var u=new Set(l),d=Uo(i,a),f=Array.isArray(d);if(f||BP(d)){if(!u.has(d)){u.add(d);var m=Uo(r,a);f?r=ko(r,a,[]):(!m||St(m)!=="object")&&(r=ko(r,a,OS(d))),LP(d).forEach(function(g){o([].concat(Ae(a),[g]),u)})}}else r=ko(r,a,d)}o([])}),r}function AP(){}const DP=h.createContext({}),Uf=()=>{const e=()=>{};return e.deprecated=AP,e},HP=h.createContext(void 0);var aE={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"},FP={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},WP=Z(Z({},FP),{},{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 lE={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},IS={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"]},WP),timePickerLocale:Object.assign({},lE)},Di="${label} is not a valid ${type}",ea={locale:"en",Pagination:aE,DatePicker:IS,TimePicker:lE,Calendar:IS,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:Di,method:Di,array:Di,object:Di,number:Di,date:Di,boolean:Di,integer:Di,float:Di,regexp:Di,email:Di,url:Di,hex:Di},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 Ah=Object.assign({},ea.Modal),Dh=[];const NS=()=>Dh.reduce((e,t)=>Object.assign(Object.assign({},e),t),ea.Modal);function VP(e){if(e){const t=Object.assign({},e);return Dh.push(t),Ah=NS(),()=>{Dh=Dh.filter(n=>n!==t),Ah=NS()}}Ah=Object.assign({},ea.Modal)}function cE(){return Ah}const Ry=h.createContext(void 0),_s=(e,t)=>{const n=h.useContext(Ry),r=h.useMemo(()=>{var o;const a=t||ea[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),i=h.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ea.locale:o},[n]);return[r,i]},UP="internalMark",qP=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>VP(t==null?void 0:t.Modal),[t]);const i=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Ry.Provider,{value:i},n)},Ty={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"},$u=Object.assign(Object.assign({},Ty),{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}),Mr=Math.round;function gg(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const MS=(e,t,n)=>n===0?e:e/100;function Fc(e,t){const n=t||255;return e>n?n:e<0?0:e}class _n{constructor(t){Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var r=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof _n)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=Fc(t.r),this.g=Fc(t.g),this.b=Fc(t.b),this.a=typeof t.a=="number"?Fc(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(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Mr(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 i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=l=>(r[l]-this[l])*i+this[l],a={r:Mr(o("r")),g:Mr(o("g")),b:Mr(o("b")),a:Mr(o("a")*100)/100};return this._c(a)}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),i=o=>Mr((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("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 i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Mr(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Mr(this.getSaturation()*100),r=Mr(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 i=this.clone();return i[t]=Fc(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],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:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const g=Mr(r*255);this.r=g,this.g=g,this.b=g}let o=0,a=0,l=0;const u=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(u%2-1));u>=0&&u<1?(o=d,a=f):u>=1&&u<2?(o=f,a=d):u>=2&&u<3?(a=d,l=f):u>=3&&u<4?(a=f,l=d):u>=4&&u<5?(o=f,l=d):u>=5&&u<6&&(o=d,l=f);const m=r-d/2;this.r=Mr((o+m)*255),this.g=Mr((a+m)*255),this.b=Mr((l+m)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Mr(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,l=Math.floor(a),u=a-l,d=Mr(r*(1-n)*255),f=Mr(r*(1-n*u)*255),m=Mr(r*(1-n*(1-u))*255);switch(l){case 0:this.g=m,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=f;break;case 4:this.r=m,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=gg(t,MS);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=gg(t,MS);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=gg(t,(r,i)=>i.includes("%")?Mr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var ch=2,jS=.16,KP=.05,GP=.05,XP=.15,uE=5,dE=4,YP=[{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 zS(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ch*t:Math.round(e.h)+ch*t:r=n?Math.round(e.h)+ch*t:Math.round(e.h)-ch*t,r<0?r+=360:r>=360&&(r-=360),r}function BS(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-jS*t:t===dE?r=e.s+jS:r=e.s+KP*t,r>1&&(r=1),n&&t===uE&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function LS(e,t,n){var r;return n?r=e.v+GP*t:r=e.v-XP*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Oa(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new _n(e),i=r.toHsv(),o=uE;o>0;o-=1){var a=new _n({h:zS(i,o,!0),s:BS(i,o,!0),v:LS(i,o,!0)});n.push(a)}n.push(r);for(var l=1;l<=dE;l+=1){var u=new _n({h:zS(i,l),s:BS(i,l),v:LS(i,l)});n.push(u)}return t.theme==="dark"?YP.map(function(d){var f=d.index,m=d.amount;return new _n(t.backgroundColor||"#141414").mix(n[f],m).toHexString()}):n.map(function(d){return d.toHexString()})}var vg={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"},Ov=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ov.primary=Ov[5];var Iv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Iv.primary=Iv[5];var Nv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Nv.primary=Nv[5];var rf=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];rf.primary=rf[5];var Mv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Mv.primary=Mv[5];var jv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];jv.primary=jv[5];var zv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];zv.primary=zv[5];var Bv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Bv.primary=Bv[5];var of=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];of.primary=of[5];var Lv=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Lv.primary=Lv[5];var Av=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Av.primary=Av[5];var Dv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Dv.primary=Dv[5];var Hv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Hv.primary=Hv[5];var yg={red:Ov,volcano:Iv,orange:Nv,gold:rf,yellow:Mv,lime:jv,green:zv,cyan:Bv,blue:of,geekblue:Lv,purple:Av,magenta:Dv,grey:Hv};function hE(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:l,colorBgBase:u,colorTextBase:d}=e,f=t(l),m=t(r),g=t(i),v=t(o),y=t(a),S=n(u,d),_=e.colorLink||e.colorInfo,C=t(_),w=new _n(v[1]).mix(new _n(v[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:w,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new _n("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const JP=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?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?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function QP(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=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:i+1},JP(r))}const ZP=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Hh(e){return(e+8)/e}function eO(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Hh(n)}))}const tO=e=>{const t=eO(e),n=t.map(f=>f.size),r=t.map(f=>f.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],u=r[0],d=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:u,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(u*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function nO(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 ro=(e,t)=>new _n(e).setA(t).toRgbString(),Wc=(e,t)=>new _n(e).darken(t).toHexString(),rO=e=>{const t=Oa(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]}},iO=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ro(r,.88),colorTextSecondary:ro(r,.65),colorTextTertiary:ro(r,.45),colorTextQuaternary:ro(r,.25),colorFill:ro(r,.15),colorFillSecondary:ro(r,.06),colorFillTertiary:ro(r,.04),colorFillQuaternary:ro(r,.02),colorBgSolid:ro(r,1),colorBgSolidHover:ro(r,.75),colorBgSolidActive:ro(r,.95),colorBgLayout:Wc(n,4),colorBgContainer:Wc(n,0),colorBgElevated:Wc(n,0),colorBgSpotlight:ro(r,.85),colorBgBlur:"transparent",colorBorder:Wc(n,15),colorBorderSecondary:Wc(n,6)}};function fE(e){vg.pink=vg.magenta,yg.pink=yg.magenta;const t=Object.keys(Ty).map(n=>{const r=e[n]===vg[n]?yg[n]:Oa(e[n]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).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),hE(e,{generateColorPalettes:rO,generateNeutralColorPalettes:iO})),tO(e.fontSize)),nO(e)),ZP(e)),QP(e))}const mE=Ev(fE),sf={token:$u,override:{override:$u},hashed:!0},pE=Q.createContext(sf),Ru="ant",qf="anticon",oO=["outlined","borderless","filled","underlined"],sO=(e,t)=>t||(e?`${Ru}-${e}`:Ru),kt=h.createContext({getPrefixCls:sO,iconPrefixCls:qf}),{Consumer:zee}=kt,AS={};function Dr(e){const t=h.useContext(kt),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:AS,styles:AS},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}const aO=`-ant-${Date.now()}-${Math.random()}`;function lO(e,t){const n={},r=(a,l)=>{let u=a.clone();return u=(l==null?void 0:l(u))||u,u.toRgbString()},i=(a,l)=>{const u=new _n(a),d=Oa(u.toRgbString());n[`${l}-color`]=r(u),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=u.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new _n(t.primaryColor),l=Oa(a.toRgbString());l.forEach((d,f)=>{n[`primary-${f+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setA(d.a*.12));const u=new _n(l[0]);n["primary-color-active-deprecated-f-30"]=r(u,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(u,d=>d.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
|
59
|
-
:root {
|
|
60
|
-
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
61
|
-
`)}
|
|
62
|
-
}
|
|
63
|
-
`.trim()}function cO(e,t){const n=lO(e,t);ai()&&vs(n,`${aO}-dynamic-theme`)}const Xo=h.createContext(!1),gE=({children:e,disabled:t})=>{const n=h.useContext(Xo);return h.createElement(Xo.Provider,{value:t??n},e)},ec=h.createContext(void 0),uO=({children:e,size:t})=>{const n=h.useContext(ec);return h.createElement(ec.Provider,{value:t||n},e)};function dO(){const e=h.useContext(Xo),t=h.useContext(ec);return{componentDisabled:e,componentSize:t}}var vE=br(function e(){yr(this,e)}),yE="CALC_UNIT",hO=new RegExp(yE,"g");function bg(e){return typeof e=="number"?"".concat(e).concat(yE):e}var fO=(function(e){ys(n,e);var t=bs(n);function n(r,i){var o;yr(this,n),o=t.call(this),Y(en(o),"result",""),Y(en(o),"unitlessCssVar",void 0),Y(en(o),"lowPriority",void 0);var a=St(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=bg(r):a==="string"&&(o.result=r),o}return br(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(bg(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(bg(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},l=a.unit,u=!0;return typeof l=="boolean"?u=l:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(u=!1),this.result=this.result.replace(hO,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(vE),mO=(function(e){ys(n,e);var t=bs(n);function n(r){var i;return yr(this,n),i=t.call(this),Y(en(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return br(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n})(vE),pO=function(t,n){var r=t==="css"?fO:mO;return function(i){return new r(i,n)}},DS=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 Un(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function tc(e){var t=h.useRef(!1),n=h.useState(e),r=le(n,2),i=r[0],o=r[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,u){u&&t.current||o(l)}return[i,a]}function _g(e){return e!==void 0}function Xn(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,l=tc(function(){return _g(i)?i:_g(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),u=le(l,2),d=u[0],f=u[1],m=i!==void 0?i:d,g=a?a(m):m,v=Un(o),y=tc([m]),S=le(y,2),_=S[0],C=S[1];$v(function(){var k=_[0];d!==k&&v(d,k)},[_]),$v(function(){_g(i)||f(i)},[i]);var w=Un(function(k,$){f(k,$),C([m],$)});return[g,w]}function HS(e,t,n,r){var i=Z({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(l){var u=le(l,2),d=u[0],f=u[1];if(i!=null&&i[d]||i!=null&&i[f]){var m;(m=i[f])!==null&&m!==void 0||(i[f]=i==null?void 0:i[d])}})}var a=Z(Z({},n),i);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var bE=typeof CSSINJS_STATISTIC<"u",Fv=!0;function Jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!bE)return Object.assign.apply(Object,[{}].concat(t));Fv=!1;var r={};return t.forEach(function(i){if(St(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),Fv=!0,r}var FS={};function gO(){}var vO=function(t){var n,r=t,i=gO;return bE&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(Fv){var u;(u=n)===null||u===void 0||u.add(l)}return a[l]}}),i=function(a,l){var u;FS[a]={global:Array.from(n),component:Z(Z({},(u=FS[a])===null||u===void 0?void 0:u.component),l)}}),{token:r,keys:n,flush:i}};function WS(e,t,n){if(typeof n=="function"){var r;return n(Jt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function yO(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return re(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return re(o)}).join(","),")")}}}var bO=1e3*60*10,_O=(function(){function e(){yr(this,e),Y(this,"map",new Map),Y(this,"objectIDMap",new WeakMap),Y(this,"nextID",0),Y(this,"lastAccessBeat",new Map),Y(this,"accessBeat",0)}return br(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(o){return o&&St(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(St(o),"_").concat(o)});return i.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(i,o){r-i>bO&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),VS=new _O;function SO(e,t){return Q.useMemo(function(){var n=VS.get(t);if(n)return n;var r=e();return VS.set(t,r),r},t)}var CO=function(){return{}};function wO(e){var t=e.useCSP,n=t===void 0?CO:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function u(g,v,y,S){var _=Array.isArray(g)?g[0]:g;function C(N){return"".concat(String(_)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var w=(S==null?void 0:S.unitless)||{},k=typeof l=="function"?l(g):{},$=Z(Z({},k),{},Y({},C("zIndexPopup"),!0));Object.keys(w).forEach(function(N){$[C(N)]=w[N]});var T=Z(Z({},S),{},{unitless:$,prefixToken:C}),R=f(g,v,y,T),O=d(_,y,T);return function(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,j=R(N,I),L=le(j,2),M=L[1],B=O(I),z=le(B,2),D=z[0],F=z[1];return[D,M,F]}}function d(g,v,y){var S=y.unitless,_=y.injectStyle,C=_===void 0?!0:_,w=y.prefixToken,k=y.ignore,$=function(O){var N=O.rootCls,I=O.cssVar,j=I===void 0?{}:I,L=r(),M=L.realToken;return jP({path:[g],prefix:j.prefix,key:j.key,unitless:S,ignore:k,token:M,scope:N},function(){var B=WS(g,M,v),z=HS(g,M,B,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(B).forEach(function(D){z[w(D)]=z[D],delete z[D]}),z}),null},T=function(O){var N=r(),I=N.cssVar;return[function(j){return C&&I?Q.createElement(Q.Fragment,null,Q.createElement($,{rootCls:O,cssVar:I,component:g}),j):j},I==null?void 0:I.key]};return T}function f(g,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},_=Array.isArray(g)?g:[g,g],C=le(_,1),w=C[0],k=_.join("-"),$=e.layer||{name:"antd"};return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=r(),N=O.theme,I=O.realToken,j=O.hashId,L=O.token,M=O.cssVar,B=i(),z=B.rootPrefixCls,D=B.iconPrefixCls,F=n(),V=M?"css":"js",A=SO(function(){var G=new Set;return M&&Object.keys(S.unitless||{}).forEach(function(J){G.add(Mh(J,M.prefix)),G.add(Mh(J,DS(w,M.prefix)))}),pO(V,G)},[V,w,M==null?void 0:M.prefix]),X=yO(V),q=X.max,H=X.min,U={theme:N,token:L,hashId:j,nonce:function(){return F.nonce},clientOnly:S.clientOnly,layer:$,order:S.order||-999};typeof o=="function"&&Pv(Z(Z({},U),{},{clientOnly:!1,path:["Shared",z]}),function(){return o(L,{prefix:{rootPrefixCls:z,iconPrefixCls:D},csp:F})});var K=Pv(Z(Z({},U),{},{path:[k,T,D]}),function(){if(S.injectStyle===!1)return[];var G=vO(L),J=G.token,ee=G.flush,de=WS(w,I,y),oe=".".concat(T),ae=HS(w,I,de,{deprecatedTokens:S.deprecatedTokens});M&&de&&St(de)==="object"&&Object.keys(de).forEach(function(he){de[he]="var(".concat(Mh(he,DS(w,M.prefix)),")")});var _e=Jt(J,{componentCls:oe,prefixCls:T,iconCls:".".concat(D),antCls:".".concat(z),calc:A,max:q,min:H},M?de:ae),se=v(_e,{hashId:j,prefixCls:T,rootPrefixCls:z,iconPrefixCls:D});ee(w,ae);var ce=typeof a=="function"?a(_e,T,R,S.resetFont):null;return[S.resetStyle===!1?null:ce,se]});return[K,j]}}function m(g,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},_=f(g,v,y,Z({resetStyle:!1,order:-998},S)),C=function(k){var $=k.prefixCls,T=k.rootCls,R=T===void 0?$:T;return _($,R),null};return C}return{genStyleHooks:u,genSubStyleComponent:m,genComponentStyleHook:f}}const ta=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],xO="5.29.3";function Sg(e){return e>=0&&e<=255}function ru(e,t){const{r:n,g:r,b:i,a:o}=new _n(e).toRgb();if(o<1)return e;const{r:a,g:l,b:u}=new _n(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((n-a*(1-d))/d),m=Math.round((r-l*(1-d))/d),g=Math.round((i-u*(1-d))/d);if(Sg(f)&&Sg(m)&&Sg(g))return new _n({r:f,g:m,b:g,a:Math.round(d*100)/100}).toRgbString()}return new _n({r:n,g:r,b:i,a:1}).toRgbString()}var EO=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function _E(e){const{override:t}=e,n=EO(e,["override"]),r=Object.assign({},t);Object.keys($u).forEach(g=>{delete r[g]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,l=768,u=992,d=1200,f=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:ru(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:ru(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:ru(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:ru(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
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:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
76
|
-
0 1px 2px -2px ${new _n("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
77
|
-
0 3px 6px 0 ${new _n("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
78
|
-
0 5px 12px 4px ${new _n("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 US=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const SE={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},kO={motionBase:!0,motionUnit:!0},$O={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},CE=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=US(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=_E(a),o&&Object.entries(o).forEach(([l,u])=>{const{theme:d}=u,f=US(u,["theme"]);let m=f;d&&(m=CE(Object.assign(Object.assign({},a),f),{override:f},d)),a[l]=m}),a};function vi(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Q.useContext(pE),o=`${xO}-${t||""}`,a=n||mE,[l,u,d]=aP(a,[$u,e],{salt:o,override:r,getComputedToken:CE,formatToken:_E,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:SE,ignore:kO,preserve:$O}});return[a,d,t?u:"",l,i]}const Tu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},qn=(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}),sc=()=>({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"}}),af=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),RO=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"}}}),TO=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),a),{[i]:a})}},Ia=(e,t)=>({outline:`${re(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),po=(e,t)=>({"&:focus-visible":Ia(e,t)}),wE=e=>({[`.${e}`]:Object.assign(Object.assign({},sc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),xE=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"},po(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:vn,genComponentStyleHook:PO,genSubStyleComponent:Vu}=wO({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(kt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=vi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=h.useContext(kt);return e??{}},getResetStyles:(e,t)=>{var n;const r=RO(e);return[r,{"&":r},wE((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:qf)]},getCommonStyle:TO,getCompUnitless:()=>SE});function Kf(e,t){return ta.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:l}))},{})}const OO=(e,t)=>{const[n,r]=vi();return Pv({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>wE(e))},IO=Object.assign({},Df),{useId:qS}=IO,NO=()=>"",MO=typeof qS>"u"?NO:qS;function jO(e,t,n){var r;Uf();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},sf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:sf.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=MO();return Fu(()=>{var l,u;if(!e)return t;const d=Object.assign({},o.components);Object.keys(e.components||{}).forEach(g=>{d[g]=Object.assign(Object.assign({},d[g]),e.components[g])});const f=`css-var-${a.replace(/:/g,"")}`,m=((l=i.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((u=i.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:d,cssVar:m})},[i,o],(l,u)=>l.some((d,f)=>{const m=u[f];return!Eu(d,m,!0)}))}var zO=["children"],EE=h.createContext({});function BO(e){var t=e.children,n=Bt(e,zO);return h.createElement(EE.Provider,{value:n},t)}var LO=(function(e){ys(n,e);var t=bs(n);function n(){return yr(this,n),t.apply(this,arguments)}return br(n,[{key:"render",value:function(){return this.props.children}}]),n})(h.Component);function AO(e){var t=h.useReducer(function(l){return l+1},0),n=le(t,2),r=n[1],i=h.useRef(e),o=Un(function(){return i.current}),a=Un(function(l){i.current=typeof l=="function"?l(i.current):l,r()});return[o,a]}var Vs="none",uh="appear",dh="enter",hh="leave",KS="none",$o="prepare",Al="start",Dl="active",Py="end",kE="prepared";function GS(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 DO(e,t){var n={animationend:GS("Animation","AnimationEnd"),transitionend:GS("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var HO=DO(ai(),typeof window<"u"?window:{}),$E={};if(ai()){var FO=document.createElement("div");$E=FO.style}var fh={};function RE(e){if(fh[e])return fh[e];var t=HO[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in $E)return fh[e]=t[o],fh[e]}return""}var TE=RE("animationend"),PE=RE("transitionend"),OE=!!(TE&&PE),XS=TE||"animationend",YS=PE||"transitionend";function JS(e,t){if(!e)return null;if(St(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const WO=(function(e){var t=h.useRef();function n(i){i&&(i.removeEventListener(YS,e),i.removeEventListener(XS,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(YS,e),i.addEventListener(XS,e),t.current=i)}return h.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var IE=ai()?h.useLayoutEffect:h.useEffect;const VO=(function(){var e=h.useRef(null);function t(){kn.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=kn(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return h.useEffect(function(){return function(){t()}},[]),[n,t]});var UO=[$o,Al,Dl,Py],qO=[$o,kE],NE=!1,KO=!0;function ME(e){return e===Dl||e===Py}const GO=(function(e,t,n){var r=tc(KS),i=le(r,2),o=i[0],a=i[1],l=VO(),u=le(l,2),d=u[0],f=u[1];function m(){a($o,!0)}var g=t?qO:UO;return IE(function(){if(o!==KS&&o!==Py){var v=g.indexOf(o),y=g[v+1],S=n(o);S===NE?a(y,!0):y&&d(function(_){function C(){_.isCanceled()||a(y,!0)}S===!0?C():Promise.resolve(S).then(C)})}},[e,o]),h.useEffect(function(){return function(){f()}},[]),[m,o]});function XO(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,u=r.motionLeave,d=u===void 0?!0:u,f=r.motionDeadline,m=r.motionLeaveImmediately,g=r.onAppearPrepare,v=r.onEnterPrepare,y=r.onLeavePrepare,S=r.onAppearStart,_=r.onEnterStart,C=r.onLeaveStart,w=r.onAppearActive,k=r.onEnterActive,$=r.onLeaveActive,T=r.onAppearEnd,R=r.onEnterEnd,O=r.onLeaveEnd,N=r.onVisibleChanged,I=tc(),j=le(I,2),L=j[0],M=j[1],B=AO(Vs),z=le(B,2),D=z[0],F=z[1],V=tc(null),A=le(V,2),X=A[0],q=A[1],H=D(),U=h.useRef(!1),K=h.useRef(null);function G(){return n()}var J=h.useRef(!1);function ee(){F(Vs),q(null,!0)}var de=Un(function(Te){var Pe=D();if(Pe!==Vs){var ke=G();if(!(Te&&!Te.deadline&&Te.target!==ke)){var Ce=J.current,Ve;Pe===uh&&Ce?Ve=T==null?void 0:T(ke,Te):Pe===dh&&Ce?Ve=R==null?void 0:R(ke,Te):Pe===hh&&Ce&&(Ve=O==null?void 0:O(ke,Te)),Ce&&Ve!==!1&&ee()}}}),oe=WO(de),ae=le(oe,1),_e=ae[0],se=function(Pe){switch(Pe){case uh:return Y(Y(Y({},$o,g),Al,S),Dl,w);case dh:return Y(Y(Y({},$o,v),Al,_),Dl,k);case hh:return Y(Y(Y({},$o,y),Al,C),Dl,$);default:return{}}},ce=h.useMemo(function(){return se(H)},[H]),he=GO(H,!e,function(Te){if(Te===$o){var Pe=ce[$o];return Pe?Pe(G()):NE}if(fe in ce){var ke;q(((ke=ce[fe])===null||ke===void 0?void 0:ke.call(ce,G(),null))||null)}return fe===Dl&&H!==Vs&&(_e(G()),f>0&&(clearTimeout(K.current),K.current=setTimeout(function(){de({deadline:!0})},f))),fe===kE&&ee(),KO}),ve=le(he,2),me=ve[0],fe=ve[1],ye=ME(fe);J.current=ye;var xe=h.useRef(null);IE(function(){if(!(U.current&&xe.current===t)){M(t);var Te=U.current;U.current=!0;var Pe;!Te&&t&&l&&(Pe=uh),Te&&t&&o&&(Pe=dh),(Te&&!t&&d||!Te&&m&&!t&&d)&&(Pe=hh);var ke=se(Pe);Pe&&(e||ke[$o])?(F(Pe),me()):F(Vs),xe.current=t}},[t]),h.useEffect(function(){(H===uh&&!l||H===dh&&!o||H===hh&&!d)&&F(Vs)},[l,o,d]),h.useEffect(function(){return function(){U.current=!1,clearTimeout(K.current)}},[]);var Ee=h.useRef(!1);h.useEffect(function(){L&&(Ee.current=!0),L!==void 0&&H===Vs&&((Ee.current||L)&&(N==null||N(L)),Ee.current=!0)},[L,H]);var Ne=X;return ce[$o]&&fe===Al&&(Ne=Z({transition:"none"},Ne)),[H,fe,Ne,L??t]}function YO(e){var t=e;St(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=h.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,u=i.removeOnLeave,d=u===void 0?!0:u,f=i.forceRender,m=i.children,g=i.motionName,v=i.leavedClassName,y=i.eventProps,S=h.useContext(EE),_=S.motion,C=n(i,_),w=h.useRef(),k=h.useRef();function $(){try{return w.current instanceof HTMLElement?w.current:Nh(k.current)}catch{return null}}var T=XO(C,l,$,i),R=le(T,4),O=R[0],N=R[1],I=R[2],j=R[3],L=h.useRef(j);j&&(L.current=!0);var M=h.useCallback(function(A){w.current=A,vy(o,A)},[o]),B,z=Z(Z({},y),{},{visible:l});if(!m)B=null;else if(O===Vs)j?B=m(Z({},z),M):!d&&L.current&&v?B=m(Z(Z({},z),{},{className:v}),M):f||!d&&!v?B=m(Z(Z({},z),{},{style:{display:"none"}}),M):B=null;else{var D;N===$o?D="prepare":ME(N)?D="active":N===Al&&(D="start");var F=JS(g,"".concat(O,"-").concat(D));B=m(Z(Z({},z),{},{className:ne(JS(g,O),Y(Y({},F,F&&D),g,typeof g=="string")),style:I}),M)}if(h.isValidElement(B)&&ia(B)){var V=Ha(B);V||(B=h.cloneElement(B,{ref:M}))}return h.createElement(LO,{ref:k},B)});return r.displayName="CSSMotion",r}const Gi=YO(OE);var Wv="add",Vv="keep",Uv="remove",Cg="removed";function JO(e){var t;return e&&St(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function qv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(JO)}function QO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=qv(e),a=qv(t);o.forEach(function(d){for(var f=!1,m=r;m<i;m+=1){var g=a[m];if(g.key===d.key){r<m&&(n=n.concat(a.slice(r,m).map(function(v){return Z(Z({},v),{},{status:Wv})})),r=m),n.push(Z(Z({},g),{},{status:Vv})),r+=1,f=!0;break}}f||n.push(Z(Z({},d),{},{status:Uv}))}),r<i&&(n=n.concat(a.slice(r).map(function(d){return Z(Z({},d),{},{status:Wv})})));var l={};n.forEach(function(d){var f=d.key;l[f]=(l[f]||0)+1});var u=Object.keys(l).filter(function(d){return l[d]>1});return u.forEach(function(d){n=n.filter(function(f){var m=f.key,g=f.status;return m!==d||g!==Uv}),n.forEach(function(f){f.key===d&&(f.status=Vv)})}),n}var ZO=["component","children","onVisibleChanged","onAllRemoved"],e6=["status"],t6=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function n6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gi,n=(function(r){ys(o,r);var i=bs(o);function o(){var a;yr(this,o);for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return a=i.call.apply(i,[this].concat(u)),Y(en(a),"state",{keyEntities:[]}),Y(en(a),"removeKey",function(f){a.setState(function(m){var g=m.keyEntities.map(function(v){return v.key!==f?v:Z(Z({},v),{},{status:Cg})});return{keyEntities:g}},function(){var m=a.state.keyEntities,g=m.filter(function(v){var y=v.status;return y!==Cg}).length;g===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return br(o,[{key:"render",value:function(){var l=this,u=this.state.keyEntities,d=this.props,f=d.component,m=d.children,g=d.onVisibleChanged;d.onAllRemoved;var v=Bt(d,ZO),y=f||h.Fragment,S={};return t6.forEach(function(_){S[_]=v[_],delete v[_]}),delete v.keys,h.createElement(y,v,u.map(function(_,C){var w=_.status,k=Bt(_,e6),$=w===Wv||w===Vv;return h.createElement(t,$e({},S,{key:k.key,visible:$,eventProps:k,onVisibleChanged:function(R){g==null||g(R,{key:k.key}),R||l.removeKey(k.key)}}),function(T,R){return m(Z(Z({},T),{},{index:C}),R)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,u){var d=l.keys,f=u.keyEntities,m=qv(d),g=QO(f,m);return{keyEntities:g.filter(function(v){var y=f.find(function(S){var _=S.key;return v.key===_});return!(y&&y.status===Cg&&v.status===Uv)})}}}]),o})(h.Component);return Y(n,"defaultProps",{component:"div"}),n}const r6=n6(OE),QS=h.createContext(!0);function i6(e){const t=h.useContext(QS),{children:n}=e,[,r]=vi(),{motion:i}=r,o=h.useRef(!1);return o.current||(o.current=t!==i),o.current?h.createElement(QS.Provider,{value:i},h.createElement(BO,{motion:i},n)):n}const o6=()=>null;var s6=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const a6=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let lf,jE,zE,BE;function Fh(){return lf||Ru}function l6(){return jE||qf}function c6(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const u6=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(lf=t),n!==void 0&&(jE=n),"holderRender"in e&&(BE=i),r&&(c6(r)?cO(Fh(),r):zE=r)},LE=()=>({getPrefixCls:(e,t)=>t||(e?`${Fh()}-${e}`:Fh()),getIconPrefixCls:l6,getRootPrefixCls:()=>lf||Fh(),getTheme:()=>zE,holderRender:BE}),d6=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:l,componentSize:u,direction:d,space:f,splitter:m,virtual:g,dropdownMatchSelectWidth:v,popupMatchSelectWidth:y,popupOverflow:S,legacyLocale:_,parentContext:C,iconPrefixCls:w,theme:k,componentDisabled:$,segmented:T,statistic:R,spin:O,calendar:N,carousel:I,cascader:j,collapse:L,typography:M,checkbox:B,descriptions:z,divider:D,drawer:F,skeleton:V,steps:A,image:X,layout:q,list:H,mentions:U,modal:K,progress:G,result:J,slider:ee,breadcrumb:de,menu:oe,pagination:ae,input:_e,textArea:se,empty:ce,badge:he,radio:ve,rate:me,switch:fe,transfer:ye,avatar:xe,message:Ee,tag:Ne,table:Te,card:Pe,tabs:ke,timeline:Ce,timePicker:Ve,upload:Ze,notification:_t,tree:nt,colorPicker:Ye,datePicker:mt,rangePicker:Je,flex:yt,wave:rt,dropdown:Le,warning:ot,tour:ze,tooltip:Ke,popover:It,popconfirm:Ct,floatButton:nn,floatButtonGroup:Qt,variant:Sn,inputNumber:In,treeSelect:on}=e,Ht=h.useCallback((it,Wt)=>{const{prefixCls:Kt}=e;if(Wt)return Wt;const Lt=Kt||C.getPrefixCls("");return it?`${Lt}-${it}`:Lt},[C.getPrefixCls,e.prefixCls]),Tt=w||C.iconPrefixCls||qf,sn=n||C.csp;OO(Tt,sn);const Xt=jO(k,C.theme,{prefixCls:Ht("")}),at={csp:sn,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:l||_,direction:d,space:f,splitter:m,virtual:g,popupMatchSelectWidth:y??v,popupOverflow:S,getPrefixCls:Ht,iconPrefixCls:Tt,theme:Xt,segmented:T,statistic:R,spin:O,calendar:N,carousel:I,cascader:j,collapse:L,typography:M,checkbox:B,descriptions:z,divider:D,drawer:F,skeleton:V,steps:A,image:X,input:_e,textArea:se,layout:q,list:H,mentions:U,modal:K,progress:G,result:J,slider:ee,breadcrumb:de,menu:oe,pagination:ae,empty:ce,badge:he,radio:ve,rate:me,switch:fe,transfer:ye,avatar:xe,message:Ee,tag:Ne,table:Te,card:Pe,tabs:ke,timeline:Ce,timePicker:Ve,upload:Ze,notification:_t,tree:nt,colorPicker:Ye,datePicker:mt,rangePicker:Je,flex:yt,wave:rt,dropdown:Le,warning:ot,tour:ze,tooltip:Ke,popover:It,popconfirm:Ct,floatButton:nn,floatButtonGroup:Qt,variant:Sn,inputNumber:In,treeSelect:on},$t=Object.assign({},C);Object.keys(at).forEach(it=>{at[it]!==void 0&&($t[it]=at[it])}),a6.forEach(it=>{const Wt=e[it];Wt&&($t[it]=Wt)}),typeof r<"u"&&($t.button=Object.assign({autoInsertSpace:r},$t.button));const pt=Fu(()=>$t,$t,(it,Wt)=>{const Kt=Object.keys(it),Lt=Object.keys(Wt);return Kt.length!==Lt.length||Kt.some(At=>it[At]!==Wt[At])}),{layer:Me}=h.useContext(Wu),Oe=h.useMemo(()=>({prefixCls:Tt,csp:sn,layer:Me?"antd":void 0}),[Tt,sn,Me]);let Re=h.createElement(h.Fragment,null,h.createElement(o6,{dropdownMatchSelectWidth:v}),t);const De=h.useMemo(()=>{var it,Wt,Kt,Lt;return Ll(((it=ea.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},((Kt=(Wt=pt.locale)===null||Wt===void 0?void 0:Wt.Form)===null||Kt===void 0?void 0:Kt.defaultValidateMessages)||{},((Lt=pt.form)===null||Lt===void 0?void 0:Lt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[pt,a==null?void 0:a.validateMessages]);Object.keys(De).length>0&&(Re=h.createElement(HP.Provider,{value:De},Re)),l&&(Re=h.createElement(qP,{locale:l,_ANT_MARK__:UP},Re)),Re=h.createElement($y.Provider,{value:Oe},Re),u&&(Re=h.createElement(uO,{size:u},Re)),Re=h.createElement(i6,null,Re);const tt=h.useMemo(()=>{const it=Xt||{},{algorithm:Wt,token:Kt,components:Lt,cssVar:At}=it,Pn=s6(it,["algorithm","token","components","cssVar"]),$n=Wt&&(!Array.isArray(Wt)||Wt.length>0)?Ev(Wt):mE,Nn={};Object.entries(Lt||{}).forEach(([cn,pn])=>{const Fe=Object.assign({},pn);"algorithm"in Fe&&(Fe.algorithm===!0?Fe.theme=$n:(Array.isArray(Fe.algorithm)||typeof Fe.algorithm=="function")&&(Fe.theme=Ev(Fe.algorithm)),delete Fe.algorithm),Nn[cn]=Fe});const Hn=Object.assign(Object.assign({},$u),Kt);return Object.assign(Object.assign({},Pn),{theme:$n,token:Hn,components:Nn,override:Object.assign({override:Hn},Nn),cssVar:At})},[Xt]);return k&&(Re=h.createElement(pE.Provider,{value:tt},Re)),pt.warning&&(Re=h.createElement(DP.Provider,{value:pt.warning},Re)),$!==void 0&&(Re=h.createElement(gE,{disabled:$},Re)),h.createElement(kt.Provider,{value:pt},Re)},No=e=>{const t=h.useContext(kt),n=h.useContext(Ry);return h.createElement(d6,Object.assign({parentContext:t,legacyLocale:n},e))};No.ConfigContext=kt;No.SizeContext=ec;No.config=u6;No.useConfig=dO;Object.defineProperty(No,"SizeContext",{get:()=>ec});var h6={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 AE(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function f6(e){return AE(e)instanceof ShadowRoot}function cf(e){return f6(e)?AE(e):null}function m6(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function p6(e,t){Ar(e,"[@ant-design/icons] ".concat(t))}function ZS(e){return St(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(St(e.icon)==="object"||typeof e.icon=="function")}function eC(){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[m6(n)]=r}return t},{})}function Kv(e,t,n){return n?Q.createElement(e.tag,Z(Z({key:t},eC(e.attrs)),n),(e.children||[]).map(function(r,i){return Kv(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):Q.createElement(e.tag,Z({key:t},eC(e.attrs)),(e.children||[]).map(function(r,i){return Kv(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function DE(e){return Oa(e)[0]}function HE(e){return e?Array.isArray(e)?e:[e]:[]}var g6=`
|
|
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
|
-
`,v6=function(t){var n=h.useContext($y),r=n.csp,i=n.prefixCls,o=n.layer,a=g6;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
|
151
|
-
`).concat(a,`
|
|
152
|
-
}`)),h.useEffect(function(){var l=t.current,u=cf(l);vs(a,"@ant-design-icons",{prepend:!o,csp:r,attachTo:u})},[])},y6=["icon","className","onClick","style","primaryColor","secondaryColor"],pu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function b6(e){var t=e.primaryColor,n=e.secondaryColor;pu.primaryColor=t,pu.secondaryColor=n||DE(t),pu.calculated=!!n}function _6(){return Z({},pu)}var ac=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,u=Bt(t,y6),d=h.useRef(),f=pu;if(a&&(f={primaryColor:a,secondaryColor:l||DE(a)}),v6(d),p6(ZS(n),"icon should be icon definiton, but got ".concat(n)),!ZS(n))return null;var m=n;return m&&typeof m.icon=="function"&&(m=Z(Z({},m),{},{icon:m.icon(f.primaryColor,f.secondaryColor)})),Kv(m.icon,"svg-".concat(m.name),Z(Z({className:r,onClick:i,style:o,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:d}))};ac.displayName="IconReact";ac.getTwoToneColors=_6;ac.setTwoToneColors=b6;function FE(e){var t=HE(e),n=le(t,2),r=n[0],i=n[1];return ac.setTwoToneColors({primaryColor:r,secondaryColor:i})}function S6(){var e=ac.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var C6=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];FE(of.primary);var mn=h.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,l=e.onClick,u=e.twoToneColor,d=Bt(e,C6),f=h.useContext($y),m=f.prefixCls,g=m===void 0?"anticon":m,v=f.rootClassName,y=ne(v,g,Y(Y({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!i||r.name==="loading"),n),S=a;S===void 0&&l&&(S=-1);var _=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=HE(u),w=le(C,2),k=w[0],$=w[1];return h.createElement("span",$e({role:"img","aria-label":r.name},d,{ref:t,tabIndex:S,onClick:l,className:y}),h.createElement(ac,{icon:r,primaryColor:k,secondaryColor:$,style:_}))});mn.displayName="AntdIcon";mn.getTwoToneColor=S6;mn.setTwoToneColor=FE;var w6=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:h6}))},WE=h.forwardRef(w6),x6={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"},E6=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:x6}))},Gf=h.forwardRef(E6),k6={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"},$6=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:k6}))},na=h.forwardRef($6),R6={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"},T6=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:R6}))},VE=h.forwardRef(T6),P6={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"},O6=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:P6}))},UE=h.forwardRef(O6),I6=`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`,N6=`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`,M6="".concat(I6," ").concat(N6).split(/[\s\n]+/),j6="aria-",z6="data-";function tC(e,t){return e.indexOf(t)===0}function Ni(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||tC(i,j6))||n.data&&tC(i,z6)||n.attr&&M6.includes(i))&&(r[i]=e[i])}),r}function qE(e){return e&&Q.isValidElement(e)&&e.type===Q.Fragment}const KE=(e,t,n)=>Q.isValidElement(e)?Q.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Xr(e,t){return KE(e,e,t)}const go=e=>{const[,,,,t]=vi();return t?`${e}-css-var`:""};var Xe={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},GE=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,l=e.showProgress,u=e.pauseOnHover,d=u===void 0?!0:u,f=e.eventKey,m=e.content,g=e.closable,v=e.closeIcon,y=v===void 0?"x":v,S=e.props,_=e.onClick,C=e.onNoticeClose,w=e.times,k=e.hovering,$=h.useState(!1),T=le($,2),R=T[0],O=T[1],N=h.useState(0),I=le(N,2),j=I[0],L=I[1],M=h.useState(0),B=le(M,2),z=B[0],D=B[1],F=k||R,V=a>0&&l,A=function(){C(f)},X=function(J){(J.key==="Enter"||J.code==="Enter"||J.keyCode===Xe.ENTER)&&A()};h.useEffect(function(){if(!F&&a>0){var G=Date.now()-z,J=setTimeout(function(){A()},a*1e3-z);return function(){d&&clearTimeout(J),D(Date.now()-G)}}},[a,F,w]),h.useEffect(function(){if(!F&&V&&(d||z===0)){var G=performance.now(),J,ee=function de(){cancelAnimationFrame(J),J=requestAnimationFrame(function(oe){var ae=oe+z-G,_e=Math.min(ae/(a*1e3),1);L(_e*100),_e<1&&de()})};return ee(),function(){d&&cancelAnimationFrame(J)}}},[a,z,F,V,w]);var q=h.useMemo(function(){return St(g)==="object"&&g!==null?g:g?{closeIcon:y}:{}},[g,y]),H=Ni(q,!0),U=100-(!j||j<0?0:j>100?100:j),K="".concat(n,"-notice");return h.createElement("div",$e({},S,{ref:t,className:ne(K,i,Y({},"".concat(K,"-closable"),g)),style:r,onMouseEnter:function(J){var ee;O(!0),S==null||(ee=S.onMouseEnter)===null||ee===void 0||ee.call(S,J)},onMouseLeave:function(J){var ee;O(!1),S==null||(ee=S.onMouseLeave)===null||ee===void 0||ee.call(S,J)},onClick:_}),h.createElement("div",{className:"".concat(K,"-content")},m),g&&h.createElement("a",$e({tabIndex:0,className:"".concat(K,"-close"),onKeyDown:X,"aria-label":"Close"},H,{onClick:function(J){J.preventDefault(),J.stopPropagation(),A()}}),q.closeIcon),V&&h.createElement("progress",{className:"".concat(K,"-progress"),max:"100",value:U},U+"%"))}),XE=Q.createContext({}),B6=function(t){var n=t.children,r=t.classNames;return Q.createElement(XE.Provider,{value:{classNames:r}},n)},nC=8,rC=3,iC=16,L6=function(t){var n={offset:nC,threshold:rC,gap:iC};if(t&&St(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:nC,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:rC,n.gap=(o=t.gap)!==null&&o!==void 0?o:iC}return[!!t,n]},A6=["className","style","classNames","styles"],D6=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,l=t.motion,u=t.onAllNoticeRemoved,d=t.onNoticeClose,f=t.stack,m=h.useContext(XE),g=m.classNames,v=h.useRef({}),y=h.useState(null),S=le(y,2),_=S[0],C=S[1],w=h.useState([]),k=le(w,2),$=k[0],T=k[1],R=n.map(function(F){return{config:F,key:String(F.key)}}),O=L6(f),N=le(O,2),I=N[0],j=N[1],L=j.offset,M=j.threshold,B=j.gap,z=I&&($.length>0||R.length<=M),D=typeof l=="function"?l(r):l;return h.useEffect(function(){I&&$.length>1&&T(function(F){return F.filter(function(V){return R.some(function(A){var X=A.key;return V===X})})})},[$,R,I]),h.useEffect(function(){var F;if(I&&v.current[(F=R[R.length-1])===null||F===void 0?void 0:F.key]){var V;C(v.current[(V=R[R.length-1])===null||V===void 0?void 0:V.key])}},[R,I]),Q.createElement(r6,$e({key:r,className:ne(i,"".concat(i,"-").concat(r),g==null?void 0:g.list,o,Y(Y({},"".concat(i,"-stack"),!!I),"".concat(i,"-stack-expanded"),z)),style:a,keys:R,motionAppear:!0},D,{onAllRemoved:function(){u(r)}}),function(F,V){var A=F.config,X=F.className,q=F.style,H=F.index,U=A,K=U.key,G=U.times,J=String(K),ee=A,de=ee.className,oe=ee.style,ae=ee.classNames,_e=ee.styles,se=Bt(ee,A6),ce=R.findIndex(function(Ce){return Ce.key===J}),he={};if(I){var ve=R.length-1-(ce>-1?ce:H-1),me=r==="top"||r==="bottom"?"-50%":"0";if(ve>0){var fe,ye,xe;he.height=z?(fe=v.current[J])===null||fe===void 0?void 0:fe.offsetHeight:_==null?void 0:_.offsetHeight;for(var Ee=0,Ne=0;Ne<ve;Ne++){var Te;Ee+=((Te=v.current[R[R.length-1-Ne].key])===null||Te===void 0?void 0:Te.offsetHeight)+B}var Pe=(z?Ee:ve*L)*(r.startsWith("top")?1:-1),ke=!z&&_!==null&&_!==void 0&&_.offsetWidth&&(ye=v.current[J])!==null&&ye!==void 0&&ye.offsetWidth?((_==null?void 0:_.offsetWidth)-L*2*(ve<3?ve:3))/((xe=v.current[J])===null||xe===void 0?void 0:xe.offsetWidth):1;he.transform="translate3d(".concat(me,", ").concat(Pe,"px, 0) scaleX(").concat(ke,")")}else he.transform="translate3d(".concat(me,", 0, 0)")}return Q.createElement("div",{ref:V,className:ne("".concat(i,"-notice-wrapper"),X,ae==null?void 0:ae.wrapper),style:Z(Z(Z({},q),he),_e==null?void 0:_e.wrapper),onMouseEnter:function(){return T(function(Ve){return Ve.includes(J)?Ve:[].concat(Ae(Ve),[J])})},onMouseLeave:function(){return T(function(Ve){return Ve.filter(function(Ze){return Ze!==J})})}},Q.createElement(GE,$e({},se,{ref:function(Ve){ce>-1?v.current[J]=Ve:delete v.current[J]},prefixCls:i,classNames:ae,styles:_e,className:ne(de,g==null?void 0:g.notice),style:oe,times:G,key:K,eventKey:K,onNoticeClose:d,hovering:I&&$.length>0})))})},H6=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,l=e.className,u=e.style,d=e.onAllRemoved,f=e.stack,m=e.renderNotifications,g=h.useState([]),v=le(g,2),y=v[0],S=v[1],_=function(I){var j,L=y.find(function(M){return M.key===I});L==null||(j=L.onClose)===null||j===void 0||j.call(L),S(function(M){return M.filter(function(B){return B.key!==I})})};h.useImperativeHandle(t,function(){return{open:function(I){S(function(j){var L=Ae(j),M=L.findIndex(function(D){return D.key===I.key}),B=Z({},I);if(M>=0){var z;B.times=(((z=j[M])===null||z===void 0?void 0:z.times)||0)+1,L[M]=B}else B.times=0,L.push(B);return a>0&&L.length>a&&(L=L.slice(-a)),L})},close:function(I){_(I)},destroy:function(){S([])}}});var C=h.useState({}),w=le(C,2),k=w[0],$=w[1];h.useEffect(function(){var N={};y.forEach(function(I){var j=I.placement,L=j===void 0?"topRight":j;L&&(N[L]=N[L]||[],N[L].push(I))}),Object.keys(k).forEach(function(I){N[I]=N[I]||[]}),$(N)},[y]);var T=function(I){$(function(j){var L=Z({},j),M=L[I]||[];return M.length||delete L[I],L})},R=h.useRef(!1);if(h.useEffect(function(){Object.keys(k).length>0?R.current=!0:R.current&&(d==null||d(),R.current=!1)},[k]),!i)return null;var O=Object.keys(k);return Zs.createPortal(h.createElement(h.Fragment,null,O.map(function(N){var I=k[N],j=h.createElement(D6,{key:N,configList:I,placement:N,prefixCls:r,className:l==null?void 0:l(N),style:u==null?void 0:u(N),motion:o,onNoticeClose:_,onAllNoticeRemoved:T,stack:f});return m?m(j,{prefixCls:r,key:N}):j})),i)}),F6=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],W6=function(){return document.body},oC=0;function V6(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function U6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?W6:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,l=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=Bt(e,F6),g=h.useState(),v=le(g,2),y=v[0],S=v[1],_=h.useRef(),C=h.createElement(H6,{container:y,ref:_,prefixCls:i,motion:r,maxCount:o,className:a,style:l,onAllRemoved:u,stack:d,renderNotifications:f}),w=h.useState([]),k=le(w,2),$=k[0],T=k[1],R=Un(function(N){var I=V6(m,N);(I.key===null||I.key===void 0)&&(I.key="rc-notification-".concat(oC),oC+=1),T(function(j){return[].concat(Ae(j),[{type:"open",config:I}])})}),O=h.useMemo(function(){return{open:R,close:function(I){T(function(j){return[].concat(Ae(j),[{type:"close",key:I}])})},destroy:function(){T(function(I){return[].concat(Ae(I),[{type:"destroy"}])})}}},[]);return h.useEffect(function(){S(n())}),h.useEffect(function(){if(_.current&&$.length){$.forEach(function(j){switch(j.type){case"open":_.current.open(j.config);break;case"close":_.current.close(j.key);break;case"destroy":_.current.destroy();break}});var N,I;T(function(j){return(N!==j||!I)&&(N=j,I=j.filter(function(L){return!$.includes(L)})),I})}},[$]),[O,C]}var q6={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"},K6=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:q6}))},Uu=h.forwardRef(K6);function Gv(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function nc(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function sC(e){const{closable:t,closeIcon:n}=e||{};return Q.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 G6={},Oy=(e,t,n=G6)=>{const r=sC(e),i=sC(t),[o]=_s("global",ea.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=Q.useMemo(()=>Object.assign({closeIcon:Q.createElement(na,null)},n),[n]),u=Q.useMemo(()=>r===!1?!1:r?Gv(l,i,r):i===!1?!1:i?Gv(l,i):l.closable?l:!1,[r,i,l]);return Q.useMemo(()=>{var d,f;if(u===!1)return[!1,null,a,{}];const{closeIconRender:m}=l,{closeIcon:g}=u;let v=g;const y=Ni(u,!0);return v!=null&&(m&&(v=m(g)),v=Q.isValidElement(v)?Q.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(f=(d=v.props)===null||d===void 0?void 0:d["aria-label"])!==null&&f!==void 0?f:o.close}),y)):Q.createElement("span",Object.assign({"aria-label":o.close},y),v)),[!0,v,a,y]},[a,o.close,u,l])},X6=()=>Q.useReducer(e=>e+1,0),Y6=()=>{const[e,t]=h.useState([]),n=h.useCallback(r=>(t(i=>[].concat(Ae(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]},qu=Q.createContext(void 0),Us=100,J6=10,YE=Us*J6,JE={Modal:Us,Drawer:Us,Popover:Us,Popconfirm:Us,Tooltip:Us,Tour:Us,FloatButton:Us},Q6={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Z6(e){return e in JE}const lc=(e,t)=>{const[,n]=vi(),r=Q.useContext(qu),i=Z6(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+JE[e]:a+=Q6[e],o=[r===void 0?t:a,a]}return o},eI=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:l,colorInfo:u,fontSizeLG:d,motionEaseInOutCirc:f,motionDurationSlow:m,marginXS:g,paddingXS:v,borderRadiusLG:y,zIndexPopup:S,contentPadding:_,contentBg:C}=e,w=`${t}-notice`,k=new Yt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),$=new Yt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:g,fontSize:d},[`${w}-content`]:{display:"inline-block",padding:_,background:C,borderRadius:y,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
|
170
|
-
${t}-loading > ${n}`]:{color:u}};return[{[t]:Object.assign(Object.assign({},qn(e)),{color:i,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:S,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
171
|
-
${t}-move-up-appear,
|
|
172
|
-
${t}-move-up-enter
|
|
173
|
-
`]:{animationName:k,animationDuration:m,animationPlayState:"paused",animationTimingFunction:f},[`
|
|
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:$,animationDuration:m,animationPlayState:"paused",animationTimingFunction:f},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},T)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},T),{padding:0,textAlign:"start"})}]},tI=e=>({zIndexPopup:e.zIndexPopupBase+YE+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),QE=vn("Message",e=>{const t=Jt(e,{height:150});return eI(t)},tI);var nI=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rI={info:h.createElement(UE,null),success:h.createElement(WE,null),error:h.createElement(Gf,null),warning:h.createElement(VE,null),loading:h.createElement(Uu,null)},ZE=({prefixCls:e,type:t,icon:n,children:r})=>h.createElement("div",{className:ne(`${e}-custom-content`,`${e}-${t}`)},n||rI[t],h.createElement("span",null,r)),iI=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=nI(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=h.useContext(kt),u=t||l("message"),d=go(u),[f,m,g]=QE(u,d);return f(h.createElement(GE,Object.assign({},a,{prefixCls:u,className:ne(n,m,`${u}-notice-pure-panel`,g,d),eventKey:"pure",duration:null,content:h.createElement(ZE,{prefixCls:u,type:r,icon:i},o)})))};function oI(e,t){return{motionName:t??`${e}-move-up`}}function Iy(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t==null||t()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}var sI=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aI=8,lI=3,cI=({children:e,prefixCls:t})=>{const n=go(t),[r,i,o]=QE(t,n);return r(h.createElement(B6,{classNames:{list:ne(i,o,n)}},e))},uI=(e,{prefixCls:t,key:n})=>h.createElement(cI,{prefixCls:t,key:n},e),dI=h.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=lI,rtl:l,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:f,getPopupContainer:m,message:g,direction:v}=h.useContext(kt),y=r||f("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??aI}),_=()=>ne({[`${y}-rtl`]:l??v==="rtl"}),C=()=>oI(y,u),w=h.createElement("span",{className:`${y}-close-x`},h.createElement(na,{className:`${y}-close-icon`})),[k,$]=U6({prefixCls:y,style:S,className:_,motion:C,closable:!1,closeIcon:w,duration:a,getContainer:()=>(i==null?void 0:i())||(m==null?void 0:m())||document.body,maxCount:o,onAllRemoved:d,renderNotifications:uI});return h.useImperativeHandle(t,()=>Object.assign(Object.assign({},k),{prefixCls:y,message:g})),$});let aC=0;function ek(e){const t=h.useRef(null);return Uf(),[h.useMemo(()=>{const r=u=>{var d;(d=t.current)===null||d===void 0||d.close(u)},i=u=>{if(!t.current){const R=()=>{};return R.then=()=>{},R}const{open:d,prefixCls:f,message:m}=t.current,g=`${f}-notice`,{content:v,icon:y,type:S,key:_,className:C,style:w,onClose:k}=u,$=sI(u,["content","icon","type","key","className","style","onClose"]);let T=_;return T==null&&(aC+=1,T=`antd-message-${aC}`),Iy(R=>(d(Object.assign(Object.assign({},$),{key:T,content:h.createElement(ZE,{prefixCls:f,type:S,icon:y},v),placement:"top",className:ne(S&&`${g}-${S}`,C,m==null?void 0:m.className),style:Object.assign(Object.assign({},m==null?void 0:m.style),w),onClose:()=>{k==null||k(),R()}})),()=>{r(T)}))},a={open:i,destroy:u=>{var d;u!==void 0?r(u):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const d=(f,m,g)=>{let v;f&&typeof f=="object"&&"content"in f?v=f:v={content:f};let y,S;typeof m=="function"?S=m:(y=m,S=g);const _=Object.assign(Object.assign({onClose:S,duration:y},v),{type:u});return i(_)};a[u]=d}),a},[]),h.createElement(dI,Object.assign({key:"message-holder"},e,{ref:t}))]}function hI(e){return ek(e)}function tk(e,t){this.v=e,this.k=t}function oi(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}oi=function(a,l,u,d){function f(m,g){oi(a,m,function(v){return this._invoke(m,g,v)})}l?i?i(a,l,{value:u,enumerable:!d,configurable:!d,writable:!d}):a[l]=u:(f("next",0),f("throw",1),f("return",2))},oi(e,t,n,r)}function Ny(){/*! 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",i=n.toStringTag||"@@toStringTag";function o(v,y,S,_){var C=y&&y.prototype instanceof l?y:l,w=Object.create(C.prototype);return oi(w,"_invoke",(function(k,$,T){var R,O,N,I=0,j=T||[],L=!1,M={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(D,F){return R=D,O=0,N=e,M.n=F,a}};function B(z,D){for(O=z,N=D,t=0;!L&&I&&!F&&t<j.length;t++){var F,V=j[t],A=M.p,X=V[2];z>3?(F=X===D)&&(N=V[(O=V[4])?5:(O=3,3)],V[4]=V[5]=e):V[0]<=A&&((F=z<2&&A<V[1])?(O=0,M.v=D,M.n=V[1]):A<X&&(F=z<3||V[0]>D||D>X)&&(V[4]=z,V[5]=D,M.n=X,O=0))}if(F||z>1)return a;throw L=!0,D}return function(z,D,F){if(I>1)throw TypeError("Generator is already running");for(L&&D===1&&B(D,F),O=D,N=F;(t=O<2?e:N)||!L;){R||(O?O<3?(O>1&&(M.n=-1),B(O,N)):M.n=N:M.v=N);try{if(I=2,R){if(O||(z="next"),t=R[z]){if(!(t=t.call(R,N)))throw TypeError("iterator result is not an object");if(!t.done)return t;N=t.value,O<2&&(O=0)}else O===1&&(t=R.return)&&t.call(R),O<2&&(N=TypeError("The iterator does not provide a '"+z+"' method"),O=1);R=e}else if((t=(L=M.n<0)?N:k.call($,M))!==a)break}catch(V){R=e,O=1,N=V}finally{I=1}}return{value:t,done:L}}})(v,S,_),!0),w}var a={};function l(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][r]?t(t([][r]())):(oi(t={},r,function(){return this}),t),m=d.prototype=l.prototype=Object.create(f);function g(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,d):(v.__proto__=d,oi(v,i,"GeneratorFunction")),v.prototype=Object.create(m),v}return u.prototype=d,oi(m,"constructor",d),oi(d,"constructor",u),u.displayName="GeneratorFunction",oi(d,i,"GeneratorFunction"),oi(m),oi(m,i,"Generator"),oi(m,r,function(){return this}),oi(m,"toString",function(){return"[object Generator]"}),(Ny=function(){return{w:o,m:g}})()}function uf(e,t){function n(i,o,a,l){try{var u=e[i](o),d=u.value;return d instanceof tk?t.resolve(d.v).then(function(f){n("next",f,a,l)},function(f){n("throw",f,a,l)}):t.resolve(d).then(function(f){u.value=f,a(u)},function(f){return n("throw",f,a,l)})}catch(f){l(f)}}var r;this.next||(oi(uf.prototype),oi(uf.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),oi(this,"_invoke",function(i,o,a){function l(){return new t(function(u,d){n(i,a,u,d)})}return r=r?r.then(l,l):l()},!0)}function nk(e,t,n,r,i){return new uf(Ny().w(e,t,n,r),i||Promise)}function fI(e,t,n,r,i){var o=nk(e,t,n,r,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function mI(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in t)return i.value=r,i.done=!1,i;return i.done=!0,i}}function lC(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(St(e)+" is not iterable")}function li(){var e=Ny(),t=e.m(li),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var l=typeof a=="function"&&a.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var l,u;return function(d){l||(l={stop:function(){return u(d.a,2)},catch:function(){return d.v},abrupt:function(m,g){return u(d.a,i[m],g)},delegateYield:function(m,g,v){return l.resultName=g,u(d.d,lC(m),v)},finish:function(m){return u(d.f,m)}},u=function(m,g,v){d.p=l.prev,d.n=l.next;try{return m(g,v)}finally{l.next=d.n}}),l.resultName&&(l[l.resultName]=d.v,l.resultName=void 0),l.sent=d.v,l.next=d.n;try{return a.call(this,l)}finally{d.p=l.prev,d.n=l.next}}}return(li=function(){return{wrap:function(u,d,f,m){return e.w(o(u),d,f,m&&m.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(u,d){return new tk(u,d)},AsyncIterator:uf,async:function(u,d,f,m,g){return(r(d)?nk:fI)(o(u),d,f,m,g)},keys:mI,values:lC}})()}function cC(e,t,n,r,i,o,a){try{var l=e[o](a),u=l.value}catch(d){return void n(d)}l.done?t(u):Promise.resolve(u).then(r,i)}function Fa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(u){cC(o,r,i,a,l,"next",u)}function l(u){cC(o,r,i,a,l,"throw",u)}a(void 0)})}}var Ku=Z({},Q5),pI=Ku.version,wg=Ku.render,gI=Ku.unmountComponentAtNode,Xf;try{var vI=Number((pI||"").split(".")[0]);vI>=18&&(Xf=Ku.createRoot)}catch{}function uC(e){var t=Ku.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&St(t)==="object"&&(t.usingClientEntryPoint=e)}var df="__rc_react_root__";function yI(e,t){uC(!0);var n=t[df]||Xf(t);uC(!1),n.render(e),t[df]=n}function bI(e,t){wg==null||wg(e,t)}function _I(e,t){if(Xf){yI(e,t);return}bI(e,t)}function SI(e){return Xv.apply(this,arguments)}function Xv(){return Xv=Fa(li().mark(function e(t){return li().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[df])===null||i===void 0||i.unmount(),delete t[df]}));case 1:case"end":return r.stop()}},e)})),Xv.apply(this,arguments)}function CI(e){gI(e)}function wI(e){return Yv.apply(this,arguments)}function Yv(){return Yv=Fa(li().mark(function e(t){return li().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Xf===void 0){r.next=2;break}return r.abrupt("return",SI(t));case 2:CI(t);case 3:case"end":return r.stop()}},e)})),Yv.apply(this,arguments)}const xI=(e,t)=>(_I(e,t),()=>wI(t));let EI=xI;function My(e){return EI}const xg=()=>({height:0,opacity:0}),dC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},kI=e=>({height:e?e.offsetHeight:0}),Eg=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",rk=(e=Ru)=>({motionName:`${e}-motion-collapse`,onAppearStart:xg,onEnterStart:xg,onAppearActive:dC,onEnterActive:dC,onLeaveStart:kI,onLeaveActive:xg,onAppearEnd:Eg,onEnterEnd:Eg,onLeaveEnd:Eg,motionDeadline:500}),Yo=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function rr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const jy=(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 i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1}),$I=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(",")}}}}},RI=PO("Wave",$I),zy=`${Ru}-wave-target`;function TI(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 PI(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:i}=getComputedStyle(e);return(t=[n,r,i].find(TI))!==null&&t!==void 0?t:null}function kg(e){return Number.isNaN(e)?0:e}const OI=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=h.useRef(null),a=h.useRef(null);h.useEffect(()=>{a.current=i()},[]);const[l,u]=h.useState(null),[d,f]=h.useState([]),[m,g]=h.useState(0),[v,y]=h.useState(0),[S,_]=h.useState(0),[C,w]=h.useState(0),[k,$]=h.useState(!1),T={left:m,top:v,width:S,height:C,borderRadius:d.map(N=>`${N}px`).join(" ")};l&&(T["--wave-color"]=l);function R(){const N=getComputedStyle(n);u(PI(n));const I=N.position==="static",{borderLeftWidth:j,borderTopWidth:L}=N;g(I?n.offsetLeft:kg(-Number.parseFloat(j))),y(I?n.offsetTop:kg(-Number.parseFloat(L))),_(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:B,borderBottomLeftRadius:z,borderBottomRightRadius:D}=N;f([M,B,D,z].map(F=>kg(Number.parseFloat(F))))}if(h.useEffect(()=>{if(n){const N=kn(()=>{R(),$(!0)});let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(R),I.observe(n)),()=>{kn.cancel(N),I==null||I.disconnect()}}},[n]),!k)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(zy));return h.createElement(Gi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(N,I)=>{var j,L;if(I.deadline||I.propertyName==="opacity"){const M=(j=o.current)===null||j===void 0?void 0:j.parentElement;(L=a.current)===null||L===void 0||L.call(a).then(()=>{M==null||M.remove()})}return!1}},({className:N},I)=>h.createElement("div",{ref:gi(o,I),className:ne(t,N,{"wave-quick":O}),style:T}))},II=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const o=My();let a=null;function l(){return a}a=o(h.createElement(OI,Object.assign({},t,{target:e,registerUnmount:l})),i)},NI=(e,t,n)=>{const{wave:r}=h.useContext(kt),[,i,o]=vi(),a=Un(d=>{const f=e.current;if(r!=null&&r.disabled||!f)return;const m=f.querySelector(`.${zy}`)||f,{showEffect:g}=r||{};(g||II)(m,{className:t,token:i,component:n,event:d,hashId:o})}),l=h.useRef(null);return d=>{kn.cancel(l.current),l.current=kn(()=>{a(d)})}},Yf=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=h.useContext(kt),o=h.useRef(null),a=i("wave"),[,l]=RI(a),u=NI(o,ne(a,l),r);if(Q.useEffect(()=>{const f=o.current;if(!f||f.nodeType!==window.Node.ELEMENT_NODE||n)return;const m=g=>{!jy(g.target)||!f.getAttribute||f.getAttribute("disabled")||f.disabled||f.className.includes("disabled")&&!f.className.includes("disabled:")||f.getAttribute("aria-disabled")==="true"||f.className.includes("-leave")||u(g)};return f.addEventListener("click",m,!0),()=>{f.removeEventListener("click",m,!0)}},[n]),!Q.isValidElement(t))return t??null;const d=ia(t)?gi(Ha(t),o):o;return Xr(t,{ref:d})},Xi=e=>{const t=Q.useContext(ec);return Q.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},MI=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},jI=vn(["Space","Compact"],e=>[MI(e)],()=>({}),{resetStyle:!1});var ik=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Jf=h.createContext(null),Wa=(e,t)=>{const n=h.useContext(Jf),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,l=i==="vertical"?"-vertical-":"-";return ne(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},zI=e=>{const{children:t}=e;return h.createElement(Jf.Provider,{value:null},t)},BI=e=>{const{children:t}=e,n=ik(e,["children"]);return h.createElement(Jf.Provider,{value:h.useMemo(()=>n,[n])},t)},LI=e=>{const{getPrefixCls:t,direction:n}=h.useContext(kt),{size:r,direction:i,block:o,prefixCls:a,className:l,rootClassName:u,children:d}=e,f=ik(e,["size","direction","block","prefixCls","className","rootClassName","children"]),m=Xi(k=>r??k),g=t("space-compact",a),[v,y]=jI(g),S=ne(g,y,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:o,[`${g}-vertical`]:i==="vertical"},l,u),_=h.useContext(Jf),C=pi(d),w=h.useMemo(()=>C.map((k,$)=>{const T=(k==null?void 0:k.key)||`${g}-item-${$}`;return h.createElement(BI,{key:T,compactSize:m,compactDirection:i,isFirstItem:$===0&&(!_||(_==null?void 0:_.isFirstItem)),isLastItem:$===C.length-1&&(!_||(_==null?void 0:_.isLastItem))},k)}),[C,_,i,m,g]);return C.length===0?null:v(h.createElement("div",Object.assign({className:S},f),w))};var AI=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const ok=h.createContext(void 0),DI=e=>{const{getPrefixCls:t,direction:n}=h.useContext(kt),{prefixCls:r,size:i,className:o}=e,a=AI(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,u]=vi(),d=h.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),f=ne(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:n==="rtl"},o,u);return h.createElement(ok.Provider,{value:i},h.createElement("div",Object.assign({},a,{className:f})))},hC=/^[\u4E00-\u9FA5]{2}$/,Jv=hC.test.bind(hC);function sk(e){return e==="danger"?{danger:!0}:{type:e}}function fC(e){return typeof e=="string"}function $g(e){return e==="text"||e==="link"}function HI(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&fC(e.type)&&Jv(e.props.children)?Xr(e,{children:e.props.children.split("").join(n)}):fC(e)?Jv(e)?Q.createElement("span",null,e.split("").join(n)):Q.createElement("span",null,e):qE(e)?Q.createElement("span",null,e):e}function FI(e,t){let n=!1;const r=[];return Q.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const l=r.length-1,u=r[l];r[l]=`${u}${i}`}else r.push(i);n=a}),Q.Children.map(r,i=>HI(i,t))}["default","primary","danger"].concat(Ae(ta));const ak=h.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=ne(`${o}-icon`,n);return Q.createElement("span",{ref:t,className:a,style:r},i)}),mC=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=ne(`${n}-loading-icon`,r);return Q.createElement(ak,{prefixCls:n,className:a,style:i,ref:t},Q.createElement(Uu,{className:o}))}),Rg=()=>({width:0,opacity:0,transform:"scale(0)"}),Tg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),WI=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,l=!!n;return r?Q.createElement(mC,{prefixCls:t,className:i,style:o}):Q.createElement(Gi,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Rg,onAppearActive:Tg,onEnterStart:Rg,onEnterActive:Tg,onLeaveStart:Tg,onLeaveActive:Rg},({className:u,style:d},f)=>{const m=Object.assign(Object.assign({},o),d);return Q.createElement(mC,{prefixCls:t,className:ne(i,u),style:m,ref:f})})},pC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),VI=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=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}},pC(`${t}-primary`,i),pC(`${t}-danger`,o)]}};var UI=["b"],qI=["v"],Pg=function(t){return Math.round(Number(t||0))},KI=function(t){if(t instanceof _n)return t;if(t&&St(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=Bt(n,UI);return Z(Z({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Pu=(function(e){ys(n,e);var t=bs(n);function n(r){return yr(this,n),t.call(this,KI(r))}return br(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=Pg(i.s*100),a=Pg(i.b*100),l=Pg(i.h),u=i.a,d="hsb(".concat(l,", ").concat(o,"%, ").concat(a,"%)"),f="hsba(".concat(l,", ").concat(o,"%, ").concat(a,"%, ").concat(u.toFixed(u===0?0:2),")");return u===1?d:f}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Bt(i,qI);return Z(Z({},a),{},{b:o,a:this.a})}}]),n})(_n),GI=function(t){return t instanceof Pu?t:new Pu(t)};GI("#1677ff");const XI=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",YI=(e,t)=>e?XI(e,t):"";let Qv=(function(){function e(t){yr(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(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:i,percent:o})=>({color:new e(i),percent:o})),this.metaColor=new Pu(this.colors[0].color.metaColor)):this.metaColor=new Pu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return br(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return YI(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(i=>`${i.color.toRgbString()} ${i.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,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var JI={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"},QI=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:JI}))},Ui=h.forwardRef(QI),lk=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,o=e.style,a=e.children,l=e.isActive,u=e.role,d=e.classNames,f=e.styles,m=Q.useState(l||r),g=le(m,2),v=g[0],y=g[1];return Q.useEffect(function(){(r||l)&&y(!0)},[r,l]),v?Q.createElement("div",{ref:t,className:ne("".concat(n,"-content"),Y(Y({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),i),style:o,role:u},Q.createElement("div",{className:ne("".concat(n,"-content-box"),d==null?void 0:d.body),style:f==null?void 0:f.body},a)):null});lk.displayName="PanelContent";var ZI=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ck=Q.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,o=e.isActive,a=e.onItemClick,l=e.forceRender,u=e.className,d=e.classNames,f=d===void 0?{}:d,m=e.styles,g=m===void 0?{}:m,v=e.prefixCls,y=e.collapsible,S=e.accordion,_=e.panelKey,C=e.extra,w=e.header,k=e.expandIcon,$=e.openMotion,T=e.destroyInactivePanel,R=e.children,O=Bt(e,ZI),N=y==="disabled",I=C!=null&&typeof C!="boolean",j=Y(Y(Y({onClick:function(){a==null||a(_)},onKeyDown:function(V){(V.key==="Enter"||V.keyCode===Xe.ENTER||V.which===Xe.ENTER)&&(a==null||a(_))},role:S?"tab":"button"},"aria-expanded",o),"aria-disabled",N),"tabIndex",N?-1:0),L=typeof k=="function"?k(e):Q.createElement("i",{className:"arrow"}),M=L&&Q.createElement("div",$e({className:"".concat(v,"-expand-icon")},["header","icon"].includes(y)?j:{}),L),B=ne("".concat(v,"-item"),Y(Y({},"".concat(v,"-item-active"),o),"".concat(v,"-item-disabled"),N),u),z=ne(i,"".concat(v,"-header"),Y({},"".concat(v,"-collapsible-").concat(y),!!y),f.header),D=Z({className:z,style:g.header},["header","icon"].includes(y)?{}:j);return Q.createElement("div",$e({},O,{ref:t,className:B}),Q.createElement("div",D,r&&M,Q.createElement("span",$e({className:"".concat(v,"-header-text")},y==="header"?j:{}),w),I&&Q.createElement("div",{className:"".concat(v,"-extra")},C)),Q.createElement(Gi,$e({visible:o,leavedClassName:"".concat(v,"-content-hidden")},$,{forceRender:l,removeOnLeave:T}),function(F,V){var A=F.className,X=F.style;return Q.createElement(lk,{ref:V,prefixCls:v,className:A,classNames:f,style:X,styles:g,isActive:o,forceRender:l,role:S?"tabpanel":void 0},R)}))}),eN=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],tN=function(t,n){var r=n.prefixCls,i=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,u=n.activeKey,d=n.openMotion,f=n.expandIcon;return t.map(function(m,g){var v=m.children,y=m.label,S=m.key,_=m.collapsible,C=m.onItemClick,w=m.destroyInactivePanel,k=Bt(m,eN),$=String(S??g),T=_??o,R=w??a,O=function(j){T!=="disabled"&&(l(j),C==null||C(j))},N=!1;return i?N=u[0]===$:N=u.indexOf($)>-1,Q.createElement(ck,$e({},k,{prefixCls:r,key:$,panelKey:$,isActive:N,accordion:i,openMotion:d,expandIcon:f,header:y,collapsible:T,onItemClick:O,destroyInactivePanel:R}),v)})},nN=function(t,n,r){if(!t)return null;var i=r.prefixCls,o=r.accordion,a=r.collapsible,l=r.destroyInactivePanel,u=r.onItemClick,d=r.activeKey,f=r.openMotion,m=r.expandIcon,g=t.key||String(n),v=t.props,y=v.header,S=v.headerClass,_=v.destroyInactivePanel,C=v.collapsible,w=v.onItemClick,k=!1;o?k=d[0]===g:k=d.indexOf(g)>-1;var $=C??a,T=function(N){$!=="disabled"&&(u(N),w==null||w(N))},R={key:g,panelKey:g,header:y,headerClass:S,isActive:k,prefixCls:i,destroyInactivePanel:_??l,openMotion:f,accordion:o,children:t.props.children,onItemClick:T,expandIcon:m,collapsible:$};return typeof t.type=="string"?t:(Object.keys(R).forEach(function(O){typeof R[O]>"u"&&delete R[O]}),Q.cloneElement(t,R))};function rN(e,t,n){return Array.isArray(e)?tN(e,n):pi(t).map(function(r,i){return nN(r,i,n)})}function iN(e){var t=e;if(!Array.isArray(t)){var n=St(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var oN=Q.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,o=i===void 0?!1:i,a=e.style,l=e.accordion,u=e.className,d=e.children,f=e.collapsible,m=e.openMotion,g=e.expandIcon,v=e.activeKey,y=e.defaultActiveKey,S=e.onChange,_=e.items,C=ne(r,u),w=Xn([],{value:v,onChange:function(I){return S==null?void 0:S(I)},defaultValue:y,postState:iN}),k=le(w,2),$=k[0],T=k[1],R=function(I){return T(function(){if(l)return $[0]===I?[]:[I];var j=$.indexOf(I),L=j>-1;return L?$.filter(function(M){return M!==I}):[].concat(Ae($),[I])})};Ar(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var O=rN(_,d,{prefixCls:r,accordion:l,openMotion:m,expandIcon:g,collapsible:f,destroyInactivePanel:o,onItemClick:R,activeKey:$});return Q.createElement("div",$e({ref:t,className:C,style:a,role:l?"tablist":void 0},Ni(e,{aria:!0,data:!0})),O)});const By=Object.assign(oN,{Panel:ck});By.Panel;const sN=h.forwardRef((e,t)=>{const{getPrefixCls:n}=h.useContext(kt),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),l=ne({[`${a}-no-arrow`]:!o},i);return h.createElement(By.Panel,Object.assign({ref:t},e,{prefixCls:a,className:l}))}),uk=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`}}}),aN=e=>({animationDuration:e,animationFillMode:"both"}),lN=e=>({animationDuration:e,animationFillMode:"both"}),Qf=(e,t,n,r,i=!1)=>{const o=i?"&":"";return{[`
|
|
179
|
-
${o}${e}-enter,
|
|
180
|
-
${o}${e}-appear
|
|
181
|
-
`]:Object.assign(Object.assign({},aN(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},lN(r)),{animationPlayState:"paused"}),[`
|
|
182
|
-
${o}${e}-enter${e}-enter-active,
|
|
183
|
-
${o}${e}-appear${e}-appear-active
|
|
184
|
-
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},cN=new Yt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),uN=new Yt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),dN=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Qf(r,cN,uN,e.motionDurationMid,t),{[`
|
|
185
|
-
${i}${r}-enter,
|
|
186
|
-
${i}${r}-appear
|
|
187
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},hN=new Yt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fN=new Yt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),mN=new Yt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pN=new Yt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gN=new Yt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vN=new Yt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),yN=new Yt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bN=new Yt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),_N={"move-up":{inKeyframes:yN,outKeyframes:bN},"move-down":{inKeyframes:hN,outKeyframes:fN},"move-left":{inKeyframes:mN,outKeyframes:pN},"move-right":{inKeyframes:gN,outKeyframes:vN}},hf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=_N[t];return[Qf(r,i,o,e.motionDurationMid),{[`
|
|
188
|
-
${r}-enter,
|
|
189
|
-
${r}-appear
|
|
190
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ly=new Yt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ay=new Yt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dy=new Yt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Hy=new Yt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),SN=new Yt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),CN=new Yt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),wN=new Yt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xN=new Yt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EN={"slide-up":{inKeyframes:Ly,outKeyframes:Ay},"slide-down":{inKeyframes:Dy,outKeyframes:Hy},"slide-left":{inKeyframes:SN,outKeyframes:CN},"slide-right":{inKeyframes:wN,outKeyframes:xN}},ra=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=EN[t];return[Qf(r,i,o,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}}]},kN=new Yt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$N=new Yt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gC=new Yt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vC=new Yt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RN=new Yt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),TN=new Yt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),PN=new Yt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ON=new Yt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),IN=new Yt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),NN=new Yt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),MN=new Yt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),jN=new Yt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),zN={zoom:{inKeyframes:kN,outKeyframes:$N},"zoom-big":{inKeyframes:gC,outKeyframes:vC},"zoom-big-fast":{inKeyframes:gC,outKeyframes:vC},"zoom-left":{inKeyframes:PN,outKeyframes:ON},"zoom-right":{inKeyframes:IN,outKeyframes:NN},"zoom-up":{inKeyframes:RN,outKeyframes:TN},"zoom-down":{inKeyframes:MN,outKeyframes:jN}},Gu=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=zN[t];return[Qf(r,i,o,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}}]},BN=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:u,lineWidth:d,lineType:f,colorBorder:m,colorText:g,colorTextHeading:v,colorTextDisabled:y,fontSizeLG:S,lineHeight:_,lineHeightLG:C,marginSM:w,paddingSM:k,paddingLG:$,paddingXS:T,motionDurationSlow:R,fontSizeIcon:O,contentPadding:N,fontHeight:I,fontHeightLG:j}=e,L=`${re(d)} ${f} ${m}`;return{[t]:Object.assign(Object.assign({},qn(e)),{backgroundColor:i,border:L,borderRadius:u,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:L,"&:first-child":{[`
|
|
197
|
-
&,
|
|
198
|
-
& > ${t}-header`]:{borderRadius:`${re(u)} ${re(u)} 0 0`}},"&:last-child":{[`
|
|
199
|
-
&,
|
|
200
|
-
& > ${t}-header`]:{borderRadius:`0 0 ${re(u)} ${re(u)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:v,lineHeight:_,cursor:"pointer",transition:`all ${R}, visibility 0s`},po(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:I,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},sc()),{fontSize:O,transition:`transform ${R}`,svg:{transition:`transform ${R}`}}),[`${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:g,backgroundColor:n,borderTop:L,[`& > ${t}-content-box`]:{padding:N},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(k).sub(T).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:k}}},"&-large":{[`> ${t}-item`]:{fontSize:S,lineHeight:C,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:j,marginInlineStart:e.calc($).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:$}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${re(u)} ${re(u)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:y,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},LN=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},AN=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
|
|
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:i,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},DN=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}}}}}},HN=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"}),FN=vn("Collapse",e=>{const t=Jt(e,{collapseHeaderPaddingSM:`${re(e.paddingXS)} ${re(e.paddingSM)}`,collapseHeaderPaddingLG:`${re(e.padding)} ${re(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[BN(t),AN(t),DN(t),LN(t),uk(t)]},HN),WN=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:o,style:a}=Dr("collapse"),{prefixCls:l,className:u,rootClassName:d,style:f,bordered:m=!0,ghost:g,size:v,expandIconPosition:y="start",children:S,destroyInactivePanel:_,destroyOnHidden:C,expandIcon:w}=e,k=Xi(D=>{var F;return(F=v??D)!==null&&F!==void 0?F:"middle"}),$=n("collapse",l),T=n(),[R,O,N]=FN($),I=h.useMemo(()=>y==="left"?"start":y==="right"?"end":y,[y]),j=w??i,L=h.useCallback((D={})=>{const F=typeof j=="function"?j(D):h.createElement(Ui,{rotate:D.isActive?r==="rtl"?-90:90:void 0,"aria-label":D.isActive?"expanded":"collapsed"});return Xr(F,()=>{var V;return{className:ne((V=F.props)===null||V===void 0?void 0:V.className,`${$}-arrow`)}})},[j,$,r]),M=ne(`${$}-icon-position-${I}`,{[`${$}-borderless`]:!m,[`${$}-rtl`]:r==="rtl",[`${$}-ghost`]:!!g,[`${$}-${k}`]:k!=="middle"},o,u,d,O,N),B=h.useMemo(()=>Object.assign(Object.assign({},rk(T)),{motionAppear:!1,leavedClassName:`${$}-content-hidden`}),[T,$]),z=h.useMemo(()=>S?pi(S).map((D,F)=>{var V,A;const X=D.props;if(X!=null&&X.disabled){const q=(V=D.key)!==null&&V!==void 0?V:String(F),H=Object.assign(Object.assign({},rr(D.props,["disabled"])),{key:q,collapsible:(A=X.collapsible)!==null&&A!==void 0?A:"disabled"});return Xr(D,H)}return D}):null,[S]);return R(h.createElement(By,Object.assign({ref:t,openMotion:B},rr(e,["rootClassName"]),{expandIcon:L,prefixCls:$,className:M,style:Object.assign(Object.assign({},a),f),destroyInactivePanel:C??_}),z))}),iu=Object.assign(WN,{Panel:sN}),VN=e=>e instanceof Qv?e:new Qv(e),UN=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Pu(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},dk=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Jt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},hk=e=>{var t,n,r,i,o,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,u=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,d=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,f=(i=e.contentLineHeight)!==null&&i!==void 0?i:Hh(l),m=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:Hh(u),g=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Hh(d),v=UN(new Qv(e.colorBgSolid),"#fff")?"#000":"#fff",y=ta.reduce((S,_)=>Object.assign(Object.assign({},S),{[`${_}ShadowColor`]:`0 ${re(e.controlOutlineWidth)} 0 ${ru(e[`${_}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},y),{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:v,contentFontSize:l,contentFontSizeSM:u,contentFontSizeLG:d,contentLineHeight:f,contentLineHeightSM:m,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-l*f)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-u*m)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-d*g)/2-e.lineWidth,0)})},qN=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,iconGap:l,calc:u}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${re(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`]:sc(),"> a":{color:"currentColor"},"&:not(:disabled)":po(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:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(l).mul(-1).equal()}}}}}},fk=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),KN=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),GN=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Zf=(e,t,n,r,i,o,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},fk(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),XN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},GN(e))}),YN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),em=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?YN:XN;return Object.assign(Object.assign({},o(e)),fk(e.componentCls,t,n))},tm=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},em(e,r,i))}),nm=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},em(e,r,i))}),rm=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),im=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},em(e,n,r))}),Jo=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},em(e,r,i,n))}),JN=e=>{const{componentCls:t}=e;return ta.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],u=e[`${r}3`],d=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:i,boxShadow:e[`${r}ShadowColor`]},tm(e,e.colorTextLightSolid,i,{background:a},{background:d})),nm(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:d,borderColor:d,background:e.colorBgContainer})),rm(e)),im(e,o,{color:i,background:l},{color:i,background:u})),Jo(e,i,"link",{color:a},{color:d})),Jo(e,i,"text",{color:a,background:o},{color:d,background:u}))})},{})},QN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},tm(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),rm(e)),im(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Zf(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Jo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ZN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},nm(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),rm(e)),im(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Jo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Jo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Zf(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),eM=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},tm(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),nm(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),rm(e)),im(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Jo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Jo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Zf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tM=e=>Object.assign(Object.assign({},Jo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Zf(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),nM=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:QN(e),[`${t}-color-primary`]:ZN(e),[`${t}-color-dangerous`]:eM(e),[`${t}-color-link`]:tM(e)},JN(e))},rM=e=>Object.assign(Object.assign(Object.assign(Object.assign({},nm(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Jo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),tm(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Jo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Fy=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:u,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:i,height:r,padding:`${re(u)} ${re(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:d}}}},{[`${n}${n}-circle${t}`]:KN(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},iM=e=>{const t=Jt(e,{fontSize:e.contentFontSize});return Fy(t,e.componentCls)},oM=e=>{const t=Jt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Fy(t,`${e.componentCls}-sm`)},sM=e=>{const t=Jt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Fy(t,`${e.componentCls}-lg`)},aM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},lM=vn("Button",e=>{const t=dk(e);return[qN(t),iM(t),oM(t),sM(t),aM(t),nM(t),rM(t),VI(t)]},hk,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function cM(e,t,n,r){const{focusElCls:i,focus:o,borderElCls:a}=n,l=a?"> *":"",u=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).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({[u]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function uM(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function om(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,o=`${i}-compact`;return{[o]:Object.assign(Object.assign({},cM(e,o,t,i)),uM(i,o,t))}}function dM(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 hM(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 fM(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},dM(e,t,e.componentCls)),hM(e.componentCls,t))}}const mM=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=l=>{const u=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${u} + ${u}::before`]:{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},pM=Vu(["Button","compact"],e=>{const t=dk(e);return[om(t),fM(t),mM(t)]},hk);var gM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function vM(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 yM={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},bM=Q.forwardRef((e,t)=>{var n,r;const{loading:i=!1,prefixCls:o,color:a,variant:l,type:u,danger:d=!1,shape:f,size:m,styles:g,disabled:v,className:y,rootClassName:S,children:_,icon:C,iconPosition:w="start",ghost:k=!1,block:$=!1,htmlType:T="button",classNames:R,style:O={},autoInsertSpace:N,autoFocus:I}=e,j=gM(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=u||"default",{button:M}=Q.useContext(kt),B=f||(M==null?void 0:M.shape)||"default",[z,D]=h.useMemo(()=>{if(a&&l)return[a,l];if(u||d){const Ct=yM[L]||[];return d?["danger",Ct[1]]:Ct}return M!=null&&M.color&&(M!=null&&M.variant)?[M.color,M.variant]:["default","outlined"]},[a,l,u,d,M==null?void 0:M.color,M==null?void 0:M.variant,L]),V=z==="danger"?"dangerous":z,{getPrefixCls:A,direction:X,autoInsertSpace:q,className:H,style:U,classNames:K,styles:G}=Dr("button"),J=(n=N??q)!==null&&n!==void 0?n:!0,ee=A("btn",o),[de,oe,ae]=lM(ee),_e=h.useContext(Xo),se=v??_e,ce=h.useContext(ok),he=h.useMemo(()=>vM(i),[i]),[ve,me]=h.useState(he.loading),[fe,ye]=h.useState(!1),xe=h.useRef(null),Ee=ts(t,xe),Ne=h.Children.count(_)===1&&!C&&!$g(D),Te=h.useRef(!0);Q.useEffect(()=>(Te.current=!1,()=>{Te.current=!0}),[]),fn(()=>{let Ct=null;he.delay>0?Ct=setTimeout(()=>{Ct=null,me(!0)},he.delay):me(he.loading);function nn(){Ct&&(clearTimeout(Ct),Ct=null)}return nn},[he.delay,he.loading]),h.useEffect(()=>{if(!xe.current||!J)return;const Ct=xe.current.textContent||"";Ne&&Jv(Ct)?fe||ye(!0):fe&&ye(!1)}),h.useEffect(()=>{I&&xe.current&&xe.current.focus()},[]);const Pe=Q.useCallback(Ct=>{var nn;if(ve||se){Ct.preventDefault();return}(nn=e.onClick)===null||nn===void 0||nn.call(e,("href"in e,Ct))},[e.onClick,ve,se]),{compactSize:ke,compactItemClassnames:Ce}=Wa(ee,X),Ve={large:"lg",small:"sm",middle:void 0},Ze=Xi(Ct=>{var nn,Qt;return(Qt=(nn=m??ke)!==null&&nn!==void 0?nn:ce)!==null&&Qt!==void 0?Qt:Ct}),_t=Ze&&(r=Ve[Ze])!==null&&r!==void 0?r:"",nt=ve?"loading":C,Ye=rr(j,["navigate"]),mt=ne(ee,oe,ae,{[`${ee}-${B}`]:B!=="default"&&B,[`${ee}-${L}`]:L,[`${ee}-dangerous`]:d,[`${ee}-color-${V}`]:V,[`${ee}-variant-${D}`]:D,[`${ee}-${_t}`]:_t,[`${ee}-icon-only`]:!_&&_!==0&&!!nt,[`${ee}-background-ghost`]:k&&!$g(D),[`${ee}-loading`]:ve,[`${ee}-two-chinese-chars`]:fe&&J&&!ve,[`${ee}-block`]:$,[`${ee}-rtl`]:X==="rtl",[`${ee}-icon-end`]:w==="end"},Ce,y,S,H),Je=Object.assign(Object.assign({},U),O),yt=ne(R==null?void 0:R.icon,K.icon),rt=Object.assign(Object.assign({},(g==null?void 0:g.icon)||{}),G.icon||{}),Le=Ct=>Q.createElement(ak,{prefixCls:ee,className:yt,style:rt},Ct),ot=()=>Q.createElement(WI,{existIcon:!!C,prefixCls:ee,loading:ve,mount:Te.current});let ze;C&&!ve?ze=Le(C):i&&typeof i=="object"&&i.icon?ze=Le(i.icon):ze=ot();const Ke=_||_===0?FI(_,Ne&&J):null;if(Ye.href!==void 0)return de(Q.createElement("a",Object.assign({},Ye,{className:ne(mt,{[`${ee}-disabled`]:se}),href:se?void 0:Ye.href,style:Je,onClick:Pe,ref:Ee,tabIndex:se?-1:0,"aria-disabled":se}),ze,Ke));let It=Q.createElement("button",Object.assign({},j,{type:T,className:mt,style:Je,onClick:Pe,disabled:se,ref:Ee}),ze,Ke,Ce&&Q.createElement(pM,{prefixCls:ee}));return $g(D)||(It=Q.createElement(Yf,{component:"Button",disabled:ve},It)),de(It)}),Gn=bM;Gn.Group=DI;Gn.__ANT_BUTTON=!0;const Og=e=>typeof(e==null?void 0:e.then)=="function",mk=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:l,isSilent:u,quitOnNullishReturnValue:d,actionFn:f}=e,m=h.useRef(!1),g=h.useRef(null),[v,y]=tc(!1),S=(...w)=>{o==null||o.apply(void 0,w)};h.useEffect(()=>{let w=null;return a&&(w=setTimeout(()=>{var k;(k=g.current)===null||k===void 0||k.focus({preventScroll:!0})})),()=>{w&&clearTimeout(w)}},[a]);const _=w=>{Og(w)&&(y(!0),w.then((...k)=>{y(!1,!0),S.apply(void 0,k),m.current=!1},k=>{if(y(!1,!0),m.current=!1,!(u!=null&&u()))return Promise.reject(k)}))},C=w=>{if(m.current)return;if(m.current=!0,!f){S();return}let k;if(l){if(k=f(w),d&&!Og(k)){m.current=!1,S(w);return}}else if(f.length)k=f(o),m.current=!1;else if(k=f(),!Og(k)){S();return}_(k)};return h.createElement(Gn,Object.assign({},sk(t),{onClick:C,loading:v,prefixCls:r},i,{ref:g}),n)},Xu=Q.createContext({}),{Provider:pk}=Xu,yC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:l,onConfirm:u}=h.useContext(Xu);return i?Q.createElement(mk,{isSilent:r,actionFn:l,close:(...d)=>{a==null||a.apply(void 0,d),u==null||u(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},bC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:l,onOk:u}=h.useContext(Xu);return Q.createElement(mk,{isSilent:n,type:a||"primary",actionFn:u,close:(...d)=>{t==null||t.apply(void 0,d),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var gk=h.createContext(null),_C=[];function _M(e,t){var n=h.useState(function(){if(!ai())return null;var y=document.createElement("div");return y}),r=le(n,1),i=r[0],o=h.useRef(!1),a=h.useContext(gk),l=h.useState(_C),u=le(l,2),d=u[0],f=u[1],m=a||(o.current?void 0:function(y){f(function(S){var _=[y].concat(Ae(S));return _})});function g(){i.parentElement||document.body.appendChild(i),o.current=!0}function v(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),o.current=!1}return fn(function(){return e?a?a(g):g():v(),v},[e]),fn(function(){d.length&&(d.forEach(function(y){return y()}),f(_C))},[d]),[i,m]}function SM(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 i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(l.width,10),d=parseInt(l.height,10);try{var f=u?"width: ".concat(l.width,";"):"",m=d?"height: ".concat(l.height,";"):"";vs(`
|
|
204
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
205
|
-
`).concat(f,`
|
|
206
|
-
`).concat(m,`
|
|
207
|
-
}`),t)}catch(y){console.error(y),i=u,o=d}}document.body.appendChild(n);var g=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,v=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),xu(t),{width:g,height:v}}function CM(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:SM(e)}function wM(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var xM="rc-util-locker-".concat(Date.now()),SC=0;function EM(e){var t=!!e,n=h.useState(function(){return SC+=1,"".concat(xM,"_").concat(SC)}),r=le(n,1),i=r[0];fn(function(){if(t){var o=CM(document.body).width,a=wM();vs(`
|
|
208
|
-
html body {
|
|
209
|
-
overflow-y: hidden;
|
|
210
|
-
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
211
|
-
}`),i)}else xu(i);return function(){xu(i)}},[t,i])}var kM=!1;function $M(e){return kM}var CC=function(t){return t===!1?!1:!ai()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},sm=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,l=e.children,u=h.useState(n),d=le(u,2),f=d[0],m=d[1],g=f||n;h.useEffect(function(){(a||n)&&m(n)},[n,a]);var v=h.useState(function(){return CC(i)}),y=le(v,2),S=y[0],_=y[1];h.useEffect(function(){var L=CC(i);_(L??null)});var C=_M(g&&!S),w=le(C,2),k=w[0],$=w[1],T=S??k;EM(r&&n&&ai()&&(T===k||T===document.body));var R=null;if(l&&ia(l)&&t){var O=l;R=O.ref}var N=ts(R,t);if(!g||!ai()||S===void 0)return null;var I=T===!1||$M(),j=l;return t&&(j=h.cloneElement(l,{ref:N})),h.createElement(gk.Provider,{value:$},I?j:Zs.createPortal(j,T))}),vk=h.createContext({});function RM(){var e=Z({},Df);return e.useId}var wC=0,xC=RM();const am=xC?(function(t){var n=xC();return t||n}):(function(t){var n=h.useState("ssr-id"),r=le(n,2),i=r[0],o=r[1];return h.useEffect(function(){var a=wC;wC+=1,o("rc_unique_".concat(a))},[]),t||i});function EC(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function kC(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function TM(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=kC(i),n.top+=kC(i,!0),n}const PM=h.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var OM={width:0,height:0,overflow:"hidden",outline:"none"},IM={outline:"none"},yk=Q.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,l=e.footer,u=e.closable,d=e.closeIcon,f=e.onClose,m=e.children,g=e.bodyStyle,v=e.bodyProps,y=e.modalRender,S=e.onMouseDown,_=e.onMouseUp,C=e.holderRef,w=e.visible,k=e.forceRender,$=e.width,T=e.height,R=e.classNames,O=e.styles,N=Q.useContext(vk),I=N.panel,j=ts(C,I),L=h.useRef(),M=h.useRef();Q.useImperativeHandle(t,function(){return{focus:function(){var U;(U=L.current)===null||U===void 0||U.focus({preventScroll:!0})},changeActive:function(U){var K=document,G=K.activeElement;U&&G===M.current?L.current.focus({preventScroll:!0}):!U&&G===L.current&&M.current.focus({preventScroll:!0})}}});var B={};$!==void 0&&(B.width=$),T!==void 0&&(B.height=T);var z=l?Q.createElement("div",{className:ne("".concat(n,"-footer"),R==null?void 0:R.footer),style:Z({},O==null?void 0:O.footer)},l):null,D=o?Q.createElement("div",{className:ne("".concat(n,"-header"),R==null?void 0:R.header),style:Z({},O==null?void 0:O.header)},Q.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,F=h.useMemo(function(){return St(u)==="object"&&u!==null?u:u?{closeIcon:d??Q.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[u,d,n]),V=Ni(F,!0),A=St(u)==="object"&&u.disabled,X=u?Q.createElement("button",$e({type:"button",onClick:f,"aria-label":"Close"},V,{className:"".concat(n,"-close"),disabled:A}),F.closeIcon):null,q=Q.createElement("div",{className:ne("".concat(n,"-content"),R==null?void 0:R.content),style:O==null?void 0:O.content},X,D,Q.createElement("div",$e({className:ne("".concat(n,"-body"),R==null?void 0:R.body),style:Z(Z({},g),O==null?void 0:O.body)},v),m),z);return Q.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:j,style:Z(Z({},i),B),className:ne(n,r),onMouseDown:S,onMouseUp:_},Q.createElement("div",{ref:L,tabIndex:0,style:IM},Q.createElement(PM,{shouldUpdate:w||k},y?y(q):q)),Q.createElement("div",{tabIndex:0,ref:M,style:OM}))}),bk=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,l=e.forceRender,u=e.destroyOnClose,d=e.motionName,f=e.ariaId,m=e.onVisibleChanged,g=e.mousePosition,v=h.useRef(),y=h.useState(),S=le(y,2),_=S[0],C=S[1],w={};_&&(w.transformOrigin=_);function k(){var $=TM(v.current);C(g&&(g.x||g.y)?"".concat(g.x-$.left,"px ").concat(g.y-$.top,"px"):"")}return h.createElement(Gi,{visible:a,onVisibleChanged:m,onAppearPrepare:k,onEnterPrepare:k,forceRender:l,motionName:d,removeOnLeave:u,ref:v},function($,T){var R=$.className,O=$.style;return h.createElement(yk,$e({},e,{ref:t,title:r,ariaId:f,prefixCls:n,holderRef:T,style:Z(Z(Z({},O),i),w),className:ne(o,R)}))})});bk.displayName="Content";var NM=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,l=t.className;return h.createElement(Gi,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(u,d){var f=u.className,m=u.style;return h.createElement("div",$e({ref:d,style:Z(Z({},m),r),className:ne("".concat(n,"-mask"),f,l)},o))})},MM=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,i=t.zIndex,o=t.visible,a=o===void 0?!1:o,l=t.keyboard,u=l===void 0?!0:l,d=t.focusTriggerAfterClose,f=d===void 0?!0:d,m=t.wrapStyle,g=t.wrapClassName,v=t.wrapProps,y=t.onClose,S=t.afterOpenChange,_=t.afterClose,C=t.transitionName,w=t.animation,k=t.closable,$=k===void 0?!0:k,T=t.mask,R=T===void 0?!0:T,O=t.maskTransitionName,N=t.maskAnimation,I=t.maskClosable,j=I===void 0?!0:I,L=t.maskStyle,M=t.maskProps,B=t.rootClassName,z=t.classNames,D=t.styles,F=h.useRef(),V=h.useRef(),A=h.useRef(),X=h.useState(a),q=le(X,2),H=q[0],U=q[1],K=am();function G(){Cv(V.current,document.activeElement)||(F.current=document.activeElement)}function J(){if(!Cv(V.current,document.activeElement)){var me;(me=A.current)===null||me===void 0||me.focus()}}function ee(me){if(me)J();else{if(U(!1),R&&F.current&&f){try{F.current.focus({preventScroll:!0})}catch{}F.current=null}H&&(_==null||_())}S==null||S(me)}function de(me){y==null||y(me)}var oe=h.useRef(!1),ae=h.useRef(),_e=function(){clearTimeout(ae.current),oe.current=!0},se=function(){ae.current=setTimeout(function(){oe.current=!1})},ce=null;j&&(ce=function(fe){oe.current?oe.current=!1:V.current===fe.target&&de(fe)});function he(me){if(u&&me.keyCode===Xe.ESC){me.stopPropagation(),de(me);return}a&&me.keyCode===Xe.TAB&&A.current.changeActive(!me.shiftKey)}h.useEffect(function(){a&&(U(!0),G())},[a]),h.useEffect(function(){return function(){clearTimeout(ae.current)}},[]);var ve=Z(Z(Z({zIndex:i},m),D==null?void 0:D.wrapper),{},{display:H?null:"none"});return h.createElement("div",$e({className:ne("".concat(r,"-root"),B)},Ni(t,{data:!0})),h.createElement(NM,{prefixCls:r,visible:R&&a,motionName:EC(r,O,N),style:Z(Z({zIndex:i},L),D==null?void 0:D.mask),maskProps:M,className:z==null?void 0:z.mask}),h.createElement("div",$e({tabIndex:-1,onKeyDown:he,className:ne("".concat(r,"-wrap"),g,z==null?void 0:z.wrapper),ref:V,onClick:ce,style:ve},v),h.createElement(bk,$e({},t,{onMouseDown:_e,onMouseUp:se,ref:A,closable:$,ariaId:K,prefixCls:r,visible:a&&H,onClose:de,onVisibleChanged:ee,motionName:EC(r,C,w)}))))},_k=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,l=t.afterClose,u=t.panelRef,d=h.useState(n),f=le(d,2),m=f[0],g=f[1],v=h.useMemo(function(){return{panel:u}},[u]);return h.useEffect(function(){n&&g(!0)},[n]),!i&&a&&!m?null:h.createElement(vk.Provider,{value:v},h.createElement(sm,{open:n||i||m,autoDestroy:!1,getContainer:r,autoLock:n||m},h.createElement(MM,$e({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),g(!1)}}))))};_k.displayName="Dialog";var xa="RC_FORM_INTERNAL_HOOKS",Mn=function(){Ar(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rc=h.createContext({getFieldValue:Mn,getFieldsValue:Mn,getFieldError:Mn,getFieldWarning:Mn,getFieldsError:Mn,isFieldsTouched:Mn,isFieldTouched:Mn,isFieldValidating:Mn,isFieldsValidating:Mn,resetFields:Mn,setFields:Mn,setFieldValue:Mn,setFieldsValue:Mn,validateFields:Mn,submit:Mn,getInternalHooks:function(){return Mn(),{dispatch:Mn,initEntityValue:Mn,registerField:Mn,useSubscribe:Mn,setInitialValues:Mn,destroyForm:Mn,setCallbacks:Mn,registerWatch:Mn,getFields:Mn,setValidateMessages:Mn,setPreserve:Mn,getInitialValue:Mn}}}),ff=h.createContext(null);function Zv(e){return e==null?[]:Array.isArray(e)?e:[e]}function jM(e){return e&&!!e._init}function e0(){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 t0=e0();function zM(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function BM(e,t,n){if(by())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Su(i,n.prototype),i}function n0(e){var t=typeof Map=="function"?new Map:void 0;return n0=function(r){if(r===null||!zM(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,i)}function i(){return BM(r,arguments,Cu(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Su(i,r)},n0(e)}var LM=/%[sdj%]/g,AM=function(){};function r0(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 qi(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 i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(LM,function(l){if(l==="%%")return"%";if(i>=o)return l;switch(l){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function DM(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function $r(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||DM(t)&&typeof e=="string"&&!e)}function HM(e,t,n){var r=[],i=0,o=e.length;function a(l){r.push.apply(r,Ae(l||[])),i++,i===o&&n(r)}e.forEach(function(l){t(l,a)})}function $C(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<i?t(e[l],o):n([])}o([])}function FM(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ae(e[n]||[]))}),t}var RC=(function(e){ys(n,e);var t=bs(n);function n(r,i){var o;return yr(this,n),o=t.call(this,"Async Validation Error"),Y(en(o),"errors",void 0),Y(en(o),"fields",void 0),o.errors=r,o.fields=i,o}return br(n)})(n0(Error));function WM(e,t,n,r,i){if(t.first){var o=new Promise(function(g,v){var y=function(C){return r(C),C.length?v(new RC(C,r0(C))):g(i)},S=FM(e);$C(S,n,y)});return o.catch(function(g){return g}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),u=l.length,d=0,f=[],m=new Promise(function(g,v){var y=function(_){if(f.push.apply(f,_),d++,d===u)return r(f),f.length?v(new RC(f,r0(f))):g(i)};l.length||(r(f),g(i)),l.forEach(function(S){var _=e[S];a.indexOf(S)!==-1?$C(_,n,y):HM(_,n,y)})});return m.catch(function(g){return g}),m}function VM(e){return!!(e&&e.message!==void 0)}function UM(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function TC(e,t){return function(n){var r;return e.fullFields?r=UM(t,e.fullFields):r=t[n.field||e.fullField],VM(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 PC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];St(r)==="object"&&St(e[n])==="object"?e[n]=Z(Z({},e[n]),r):e[n]=r}}return e}var Sl="enum",qM=function(t,n,r,i,o){t[Sl]=Array.isArray(t[Sl])?t[Sl]:[],t[Sl].indexOf(n)===-1&&i.push(qi(o.messages[Sl],t.fullField,t[Sl].join(", ")))},KM=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(qi(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(qi(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},GM=function(t,n,r,i,o){var a=typeof t.len=="number",l=typeof t.min=="number",u=typeof t.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,m=null,g=typeof n=="number",v=typeof n=="string",y=Array.isArray(n);if(g?m="number":v?m="string":y&&(m="array"),!m)return!1;y&&(f=n.length),v&&(f=n.replace(d,"_").length),a?f!==t.len&&i.push(qi(o.messages[m].len,t.fullField,t.len)):l&&!u&&f<t.min?i.push(qi(o.messages[m].min,t.fullField,t.min)):u&&!l&&f>t.max?i.push(qi(o.messages[m].max,t.fullField,t.max)):l&&u&&(f<t.min||f>t.max)&&i.push(qi(o.messages[m].range,t.fullField,t.min,t.max))},Sk=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||$r(n,a||t.type))&&i.push(qi(o.messages.required,t.fullField))},mh;const XM=(function(){if(mh)return mh;var e="[a-fA-F\\d:]",t=function(R){return R&&R.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}",i=["(?:".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}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),u=new RegExp("^".concat(n,"$")),d=new RegExp("^".concat(a,"$")),f=function(R){return R&&R.exact?l:new RegExp("(?:".concat(t(R)).concat(n).concat(t(R),")|(?:").concat(t(R)).concat(a).concat(t(R),")"),"g")};f.v4=function(T){return T&&T.exact?u:new RegExp("".concat(t(T)).concat(n).concat(t(T)),"g")},f.v6=function(T){return T&&T.exact?d:new RegExp("".concat(t(T)).concat(a).concat(t(T)),"g")};var m="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",v=f.v4().source,y=f.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",k='(?:[/?#][^\\s"]*)?',$="(?:".concat(m,"|www\\.)").concat(g,"(?:localhost|").concat(v,"|").concat(y,"|").concat(S).concat(_).concat(C,")").concat(w).concat(k);return mh=new RegExp("(?:^".concat($,"$)"),"i"),mh});var Ig={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},ou={integer:function(t){return ou.number(t)&&parseInt(t,10)===t},float:function(t){return ou.number(t)&&!ou.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 St(t)==="object"&&!ou.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ig.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(Ig.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(XM())},hex:function(t){return typeof t=="string"&&!!t.match(Ig.hex)}},YM=function(t,n,r,i,o){if(t.required&&n===void 0){Sk(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?ou[l](n)||i.push(qi(o.messages.types[l],t.fullField,t.type)):l&&St(n)!==t.type&&i.push(qi(o.messages.types[l],t.fullField,t.type))},JM=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(qi(o.messages.whitespace,t.fullField))};const un={required:Sk,whitespace:JM,type:YM,range:GM,enum:qM,pattern:KM};var QM=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o)}r(a)},ZM=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();un.required(t,n,i,a,o,"array"),n!=null&&(un.type(t,n,i,a,o),un.range(t,n,i,a,o))}r(a)},e8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&un.type(t,n,i,a,o)}r(a)},t8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n,"date")&&!t.required)return r();if(un.required(t,n,i,a,o),!$r(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),un.type(t,u,i,a,o),u&&un.range(t,u.getTime(),i,a,o)}}r(a)},n8="enum",r8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&un[n8](t,n,i,a,o)}r(a)},i8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&(un.type(t,n,i,a,o),un.range(t,n,i,a,o))}r(a)},o8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&(un.type(t,n,i,a,o),un.range(t,n,i,a,o))}r(a)},s8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&un.type(t,n,i,a,o)}r(a)},a8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),$r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&(un.type(t,n,i,a,o),un.range(t,n,i,a,o))}r(a)},l8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),n!==void 0&&un.type(t,n,i,a,o)}r(a)},c8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n,"string")&&!t.required)return r();un.required(t,n,i,a,o),$r(n,"string")||un.pattern(t,n,i,a,o)}r(a)},u8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n)&&!t.required)return r();un.required(t,n,i,a,o),$r(n)||un.type(t,n,i,a,o)}r(a)},d8=function(t,n,r,i,o){var a=[],l=Array.isArray(n)?"array":St(n);un.required(t,n,i,a,o,l),r(a)},h8=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($r(n,"string")&&!t.required)return r();un.required(t,n,i,a,o,"string"),$r(n,"string")||(un.type(t,n,i,a,o),un.range(t,n,i,a,o),un.pattern(t,n,i,a,o),t.whitespace===!0&&un.whitespace(t,n,i,a,o))}r(a)},ph=function(t,n,r,i,o){var a=t.type,l=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if($r(n,a)&&!t.required)return r();un.required(t,n,i,l,o,a),$r(n,a)||un.type(t,n,i,l,o)}r(l)};const gu={string:h8,method:s8,number:a8,boolean:e8,regexp:u8,integer:o8,float:i8,array:ZM,object:l8,enum:r8,pattern:c8,date:t8,url:ph,hex:ph,email:ph,tel:ph,required:d8,any:QM};var Yu=(function(){function e(t){yr(this,e),Y(this,"rules",null),Y(this,"_messages",t0),this.define(t)}return br(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(St(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=PC(e0(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function d(y){var S=[],_={};function C(k){if(Array.isArray(k)){var $;S=($=S).concat.apply($,Ae(k))}else S.push(k)}for(var w=0;w<y.length;w++)C(y[w]);S.length?(_=r0(S),u(S,_)):u(null,a)}if(l.messages){var f=this.messages();f===t0&&(f=e0()),PC(f,l.messages),l.messages=f}else l.messages=this.messages();var m={},g=l.keys||Object.keys(this.rules);g.forEach(function(y){var S=r.rules[y],_=a[y];S.forEach(function(C){var w=C;typeof w.transform=="function"&&(a===n&&(a=Z({},a)),_=a[y]=w.transform(_),_!=null&&(w.type=w.type||(Array.isArray(_)?"array":St(_)))),typeof w=="function"?w={validator:w}:w=Z({},w),w.validator=r.getValidationMethod(w),w.validator&&(w.field=y,w.fullField=w.fullField||y,w.type=r.getType(w),m[y]=m[y]||[],m[y].push({rule:w,value:_,source:a,field:y}))})});var v={};return WM(m,l,function(y,S){var _=y.rule,C=(_.type==="object"||_.type==="array")&&(St(_.fields)==="object"||St(_.defaultField)==="object");C=C&&(_.required||!_.required&&y.value),_.field=y.field;function w(O,N){return Z(Z({},N),{},{fullField:"".concat(_.fullField,".").concat(O),fullFields:_.fullFields?[].concat(Ae(_.fullFields),[O]):[O]})}function k(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(O)?O:[O];!l.suppressWarning&&N.length&&e.warning("async-validator:",N),N.length&&_.message!==void 0&&_.message!==null&&(N=[].concat(_.message));var I=N.map(TC(_,a));if(l.first&&I.length)return v[_.field]=1,S(I);if(!C)S(I);else{if(_.required&&!y.value)return _.message!==void 0?I=[].concat(_.message).map(TC(_,a)):l.error&&(I=[l.error(_,qi(l.messages.required,_.field))]),S(I);var j={};_.defaultField&&Object.keys(y.value).map(function(B){j[B]=_.defaultField}),j=Z(Z({},j),y.rule.fields);var L={};Object.keys(j).forEach(function(B){var z=j[B],D=Array.isArray(z)?z:[z];L[B]=D.map(w.bind(null,B))});var M=new e(L);M.messages(l.messages),y.rule.options&&(y.rule.options.messages=l.messages,y.rule.options.error=l.error),M.validate(y.value,y.rule.options||l,function(B){var z=[];I&&I.length&&z.push.apply(z,Ae(I)),B&&B.length&&z.push.apply(z,Ae(B)),S(z.length?z:null)})}}var $;if(_.asyncValidator)$=_.asyncValidator(_,y.value,k,y.source,l);else if(_.validator){try{$=_.validator(_,y.value,k,y.source,l)}catch(O){var T,R;(T=(R=console).error)===null||T===void 0||T.call(R,O),l.suppressValidatorError||setTimeout(function(){throw O},0),k(O.message)}$===!0?k():$===!1?k(typeof _.message=="function"?_.message(_.fullField||_.field):_.message||"".concat(_.fullField||_.field," fails")):$ instanceof Array?k($):$ instanceof Error&&k($.message)}$&&$.then&&$.then(function(){return k()},function(O){return k(O)})},function(y){d(y)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!gu.hasOwnProperty(n.type))throw new Error(qi("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),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?gu.required:gu[this.getType(n)]||void 0}}]),e})();Y(Yu,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");gu[t]=n});Y(Yu,"warning",AM);Y(Yu,"messages",t0);Y(Yu,"validators",gu);var Hi="'${name}' is not a valid ${type}",Ck={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:Hi,method:Hi,array:Hi,object:Hi,number:Hi,date:Hi,boolean:Hi,integer:Hi,float:Hi,regexp:Hi,email:Hi,url:Hi,hex:Hi},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}"}},OC=Yu;function f8(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 IC="CODE_LOGIC_ERROR";function i0(e,t,n,r,i){return o0.apply(this,arguments)}function o0(){return o0=Fa(li().mark(function e(t,n,r,i,o){var a,l,u,d,f,m,g,v,y;return li().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return a=Z({},r),delete a.ruleIndex,OC.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(IC)}}),u=null,a&&a.type==="array"&&a.defaultField&&(u=a.defaultField,delete a.defaultField),d=new OC(Y({},t,[a])),f=Ll(Ck,i.validateMessages),d.messages(f),m=[],_.prev=10,_.next=13,Promise.resolve(d.validate(Y({},t,n),Z({},i)));case 13:_.next=18;break;case 15:_.prev=15,_.t0=_.catch(10),_.t0.errors&&(m=_.t0.errors.map(function(C,w){var k=C.message,$=k===IC?f.default:k;return h.isValidElement($)?h.cloneElement($,{key:"error_".concat(w)}):$}));case 18:if(!(!m.length&&u&&Array.isArray(n)&&n.length>0)){_.next=23;break}return _.next=21,Promise.all(n.map(function(C,w){return i0("".concat(t,".").concat(w),C,u,i,o)}));case 21:return g=_.sent,_.abrupt("return",g.reduce(function(C,w){return[].concat(Ae(C),Ae(w))},[]));case 23:return v=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),y=m.map(function(C){return typeof C=="string"?f8(C,v):C}),_.abrupt("return",y);case 26:case"end":return _.stop()}},e,null,[[10,15]])})),o0.apply(this,arguments)}function m8(e,t,n,r,i,o){var a=e.join("."),l=n.map(function(f,m){var g=f.validator,v=Z(Z({},f),{},{ruleIndex:m});return g&&(v.validator=function(y,S,_){var C=!1,w=function(){for(var T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];Promise.resolve().then(function(){Ar(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||_.apply(void 0,R)})},k=g(y,S,w);C=k&&typeof k.then=="function"&&typeof k.catch=="function",Ar(C,"`callback` is deprecated. Please return a promise instead."),C&&k.then(function(){_()}).catch(function($){_($||" ")})}),v}).sort(function(f,m){var g=f.warningOnly,v=f.ruleIndex,y=m.warningOnly,S=m.ruleIndex;return!!g==!!y?v-S:g?1:-1}),u;if(i===!0)u=new Promise((function(){var f=Fa(li().mark(function m(g,v){var y,S,_;return li().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:y=0;case 1:if(!(y<l.length)){w.next=12;break}return S=l[y],w.next=5,i0(a,t,S,r,o);case 5:if(_=w.sent,!_.length){w.next=9;break}return v([{errors:_,rule:S}]),w.abrupt("return");case 9:y+=1,w.next=1;break;case 12:g([]);case 13:case"end":return w.stop()}},m)}));return function(m,g){return f.apply(this,arguments)}})());else{var d=l.map(function(f){return i0(a,t,f,r,o).then(function(m){return{errors:m,rule:f}})});u=(i?g8(d):p8(d)).then(function(f){return Promise.reject(f)})}return u.catch(function(f){return f}),u}function p8(e){return s0.apply(this,arguments)}function s0(){return s0=Fa(li().mark(function e(t){return li().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,Ae(i));return a}));case 1:case"end":return r.stop()}},e)})),s0.apply(this,arguments)}function g8(e){return a0.apply(this,arguments)}function a0(){return a0=Fa(li().mark(function e(t){var n;return li().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(l){l.errors.length&&o([l]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),a0.apply(this,arguments)}function hr(e){return Zv(e)}function NC(e,t){var n={};return t.forEach(function(r){var i=Uo(e,r);n=ko(n,r,i)}),n}function ql(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return wk(t,r,n)})}function wk(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,i){return e[i]===r})}function v8(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||St(e)!=="object"||St(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return Ae(i).every(function(o){var a=e[o],l=t[o];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function y8(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&St(t.target)==="object"&&e in t.target?t.target[e]:t}function MC(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(Ae(e.slice(0,n)),[i],Ae(e.slice(n,t)),Ae(e.slice(t+1,r))):o<0?[].concat(Ae(e.slice(0,t)),Ae(e.slice(t+1,n+1)),[i],Ae(e.slice(n+1,r))):e}var b8=["name"],io=[];function Ng(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Wy=(function(e){ys(n,e);var t=bs(n);function n(r){var i;if(yr(this,n),i=t.call(this,r),Y(en(i),"state",{resetCount:0}),Y(en(i),"cancelRegisterFunc",null),Y(en(i),"mounted",!1),Y(en(i),"touched",!1),Y(en(i),"dirty",!1),Y(en(i),"validatePromise",void 0),Y(en(i),"prevValidating",void 0),Y(en(i),"errors",io),Y(en(i),"warnings",io),Y(en(i),"cancelRegister",function(){var u=i.props,d=u.preserve,f=u.isListField,m=u.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(f,d,hr(m)),i.cancelRegisterFunc=null}),Y(en(i),"getNamePath",function(){var u=i.props,d=u.name,f=u.fieldContext,m=f.prefixName,g=m===void 0?[]:m;return d!==void 0?[].concat(Ae(g),Ae(d)):[]}),Y(en(i),"getRules",function(){var u=i.props,d=u.rules,f=d===void 0?[]:d,m=u.fieldContext;return f.map(function(g){return typeof g=="function"?g(m):g})}),Y(en(i),"refresh",function(){i.mounted&&i.setState(function(u){var d=u.resetCount;return{resetCount:d+1}})}),Y(en(i),"metaCache",null),Y(en(i),"triggerMetaEvent",function(u){var d=i.props.onMetaChange;if(d){var f=Z(Z({},i.getMeta()),{},{destroy:u});Eu(i.metaCache,f)||d(f),i.metaCache=f}else i.metaCache=null}),Y(en(i),"onStoreChange",function(u,d,f){var m=i.props,g=m.shouldUpdate,v=m.dependencies,y=v===void 0?[]:v,S=m.onReset,_=f.store,C=i.getNamePath(),w=i.getValue(u),k=i.getValue(_),$=d&&ql(d,C);switch(f.type==="valueUpdate"&&f.source==="external"&&!Eu(w,k)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=io,i.warnings=io,i.triggerMetaEvent()),f.type){case"reset":if(!d||$){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=io,i.warnings=io,i.triggerMetaEvent(),S==null||S(),i.refresh();return}break;case"remove":{if(g&&Ng(g,u,_,w,k,f)){i.reRender();return}break}case"setField":{var T=f.data;if($){"touched"in T&&(i.touched=T.touched),"validating"in T&&!("originRCField"in T)&&(i.validatePromise=T.validating?Promise.resolve([]):null),"errors"in T&&(i.errors=T.errors||io),"warnings"in T&&(i.warnings=T.warnings||io),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in T&&ql(d,C,!0)){i.reRender();return}if(g&&!C.length&&Ng(g,u,_,w,k,f)){i.reRender();return}break}case"dependenciesUpdate":{var R=y.map(hr);if(R.some(function(O){return ql(f.relatedFields,O)})){i.reRender();return}break}default:if($||(!y.length||C.length||g)&&Ng(g,u,_,w,k,f)){i.reRender();return}break}g===!0&&i.reRender()}),Y(en(i),"validateRules",function(u){var d=i.getNamePath(),f=i.getValue(),m=u||{},g=m.triggerName,v=m.validateOnly,y=v===void 0?!1:v,S=Promise.resolve().then(Fa(li().mark(function _(){var C,w,k,$,T,R,O;return li().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(i.mounted){I.next=2;break}return I.abrupt("return",[]);case 2:if(C=i.props,w=C.validateFirst,k=w===void 0?!1:w,$=C.messageVariables,T=C.validateDebounce,R=i.getRules(),g&&(R=R.filter(function(j){return j}).filter(function(j){var L=j.validateTrigger;if(!L)return!0;var M=Zv(L);return M.includes(g)})),!(T&&g)){I.next=10;break}return I.next=8,new Promise(function(j){setTimeout(j,T)});case 8:if(i.validatePromise===S){I.next=10;break}return I.abrupt("return",[]);case 10:return O=m8(d,f,R,u,k,$),O.catch(function(j){return j}).then(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:io;if(i.validatePromise===S){var L;i.validatePromise=null;var M=[],B=[];(L=j.forEach)===null||L===void 0||L.call(j,function(z){var D=z.rule.warningOnly,F=z.errors,V=F===void 0?io:F;D?B.push.apply(B,Ae(V)):M.push.apply(M,Ae(V))}),i.errors=M,i.warnings=B,i.triggerMetaEvent(),i.reRender()}}),I.abrupt("return",O);case 13:case"end":return I.stop()}},_)})));return y||(i.validatePromise=S,i.dirty=!0,i.errors=io,i.warnings=io,i.triggerMetaEvent(),i.reRender()),S}),Y(en(i),"isFieldValidating",function(){return!!i.validatePromise}),Y(en(i),"isFieldTouched",function(){return i.touched}),Y(en(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var u=i.props.fieldContext,d=u.getInternalHooks(xa),f=d.getInitialValue;return f(i.getNamePath())!==void 0}),Y(en(i),"getErrors",function(){return i.errors}),Y(en(i),"getWarnings",function(){return i.warnings}),Y(en(i),"isListField",function(){return i.props.isListField}),Y(en(i),"isList",function(){return i.props.isList}),Y(en(i),"isPreserve",function(){return i.props.preserve}),Y(en(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var u={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return u}),Y(en(i),"getOnlyChild",function(u){if(typeof u=="function"){var d=i.getMeta();return Z(Z({},i.getOnlyChild(u(i.getControlled(),d,i.props.fieldContext))),{},{isFunction:!0})}var f=pi(u);return f.length!==1||!h.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),Y(en(i),"getValue",function(u){var d=i.props.fieldContext.getFieldsValue,f=i.getNamePath();return Uo(u||d(!0),f)}),Y(en(i),"getControlled",function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=i.props,f=d.name,m=d.trigger,g=d.validateTrigger,v=d.getValueFromEvent,y=d.normalize,S=d.valuePropName,_=d.getValueProps,C=d.fieldContext,w=g!==void 0?g:C.validateTrigger,k=i.getNamePath(),$=C.getInternalHooks,T=C.getFieldsValue,R=$(xa),O=R.dispatch,N=i.getValue(),I=_||function(z){return Y({},S,z)},j=u[m],L=f!==void 0?I(N):{},M=Z(Z({},u),L);M[m]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var z,D=arguments.length,F=new Array(D),V=0;V<D;V++)F[V]=arguments[V];v?z=v.apply(void 0,F):z=y8.apply(void 0,[S].concat(F)),y&&(z=y(z,N,T(!0))),z!==N&&O({type:"updateValue",namePath:k,value:z}),j&&j.apply(void 0,F)};var B=Zv(w||[]);return B.forEach(function(z){var D=M[z];M[z]=function(){D&&D.apply(void 0,arguments);var F=i.props.rules;F&&F.length&&O({type:"validateField",namePath:k,triggerName:z})}}),M}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(xa),l=a.initEntityValue;l(en(i))}return i}return br(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,u=l(xa),d=u.registerField;this.cancelRegisterFunc=d(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),l=a.child,u=a.isFunction,d;return u?d=l:h.isValidElement(l)?d=h.cloneElement(l,this.getControlled(l.props)):(Ar(!l,"`children` of Field is not validate ReactElement."),d=l),h.createElement(h.Fragment,{key:i},d)}}]),n})(h.Component);Y(Wy,"contextType",rc);Y(Wy,"defaultProps",{trigger:"onChange",valuePropName:"value"});function xk(e){var t,n=e.name,r=Bt(e,b8),i=h.useContext(rc),o=h.useContext(ff),a=n!==void 0?hr(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!o,u="keep";return l||(u="_".concat((a||[]).join("_"))),h.createElement(Wy,$e({key:u,name:a,isListField:l},r,{fieldContext:i}))}function _8(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,l=h.useContext(rc),u=h.useContext(ff),d=h.useRef({keys:[],id:0}),f=d.current,m=h.useMemo(function(){var S=hr(l.prefixName)||[];return[].concat(Ae(S),Ae(hr(t)))},[l.prefixName,t]),g=h.useMemo(function(){return Z(Z({},l),{},{prefixName:m})},[l,m]),v=h.useMemo(function(){return{getKey:function(_){var C=m.length,w=_[C];return[f.keys[w],_.slice(C+1)]}}},[m]);if(typeof r!="function")return Ar(!1,"Form.List only accepts function as children."),null;var y=function(_,C,w){var k=w.source;return k==="internal"?!1:_!==C};return h.createElement(ff.Provider,{value:v},h.createElement(rc.Provider,{value:g},h.createElement(xk,{name:[],shouldUpdate:y,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!u},function(S,_){var C=S.value,w=C===void 0?[]:C,k=S.onChange,$=l.getFieldValue,T=function(){var I=$(m||[]);return I||[]},R={add:function(I,j){var L=T();j>=0&&j<=L.length?(f.keys=[].concat(Ae(f.keys.slice(0,j)),[f.id],Ae(f.keys.slice(j))),k([].concat(Ae(L.slice(0,j)),[I],Ae(L.slice(j))))):(f.keys=[].concat(Ae(f.keys),[f.id]),k([].concat(Ae(L),[I]))),f.id+=1},remove:function(I){var j=T(),L=new Set(Array.isArray(I)?I:[I]);L.size<=0||(f.keys=f.keys.filter(function(M,B){return!L.has(B)}),k(j.filter(function(M,B){return!L.has(B)})))},move:function(I,j){if(I!==j){var L=T();I<0||I>=L.length||j<0||j>=L.length||(f.keys=MC(f.keys,I,j),k(MC(L,I,j)))}}},O=w||[];return Array.isArray(O)||(O=[]),r(O.map(function(N,I){var j=f.keys[I];return j===void 0&&(f.keys[I]=f.id,j=f.keys[I],f.id+=1),{name:I,key:j,isListField:!0}}),R,_)})))}function S8(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,l){a.catch(function(u){return t=!0,u}).then(function(u){n-=1,r[l]=u,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var Ek="__@field_split__";function Mg(e){return e.map(function(t){return"".concat(St(t),":").concat(t)}).join(Ek)}var Cl=(function(){function e(){yr(this,e),Y(this,"kvs",new Map)}return br(e,[{key:"set",value:function(n,r){this.kvs.set(Mg(n),r)}},{key:"get",value:function(n){return this.kvs.get(Mg(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Mg(n))}},{key:"map",value:function(n){return Ae(this.kvs.entries()).map(function(r){var i=le(r,2),o=i[0],a=i[1],l=o.split(Ek);return n({key:l.map(function(u){var d=u.match(/^([^:]*):(.*)$/),f=le(d,3),m=f[1],g=f[2];return m==="number"?Number(g):g}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e})(),C8=["name"],w8=br(function e(t){var n=this;yr(this,e),Y(this,"formHooked",!1),Y(this,"forceRootUpdate",void 0),Y(this,"subscribable",!0),Y(this,"store",{}),Y(this,"fieldEntities",[]),Y(this,"initialValues",{}),Y(this,"callbacks",{}),Y(this,"validateMessages",null),Y(this,"preserve",null),Y(this,"lastValidatePromise",null),Y(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}}),Y(this,"getInternalHooks",function(r){return r===xa?(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}):(Ar(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Y(this,"useSubscribe",function(r){n.subscribable=r}),Y(this,"prevWithoutPreserves",null),Y(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Ll(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var u=l.key;a=ko(a,u,Uo(r,u))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Y(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Cl;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),Y(this,"getInitialValue",function(r){var i=Uo(n.initialValues,r);return r.length?Ll(i):i}),Y(this,"setCallbacks",function(r){n.callbacks=r}),Y(this,"setValidateMessages",function(r){n.validateMessages=r}),Y(this,"setPreserve",function(r){n.preserve=r}),Y(this,"watchList",[]),Y(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),Y(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),Y(this,"timeoutId",null),Y(this,"warningUnhooked",function(){}),Y(this,"updateStore",function(r){n.store=r}),Y(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),Y(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Cl;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),Y(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=hr(o);return i.get(a)||{INVALIDATE_NAME_PATH:hr(o)}})}),Y(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,l;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&St(r)==="object"&&(l=r.strict,a=r.filter),o===!0&&!a)return n.store;var u=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return u.forEach(function(f){var m,g,v="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(l){var y,S;if((y=(S=f).isList)!==null&&y!==void 0&&y.call(S))return}else if(!o&&(m=(g=f).isListField)!==null&&m!==void 0&&m.call(g))return;if(!a)d.push(v);else{var _="getMeta"in f?f.getMeta():null;a(_)&&d.push(v)}}),NC(n.store,d.map(hr))}),Y(this,"getFieldValue",function(r){n.warningUnhooked();var i=hr(r);return Uo(n.store,i)}),Y(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:hr(r[a]),errors:[],warnings:[]}})}),Y(this,"getFieldError",function(r){n.warningUnhooked();var i=hr(r),o=n.getFieldsError([i])[0];return o.errors}),Y(this,"getFieldWarning",function(r){n.warningUnhooked();var i=hr(r),o=n.getFieldsError([i])[0];return o.warnings}),Y(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],l=i[1],u,d=!1;i.length===0?u=null:i.length===1?Array.isArray(a)?(u=a.map(hr),d=!1):(u=null,d=a):(u=a.map(hr),d=l);var f=n.getFieldEntities(!0),m=function(_){return _.isFieldTouched()};if(!u)return d?f.every(function(S){return m(S)||S.isList()}):f.some(m);var g=new Cl;u.forEach(function(S){g.set(S,[])}),f.forEach(function(S){var _=S.getNamePath();u.forEach(function(C){C.every(function(w,k){return _[k]===w})&&g.update(C,function(w){return[].concat(Ae(w),[S])})})});var v=function(_){return _.some(m)},y=g.map(function(S){var _=S.value;return _});return d?y.every(v):y.some(v)}),Y(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Y(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(hr);return i.some(function(a){var l=a.getNamePath();return ql(o,l)&&a.isFieldValidating()})}),Y(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Y(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Cl,o=n.getFieldEntities(!0);o.forEach(function(u){var d=u.props.initialValue,f=u.getNamePath();if(d!==void 0){var m=i.get(f)||new Set;m.add({entity:u,value:d}),i.set(f,m)}});var a=function(d){d.forEach(function(f){var m=f.props.initialValue;if(m!==void 0){var g=f.getNamePath(),v=n.getInitialValue(g);if(v!==void 0)Ar(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var y=i.get(g);if(y&&y.size>1)Ar(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var S=n.getFieldValue(g),_=f.isListField();!_&&(!r.skipExist||S===void 0)&&n.updateStore(ko(n.store,g,Ae(y)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(u){var d=i.get(u);if(d){var f;(f=l).push.apply(f,Ae(Ae(d).map(function(m){return m.entity})))}})):l=o,a(l)}),Y(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ll(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(hr);o.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(ko(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),Y(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var l=a.name,u=Bt(a,C8),d=hr(l);o.push(d),"value"in u&&n.updateStore(ko(n.store,d,u.value)),n.notifyObservers(i,[d],{type:"setField",data:a})}),n.notifyWatch(o)}),Y(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),l=o.getMeta(),u=Z(Z({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return i}),Y(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=Uo(n.store,o);a===void 0&&n.updateStore(ko(n.store,o,i))}}),Y(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),Y(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(m){return m!==r}),!n.isMergedPreserve(l)&&(!a||u.length>1)){var d=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==d&&n.fieldEntities.every(function(m){return!wk(m.getNamePath(),i)})){var f=n.store;n.updateStore(ko(f,i,d,!0)),n.notifyObservers(f,[i],{type:"remove"}),n.triggerDependenciesUpdate(f,i)}}n.notifyWatch([i])}}),Y(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),Y(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=Z(Z({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var u=l.onStoreChange;u(r,i,a)})}else n.forceRootUpdate()}),Y(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(Ae(o))}),o}),Y(this,"updateValue",function(r,i){var o=hr(r),a=n.store;n.updateStore(ko(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(a,o),u=n.callbacks.onValuesChange;if(u){var d=NC(n.store,[o]);u(d,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Ae(l)))}),Y(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Ll(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Y(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),Y(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Cl;n.getFieldEntities().forEach(function(u){var d=u.props.dependencies;(d||[]).forEach(function(f){var m=hr(f);a.update(m,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(u),g})})});var l=function u(d){var f=a.get(d)||new Set;f.forEach(function(m){if(!i.has(m)){i.add(m);var g=m.getNamePath();m.isFieldDirty()&&g.length&&(o.push(g),u(g))}})};return l(r),o}),Y(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var l=new Cl;i.forEach(function(d){var f=d.name,m=d.errors;l.set(f,m)}),a.forEach(function(d){d.errors=l.get(d.name)||d.errors})}var u=a.filter(function(d){var f=d.name;return ql(r,f)});u.length&&o(u,a)}}),Y(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var l=!!o,u=l?o.map(hr):[],d=[],f=String(Date.now()),m=new Set,g=a||{},v=g.recursive,y=g.dirty;n.getFieldEntities(!0).forEach(function(w){if(l||u.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(y&&!w.isFieldDirty())){var k=w.getNamePath();if(m.add(k.join(f)),!l||ql(u,k,v)){var $=w.validateRules(Z({validateMessages:Z(Z({},Ck),n.validateMessages)},a));d.push($.then(function(){return{name:k,errors:[],warnings:[]}}).catch(function(T){var R,O=[],N=[];return(R=T.forEach)===null||R===void 0||R.call(T,function(I){var j=I.rule.warningOnly,L=I.errors;j?N.push.apply(N,Ae(L)):O.push.apply(O,Ae(L))}),O.length?Promise.reject({name:k,errors:O,warnings:N}):{name:k,errors:O,warnings:N}}))}}});var S=S8(d);n.lastValidatePromise=S,S.catch(function(w){return w}).then(function(w){var k=w.map(function($){var T=$.name;return T});n.notifyObservers(n.store,k,{type:"validateFinish"}),n.triggerOnFieldsChange(k,w)});var _=S.then(function(){return n.lastValidatePromise===S?Promise.resolve(n.getFieldsValue(u)):Promise.reject([])}).catch(function(w){var k=w.filter(function($){return $&&$.errors.length});return Promise.reject({values:n.getFieldsValue(u),errorFields:k,outOfDate:n.lastValidatePromise!==S})});_.catch(function(w){return w});var C=u.filter(function(w){return m.has(w.join(f))});return n.triggerOnFieldsChange(C),_}),Y(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function kk(e){var t=h.useRef(),n=h.useState({}),r=le(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new w8(o);t.current=a.getForm()}return[t.current]}var l0=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),x8=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=h.useContext(l0),l=h.useRef({});return h.createElement(l0.Provider,{value:Z(Z({},a),{},{validateMessages:Z(Z({},a.validateMessages),n),triggerFormChange:function(d,f){r&&r(d,{changedFields:f,forms:l.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){i&&i(d,{values:f,forms:l.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(l.current=Z(Z({},l.current),{},Y({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=Z({},l.current);delete f[d],l.current=f,a.unregisterForm(d)}})},o)},E8=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],k8=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,l=t.preserve,u=t.children,d=t.component,f=d===void 0?"form":d,m=t.validateMessages,g=t.validateTrigger,v=g===void 0?"onChange":g,y=t.onValuesChange,S=t.onFieldsChange,_=t.onFinish,C=t.onFinishFailed,w=t.clearOnDestroy,k=Bt(t,E8),$=h.useRef(null),T=h.useContext(l0),R=kk(a),O=le(R,1),N=O[0],I=N.getInternalHooks(xa),j=I.useSubscribe,L=I.setInitialValues,M=I.setCallbacks,B=I.setValidateMessages,z=I.setPreserve,D=I.destroyForm;h.useImperativeHandle(n,function(){return Z(Z({},N),{},{nativeElement:$.current})}),h.useEffect(function(){return T.registerForm(r,N),function(){T.unregisterForm(r)}},[T,N,r]),B(Z(Z({},T.validateMessages),m)),M({onValuesChange:y,onFieldsChange:function(G){if(T.triggerFormChange(r,G),S){for(var J=arguments.length,ee=new Array(J>1?J-1:0),de=1;de<J;de++)ee[de-1]=arguments[de];S.apply(void 0,[G].concat(ee))}},onFinish:function(G){T.triggerFormFinish(r,G),_&&_(G)},onFinishFailed:C}),z(l);var F=h.useRef(null);L(i,!F.current),F.current||(F.current=!0),h.useEffect(function(){return function(){return D(w)}},[]);var V,A=typeof u=="function";if(A){var X=N.getFieldsValue(!0);V=u(X,N)}else V=u;j(!A);var q=h.useRef();h.useEffect(function(){v8(q.current||[],o||[])||N.setFields(o||[]),q.current=o},[o,N]);var H=h.useMemo(function(){return Z(Z({},N),{},{validateTrigger:v})},[N,v]),U=h.createElement(ff.Provider,{value:null},h.createElement(rc.Provider,{value:H},V));return f===!1?U:h.createElement(f,$e({},k,{ref:$,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),N.submit()},onReset:function(G){var J;G.preventDefault(),N.resetFields(),(J=k.onReset)===null||J===void 0||J.call(k,G)}}),U)};function jC(e){try{return JSON.stringify(e)}catch{return Math.random()}}function $8(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=i===void 0?{}:i,a=jM(o)?{form:o}:o,l=a.form,u=h.useState(),d=le(u,2),f=d[0],m=d[1],g=h.useMemo(function(){return jC(f)},[f]),v=h.useRef(g);v.current=g;var y=h.useContext(rc),S=l||y,_=S&&S._init,C=hr(r),w=h.useRef(C);return w.current=C,h.useEffect(function(){if(_){var k=S.getFieldsValue,$=S.getInternalHooks,T=$(xa),R=T.registerWatch,O=function(L,M){var B=a.preserve?M:L;return typeof r=="function"?r(B):Uo(B,w.current)},N=R(function(j,L){var M=O(j,L),B=jC(M);v.current!==B&&(v.current=B,m(M))}),I=O(k(),k(!0));return f!==I&&m(I),N}},[_]),f}var R8=h.forwardRef(k8),Ju=R8;Ju.FormProvider=x8;Ju.Field=xk;Ju.List=_8;Ju.useForm=kk;Ju.useWatch=$8;const Qo=h.createContext({}),T8=({children:e,status:t,override:n})=>{const r=h.useContext(Qo),i=h.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return h.createElement(Qo.Provider,{value:i},e)},P8=h.createContext(void 0),Na=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=Q.createElement(T8,{override:!0,status:!0},i)),t&&(i=Q.createElement(zI,null,i)),i};var O8=function(t){if(ai()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(i){return i in r.style})}return!1};function zC(e,t){return O8(e)}const I8=()=>ai()&&window.document.documentElement,lm=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=ne({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=ne({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),u=h.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return h.createElement("span",{className:ne(t,a,l,n),style:Object.assign(Object.assign({},u),r)})},N8=new Yt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),cm=e=>({height:e,lineHeight:re(e)}),Kl=e=>Object.assign({width:e},cm(e)),M8=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:N8,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),jg=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},cm(e)),j8=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Kl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Kl(i)),[`${t}${t}-sm`]:Object.assign({},Kl(o))}},z8=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},jg(t,l)),[`${r}-lg`]:Object.assign({},jg(i,l)),[`${r}-sm`]:Object.assign({},jg(o,l))}},BC=e=>Object.assign({width:e},cm(e)),B8=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},BC(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},BC(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},zg=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Bg=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},cm(e)),L8=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},Bg(r,l))},zg(e,r,n)),{[`${n}-lg`]:Object.assign({},Bg(i,l))}),zg(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Bg(o,l))}),zg(e,o,`${n}-sm`))},A8=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:l,controlHeight:u,controlHeightLG:d,controlHeightSM:f,gradientFromColor:m,padding:g,marginSM:v,borderRadius:y,titleHeight:S,blockRadius:_,paragraphLiHeight:C,controlHeightXS:w,paragraphMarginTop:k}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},Kl(u)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Kl(d)),[`${n}-sm`]:Object.assign({},Kl(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:m,borderRadius:_,[`+ ${i}`]:{marginBlockStart:f}},[i]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:m,borderRadius:_,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:v,[`+ ${i}`]:{marginBlockStart:k}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},L8(e)),j8(e)),z8(e)),B8(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
212
|
-
${r},
|
|
213
|
-
${i} > li,
|
|
214
|
-
${n},
|
|
215
|
-
${o},
|
|
216
|
-
${a},
|
|
217
|
-
${l}
|
|
218
|
-
`]:Object.assign({},M8(e))}}},D8=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},cc=vn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Jt(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 A8(r)},D8,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),H8=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:l}=h.useContext(kt),u=l("skeleton",t),[d,f,m]=cc(u),g=rr(e,["prefixCls","className"]),v=ne(u,`${u}-element`,{[`${u}-active`]:i},n,r,f,m);return d(h.createElement("div",{className:v},h.createElement(lm,Object.assign({prefixCls:`${u}-avatar`,shape:o,size:a},g))))},F8=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:l}=h.useContext(kt),u=l("skeleton",t),[d,f,m]=cc(u),g=rr(e,["prefixCls"]),v=ne(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:o},n,r,f,m);return d(h.createElement("div",{className:v},h.createElement(lm,Object.assign({prefixCls:`${u}-button`,size:a},g))))},W8="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",V8=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=h.useContext(kt),l=a("skeleton",t),[u,d,f]=cc(l),m=ne(l,`${l}-element`,{[`${l}-active`]:o},n,r,d,f);return u(h.createElement("div",{className:m},h.createElement("div",{className:ne(`${l}-image`,n),style:i},h.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},h.createElement("title",null,"Image placeholder"),h.createElement("path",{d:W8,className:`${l}-image-path`})))))},U8=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:l}=h.useContext(kt),u=l("skeleton",t),[d,f,m]=cc(u),g=rr(e,["prefixCls"]),v=ne(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:o},n,r,f,m);return d(h.createElement("div",{className:v},h.createElement(lm,Object.assign({prefixCls:`${u}-input`,size:a},g))))},q8=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:l}=h.useContext(kt),u=l("skeleton",t),[d,f,m]=cc(u),g=ne(u,`${u}-element`,{[`${u}-active`]:o},f,n,r,m);return d(h.createElement("div",{className:g},h.createElement("div",{className:ne(`${u}-image`,n),style:i},a)))},K8=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},G8=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,o=Array.from({length:i}).map((a,l)=>h.createElement("li",{key:l,style:{width:K8(l,e)}}));return h.createElement("ul",{className:ne(t,n),style:r},o)},X8=({prefixCls:e,className:t,width:n,style:r})=>h.createElement("h3",{className:ne(e,t),style:Object.assign({width:n},r)});function Lg(e){return e&&typeof e=="object"?e:{}}function Y8(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function J8(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Q8(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Va=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:m}=e,{getPrefixCls:g,direction:v,className:y,style:S}=Dr("skeleton"),_=g("skeleton",t),[C,w,k]=cc(_);if(n||!("loading"in e)){const $=!!l,T=!!u,R=!!d;let O;if($){const j=Object.assign(Object.assign({prefixCls:`${_}-avatar`},Y8(T,R)),Lg(l));O=h.createElement("div",{className:`${_}-header`},h.createElement(lm,Object.assign({},j)))}let N;if(T||R){let j;if(T){const M=Object.assign(Object.assign({prefixCls:`${_}-title`},J8($,R)),Lg(u));j=h.createElement(X8,Object.assign({},M))}let L;if(R){const M=Object.assign(Object.assign({prefixCls:`${_}-paragraph`},Q8($,T)),Lg(d));L=h.createElement(G8,Object.assign({},M))}N=h.createElement("div",{className:`${_}-content`},j,L)}const I=ne(_,{[`${_}-with-avatar`]:$,[`${_}-active`]:f,[`${_}-rtl`]:v==="rtl",[`${_}-round`]:m},y,r,i,w,k);return C(h.createElement("div",{className:I,style:Object.assign(Object.assign({},S),o)},O,N))}return a??null};Va.Button=F8;Va.Avatar=H8;Va.Input=U8;Va.Image=V8;Va.Node=q8;function LC(){}const Z8=h.createContext({add:LC,remove:LC});function $k(e){const t=h.useContext(Z8),n=h.useRef(null);return Un(i=>{if(i){const o=e?i.querySelector(e):i;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}const AC=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=h.useContext(Xu);return Q.createElement(Gn,Object.assign({onClick:n},e),t)},DC=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=h.useContext(Xu);return Q.createElement(Gn,Object.assign({},sk(n),{loading:e,onClick:i},t),r)};function Rk(e,t){return Q.createElement("span",{className:`${e}-close-x`},t||Q.createElement(na,{className:`${e}-close-icon`}))}const Tk=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:l,cancelButtonProps:u,footer:d}=e,[f]=_s("Modal",cE()),m=t||(f==null?void 0:f.okText),g=r||(f==null?void 0:f.cancelText),v=Q.useMemo(()=>({confirmLoading:i,okButtonProps:l,cancelButtonProps:u,okTextLocale:m,cancelTextLocale:g,okType:n,onOk:o,onCancel:a}),[i,l,u,m,g,n,o,a]);let y;return typeof d=="function"||typeof d>"u"?(y=Q.createElement(Q.Fragment,null,Q.createElement(AC,null),Q.createElement(DC,null)),typeof d=="function"&&(y=d(y,{OkBtn:DC,CancelBtn:AC})),y=Q.createElement(pk,{value:v},y)):y=d,Q.createElement(gE,{disabled:!1},y)},ej=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"}}}},tj=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},nj=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},c0=(e,t)=>nj(e,t),rj=(e,t,n)=>({[`@media (min-width: ${re(t)})`]:Object.assign({},c0(e,n))}),ij=()=>({}),oj=()=>({}),sj=vn("Grid",ej,ij),Pk=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),aj=vn("Grid",e=>{const t=Jt(e,{gridColumns:24}),n=Pk(t);return delete n.xs,[tj(t),c0(t,""),c0(t,"-xs"),Object.keys(n).map(r=>rj(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},oj);function HC(e){return{position:e,inset:0}}const lj=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({},HC("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},HC("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:dN(e)}]},cj=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:`${re(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},qn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${re(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:re(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},po(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${re(e.borderRadiusLG)} ${re(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:`${re(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"}}}]},uj=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},dj=e=>{const{componentCls:t}=e,n=Pk(e),r=Object.assign({},n);delete r.xs;const i=`--${t.replace(".","")}-`,o=Object.keys(r).map(a=>({[`@media (min-width: ${re(r[a])})`]:{width:`var(${i}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ae(Object.keys(n).map((a,l)=>{const u=Object.keys(n)[l-1];return u?{[`${i}${a}-width`]:`var(${i}${u}-width)`}:null})),[{width:`var(${i}xs-width)`}],Ae(o))}}},Ok=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Jt(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()})},Ik=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${re(e.paddingMD)} ${re(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${re(e.padding)} ${re(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${re(e.paddingXS)} ${re(e.padding)}`:0,footerBorderTop:e.wireframe?`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${re(e.padding*2)} ${re(e.padding*2)} ${re(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Nk=vn("Modal",e=>{const t=Ok(e);return[cj(t),uj(t),lj(t),Gu(t,"zoom"),dj(t)]},Ik,{unitless:{titleLineHeight:!0}});var hj=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let u0;const fj=e=>{u0={x:e.pageX,y:e.pageY},setTimeout(()=>{u0=null},100)};I8()&&document.documentElement.addEventListener("click",fj,!0);const Mk=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:o,centered:a,getContainer:l,focusTriggerAfterClose:u=!0,style:d,visible:f,width:m=520,footer:g,classNames:v,styles:y,children:S,loading:_,confirmLoading:C,zIndex:w,mousePosition:k,onOk:$,onCancel:T,destroyOnHidden:R,destroyOnClose:O,panelRef:N=null,modalRender:I}=e,j=hj(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:L,getPrefixCls:M,direction:B,modal:z}=h.useContext(kt),D=xe=>{C||T==null||T(xe)},F=xe=>{$==null||$(xe)},V=M("modal",t),A=M(),X=go(V),[q,H,U]=Nk(V,X),K=ne(o,{[`${V}-centered`]:a??(z==null?void 0:z.centered),[`${V}-wrap-rtl`]:B==="rtl"}),G=g!==null&&!_?h.createElement(Tk,Object.assign({},e,{onOk:F,onCancel:D})):null,[J,ee,de,oe]=Oy(nc(e),nc(z),{closable:!0,closeIcon:h.createElement(na,{className:`${V}-close-icon`}),closeIconRender:xe=>Rk(V,xe)}),ae=I?xe=>h.createElement("div",{className:`${V}-render`},I(xe)):void 0,_e=`.${V}-${I?"render":"content"}`,se=$k(_e),ce=gi(N,se),[he,ve]=lc("Modal",w),[me,fe]=h.useMemo(()=>m&&typeof m=="object"?[void 0,m]:[m,void 0],[m]),ye=h.useMemo(()=>{const xe={};return fe&&Object.keys(fe).forEach(Ee=>{const Ne=fe[Ee];Ne!==void 0&&(xe[`--${V}-${Ee}-width`]=typeof Ne=="number"?`${Ne}px`:Ne)}),xe},[V,fe]);return q(h.createElement(Na,{form:!0,space:!0},h.createElement(qu.Provider,{value:ve},h.createElement(_k,Object.assign({width:me},j,{zIndex:he,getContainer:l===void 0?L:l,prefixCls:V,rootClassName:ne(H,r,U,X),footer:G,visible:i??f,mousePosition:k??u0,onClose:D,closable:J&&Object.assign({disabled:de,closeIcon:ee},oe),closeIcon:ee,focusTriggerAfterClose:u,transitionName:Yo(A,"zoom",e.transitionName),maskTransitionName:Yo(A,"fade",e.maskTransitionName),className:ne(H,n,z==null?void 0:z.className),style:Object.assign(Object.assign(Object.assign({},z==null?void 0:z.style),d),ye),classNames:Object.assign(Object.assign(Object.assign({},z==null?void 0:z.classNames),v),{wrapper:ne(K,v==null?void 0:v.wrapper)}),styles:Object.assign(Object.assign({},z==null?void 0:z.styles),y),panelRef:ce,destroyOnClose:R??O,modalRender:ae}),_?h.createElement(Va,{active:!0,title:!1,paragraph:{rows:4},className:`${V}-body-skeleton`}):S))))},mj=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:l,fontHeight:u,confirmBodyPadding:d}=e,f=`${t}-confirm`;return{[f]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${f}-body-wrapper`]:Object.assign({},af()),[`&${t} ${t}-body`]:{padding:d},[`${f}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(u).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()}},[`${f}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${re(e.marginSM)})`},[`${e.iconCls} + ${f}-paragraph`]:{maxWidth:`calc(100% - ${re(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${f}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${f}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${f}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${f}-error ${f}-body > ${e.iconCls}`]:{color:e.colorError},[`${f}-warning ${f}-body > ${e.iconCls},
|
|
221
|
-
${f}-confirm ${f}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${f}-info ${f}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${f}-success ${f}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},pj=Vu(["Modal","confirm"],e=>{const t=Ok(e);return mj(t)},Ik,{order:-1e3});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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const jk=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:l,footer:u,locale:d}=e,f=gj(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let m=n;if(!n&&n!==null)switch(a){case"info":m=h.createElement(UE,null);break;case"success":m=h.createElement(WE,null);break;case"error":m=h.createElement(Gf,null);break;default:m=h.createElement(VE,null)}const g=l??a==="confirm",v=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[y]=_s("Modal"),S=d||y,_=r||(g?S==null?void 0:S.okText:S==null?void 0:S.justOkText),C=i||(S==null?void 0:S.cancelText),w=h.useMemo(()=>Object.assign({autoFocusButton:v,cancelTextLocale:C,okTextLocale:_,mergedOkCancel:g},f),[v,C,_,g,f]),k=h.createElement(h.Fragment,null,h.createElement(yC,null),h.createElement(bC,null)),$=e.title!==void 0&&e.title!==null,T=`${o}-body`;return h.createElement("div",{className:`${o}-body-wrapper`},h.createElement("div",{className:ne(T,{[`${T}-has-title`]:$})},m,h.createElement("div",{className:`${o}-paragraph`},$&&h.createElement("span",{className:`${o}-title`},e.title),h.createElement("div",{className:`${o}-content`},e.content))),u===void 0||typeof u=="function"?h.createElement(pk,{value:w},h.createElement("div",{className:`${o}-btns`},typeof u=="function"?u(k,{OkBtn:bC,CancelBtn:yC}):k)):u,h.createElement(pj,{prefixCls:t}))},vj=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:l,bodyStyle:u,closable:d=!1,onConfirm:f,styles:m,title:g}=e,v=`${o}-confirm`,y=e.width||416,S=e.style||{},_=e.mask===void 0?!0:e.mask,C=e.maskClosable===void 0?!1:e.maskClosable,w=ne(v,`${v}-${e.type}`,{[`${v}-rtl`]:i==="rtl"},e.className),[,k]=vi(),$=h.useMemo(()=>n!==void 0?n:k.zIndexPopupBase+YE,[n,k]);return h.createElement(Mk,Object.assign({},e,{className:w,wrapClassName:ne({[`${v}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),f==null||f(!1)},title:g,footer:null,transitionName:Yo(l||"","zoom",e.transitionName),maskTransitionName:Yo(l||"","fade",e.maskTransitionName),mask:_,maskClosable:C,style:S,styles:Object.assign({body:u,mask:r},m),width:y,zIndex:$,closable:d}),h.createElement(jk,Object.assign({},e,{confirmPrefixCls:v})))},zk=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return h.createElement(No,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},h.createElement(vj,Object.assign({},e)))},Ea=[];let Bk="";function Lk(){return Bk}const yj=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=cE(),l=h.useContext(kt),u=Lk()||l.getPrefixCls(),d=r||`${u}-modal`;let f=i;return f===!1&&(f=void 0),Q.createElement(zk,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:o??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:f}))};function Qu(e){const t=LE(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:u,open:!0}),i,o;function a(...f){var m;if(f.some(y=>y==null?void 0:y.triggerCancel)){var v;(m=e.onCancel)===null||m===void 0||(v=m).call.apply(v,[e,()=>{}].concat(Ae(f.slice(1))))}for(let y=0;y<Ea.length;y++)if(Ea[y]===u){Ea.splice(y,1);break}o()}const l=f=>{clearTimeout(i),i=setTimeout(()=>{const m=t.getPrefixCls(void 0,Lk()),g=t.getIconPrefixCls(),v=t.getTheme(),y=Q.createElement(yj,Object.assign({},f));o=My()(Q.createElement(No,{prefixCls:m,iconPrefixCls:g,theme:v},typeof t.holderRender=="function"?t.holderRender(y):y),n)})};function u(...f){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),r.visible&&delete r.visible,l(r)}function d(f){typeof f=="function"?r=f(r):r=Object.assign(Object.assign({},r),f),l(r)}return l(r),Ea.push(u),{destroy:u,update:d}}function Ak(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Dk(e){return Object.assign(Object.assign({},e),{type:"info"})}function Hk(e){return Object.assign(Object.assign({},e),{type:"success"})}function Fk(e){return Object.assign(Object.assign({},e),{type:"error"})}function Wk(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function bj({rootPrefixCls:e}){Bk=e}var _j=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Sj=(e,t)=>{var n,{afterClose:r,config:i}=e,o=_j(e,["afterClose","config"]);const[a,l]=h.useState(!0),[u,d]=h.useState(i),{direction:f,getPrefixCls:m}=h.useContext(kt),g=m("modal"),v=m(),y=()=>{var w;r(),(w=u.afterClose)===null||w===void 0||w.call(u)},S=(...w)=>{var k;if(l(!1),w.some(R=>R==null?void 0:R.triggerCancel)){var T;(k=u.onCancel)===null||k===void 0||(T=k).call.apply(T,[u,()=>{}].concat(Ae(w.slice(1))))}};h.useImperativeHandle(t,()=>({destroy:S,update:w=>{d(k=>{const $=typeof w=="function"?w(k):w;return Object.assign(Object.assign({},k),$)})}}));const _=(n=u.okCancel)!==null&&n!==void 0?n:u.type==="confirm",[C]=_s("Modal",ea.Modal);return h.createElement(zk,Object.assign({prefixCls:g,rootPrefixCls:v},u,{close:S,open:a,afterClose:y,okText:u.okText||(_?C==null?void 0:C.okText:C==null?void 0:C.justOkText),direction:u.direction||f,cancelText:u.cancelText||(C==null?void 0:C.cancelText)},o))},Cj=h.forwardRef(Sj);let FC=0;const wj=h.memo(h.forwardRef((e,t)=>{const[n,r]=Y6();return h.useImperativeHandle(t,()=>({patchElement:r}),[r]),h.createElement(h.Fragment,null,n)}));function xj(){const e=h.useRef(null),[t,n]=h.useState([]);h.useEffect(()=>{t.length&&(Ae(t).forEach(a=>{a()}),n([]))},[t]);const r=h.useCallback(o=>function(l){var u;FC+=1;const d=h.createRef();let f;const m=new Promise(_=>{f=_});let g=!1,v;const y=h.createElement(Cj,{key:`modal-${FC}`,config:o(l),ref:d,afterClose:()=>{v==null||v()},isSilent:()=>g,onConfirm:_=>{f(_)}});return v=(u=e.current)===null||u===void 0?void 0:u.patchElement(y),v&&Ea.push(v),{destroy:()=>{function _(){var C;(C=d.current)===null||C===void 0||C.destroy()}d.current?_():n(C=>[].concat(Ae(C),[_]))},update:_=>{function C(){var w;(w=d.current)===null||w===void 0||w.update(_)}d.current?C():n(w=>[].concat(Ae(w),[C]))},then:_=>(g=!0,m.then(_))}},[]);return[h.useMemo(()=>({info:r(Dk),success:r(Hk),error:r(Fk),warning:r(Ak),confirm:r(Wk)}),[r]),h.createElement(wj,{key:"modal-holder",ref:e})]}const Ej=Q.createContext({});function Vk(e){return t=>h.createElement(No,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(e,Object.assign({},t)))}const Uk=(e,t,n,r,i)=>Vk(a=>{const{prefixCls:l,style:u}=a,d=h.useRef(null),[f,m]=h.useState(0),[g,v]=h.useState(0),[y,S]=Xn(!1,{value:a.open}),{getPrefixCls:_}=h.useContext(kt),C=_(r||"select",l);h.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const $=new ResizeObserver(R=>{const O=R[0].target;m(O.offsetHeight+8),v(O.offsetWidth)}),T=setInterval(()=>{var R;const O=i?`.${i(C)}`:`.${C}-dropdown`,N=(R=d.current)===null||R===void 0?void 0:R.querySelector(O);N&&(clearInterval(T),$.observe(N))},10);return()=>{clearInterval(T),$.disconnect()}}},[C]);let w=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},u),{margin:0}),open:y,visible:y,getPopupContainer:()=>d.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const k={paddingBottom:f,position:"relative",minWidth:g};return h.createElement("div",{ref:d,style:k},h.createElement(e,Object.assign({},w)))}),Vy=(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 um=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,l=t.onClick,u=typeof r=="function"?r(i):r;return h.createElement("span",{className:n,onMouseDown:function(f){f.preventDefault(),a==null||a(f)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},u!==void 0?u:h.createElement("span",{className:ne(n.split(/\s+/).map(function(d){return"".concat(d,"-icon")}))},o))},kj=function(t,n,r,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,d=Q.useMemo(function(){if(St(i)==="object")return i.clearIcon;if(o)return o},[i,o]),f=Q.useMemo(function(){return!!(!a&&i&&(r.length||l)&&!(u==="combobox"&&l===""))},[i,a,r.length,l,u]);return{allowClear:f,clearIcon:Q.createElement(um,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:d},"×")}},qk=h.createContext(null);function $j(){return h.useContext(qk)}function Rj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=h.useState(!1),n=le(t,2),r=n[0],i=n[1],o=h.useRef(null),a=function(){window.clearTimeout(o.current)};h.useEffect(function(){return a},[]);var l=function(d,f){a(),o.current=window.setTimeout(function(){i(d),f&&f()},e)};return[r,l,a]}function Kk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Tj(e,t,n,r){var i=h.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},h.useEffect(function(){function o(a){var l;if(!((l=i.current)!==null&&l!==void 0&&l.customizedTrigger)){var u=a.target;u.shadowRoot&&a.composed&&(u=a.composedPath()[0]||u),i.current.open&&e().filter(function(d){return d}).every(function(d){return!d.contains(u)&&d!==u})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Pj(e){return e&&![Xe.ESC,Xe.SHIFT,Xe.BACKSPACE,Xe.TAB,Xe.WIN_KEY,Xe.ALT,Xe.META,Xe.WIN_KEY_RIGHT,Xe.CTRL,Xe.SEMICOLON,Xe.EQUALS,Xe.CAPS_LOCK,Xe.CONTEXT_MENU,Xe.F1,Xe.F2,Xe.F3,Xe.F4,Xe.F5,Xe.F6,Xe.F7,Xe.F8,Xe.F9,Xe.F10,Xe.F11,Xe.F12].includes(e)}var Oj=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wl=void 0;function Ij(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,l=e.responsiveDisabled,u=e.registerSize,d=e.itemKey,f=e.className,m=e.style,g=e.children,v=e.display,y=e.order,S=e.component,_=S===void 0?"div":S,C=Bt(e,Oj),w=a&&!v;function k(N){u(d,N)}h.useEffect(function(){return function(){k(null)}},[]);var $=o&&i!==wl?o(i,{index:y}):g,T;r||(T={opacity:w?0:1,height:w?0:wl,overflowY:w?"hidden":wl,order:a?y:wl,pointerEvents:w?"none":wl,position:w?"absolute":wl});var R={};w&&(R["aria-hidden"]=!0);var O=h.createElement(_,$e({className:ne(!r&&n,f),style:Z(Z({},T),m)},R,C,{ref:t}),$);return a&&(O=h.createElement(ho,{onResize:function(I){var j=I.offsetWidth;k(j)},disabled:l},O)),O}var Hl=h.forwardRef(Ij);Hl.displayName="Item";function Nj(e){if(typeof MessageChannel>"u")kn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Mj(){var e=h.useRef(null),t=function(r){e.current||(e.current=[],Nj(function(){Zs.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function xl(e,t){var n=h.useState(t),r=le(n,2),i=r[0],o=r[1],a=Un(function(l){e(function(){o(l)})});return[i,a]}var mf=Q.createContext(null),jj=["component"],zj=["className"],Bj=["className"],Lj=function(t,n){var r=h.useContext(mf);if(!r){var i=t.component,o=i===void 0?"div":i,a=Bt(t,jj);return h.createElement(o,$e({},a,{ref:n}))}var l=r.className,u=Bt(r,zj),d=t.className,f=Bt(t,Bj);return h.createElement(mf.Provider,{value:null},h.createElement(Hl,$e({ref:n,className:ne(l,d)},u,f)))},Gk=h.forwardRef(Lj);Gk.displayName="RawItem";var Aj=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Xk="responsive",Yk="invalidate";function Dj(e){return"+ ".concat(e.length," ...")}function Hj(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,l=e.renderRawItem,u=e.itemKey,d=e.itemWidth,f=d===void 0?10:d,m=e.ssr,g=e.style,v=e.className,y=e.maxCount,S=e.renderRest,_=e.renderRawRest,C=e.prefix,w=e.suffix,k=e.component,$=k===void 0?"div":k,T=e.itemComponent,R=e.onVisibleChange,O=Bt(e,Aj),N=m==="full",I=Mj(),j=xl(I,null),L=le(j,2),M=L[0],B=L[1],z=M||0,D=xl(I,new Map),F=le(D,2),V=F[0],A=F[1],X=xl(I,0),q=le(X,2),H=q[0],U=q[1],K=xl(I,0),G=le(K,2),J=G[0],ee=G[1],de=xl(I,0),oe=le(de,2),ae=oe[0],_e=oe[1],se=xl(I,0),ce=le(se,2),he=ce[0],ve=ce[1],me=h.useState(null),fe=le(me,2),ye=fe[0],xe=fe[1],Ee=h.useState(null),Ne=le(Ee,2),Te=Ne[0],Pe=Ne[1],ke=h.useMemo(function(){return Te===null&&N?Number.MAX_SAFE_INTEGER:Te||0},[Te,M]),Ce=h.useState(!1),Ve=le(Ce,2),Ze=Ve[0],_t=Ve[1],nt="".concat(r,"-item"),Ye=Math.max(H,J),mt=y===Xk,Je=o.length&&mt,yt=y===Yk,rt=Je||typeof y=="number"&&o.length>y,Le=h.useMemo(function(){var Oe=o;return Je?M===null&&N?Oe=o:Oe=o.slice(0,Math.min(o.length,z/f)):typeof y=="number"&&(Oe=o.slice(0,y)),Oe},[o,f,M,y,Je]),ot=h.useMemo(function(){return Je?o.slice(ke+1):o.slice(Le.length)},[o,Le,Je,ke]),ze=h.useCallback(function(Oe,Re){var De;return typeof u=="function"?u(Oe):(De=u&&(Oe==null?void 0:Oe[u]))!==null&&De!==void 0?De:Re},[u]),Ke=h.useCallback(a||function(Oe){return Oe},[a]);function It(Oe,Re,De){Te===Oe&&(Re===void 0||Re===ye)||(Pe(Oe),De||(_t(Oe<o.length-1),R==null||R(Oe)),Re!==void 0&&xe(Re))}function Ct(Oe,Re){B(Re.clientWidth)}function nn(Oe,Re){A(function(De){var tt=new Map(De);return Re===null?tt.delete(Oe):tt.set(Oe,Re),tt})}function Qt(Oe,Re){ee(Re),U(J)}function Sn(Oe,Re){_e(Re)}function In(Oe,Re){ve(Re)}function on(Oe){return V.get(ze(Le[Oe],Oe))}fn(function(){if(z&&typeof Ye=="number"&&Le){var Oe=ae+he,Re=Le.length,De=Re-1;if(!Re){It(0,null);return}for(var tt=0;tt<Re;tt+=1){var it=on(tt);if(N&&(it=it||0),it===void 0){It(tt-1,void 0,!0);break}if(Oe+=it,De===0&&Oe<=z||tt===De-1&&Oe+on(De)<=z){It(De,null);break}else if(Oe+Ye>z){It(tt-1,Oe-it-he+J);break}}w&&on(0)+he>z&&xe(null)}},[z,V,J,ae,he,ze,Le]);var Ht=Ze&&!!ot.length,Tt={};ye!==null&&Je&&(Tt={position:"absolute",left:ye,top:0});var sn={prefixCls:nt,responsive:Je,component:T,invalidate:yt},Xt=l?function(Oe,Re){var De=ze(Oe,Re);return h.createElement(mf.Provider,{key:De,value:Z(Z({},sn),{},{order:Re,item:Oe,itemKey:De,registerSize:nn,display:Re<=ke})},l(Oe,Re))}:function(Oe,Re){var De=ze(Oe,Re);return h.createElement(Hl,$e({},sn,{order:Re,key:De,item:Oe,renderItem:Ke,itemKey:De,registerSize:nn,display:Re<=ke}))},at={order:Ht?ke:Number.MAX_SAFE_INTEGER,className:"".concat(nt,"-rest"),registerSize:Qt,display:Ht},$t=S||Dj,pt=_?h.createElement(mf.Provider,{value:Z(Z({},sn),at)},_(ot)):h.createElement(Hl,$e({},sn,at),typeof $t=="function"?$t(ot):$t),Me=h.createElement($,$e({className:ne(!yt&&r,v),style:g,ref:t},O),C&&h.createElement(Hl,$e({},sn,{responsive:mt,responsiveDisabled:!Je,order:-1,className:"".concat(nt,"-prefix"),registerSize:Sn,display:!0}),C),Le.map(Xt),rt?pt:null,w&&h.createElement(Hl,$e({},sn,{responsive:mt,responsiveDisabled:!Je,order:ke,className:"".concat(nt,"-suffix"),registerSize:In,display:!0,style:Tt}),w));return mt?h.createElement(ho,{onResize:Ct,disabled:!Je},Me):Me}var Ko=h.forwardRef(Hj);Ko.displayName="Overflow";Ko.Item=Gk;Ko.RESPONSIVE=Xk;Ko.INVALIDATE=Yk;function Fj(e,t,n){var r=Z(Z({},e),t);return Object.keys(t).forEach(function(i){var o=t[i];typeof o=="function"&&(r[i]=function(){for(var a,l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return o.apply(void 0,u),(a=e[i])===null||a===void 0?void 0:a.call.apply(a,[e].concat(u))})}),r}var Wj=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Vj=function(t,n){var r=t.prefixCls,i=t.id,o=t.inputElement,a=t.autoFocus,l=t.autoComplete,u=t.editable,d=t.activeDescendantId,f=t.value,m=t.open,g=t.attrs,v=Bt(t,Wj),y=o||h.createElement("input",null),S=y,_=S.ref,C=S.props;return"maxLength"in y.props,y=h.cloneElement(y,Z(Z(Z({type:"search"},Fj(v,C)),{},{id:i,ref:gi(n,_),autoComplete:l||"off",autoFocus:a,className:ne("".concat(r,"-selection-search-input"),C==null?void 0:C.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m?d:void 0},g),{},{value:u?f:"",readOnly:!u,unselectable:u?null:"on",style:Z(Z({},C.style),{},{opacity:u?null:0})})),y},Jk=h.forwardRef(Vj);function Qk(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Uj=typeof window<"u"&&window.document&&window.document.documentElement,qj=Uj;function Kj(e){return e!=null}function Gj(e){return!e&&e!==0}function WC(e){return["string","number"].includes(St(e))}function Zk(e){var t=void 0;return e&&(WC(e.title)?t=e.title.toString():WC(e.label)&&(t=e.label.toString())),t}function Xj(e,t){qj?h.useLayoutEffect(e,t):h.useEffect(e,t)}function Yj(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var VC=function(t){t.preventDefault(),t.stopPropagation()},Jj=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,l=t.autoClearSearchValue,u=t.inputRef,d=t.placeholder,f=t.disabled,m=t.mode,g=t.showSearch,v=t.autoFocus,y=t.autoComplete,S=t.activeDescendantId,_=t.tabIndex,C=t.removeIcon,w=t.maxTagCount,k=t.maxTagTextLength,$=t.maxTagPlaceholder,T=$===void 0?function(ve){return"+ ".concat(ve.length," ...")}:$,R=t.tagRender,O=t.onToggleOpen,N=t.onRemove,I=t.onInputChange,j=t.onInputPaste,L=t.onInputKeyDown,M=t.onInputMouseDown,B=t.onInputCompositionStart,z=t.onInputCompositionEnd,D=t.onInputBlur,F=h.useRef(null),V=h.useState(0),A=le(V,2),X=A[0],q=A[1],H=h.useState(!1),U=le(H,2),K=U[0],G=U[1],J="".concat(r,"-selection"),ee=o||m==="multiple"&&l===!1||m==="tags"?a:"",de=m==="tags"||m==="multiple"&&l===!1||g&&(o||K);Xj(function(){q(F.current.scrollWidth)},[ee]);var oe=function(me,fe,ye,xe,Ee){return h.createElement("span",{title:Zk(me),className:ne("".concat(J,"-item"),Y({},"".concat(J,"-item-disabled"),ye))},h.createElement("span",{className:"".concat(J,"-item-content")},fe),xe&&h.createElement(um,{className:"".concat(J,"-item-remove"),onMouseDown:VC,onClick:Ee,customizeIcon:C},"×"))},ae=function(me,fe,ye,xe,Ee,Ne){var Te=function(ke){VC(ke),O(!o)};return h.createElement("span",{onMouseDown:Te},R({label:fe,value:me,disabled:ye,closable:xe,onClose:Ee,isMaxTag:!!Ne}))},_e=function(me){var fe=me.disabled,ye=me.label,xe=me.value,Ee=!f&&!fe,Ne=ye;if(typeof k=="number"&&(typeof ye=="string"||typeof ye=="number")){var Te=String(Ne);Te.length>k&&(Ne="".concat(Te.slice(0,k),"..."))}var Pe=function(Ce){Ce&&Ce.stopPropagation(),N(me)};return typeof R=="function"?ae(xe,Ne,fe,Ee,Pe):oe(me,Ne,fe,Ee,Pe)},se=function(me){if(!i.length)return null;var fe=typeof T=="function"?T(me):T;return typeof R=="function"?ae(void 0,fe,!1,!1,void 0,!0):oe({title:fe},fe,!1)},ce=h.createElement("div",{className:"".concat(J,"-search"),style:{width:X},onFocus:function(){G(!0)},onBlur:function(){G(!1)}},h.createElement(Jk,{ref:u,open:o,prefixCls:r,id:n,inputElement:null,disabled:f,autoFocus:v,autoComplete:y,editable:de,activeDescendantId:S,value:ee,onKeyDown:L,onMouseDown:M,onChange:I,onPaste:j,onCompositionStart:B,onCompositionEnd:z,onBlur:D,tabIndex:_,attrs:Ni(t,!0)}),h.createElement("span",{ref:F,className:"".concat(J,"-search-mirror"),"aria-hidden":!0},ee," ")),he=h.createElement(Ko,{prefixCls:"".concat(J,"-overflow"),data:i,renderItem:_e,renderRest:se,suffix:ce,itemKey:Yj,maxCount:w});return h.createElement("span",{className:"".concat(J,"-wrap")},he,!i.length&&!ee&&h.createElement("span",{className:"".concat(J,"-placeholder")},d))},Qj=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,l=t.autoFocus,u=t.autoComplete,d=t.activeDescendantId,f=t.mode,m=t.open,g=t.values,v=t.placeholder,y=t.tabIndex,S=t.showSearch,_=t.searchValue,C=t.activeValue,w=t.maxLength,k=t.onInputKeyDown,$=t.onInputMouseDown,T=t.onInputChange,R=t.onInputPaste,O=t.onInputCompositionStart,N=t.onInputCompositionEnd,I=t.onInputBlur,j=t.title,L=h.useState(!1),M=le(L,2),B=M[0],z=M[1],D=f==="combobox",F=D||S,V=g[0],A=_||"";D&&C&&!B&&(A=C),h.useEffect(function(){D&&z(!1)},[D,C]);var X=f!=="combobox"&&!m&&!S?!1:!!A,q=j===void 0?Zk(V):j,H=h.useMemo(function(){return V?null:h.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:X?{visibility:"hidden"}:void 0},v)},[V,X,v,r]);return h.createElement("span",{className:"".concat(r,"-selection-wrap")},h.createElement("span",{className:"".concat(r,"-selection-search")},h.createElement(Jk,{ref:o,prefixCls:r,id:i,open:m,inputElement:n,disabled:a,autoFocus:l,autoComplete:u,editable:F,activeDescendantId:d,value:A,onKeyDown:k,onMouseDown:$,onChange:function(K){z(!0),T(K)},onPaste:R,onCompositionStart:O,onCompositionEnd:N,onBlur:I,tabIndex:y,attrs:Ni(t,!0),maxLength:D?w:void 0})),!D&&V?h.createElement("span",{className:"".concat(r,"-selection-item"),title:q,style:X?{visibility:"hidden"}:void 0},V.label):null,H)},Zj=function(t,n){var r=h.useRef(null),i=h.useRef(!1),o=t.prefixCls,a=t.open,l=t.mode,u=t.showSearch,d=t.tokenWithEnter,f=t.disabled,m=t.prefix,g=t.autoClearSearchValue,v=t.onSearch,y=t.onSearchSubmit,S=t.onToggleOpen,_=t.onInputKeyDown,C=t.onInputBlur,w=t.domRef;h.useImperativeHandle(n,function(){return{focus:function(q){r.current.focus(q)},blur:function(){r.current.blur()}}});var k=Kk(0),$=le(k,2),T=$[0],R=$[1],O=function(q){var H=q.which,U=r.current instanceof HTMLTextAreaElement;!U&&a&&(H===Xe.UP||H===Xe.DOWN)&&q.preventDefault(),_&&_(q),H===Xe.ENTER&&l==="tags"&&!i.current&&!a&&(y==null||y(q.target.value)),!(U&&!a&&~[Xe.UP,Xe.DOWN,Xe.LEFT,Xe.RIGHT].indexOf(H))&&Pj(H)&&S(!0)},N=function(){R(!0)},I=h.useRef(null),j=function(q){v(q,!0,i.current)!==!1&&S(!0)},L=function(){i.current=!0},M=function(q){i.current=!1,l!=="combobox"&&j(q.target.value)},B=function(q){var H=q.target.value;if(d&&I.current&&/[\r\n]/.test(I.current)){var U=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");H=H.replace(U,I.current)}I.current=null,j(H)},z=function(q){var H=q.clipboardData,U=H==null?void 0:H.getData("text");I.current=U||""},D=function(q){var H=q.target;if(H!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},F=function(q){var H=T();q.target!==r.current&&!H&&!(l==="combobox"&&f)&&q.preventDefault(),(l!=="combobox"&&(!u||!H)||!a)&&(a&&g!==!1&&v("",!0,!1),S())},V={inputRef:r,onInputKeyDown:O,onInputMouseDown:N,onInputChange:B,onInputPaste:z,onInputCompositionStart:L,onInputCompositionEnd:M,onInputBlur:C},A=l==="multiple"||l==="tags"?h.createElement(Jj,$e({},t,V)):h.createElement(Qj,$e({},t,V));return h.createElement("div",{ref:w,className:"".concat(o,"-selector"),onClick:D,onMouseDown:F},m&&h.createElement("div",{className:"".concat(o,"-prefix")},m),A)},ez=h.forwardRef(Zj);function tz(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,l=o.content,u=i.x,d=u===void 0?0:u,f=i.y,m=f===void 0?0:f,g=h.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],S=n.points[1],_=y[0],C=y[1],w=S[0],k=S[1];_===w||!["t","b"].includes(_)?v.top=m:_==="t"?v.top=0:v.bottom=0,C===k||!["l","r"].includes(C)?v.left=d:C==="l"?v.left=0:v.right=0}return h.createElement("div",{ref:g,className:ne("".concat(t,"-arrow"),a),style:v},l)}function nz(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?h.createElement(Gi,$e({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return h.createElement("div",{style:{zIndex:r},className:ne("".concat(t,"-mask"),l)})}):null}var rz=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),iz=h.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,l=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,m=e.onClick,g=e.mask,v=e.arrow,y=e.arrowPos,S=e.align,_=e.motion,C=e.maskMotion,w=e.forceRender,k=e.getPopupContainer,$=e.autoDestroy,T=e.portal,R=e.zIndex,O=e.onMouseEnter,N=e.onMouseLeave,I=e.onPointerEnter,j=e.onPointerDownCapture,L=e.ready,M=e.offsetX,B=e.offsetY,z=e.offsetR,D=e.offsetB,F=e.onAlign,V=e.onPrepare,A=e.stretch,X=e.targetWidth,q=e.targetHeight,H=typeof n=="function"?n():n,U=u||d,K=(k==null?void 0:k.length)>0,G=h.useState(!k||!K),J=le(G,2),ee=J[0],de=J[1];if(fn(function(){!ee&&K&&a&&de(!0)},[ee,K,a]),!ee)return null;var oe="auto",ae={left:"-1000vw",top:"-1000vh",right:oe,bottom:oe};if(L||!u){var _e,se=S.points,ce=S.dynamicInset||((_e=S._experimental)===null||_e===void 0?void 0:_e.dynamicInset),he=ce&&se[0][1]==="r",ve=ce&&se[0][0]==="b";he?(ae.right=z,ae.left=oe):(ae.left=M,ae.right=oe),ve?(ae.bottom=D,ae.top=oe):(ae.top=B,ae.bottom=oe)}var me={};return A&&(A.includes("height")&&q?me.height=q:A.includes("minHeight")&&q&&(me.minHeight=q),A.includes("width")&&X?me.width=X:A.includes("minWidth")&&X&&(me.minWidth=X)),u||(me.pointerEvents="none"),h.createElement(T,{open:w||U,getContainer:k&&function(){return k(a)},autoDestroy:$},h.createElement(nz,{prefixCls:i,open:u,zIndex:R,mask:g,motion:C}),h.createElement(ho,{onResize:F,disabled:!u},function(fe){return h.createElement(Gi,$e({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},_,{onAppearPrepare:V,onEnterPrepare:V,visible:u,onVisibleChanged:function(xe){var Ee;_==null||(Ee=_.onVisibleChanged)===null||Ee===void 0||Ee.call(_,xe),l(xe)}}),function(ye,xe){var Ee=ye.className,Ne=ye.style,Te=ne(i,Ee,r);return h.createElement("div",{ref:gi(fe,t,xe),className:Te,style:Z(Z(Z(Z({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},ae),me),Ne),{},{boxSizing:"border-box",zIndex:R},o),onMouseEnter:O,onMouseLeave:N,onPointerEnter:I,onClick:m,onPointerDownCapture:j},v&&h.createElement(tz,{prefixCls:i,arrow:v,arrowPos:y,align:S}),h.createElement(rz,{cache:!u&&!f},H))})}))}),oz=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=ia(n),o=h.useCallback(function(l){vy(t,r?r(l):l)},[r]),a=ts(o,Ha(n));return i?h.cloneElement(n,{ref:a}):n}),UC=h.createContext(null);function qC(e){return e?Array.isArray(e)?e:[e]:[]}function sz(e,t,n,r){return h.useMemo(function(){var i=qC(n??t),o=qC(r??t),a=new Set(i),l=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function az(){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 lz(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var l,u=o[a];if(az((l=e[u])===null||l===void 0?void 0:l.points,i,r))return"".concat(t,"-placement-").concat(u)}return""}function KC(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Zu(e){return e.ownerDocument.defaultView}function d0(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Zu(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,l=i.overflow;[o,a,l].some(function(u){return r.includes(u)})&&t.push(n),n=n.parentElement}return t}function Ou(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Vc(e){return Ou(parseFloat(e),0)}function GC(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Zu(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,l=i.borderTopWidth,u=i.borderBottomWidth,d=i.borderLeftWidth,f=i.borderRightWidth,m=r.getBoundingClientRect(),g=r.offsetHeight,v=r.clientHeight,y=r.offsetWidth,S=r.clientWidth,_=Vc(l),C=Vc(u),w=Vc(d),k=Vc(f),$=Ou(Math.round(m.width/y*1e3)/1e3),T=Ou(Math.round(m.height/g*1e3)/1e3),R=(y-S-w-k)*$,O=(g-v-_-C)*T,N=_*T,I=C*T,j=w*$,L=k*$,M=0,B=0;if(o==="clip"){var z=Vc(a);M=z*$,B=z*T}var D=m.x+j-M,F=m.y+N-B,V=D+m.width+2*M-j-L-R,A=F+m.height+2*B-N-I-O;n.left=Math.max(n.left,D),n.top=Math.max(n.top,F),n.right=Math.min(n.right,V),n.bottom=Math.min(n.bottom,A)}}),n}function XC(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 YC(e,t){var n=t||[],r=le(n,2),i=r[0],o=r[1];return[XC(e.width,i),XC(e.height,o)]}function JC(){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],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Ds(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function cz(e,t,n,r,i,o,a){var l=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=le(l,2),d=u[0],f=u[1],m=h.useRef(0),g=h.useMemo(function(){return t?d0(t):[]},[t]),v=h.useRef({}),y=function(){v.current={}};e||y();var S=Un(function(){if(t&&n&&e){let Jn=function(ci,Si){var Yi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve,ji=U.x+ci,Ya=U.y+Si,Ja=ji+ve,ht=Ya+he,Dt=Math.max(ji,Yi.left),zn=Math.max(Ya,Yi.top),An=Math.min(Ja,Yi.right),Bn=Math.min(ht,Yi.bottom);return Math.max(0,(An-Dt)*(Bn-zn))},Zr=function(){$n=U.y+$t,Nn=$n+he,Hn=U.x+at,cn=Hn+ve};var Xa=Jn,ns=Zr,w,k,$,T,R=t,O=R.ownerDocument,N=Zu(R),I=N.getComputedStyle(R),j=I.position,L=R.style.left,M=R.style.top,B=R.style.right,z=R.style.bottom,D=R.style.overflow,F=Z(Z({},i[r]),o),V=O.createElement("div");(w=R.parentElement)===null||w===void 0||w.appendChild(V),V.style.left="".concat(R.offsetLeft,"px"),V.style.top="".concat(R.offsetTop,"px"),V.style.position=j,V.style.height="".concat(R.offsetHeight,"px"),V.style.width="".concat(R.offsetWidth,"px"),R.style.left="0",R.style.top="0",R.style.right="auto",R.style.bottom="auto",R.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var X,q,H=n.getBoundingClientRect();H.x=(X=H.x)!==null&&X!==void 0?X:H.left,H.y=(q=H.y)!==null&&q!==void 0?q:H.top,A={x:H.x,y:H.y,width:H.width,height:H.height}}var U=R.getBoundingClientRect(),K=N.getComputedStyle(R),G=K.height,J=K.width;U.x=(k=U.x)!==null&&k!==void 0?k:U.left,U.y=($=U.y)!==null&&$!==void 0?$:U.top;var ee=O.documentElement,de=ee.clientWidth,oe=ee.clientHeight,ae=ee.scrollWidth,_e=ee.scrollHeight,se=ee.scrollTop,ce=ee.scrollLeft,he=U.height,ve=U.width,me=A.height,fe=A.width,ye={left:0,top:0,right:de,bottom:oe},xe={left:-ce,top:-se,right:ae-ce,bottom:_e-se},Ee=F.htmlRegion,Ne="visible",Te="visibleFirst";Ee!=="scroll"&&Ee!==Te&&(Ee=Ne);var Pe=Ee===Te,ke=GC(xe,g),Ce=GC(ye,g),Ve=Ee===Ne?Ce:ke,Ze=Pe?Ce:Ve;R.style.left="auto",R.style.top="auto",R.style.right="0",R.style.bottom="0";var _t=R.getBoundingClientRect();R.style.left=L,R.style.top=M,R.style.right=B,R.style.bottom=z,R.style.overflow=D,(T=R.parentElement)===null||T===void 0||T.removeChild(V);var nt=Ou(Math.round(ve/parseFloat(J)*1e3)/1e3),Ye=Ou(Math.round(he/parseFloat(G)*1e3)/1e3);if(nt===0||Ye===0||_u(n)&&!jy(n))return;var mt=F.offset,Je=F.targetOffset,yt=YC(U,mt),rt=le(yt,2),Le=rt[0],ot=rt[1],ze=YC(A,Je),Ke=le(ze,2),It=Ke[0],Ct=Ke[1];A.x-=It,A.y-=Ct;var nn=F.points||[],Qt=le(nn,2),Sn=Qt[0],In=Qt[1],on=JC(In),Ht=JC(Sn),Tt=El(A,on),sn=El(U,Ht),Xt=Z({},F),at=Tt.x-sn.x+Le,$t=Tt.y-sn.y+ot,pt=Jn(at,$t),Me=Jn(at,$t,Ce),Oe=El(A,["t","l"]),Re=El(U,["t","l"]),De=El(A,["b","r"]),tt=El(U,["b","r"]),it=F.overflow||{},Wt=it.adjustX,Kt=it.adjustY,Lt=it.shiftX,At=it.shiftY,Pn=function(Si){return typeof Si=="boolean"?Si:Si>=0},$n,Nn,Hn,cn;Zr();var pn=Pn(Kt),Fe=Ht[0]===on[0];if(pn&&Ht[0]==="t"&&(Nn>Ze.bottom||v.current.bt)){var Qe=$t;Fe?Qe-=he-me:Qe=Oe.y-tt.y-ot;var Ot=Jn(at,Qe),gt=Jn(at,Qe,Ce);Ot>pt||Ot===pt&&(!Pe||gt>=Me)?(v.current.bt=!0,$t=Qe,ot=-ot,Xt.points=[Ds(Ht,0),Ds(on,0)]):v.current.bt=!1}if(pn&&Ht[0]==="b"&&($n<Ze.top||v.current.tb)){var ct=$t;Fe?ct+=he-me:ct=De.y-Re.y-ot;var et=Jn(at,ct),Pt=Jn(at,ct,Ce);et>pt||et===pt&&(!Pe||Pt>=Me)?(v.current.tb=!0,$t=ct,ot=-ot,Xt.points=[Ds(Ht,0),Ds(on,0)]):v.current.tb=!1}var Gt=Pn(Wt),Ge=Ht[1]===on[1];if(Gt&&Ht[1]==="l"&&(cn>Ze.right||v.current.rl)){var vt=at;Ge?vt-=ve-fe:vt=Oe.x-tt.x-Le;var Nt=Jn(vt,$t),yn=Jn(vt,$t,Ce);Nt>pt||Nt===pt&&(!Pe||yn>=Me)?(v.current.rl=!0,at=vt,Le=-Le,Xt.points=[Ds(Ht,1),Ds(on,1)]):v.current.rl=!1}if(Gt&&Ht[1]==="r"&&(Hn<Ze.left||v.current.lr)){var lr=at;Ge?lr+=ve-fe:lr=De.x-Re.x-Le;var Ln=Jn(lr,$t),Yr=Jn(lr,$t,Ce);Ln>pt||Ln===pt&&(!Pe||Yr>=Me)?(v.current.lr=!0,at=lr,Le=-Le,Xt.points=[Ds(Ht,1),Ds(on,1)]):v.current.lr=!1}Zr();var _r=Lt===!0?0:Lt;typeof _r=="number"&&(Hn<Ce.left&&(at-=Hn-Ce.left-Le,A.x+fe<Ce.left+_r&&(at+=A.x-Ce.left+fe-_r)),cn>Ce.right&&(at-=cn-Ce.right-Le,A.x>Ce.right-_r&&(at+=A.x-Ce.right+_r)));var Jr=At===!0?0:At;typeof Jr=="number"&&($n<Ce.top&&($t-=$n-Ce.top-ot,A.y+me<Ce.top+Jr&&($t+=A.y-Ce.top+me-Jr)),Nn>Ce.bottom&&($t-=Nn-Ce.bottom-ot,A.y>Ce.bottom-Jr&&($t+=A.y-Ce.bottom+Jr)));var Sr=U.x+at,Fr=Sr+ve,Qr=U.y+$t,dn=Qr+he,dt=A.x,lt=dt+fe,an=A.y,hn=an+me,Cn=Math.max(Sr,dt),xn=Math.min(Fr,lt),Wr=(Cn+xn)/2,cr=Wr-Sr,qt=Math.max(Qr,an),Cr=Math.min(dn,hn),Tr=(qt+Cr)/2,_i=Tr-Qr;a==null||a(t,Xt);var Pr=_t.right-U.x-(at+U.width),ws=_t.bottom-U.y-($t+U.height);nt===1&&(at=Math.floor(at),Pr=Math.floor(Pr)),Ye===1&&($t=Math.floor($t),ws=Math.floor(ws));var Ga={ready:!0,offsetX:at/nt,offsetY:$t/Ye,offsetR:Pr/nt,offsetB:ws/Ye,arrowX:cr/nt,arrowY:_i/Ye,scaleX:nt,scaleY:Ye,align:Xt};f(Ga)}}),_=function(){m.current+=1;var k=m.current;Promise.resolve().then(function(){m.current===k&&S()})},C=function(){f(function(k){return Z(Z({},k),{},{ready:!1})})};return fn(C,[r]),fn(function(){e||C()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,_]}function uz(e,t,n,r,i){fn(function(){if(e&&t&&n){let g=function(){r(),i()};var m=g,o=t,a=n,l=d0(o),u=d0(a),d=Zu(a),f=new Set([d].concat(Ae(l),Ae(u)));return f.forEach(function(v){v.addEventListener("scroll",g,{passive:!0})}),d.addEventListener("resize",g,{passive:!0}),r(),function(){f.forEach(function(v){v.removeEventListener("scroll",g),d.removeEventListener("resize",g)})}}},[e,t,n])}function dz(e,t,n,r,i,o,a,l){var u=h.useRef(e);u.current=e;var d=h.useRef(!1);h.useEffect(function(){if(t&&r&&(!i||o)){var m=function(){d.current=!1},g=function(_){var C;u.current&&!a(((C=_.composedPath)===null||C===void 0||(C=C.call(_))===null||C===void 0?void 0:C[0])||_.target)&&!d.current&&l(!1)},v=Zu(r);v.addEventListener("pointerdown",m,!0),v.addEventListener("mousedown",g,!0),v.addEventListener("contextmenu",g,!0);var y=cf(n);return y&&(y.addEventListener("mousedown",g,!0),y.addEventListener("contextmenu",g,!0)),function(){v.removeEventListener("pointerdown",m,!0),v.removeEventListener("mousedown",g,!0),v.removeEventListener("contextmenu",g,!0),y&&(y.removeEventListener("mousedown",g,!0),y.removeEventListener("contextmenu",g,!0))}}},[t,n,r,i,o]);function f(){d.current=!0}return f}var hz=["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 fz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sm,t=h.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,l=n.action,u=l===void 0?"hover":l,d=n.showAction,f=n.hideAction,m=n.popupVisible,g=n.defaultPopupVisible,v=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,S=n.mouseEnterDelay,_=n.mouseLeaveDelay,C=_===void 0?.1:_,w=n.focusDelay,k=n.blurDelay,$=n.mask,T=n.maskClosable,R=T===void 0?!0:T,O=n.getPopupContainer,N=n.forceRender,I=n.autoDestroy,j=n.destroyPopupOnHide,L=n.popup,M=n.popupClassName,B=n.popupStyle,z=n.popupPlacement,D=n.builtinPlacements,F=D===void 0?{}:D,V=n.popupAlign,A=n.zIndex,X=n.stretch,q=n.getPopupClassNameFromAlign,H=n.fresh,U=n.alignPoint,K=n.onPopupClick,G=n.onPopupAlign,J=n.arrow,ee=n.popupMotion,de=n.maskMotion,oe=n.popupTransitionName,ae=n.popupAnimation,_e=n.maskTransitionName,se=n.maskAnimation,ce=n.className,he=n.getTriggerDOMNode,ve=Bt(n,hz),me=I||j||!1,fe=h.useState(!1),ye=le(fe,2),xe=ye[0],Ee=ye[1];fn(function(){Ee(Vy())},[]);var Ne=h.useRef({}),Te=h.useContext(UC),Pe=h.useMemo(function(){return{registerSubPopup:function(Dt,zn){Ne.current[Dt]=zn,Te==null||Te.registerSubPopup(Dt,zn)}}},[Te]),ke=am(),Ce=h.useState(null),Ve=le(Ce,2),Ze=Ve[0],_t=Ve[1],nt=h.useRef(null),Ye=Un(function(ht){nt.current=ht,_u(ht)&&Ze!==ht&&_t(ht),Te==null||Te.registerSubPopup(ke,ht)}),mt=h.useState(null),Je=le(mt,2),yt=Je[0],rt=Je[1],Le=h.useRef(null),ot=Un(function(ht){_u(ht)&&yt!==ht&&(rt(ht),Le.current=ht)}),ze=h.Children.only(a),Ke=(ze==null?void 0:ze.props)||{},It={},Ct=Un(function(ht){var Dt,zn,An=yt;return(An==null?void 0:An.contains(ht))||((Dt=cf(An))===null||Dt===void 0?void 0:Dt.host)===ht||ht===An||(Ze==null?void 0:Ze.contains(ht))||((zn=cf(Ze))===null||zn===void 0?void 0:zn.host)===ht||ht===Ze||Object.values(Ne.current).some(function(Bn){return(Bn==null?void 0:Bn.contains(ht))||ht===Bn})}),nn=KC(o,ee,ae,oe),Qt=KC(o,de,se,_e),Sn=h.useState(g||!1),In=le(Sn,2),on=In[0],Ht=In[1],Tt=m??on,sn=Un(function(ht){m===void 0&&Ht(ht)});fn(function(){Ht(m||!1)},[m]);var Xt=h.useRef(Tt);Xt.current=Tt;var at=h.useRef([]);at.current=[];var $t=Un(function(ht){var Dt;sn(ht),((Dt=at.current[at.current.length-1])!==null&&Dt!==void 0?Dt:Tt)!==ht&&(at.current.push(ht),v==null||v(ht))}),pt=h.useRef(),Me=function(){clearTimeout(pt.current)},Oe=function(Dt){var zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Me(),zn===0?$t(Dt):pt.current=setTimeout(function(){$t(Dt)},zn*1e3)};h.useEffect(function(){return Me},[]);var Re=h.useState(!1),De=le(Re,2),tt=De[0],it=De[1];fn(function(ht){(!ht||Tt)&&it(!0)},[Tt]);var Wt=h.useState(null),Kt=le(Wt,2),Lt=Kt[0],At=Kt[1],Pn=h.useState(null),$n=le(Pn,2),Nn=$n[0],Hn=$n[1],cn=function(Dt){Hn([Dt.clientX,Dt.clientY])},pn=cz(Tt,Ze,U&&Nn!==null?Nn:yt,z,F,V,G),Fe=le(pn,11),Qe=Fe[0],Ot=Fe[1],gt=Fe[2],ct=Fe[3],et=Fe[4],Pt=Fe[5],Gt=Fe[6],Ge=Fe[7],vt=Fe[8],Nt=Fe[9],yn=Fe[10],lr=sz(xe,u,d,f),Ln=le(lr,2),Yr=Ln[0],_r=Ln[1],Jr=Yr.has("click"),Sr=_r.has("click")||_r.has("contextMenu"),Fr=Un(function(){tt||yn()}),Qr=function(){Xt.current&&U&&Sr&&Oe(!1)};uz(Tt,yt,Ze,Fr,Qr),fn(function(){Fr()},[Nn,z]),fn(function(){Tt&&!(F!=null&&F[z])&&Fr()},[JSON.stringify(V)]);var dn=h.useMemo(function(){var ht=lz(F,o,Nt,U);return ne(ht,q==null?void 0:q(Nt))},[Nt,q,F,o,U]);h.useImperativeHandle(r,function(){return{nativeElement:Le.current,popupElement:nt.current,forceAlign:Fr}});var dt=h.useState(0),lt=le(dt,2),an=lt[0],hn=lt[1],Cn=h.useState(0),xn=le(Cn,2),Wr=xn[0],cr=xn[1],qt=function(){if(X&&yt){var Dt=yt.getBoundingClientRect();hn(Dt.width),cr(Dt.height)}},Cr=function(){qt(),Fr()},Tr=function(Dt){it(!1),yn(),y==null||y(Dt)},_i=function(){return new Promise(function(Dt){qt(),At(function(){return Dt})})};fn(function(){Lt&&(yn(),Lt(),At(null))},[Lt]);function Pr(ht,Dt,zn,An){It[ht]=function(Bn){var Qa;An==null||An(Bn),Oe(Dt,zn);for(var rs=arguments.length,xs=new Array(rs>1?rs-1:0),vo=1;vo<rs;vo++)xs[vo-1]=arguments[vo];(Qa=Ke[ht])===null||Qa===void 0||Qa.call.apply(Qa,[Ke,Bn].concat(xs))}}(Jr||Sr)&&(It.onClick=function(ht){var Dt;Xt.current&&Sr?Oe(!1):!Xt.current&&Jr&&(cn(ht),Oe(!0));for(var zn=arguments.length,An=new Array(zn>1?zn-1:0),Bn=1;Bn<zn;Bn++)An[Bn-1]=arguments[Bn];(Dt=Ke.onClick)===null||Dt===void 0||Dt.call.apply(Dt,[Ke,ht].concat(An))});var ws=dz(Tt,Sr,yt,Ze,$,R,Ct,Oe),Ga=Yr.has("hover"),Xa=_r.has("hover"),ns,Jn;Ga&&(Pr("onMouseEnter",!0,S,function(ht){cn(ht)}),Pr("onPointerEnter",!0,S,function(ht){cn(ht)}),ns=function(Dt){(Tt||tt)&&Ze!==null&&Ze!==void 0&&Ze.contains(Dt.target)&&Oe(!0,S)},U&&(It.onMouseMove=function(ht){var Dt;(Dt=Ke.onMouseMove)===null||Dt===void 0||Dt.call(Ke,ht)})),Xa&&(Pr("onMouseLeave",!1,C),Pr("onPointerLeave",!1,C),Jn=function(){Oe(!1,C)}),Yr.has("focus")&&Pr("onFocus",!0,w),_r.has("focus")&&Pr("onBlur",!1,k),Yr.has("contextMenu")&&(It.onContextMenu=function(ht){var Dt;Xt.current&&_r.has("contextMenu")?Oe(!1):(cn(ht),Oe(!0)),ht.preventDefault();for(var zn=arguments.length,An=new Array(zn>1?zn-1:0),Bn=1;Bn<zn;Bn++)An[Bn-1]=arguments[Bn];(Dt=Ke.onContextMenu)===null||Dt===void 0||Dt.call.apply(Dt,[Ke,ht].concat(An))}),ce&&(It.className=ne(Ke.className,ce));var Zr=h.useRef(!1);Zr.current||(Zr.current=N||Tt||tt);var ci=Z(Z({},Ke),It),Si={},Yi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yi.forEach(function(ht){ve[ht]&&(Si[ht]=function(){for(var Dt,zn=arguments.length,An=new Array(zn),Bn=0;Bn<zn;Bn++)An[Bn]=arguments[Bn];(Dt=ci[ht])===null||Dt===void 0||Dt.call.apply(Dt,[ci].concat(An)),ve[ht].apply(ve,An)})});var ji=h.cloneElement(ze,Z(Z({},ci),Si)),Ya={x:Pt,y:Gt},Ja=J?Z({},J!==!0?J:{}):null;return h.createElement(h.Fragment,null,h.createElement(ho,{disabled:!Tt,ref:ot,onResize:Cr},h.createElement(oz,{getTriggerDOMNode:he},ji)),Zr.current&&h.createElement(UC.Provider,{value:Pe},h.createElement(iz,{portal:e,ref:Ye,prefixCls:o,popup:L,className:ne(M,dn),style:B,target:yt,onMouseEnter:ns,onMouseLeave:Jn,onPointerEnter:ns,zIndex:A,open:Tt,keepDom:tt,fresh:H,onClick:K,onPointerDownCapture:ws,mask:$,motion:nn,maskMotion:Qt,onVisibleChanged:Tr,onPrepare:_i,forceRender:N,autoDestroy:me,getPopupContainer:O,align:Nt,arrow:Ja,arrowPos:Ya,ready:Qe,offsetX:Ot,offsetY:gt,offsetR:ct,offsetB:et,onAlign:Fr,stretch:X,targetWidth:an/Ge,targetHeight:Wr/vt})))});return t}const dm=fz(sm);var mz=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],pz=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"}}},gz=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,l=t.animation,u=t.transitionName,d=t.dropdownStyle,f=t.dropdownClassName,m=t.direction,g=m===void 0?"ltr":m,v=t.placement,y=t.builtinPlacements,S=t.dropdownMatchSelectWidth,_=t.dropdownRender,C=t.dropdownAlign,w=t.getPopupContainer,k=t.empty,$=t.getTriggerDOMNode,T=t.onPopupVisibleChange,R=t.onPopupMouseEnter,O=Bt(t,mz),N="".concat(r,"-dropdown"),I=a;_&&(I=_(a));var j=h.useMemo(function(){return y||pz(S)},[y,S]),L=l?"".concat(N,"-").concat(l):u,M=typeof S=="number",B=h.useMemo(function(){return M?null:S===!1?"minWidth":"width"},[S,M]),z=d;M&&(z=Z(Z({},z),{},{width:S}));var D=h.useRef(null);return h.useImperativeHandle(n,function(){return{getPopupElement:function(){var V;return(V=D.current)===null||V===void 0?void 0:V.popupElement}}}),h.createElement(dm,$e({},O,{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:v||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:N,popupTransitionName:L,popup:h.createElement("div",{onMouseEnter:R},I),ref:D,stretch:B,popupAlign:C,popupVisible:i,getPopupContainer:w,popupClassName:ne(f,Y({},"".concat(N,"-empty"),k)),popupStyle:z,getTriggerDOMNode:$,onPopupVisibleChange:T}),o)},vz=h.forwardRef(gz);function QC(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 h0(e){return typeof e<"u"&&!Number.isNaN(e)}function e$(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:i||"value",options:o||"options",groupLabel:a||l}}function yz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=e$(n,!1),a=o.label,l=o.value,u=o.options,d=o.groupLabel;function f(m,g){Array.isArray(m)&&m.forEach(function(v){if(g||!(u in v)){var y=v[l];i.push({key:QC(v,i.length),groupOption:g,data:v,label:v[a],value:y})}else{var S=v[d];S===void 0&&r&&(S=v.label),i.push({key:QC(v,i.length),group:!0,data:v,label:S}),f(v[u],!0)}})}return f(e,!1),i}function f0(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ar(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var bz=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function l(u,d){var f=oE(d),m=f[0],g=f.slice(1);if(!m)return[u];var v=u.split(m);return i=i||v.length>1,v.reduce(function(y,S){return[].concat(Ae(y),Ae(l(S,g)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},Uy=h.createContext(null);function _z(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return h.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(i){var o=i.label,a=i.value;return["number","string"].includes(St(o))?o:a}).join(", ")),n.length>r?", ...":null)}var Sz=["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"],Cz=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],m0=function(t){return t==="tags"||t==="multiple"},wz=h.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,l=e.tagRender,u=e.direction,d=e.omitDomProps,f=e.displayValues,m=e.onDisplayValuesChange,g=e.emptyOptions,v=e.notFoundContent,y=v===void 0?"Not Found":v,S=e.onClear,_=e.mode,C=e.disabled,w=e.loading,k=e.getInputElement,$=e.getRawInputElement,T=e.open,R=e.defaultOpen,O=e.onDropdownVisibleChange,N=e.activeValue,I=e.onActiveValueChange,j=e.activeDescendantId,L=e.searchValue,M=e.autoClearSearchValue,B=e.onSearch,z=e.onSearchSplit,D=e.tokenSeparators,F=e.allowClear,V=e.prefix,A=e.suffixIcon,X=e.clearIcon,q=e.OptionList,H=e.animation,U=e.transitionName,K=e.dropdownStyle,G=e.dropdownClassName,J=e.dropdownMatchSelectWidth,ee=e.dropdownRender,de=e.dropdownAlign,oe=e.placement,ae=e.builtinPlacements,_e=e.getPopupContainer,se=e.showAction,ce=se===void 0?[]:se,he=e.onFocus,ve=e.onBlur,me=e.onKeyUp,fe=e.onKeyDown,ye=e.onMouseDown,xe=Bt(e,Sz),Ee=m0(_),Ne=(a!==void 0?a:Ee)||_==="combobox",Te=Z({},xe);Cz.forEach(function(dt){delete Te[dt]}),d==null||d.forEach(function(dt){delete Te[dt]});var Pe=h.useState(!1),ke=le(Pe,2),Ce=ke[0],Ve=ke[1];h.useEffect(function(){Ve(Vy())},[]);var Ze=h.useRef(null),_t=h.useRef(null),nt=h.useRef(null),Ye=h.useRef(null),mt=h.useRef(null),Je=h.useRef(!1),yt=Rj(),rt=le(yt,3),Le=rt[0],ot=rt[1],ze=rt[2];h.useImperativeHandle(t,function(){var dt,lt;return{focus:(dt=Ye.current)===null||dt===void 0?void 0:dt.focus,blur:(lt=Ye.current)===null||lt===void 0?void 0:lt.blur,scrollTo:function(hn){var Cn;return(Cn=mt.current)===null||Cn===void 0?void 0:Cn.scrollTo(hn)},nativeElement:Ze.current||_t.current}});var Ke=h.useMemo(function(){var dt;if(_!=="combobox")return L;var lt=(dt=f[0])===null||dt===void 0?void 0:dt.value;return typeof lt=="string"||typeof lt=="number"?String(lt):""},[L,_,f]),It=_==="combobox"&&typeof k=="function"&&k()||null,Ct=typeof $=="function"&&$(),nn=ts(_t,Ct==null||(n=Ct.props)===null||n===void 0?void 0:n.ref),Qt=h.useState(!1),Sn=le(Qt,2),In=Sn[0],on=Sn[1];fn(function(){on(!0)},[]);var Ht=Xn(!1,{defaultValue:R,value:T}),Tt=le(Ht,2),sn=Tt[0],Xt=Tt[1],at=In?sn:!1,$t=!y&&g;(C||$t&&at&&_==="combobox")&&(at=!1);var pt=$t?!1:at,Me=h.useCallback(function(dt){var lt=dt!==void 0?dt:!at;C||(Xt(lt),at!==lt&&(O==null||O(lt)))},[C,at,Xt,O]),Oe=h.useMemo(function(){return(D||[]).some(function(dt){return[`
|
|
222
|
-
`,`\r
|
|
223
|
-
`].includes(dt)})},[D]),Re=h.useContext(Uy)||{},De=Re.maxCount,tt=Re.rawValues,it=function(lt,an,hn){if(!(Ee&&h0(De)&&(tt==null?void 0:tt.size)>=De)){var Cn=!0,xn=lt;I==null||I(null);var Wr=bz(lt,D,h0(De)?De-tt.size:void 0),cr=hn?null:Wr;return _!=="combobox"&&cr&&(xn="",z==null||z(cr),Me(!1),Cn=!1),B&&Ke!==xn&&B(xn,{source:an?"typing":"effect"}),Cn}},Wt=function(lt){!lt||!lt.trim()||B(lt,{source:"submit"})};h.useEffect(function(){!at&&!Ee&&_!=="combobox"&&it("",!1,!1)},[at]),h.useEffect(function(){sn&&C&&Xt(!1),C&&!Je.current&&ot(!1)},[C]);var Kt=Kk(),Lt=le(Kt,2),At=Lt[0],Pn=Lt[1],$n=h.useRef(!1),Nn=function(lt){var an=At(),hn=lt.key,Cn=hn==="Enter";if(Cn&&(_!=="combobox"&<.preventDefault(),at||Me(!0)),Pn(!!Ke),hn==="Backspace"&&!an&&Ee&&!Ke&&f.length){for(var xn=Ae(f),Wr=null,cr=xn.length-1;cr>=0;cr-=1){var qt=xn[cr];if(!qt.disabled){xn.splice(cr,1),Wr=qt;break}}Wr&&m(xn,{type:"remove",values:[Wr]})}for(var Cr=arguments.length,Tr=new Array(Cr>1?Cr-1:0),_i=1;_i<Cr;_i++)Tr[_i-1]=arguments[_i];if(at&&(!Cn||!$n.current)){var Pr;Cn&&($n.current=!0),(Pr=mt.current)===null||Pr===void 0||Pr.onKeyDown.apply(Pr,[lt].concat(Tr))}fe==null||fe.apply(void 0,[lt].concat(Tr))},Hn=function(lt){for(var an=arguments.length,hn=new Array(an>1?an-1:0),Cn=1;Cn<an;Cn++)hn[Cn-1]=arguments[Cn];if(at){var xn;(xn=mt.current)===null||xn===void 0||xn.onKeyUp.apply(xn,[lt].concat(hn))}lt.key==="Enter"&&($n.current=!1),me==null||me.apply(void 0,[lt].concat(hn))},cn=function(lt){var an=f.filter(function(hn){return hn!==lt});m(an,{type:"remove",values:[lt]})},pn=function(){$n.current=!1},Fe=h.useRef(!1),Qe=function(){ot(!0),C||(he&&!Fe.current&&he.apply(void 0,arguments),ce.includes("focus")&&Me(!0)),Fe.current=!0},Ot=function(){Je.current=!0,ot(!1,function(){Fe.current=!1,Je.current=!1,Me(!1)}),!C&&(Ke&&(_==="tags"?B(Ke,{source:"submit"}):_==="multiple"&&B("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},gt=[];h.useEffect(function(){return function(){gt.forEach(function(dt){return clearTimeout(dt)}),gt.splice(0,gt.length)}},[]);var ct=function(lt){var an,hn=lt.target,Cn=(an=nt.current)===null||an===void 0?void 0:an.getPopupElement();if(Cn&&Cn.contains(hn)){var xn=setTimeout(function(){var Cr=gt.indexOf(xn);if(Cr!==-1&>.splice(Cr,1),ze(),!Ce&&!Cn.contains(document.activeElement)){var Tr;(Tr=Ye.current)===null||Tr===void 0||Tr.focus()}});gt.push(xn)}for(var Wr=arguments.length,cr=new Array(Wr>1?Wr-1:0),qt=1;qt<Wr;qt++)cr[qt-1]=arguments[qt];ye==null||ye.apply(void 0,[lt].concat(cr))},et=h.useState({}),Pt=le(et,2),Gt=Pt[1];function Ge(){Gt({})}var vt;Ct&&(vt=function(lt){Me(lt)}),Tj(function(){var dt;return[Ze.current,(dt=nt.current)===null||dt===void 0?void 0:dt.getPopupElement()]},pt,Me,!!Ct);var Nt=h.useMemo(function(){return Z(Z({},e),{},{notFoundContent:y,open:at,triggerOpen:pt,id:r,showSearch:Ne,multiple:Ee,toggleOpen:Me})},[e,y,pt,at,r,Ne,Ee,Me]),yn=!!A||w,lr;yn&&(lr=h.createElement(um,{className:ne("".concat(i,"-arrow"),Y({},"".concat(i,"-arrow-loading"),w)),customizeIcon:A,customizeIconProps:{loading:w,searchValue:Ke,open:at,focused:Le,showSearch:Ne}}));var Ln=function(){var lt;S==null||S(),(lt=Ye.current)===null||lt===void 0||lt.focus(),m([],{type:"clear",values:f}),it("",!1,!1)},Yr=kj(i,Ln,f,F,X,C,Ke,_),_r=Yr.allowClear,Jr=Yr.clearIcon,Sr=h.createElement(q,{ref:mt}),Fr=ne(i,o,Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},"".concat(i,"-focused"),Le),"".concat(i,"-multiple"),Ee),"".concat(i,"-single"),!Ee),"".concat(i,"-allow-clear"),F),"".concat(i,"-show-arrow"),yn),"".concat(i,"-disabled"),C),"".concat(i,"-loading"),w),"".concat(i,"-open"),at),"".concat(i,"-customize-input"),It),"".concat(i,"-show-search"),Ne)),Qr=h.createElement(vz,{ref:nt,disabled:C,prefixCls:i,visible:pt,popupElement:Sr,animation:H,transitionName:U,dropdownStyle:K,dropdownClassName:G,direction:u,dropdownMatchSelectWidth:J,dropdownRender:ee,dropdownAlign:de,placement:oe,builtinPlacements:ae,getPopupContainer:_e,empty:g,getTriggerDOMNode:function(lt){return _t.current||lt},onPopupVisibleChange:vt,onPopupMouseEnter:Ge},Ct?h.cloneElement(Ct,{ref:nn}):h.createElement(ez,$e({},e,{domRef:_t,prefixCls:i,inputElement:It,ref:Ye,id:r,prefix:V,showSearch:Ne,autoClearSearchValue:M,mode:_,activeDescendantId:j,tagRender:l,values:f,open:at,onToggleOpen:Me,activeValue:N,searchValue:Ke,onSearch:it,onSearchSubmit:Wt,onRemove:cn,tokenWithEnter:Oe,onInputBlur:pn}))),dn;return Ct?dn=Qr:dn=h.createElement("div",$e({className:Fr},Te,{ref:Ze,onMouseDown:ct,onKeyDown:Nn,onKeyUp:Hn,onFocus:Qe,onBlur:Ot}),h.createElement(_z,{visible:Le&&!at,values:f}),Qr,lr,_r&&Jr),h.createElement(qk.Provider,{value:Nt},dn)}),qy=function(){return null};qy.isSelectOptGroup=!0;var Ky=function(){return null};Ky.isSelectOption=!0;var t$=h.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,l=e.onInnerResize,u=e.innerProps,d=e.rtl,f=e.extra,m={},g={display:"flex",flexDirection:"column"};return r!==void 0&&(m={height:n,position:"relative",overflow:"hidden"},g=Z(Z({},g),{},Y(Y(Y(Y(Y({transform:"translateY(".concat(r,"px)")},d?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),h.createElement("div",{style:m},h.createElement(ho,{onResize:function(y){var S=y.offsetHeight;S&&l&&l()}},h.createElement("div",$e({style:g,className:ne(Y({},"".concat(a,"-holder-inner"),a)),ref:t},u),o,f)))});t$.displayName="Filler";function xz(e){var t=e.children,n=e.setRef,r=h.useCallback(function(i){n(i)},[]);return h.cloneElement(t,{ref:r})}function Ez(e,t,n,r,i,o,a,l){var u=l.getKey;return e.slice(t,n+1).map(function(d,f){var m=t+f,g=a(d,m,{style:{width:r},offsetX:i}),v=u(d);return h.createElement(xz,{key:v,setRef:function(S){return o(d,S)}},g)})}function kz(e,t,n){var r=e.length,i=t.length,o,a;if(r===0&&i===0)return null;r<i?(o=e,a=t):(o=t,a=e);var l={__EMPTY_ITEM__:!0};function u(y){return y!==void 0?n(y):l}for(var d=null,f=Math.abs(r-i)!==1,m=0;m<a.length;m+=1){var g=u(o[m]),v=u(a[m]);if(g!==v){d=m,f=f||g!==u(a[m+1]);break}}return d===null?null:{index:d,multiple:f}}function $z(e,t,n){var r=h.useState(e),i=le(r,2),o=i[0],a=i[1],l=h.useState(null),u=le(l,2),d=u[0],f=u[1];return h.useEffect(function(){var m=kz(o||[],e||[],t);(m==null?void 0:m.index)!==void 0&&f(e[m.index]),a(e)},[e]),[d]}var ZC=(typeof navigator>"u"?"undefined":St(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const n$=(function(e,t,n,r){var i=h.useRef(!1),o=h.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var l=h.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(u,d){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,m=u?d<0&&l.current.left||d>0&&l.current.right:d<0&&l.current.top||d>0&&l.current.bottom;return f&&m?(clearTimeout(o.current),i.current=!1):(!m||i.current)&&a(),!i.current&&m}});function Rz(e,t,n,r,i,o,a){var l=h.useRef(0),u=h.useRef(null),d=h.useRef(null),f=h.useRef(!1),m=n$(t,n,r,i);function g(w,k){if(kn.cancel(u.current),!m(!1,k)){var $=w;if(!$._virtualHandled)$._virtualHandled=!0;else return;l.current+=k,d.current=k,ZC||$.preventDefault(),u.current=kn(function(){var T=f.current?10:1;a(l.current*T,!1),l.current=0})}}function v(w,k){a(k,!0),ZC||w.preventDefault()}var y=h.useRef(null),S=h.useRef(null);function _(w){if(e){kn.cancel(S.current),S.current=kn(function(){y.current=null},2);var k=w.deltaX,$=w.deltaY,T=w.shiftKey,R=k,O=$;(y.current==="sx"||!y.current&&T&&$&&!k)&&(R=$,O=0,y.current="sx");var N=Math.abs(R),I=Math.abs(O);y.current===null&&(y.current=o&&N>I?"x":"y"),y.current==="y"?g(w,O):v(w,R)}}function C(w){e&&(f.current=w.detail===d.current)}return[_,C]}function Tz(e,t,n,r){var i=h.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=le(i,2),a=o[0],l=o[1],u=function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f,g=a.get(f),v=a.get(m);if(g===void 0||v===void 0)for(var y=e.length,S=l.length;S<y;S+=1){var _,C=e[S],w=t(C);a.set(w,S);var k=(_=n.get(w))!==null&&_!==void 0?_:r;if(l[S]=(l[S-1]||0)+k,w===f&&(g=S),w===m&&(v=S),g!==void 0&&v!==void 0)break}return{top:l[g-1]||0,bottom:l[v]}};return u}var Pz=(function(){function e(){yr(this,e),Y(this,"maps",void 0),Y(this,"id",0),Y(this,"diffRecords",new Map),this.maps=Object.create(null)}return br(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 ew(e){var t=parseFloat(e);return isNaN(t)?0:t}function Oz(e,t,n){var r=h.useState(0),i=le(r,2),o=i[0],a=i[1],l=h.useRef(new Map),u=h.useRef(new Pz),d=h.useRef(0);function f(){d.current+=1}function m(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;f();var y=function(){var C=!1;l.current.forEach(function(w,k){if(w&&w.offsetParent){var $=w.offsetHeight,T=getComputedStyle(w),R=T.marginTop,O=T.marginBottom,N=ew(R),I=ew(O),j=$+N+I;u.current.get(k)!==j&&(u.current.set(k,j),C=!0)}}),C&&a(function(w){return w+1})};if(v)y();else{d.current+=1;var S=d.current;Promise.resolve().then(function(){S===d.current&&y()})}}function g(v,y){var S=e(v);l.current.get(S),y?(l.current.set(S,y),m()):l.current.delete(S)}return h.useEffect(function(){return f},[]),[g,m,u.current,o]}var tw=14/15;function Iz(e,t,n){var r=h.useRef(!1),i=h.useRef(0),o=h.useRef(0),a=h.useRef(null),l=h.useRef(null),u,d=function(v){if(r.current){var y=Math.ceil(v.touches[0].pageX),S=Math.ceil(v.touches[0].pageY),_=i.current-y,C=o.current-S,w=Math.abs(_)>Math.abs(C);w?i.current=y:o.current=S;var k=n(w,w?_:C,!1,v);k&&v.preventDefault(),clearInterval(l.current),k&&(l.current=setInterval(function(){w?_*=tw:C*=tw;var $=Math.floor(w?_:C);(!n(w,$,!0)||Math.abs($)<=.1)&&clearInterval(l.current)},16))}},f=function(){r.current=!1,u()},m=function(v){u(),v.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(v.touches[0].pageX),o.current=Math.ceil(v.touches[0].pageY),a.current=v.target,a.current.addEventListener("touchmove",d,{passive:!1}),a.current.addEventListener("touchend",f,{passive:!0}))};u=function(){a.current&&(a.current.removeEventListener("touchmove",d),a.current.removeEventListener("touchend",f))},fn(function(){return e&&t.current.addEventListener("touchstart",m,{passive:!0}),function(){var g;(g=t.current)===null||g===void 0||g.removeEventListener("touchstart",m),u(),clearInterval(l.current)}},[e])}function nw(e){return Math.floor(Math.pow(e,.5))}function p0(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Nz(e,t,n){h.useEffect(function(){var r=t.current;if(e&&r){var i=!1,o,a,l=function(){kn.cancel(o)},u=function g(){l(),o=kn(function(){n(a),g()})},d=function(){i=!1,l()},f=function(v){if(!(v.target.draggable||v.button!==0)){var y=v;y._virtualHandled||(y._virtualHandled=!0,i=!0)}},m=function(v){if(i){var y=p0(v,!1),S=r.getBoundingClientRect(),_=S.top,C=S.bottom;if(y<=_){var w=_-y;a=-nw(w),u()}else if(y>=C){var k=y-C;a=nw(k),u()}else l()}};return r.addEventListener("mousedown",f),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",m),r.ownerDocument.addEventListener("dragend",d),function(){r.removeEventListener("mousedown",f),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",m),r.ownerDocument.removeEventListener("dragend",d),l()}}},[e])}var Mz=10;function jz(e,t,n,r,i,o,a,l){var u=h.useRef(),d=h.useState(null),f=le(d,2),m=f[0],g=f[1];return fn(function(){if(m&&m.times<Mz){if(!e.current){g(function(X){return Z({},X)});return}o();var v=m.targetAlign,y=m.originAlign,S=m.index,_=m.offset,C=e.current.clientHeight,w=!1,k=v,$=null;if(C){for(var T=v||y,R=0,O=0,N=0,I=Math.min(t.length-1,S),j=0;j<=I;j+=1){var L=i(t[j]);O=R;var M=n.get(L);N=O+(M===void 0?r:M),R=N}for(var B=T==="top"?_:C-_,z=I;z>=0;z-=1){var D=i(t[z]),F=n.get(D);if(F===void 0){w=!0;break}if(B-=F,B<=0)break}switch(T){case"top":$=O-_;break;case"bottom":$=N-C+_;break;default:{var V=e.current.scrollTop,A=V+C;O<V?k="top":N>A&&(k="bottom")}}$!==null&&a($),$!==m.lastTop&&(w=!0)}w&&g(Z(Z({},m),{},{times:m.times+1,targetAlign:k,lastTop:$}))}},[m,e.current]),function(v){if(v==null){l();return}if(kn.cancel(u.current),typeof v=="number")a(v);else if(v&&St(v)==="object"){var y,S=v.align;"index"in v?y=v.index:y=t.findIndex(function(w){return i(w)===v.key});var _=v.offset,C=_===void 0?0:_;g({times:0,index:y,offset:C,originAlign:S})}}}var rw=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,l=e.onStopMove,u=e.onScroll,d=e.horizontal,f=e.spinSize,m=e.containerSize,g=e.style,v=e.thumbStyle,y=e.showScrollBar,S=h.useState(!1),_=le(S,2),C=_[0],w=_[1],k=h.useState(null),$=le(k,2),T=$[0],R=$[1],O=h.useState(null),N=le(O,2),I=N[0],j=N[1],L=!r,M=h.useRef(),B=h.useRef(),z=h.useState(y),D=le(z,2),F=D[0],V=D[1],A=h.useRef(),X=function(){y===!0||y===!1||(clearTimeout(A.current),V(!0),A.current=setTimeout(function(){V(!1)},3e3))},q=o-m||0,H=m-f||0,U=h.useMemo(function(){if(i===0||q===0)return 0;var se=i/q;return se*H},[i,q,H]),K=function(ce){ce.stopPropagation(),ce.preventDefault()},G=h.useRef({top:U,dragging:C,pageY:T,startTop:I});G.current={top:U,dragging:C,pageY:T,startTop:I};var J=function(ce){w(!0),R(p0(ce,d)),j(G.current.top),a(),ce.stopPropagation(),ce.preventDefault()};h.useEffect(function(){var se=function(me){me.preventDefault()},ce=M.current,he=B.current;return ce.addEventListener("touchstart",se,{passive:!1}),he.addEventListener("touchstart",J,{passive:!1}),function(){ce.removeEventListener("touchstart",se),he.removeEventListener("touchstart",J)}},[]);var ee=h.useRef();ee.current=q;var de=h.useRef();de.current=H,h.useEffect(function(){if(C){var se,ce=function(me){var fe=G.current,ye=fe.dragging,xe=fe.pageY,Ee=fe.startTop;kn.cancel(se);var Ne=M.current.getBoundingClientRect(),Te=m/(d?Ne.width:Ne.height);if(ye){var Pe=(p0(me,d)-xe)*Te,ke=Ee;!L&&d?ke-=Pe:ke+=Pe;var Ce=ee.current,Ve=de.current,Ze=Ve?ke/Ve:0,_t=Math.ceil(Ze*Ce);_t=Math.max(_t,0),_t=Math.min(_t,Ce),se=kn(function(){u(_t,d)})}},he=function(){w(!1),l()};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),kn.cancel(se)}}},[C]),h.useEffect(function(){return X(),function(){clearTimeout(A.current)}},[i]),h.useImperativeHandle(t,function(){return{delayHidden:X}});var oe="".concat(n,"-scrollbar"),ae={position:"absolute",visibility:F?null:"hidden"},_e={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(ae,{height:8,left:0,right:0,bottom:0}),Object.assign(_e,Y({height:"100%",width:f},L?"left":"right",U))):(Object.assign(ae,Y({width:8,top:0,bottom:0},L?"right":"left",0)),Object.assign(_e,{width:"100%",height:f,top:U})),h.createElement("div",{ref:M,className:ne(oe,Y(Y(Y({},"".concat(oe,"-horizontal"),d),"".concat(oe,"-vertical"),!d),"".concat(oe,"-visible"),F)),style:Z(Z({},ae),g),onMouseDown:K,onMouseMove:X},h.createElement("div",{ref:B,className:ne("".concat(oe,"-thumb"),Y({},"".concat(oe,"-thumb-moving"),C)),style:Z(Z({},_e),v),onMouseDown:J}))}),zz=20;function iw(){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,zz),Math.floor(n)}var Bz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lz=[],Az={overflowY:"auto",overflowAnchor:"none"};function Dz(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,l=e.fullHeight,u=l===void 0?!0:l,d=e.style,f=e.data,m=e.children,g=e.itemKey,v=e.virtual,y=e.direction,S=e.scrollWidth,_=e.component,C=_===void 0?"div":_,w=e.onScroll,k=e.onVirtualScroll,$=e.onVisibleChange,T=e.innerProps,R=e.extraRender,O=e.styles,N=e.showScrollBar,I=N===void 0?"optional":N,j=Bt(e,Bz),L=h.useCallback(function(Fe){return typeof g=="function"?g(Fe):Fe==null?void 0:Fe[g]},[g]),M=Oz(L),B=le(M,4),z=B[0],D=B[1],F=B[2],V=B[3],A=!!(v!==!1&&o&&a),X=h.useMemo(function(){return Object.values(F.maps).reduce(function(Fe,Qe){return Fe+Qe},0)},[F.id,F.maps]),q=A&&f&&(Math.max(a*f.length,X)>o||!!S),H=y==="rtl",U=ne(r,Y({},"".concat(r,"-rtl"),H),i),K=f||Lz,G=h.useRef(),J=h.useRef(),ee=h.useRef(),de=h.useState(0),oe=le(de,2),ae=oe[0],_e=oe[1],se=h.useState(0),ce=le(se,2),he=ce[0],ve=ce[1],me=h.useState(!1),fe=le(me,2),ye=fe[0],xe=fe[1],Ee=function(){xe(!0)},Ne=function(){xe(!1)},Te={getKey:L};function Pe(Fe){_e(function(Qe){var Ot;typeof Fe=="function"?Ot=Fe(Qe):Ot=Fe;var gt=on(Ot);return G.current.scrollTop=gt,gt})}var ke=h.useRef({start:0,end:K.length}),Ce=h.useRef(),Ve=$z(K,L),Ze=le(Ve,1),_t=Ze[0];Ce.current=_t;var nt=h.useMemo(function(){if(!A)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!q){var Fe;return{scrollHeight:((Fe=J.current)===null||Fe===void 0?void 0:Fe.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var Qe=0,Ot,gt,ct,et=K.length,Pt=0;Pt<et;Pt+=1){var Gt=K[Pt],Ge=L(Gt),vt=F.get(Ge),Nt=Qe+(vt===void 0?a:vt);Nt>=ae&&Ot===void 0&&(Ot=Pt,gt=Qe),Nt>ae+o&&ct===void 0&&(ct=Pt),Qe=Nt}return Ot===void 0&&(Ot=0,gt=0,ct=Math.ceil(o/a)),ct===void 0&&(ct=K.length-1),ct=Math.min(ct+1,K.length-1),{scrollHeight:Qe,start:Ot,end:ct,offset:gt}},[q,A,ae,K,V,o]),Ye=nt.scrollHeight,mt=nt.start,Je=nt.end,yt=nt.offset;ke.current.start=mt,ke.current.end=Je,h.useLayoutEffect(function(){var Fe=F.getRecord();if(Fe.size===1){var Qe=Array.from(Fe.keys())[0],Ot=Fe.get(Qe),gt=K[mt];if(gt&&Ot===void 0){var ct=L(gt);if(ct===Qe){var et=F.get(Qe),Pt=et-a;Pe(function(Gt){return Gt+Pt})}}}F.resetRecord()},[Ye]);var rt=h.useState({width:0,height:o}),Le=le(rt,2),ot=Le[0],ze=Le[1],Ke=function(Qe){ze({width:Qe.offsetWidth,height:Qe.offsetHeight})},It=h.useRef(),Ct=h.useRef(),nn=h.useMemo(function(){return iw(ot.width,S)},[ot.width,S]),Qt=h.useMemo(function(){return iw(ot.height,Ye)},[ot.height,Ye]),Sn=Ye-o,In=h.useRef(Sn);In.current=Sn;function on(Fe){var Qe=Fe;return Number.isNaN(In.current)||(Qe=Math.min(Qe,In.current)),Qe=Math.max(Qe,0),Qe}var Ht=ae<=0,Tt=ae>=Sn,sn=he<=0,Xt=he>=S,at=n$(Ht,Tt,sn,Xt),$t=function(){return{x:H?-he:he,y:ae}},pt=h.useRef($t()),Me=Un(function(Fe){if(k){var Qe=Z(Z({},$t()),Fe);(pt.current.x!==Qe.x||pt.current.y!==Qe.y)&&(k(Qe),pt.current=Qe)}});function Oe(Fe,Qe){var Ot=Fe;Qe?(Zs.flushSync(function(){ve(Ot)}),Me()):Pe(Ot)}function Re(Fe){var Qe=Fe.currentTarget.scrollTop;Qe!==ae&&Pe(Qe),w==null||w(Fe),Me()}var De=function(Qe){var Ot=Qe,gt=S?S-ot.width:0;return Ot=Math.max(Ot,0),Ot=Math.min(Ot,gt),Ot},tt=Un(function(Fe,Qe){Qe?(Zs.flushSync(function(){ve(function(Ot){var gt=Ot+(H?-Fe:Fe);return De(gt)})}),Me()):Pe(function(Ot){var gt=Ot+Fe;return gt})}),it=Rz(A,Ht,Tt,sn,Xt,!!S,tt),Wt=le(it,2),Kt=Wt[0],Lt=Wt[1];Iz(A,G,function(Fe,Qe,Ot,gt){var ct=gt;return at(Fe,Qe,Ot)?!1:!ct||!ct._virtualHandled?(ct&&(ct._virtualHandled=!0),Kt({preventDefault:function(){},deltaX:Fe?Qe:0,deltaY:Fe?0:Qe}),!0):!1}),Nz(q,G,function(Fe){Pe(function(Qe){return Qe+Fe})}),fn(function(){function Fe(Ot){var gt=Ht&&Ot.detail<0,ct=Tt&&Ot.detail>0;A&&!gt&&!ct&&Ot.preventDefault()}var Qe=G.current;return Qe.addEventListener("wheel",Kt,{passive:!1}),Qe.addEventListener("DOMMouseScroll",Lt,{passive:!0}),Qe.addEventListener("MozMousePixelScroll",Fe,{passive:!1}),function(){Qe.removeEventListener("wheel",Kt),Qe.removeEventListener("DOMMouseScroll",Lt),Qe.removeEventListener("MozMousePixelScroll",Fe)}},[A,Ht,Tt]),fn(function(){if(S){var Fe=De(he);ve(Fe),Me({x:Fe})}},[ot.width,S]);var At=function(){var Qe,Ot;(Qe=It.current)===null||Qe===void 0||Qe.delayHidden(),(Ot=Ct.current)===null||Ot===void 0||Ot.delayHidden()},Pn=jz(G,K,F,a,L,function(){return D(!0)},Pe,At);h.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:$t,scrollTo:function(Qe){function Ot(gt){return gt&&St(gt)==="object"&&("left"in gt||"top"in gt)}Ot(Qe)?(Qe.left!==void 0&&ve(De(Qe.left)),Pn(Qe.top)):Pn(Qe)}}}),fn(function(){if($){var Fe=K.slice(mt,Je+1);$(Fe,K)}},[mt,Je,K]);var $n=Tz(K,L,F,a),Nn=R==null?void 0:R({start:mt,end:Je,virtual:q,offsetX:he,offsetY:yt,rtl:H,getSize:$n}),Hn=Ez(K,mt,Je,S,he,z,m,Te),cn=null;o&&(cn=Z(Y({},u?"height":"maxHeight",o),Az),A&&(cn.overflowY="hidden",S&&(cn.overflowX="hidden"),ye&&(cn.pointerEvents="none")));var pn={};return H&&(pn.dir="rtl"),h.createElement("div",$e({ref:ee,style:Z(Z({},d),{},{position:"relative"}),className:U},pn,j),h.createElement(ho,{onResize:Ke},h.createElement(C,{className:"".concat(r,"-holder"),style:cn,ref:G,onScroll:Re,onMouseEnter:At},h.createElement(t$,{prefixCls:r,height:Ye,offsetX:he,offsetY:yt,scrollWidth:S,onInnerResize:D,ref:J,innerProps:T,rtl:H,extra:Nn},Hn))),q&&Ye>o&&h.createElement(rw,{ref:It,prefixCls:r,scrollOffset:ae,scrollRange:Ye,rtl:H,onScroll:Oe,onStartMove:Ee,onStopMove:Ne,spinSize:Qt,containerSize:ot.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:I}),q&&S>ot.width&&h.createElement(rw,{ref:Ct,prefixCls:r,scrollOffset:he,scrollRange:S,rtl:H,onScroll:Oe,onStartMove:Ee,onStopMove:Ne,spinSize:nn,containerSize:ot.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:I}))}var r$=h.forwardRef(Dz);r$.displayName="List";function Hz(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Fz=["disabled","title","children","style","className"];function ow(e){return typeof e=="string"||typeof e=="number"}var Wz=function(t,n){var r=$j(),i=r.prefixCls,o=r.id,a=r.open,l=r.multiple,u=r.mode,d=r.searchValue,f=r.toggleOpen,m=r.notFoundContent,g=r.onPopupScroll,v=h.useContext(Uy),y=v.maxCount,S=v.flattenOptions,_=v.onActiveValue,C=v.defaultActiveFirstOption,w=v.onSelect,k=v.menuItemSelectedIcon,$=v.rawValues,T=v.fieldNames,R=v.virtual,O=v.direction,N=v.listHeight,I=v.listItemHeight,j=v.optionRender,L="".concat(i,"-item"),M=Fu(function(){return S},[a,S],function(se,ce){return ce[0]&&se[1]!==ce[1]}),B=h.useRef(null),z=h.useMemo(function(){return l&&h0(y)&&($==null?void 0:$.size)>=y},[l,y,$==null?void 0:$.size]),D=function(ce){ce.preventDefault()},F=function(ce){var he;(he=B.current)===null||he===void 0||he.scrollTo(typeof ce=="number"?{index:ce}:ce)},V=h.useCallback(function(se){return u==="combobox"?!1:$.has(se)},[u,Ae($).toString(),$.size]),A=function(ce){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=M.length,me=0;me<ve;me+=1){var fe=(ce+me*he+ve)%ve,ye=M[fe]||{},xe=ye.group,Ee=ye.data;if(!xe&&!(Ee!=null&&Ee.disabled)&&(V(Ee.value)||!z))return fe}return-1},X=h.useState(function(){return A(0)}),q=le(X,2),H=q[0],U=q[1],K=function(ce){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;U(ce);var ve={source:he?"keyboard":"mouse"},me=M[ce];if(!me){_(null,-1,ve);return}_(me.value,ce,ve)};h.useEffect(function(){K(C!==!1?A(0):-1)},[M.length,d]);var G=h.useCallback(function(se){return u==="combobox"?String(se).toLowerCase()===d.toLowerCase():$.has(se)},[u,d,Ae($).toString(),$.size]);h.useEffect(function(){var se=setTimeout(function(){if(!l&&a&&$.size===1){var he=Array.from($)[0],ve=M.findIndex(function(me){var fe=me.data;return d?String(fe.value).startsWith(d):fe.value===he});ve!==-1&&(K(ve),F(ve))}});if(a){var ce;(ce=B.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(se)}},[a,d]);var J=function(ce){ce!==void 0&&w(ce,{selected:!$.has(ce)}),l||f(!1)};if(h.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var he=ce.which,ve=ce.ctrlKey;switch(he){case Xe.N:case Xe.P:case Xe.UP:case Xe.DOWN:{var me=0;if(he===Xe.UP?me=-1:he===Xe.DOWN?me=1:Hz()&&ve&&(he===Xe.N?me=1:he===Xe.P&&(me=-1)),me!==0){var fe=A(H+me,me);F(fe),K(fe,!0)}break}case Xe.TAB:case Xe.ENTER:{var ye,xe=M[H];xe&&!(xe!=null&&(ye=xe.data)!==null&&ye!==void 0&&ye.disabled)&&!z?J(xe.value):J(void 0),a&&ce.preventDefault();break}case Xe.ESC:f(!1),a&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){F(ce)}}}),M.length===0)return h.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(L,"-empty"),onMouseDown:D},m);var ee=Object.keys(T).map(function(se){return T[se]}),de=function(ce){return ce.label};function oe(se,ce){var he=se.group;return{role:he?"presentation":"option",id:"".concat(o,"_list_").concat(ce)}}var ae=function(ce){var he=M[ce];if(!he)return null;var ve=he.data||{},me=ve.value,fe=he.group,ye=Ni(ve,!0),xe=de(he);return he?h.createElement("div",$e({"aria-label":typeof xe=="string"&&!fe?xe:null},ye,{key:ce},oe(he,ce),{"aria-selected":G(me)}),me):null},_e={role:"listbox",id:"".concat(o,"_list")};return h.createElement(h.Fragment,null,R&&h.createElement("div",$e({},_e,{style:{height:0,width:0,overflow:"hidden"}}),ae(H-1),ae(H),ae(H+1)),h.createElement(r$,{itemKey:"key",ref:B,data:M,height:N,itemHeight:I,fullHeight:!1,onMouseDown:D,onScroll:g,virtual:R,direction:O,innerProps:R?null:_e},function(se,ce){var he=se.group,ve=se.groupOption,me=se.data,fe=se.label,ye=se.value,xe=me.key;if(he){var Ee,Ne=(Ee=me.title)!==null&&Ee!==void 0?Ee:ow(fe)?fe.toString():void 0;return h.createElement("div",{className:ne(L,"".concat(L,"-group"),me.className),title:Ne},fe!==void 0?fe:xe)}var Te=me.disabled,Pe=me.title;me.children;var ke=me.style,Ce=me.className,Ve=Bt(me,Fz),Ze=rr(Ve,ee),_t=V(ye),nt=Te||!_t&&z,Ye="".concat(L,"-option"),mt=ne(L,Ye,Ce,Y(Y(Y(Y({},"".concat(Ye,"-grouped"),ve),"".concat(Ye,"-active"),H===ce&&!nt),"".concat(Ye,"-disabled"),nt),"".concat(Ye,"-selected"),_t)),Je=de(se),yt=!k||typeof k=="function"||_t,rt=typeof Je=="number"?Je:Je||ye,Le=ow(rt)?rt.toString():void 0;return Pe!==void 0&&(Le=Pe),h.createElement("div",$e({},Ni(Ze),R?{}:oe(se,ce),{"aria-selected":G(ye),className:mt,title:Le,onMouseMove:function(){H===ce||nt||K(ce)},onClick:function(){nt||J(ye)},style:ke}),h.createElement("div",{className:"".concat(Ye,"-content")},typeof j=="function"?j(se,{index:ce}):rt),h.isValidElement(k)||_t,yt&&h.createElement(um,{className:"".concat(L,"-option-state"),customizeIcon:k,customizeIconProps:{value:ye,disabled:nt,isSelected:_t}},_t?"✓":null))}))},Vz=h.forwardRef(Wz);const Uz=(function(e,t){var n=h.useRef({values:new Map,options:new Map}),r=h.useMemo(function(){var o=n.current,a=o.values,l=o.options,u=e.map(function(m){if(m.label===void 0){var g;return Z(Z({},m),{},{label:(g=a.get(m.value))===null||g===void 0?void 0:g.label})}return m}),d=new Map,f=new Map;return u.forEach(function(m){d.set(m.value,m),f.set(m.value,t.get(m.value)||l.get(m.value))}),n.current.values=d,n.current.options=f,u},[e,t]),i=h.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]});function Ag(e,t){return Qk(e).join("").toUpperCase().includes(t)}const qz=(function(e,t,n,r,i){return h.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,l=t.value,u=[],d=typeof r=="function",f=n.toUpperCase(),m=d?r:function(v,y){return i?Ag(y[i],f):y[o]?Ag(y[a!=="children"?a:"label"],f):Ag(y[l],f)},g=d?function(v){return f0(v)}:function(v){return v};return e.forEach(function(v){if(v[o]){var y=m(n,g(v));if(y)u.push(v);else{var S=v[o].filter(function(_){return m(n,g(_))});S.length&&u.push(Z(Z({},v),{},Y({},o,S)))}return}m(n,g(v))&&u.push(v)}),u},[e,r,i,n,t])});var sw=0,Kz=ai();function Gz(){var e;return Kz?(e=sw,sw+=1):e="TEST_OR_SSR",e}function Xz(e){var t=h.useState(),n=le(t,2),r=n[0],i=n[1];return h.useEffect(function(){i("rc_select_".concat(Gz()))},[]),e||r}var Yz=["children","value"],Jz=["children"];function Qz(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=Bt(r,Yz);return Z({key:n,value:o!==void 0?o:n,children:i},a)}function i$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return pi(e).map(function(n,r){if(!h.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,l=i.props,u=l.children,d=Bt(l,Jz);return t||!o?Qz(n):Z(Z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},d),{},{options:i$(u)})}).filter(function(n){return n})}var Zz=function(t,n,r,i,o){return h.useMemo(function(){var a=t,l=!t;l&&(a=i$(n));var u=new Map,d=new Map,f=function(v,y,S){S&&typeof S=="string"&&v.set(y[S],y)},m=function g(v){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<v.length;S+=1){var _=v[S];!_[r.options]||y?(u.set(_[r.value],_),f(d,_,r.label),f(d,_,i),f(d,_,o)):g(_[r.options],!0)}};return m(a),{options:a,valueOptions:u,labelOptions:d}},[t,n,r,i,o])};function aw(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var eB=["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"],tB=["inputValue"];function nB(e){return!e||St(e)!=="object"}var rB=h.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,l=e.fieldNames,u=e.inputValue,d=e.searchValue,f=e.onSearch,m=e.autoClearSearchValue,g=m===void 0?!0:m,v=e.onSelect,y=e.onDeselect,S=e.dropdownMatchSelectWidth,_=S===void 0?!0:S,C=e.filterOption,w=e.filterSort,k=e.optionFilterProp,$=e.optionLabelProp,T=e.options,R=e.optionRender,O=e.children,N=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,j=e.virtual,L=e.direction,M=e.listHeight,B=M===void 0?200:M,z=e.listItemHeight,D=z===void 0?20:z,F=e.labelRender,V=e.value,A=e.defaultValue,X=e.labelInValue,q=e.onChange,H=e.maxCount,U=Bt(e,eB),K=Xz(n),G=m0(r),J=!!(!T&&O),ee=h.useMemo(function(){return C===void 0&&r==="combobox"?!1:C},[C,r]),de=h.useMemo(function(){return e$(l,J)},[JSON.stringify(l),J]),oe=Xn("",{value:d!==void 0?d:u,postState:function(Oe){return Oe||""}}),ae=le(oe,2),_e=ae[0],se=ae[1],ce=Zz(T,O,de,k,$),he=ce.valueOptions,ve=ce.labelOptions,me=ce.options,fe=h.useCallback(function(Me){var Oe=Qk(Me);return Oe.map(function(Re){var De,tt,it,Wt,Kt;if(nB(Re))De=Re;else{var Lt;it=Re.key,tt=Re.label,De=(Lt=Re.value)!==null&&Lt!==void 0?Lt:it}var At=he.get(De);if(At){var Pn;tt===void 0&&(tt=At==null?void 0:At[$||de.label]),it===void 0&&(it=(Pn=At==null?void 0:At.key)!==null&&Pn!==void 0?Pn:De),Wt=At==null?void 0:At.disabled,Kt=At==null?void 0:At.title}return{label:tt,value:De,key:it,disabled:Wt,title:Kt}})},[de,$,he]),ye=Xn(A,{value:V}),xe=le(ye,2),Ee=xe[0],Ne=xe[1],Te=h.useMemo(function(){var Me,Oe=G&&Ee===null?[]:Ee,Re=fe(Oe);return r==="combobox"&&Gj((Me=Re[0])===null||Me===void 0?void 0:Me.value)?[]:Re},[Ee,fe,r,G]),Pe=Uz(Te,he),ke=le(Pe,2),Ce=ke[0],Ve=ke[1],Ze=h.useMemo(function(){if(!r&&Ce.length===1){var Me=Ce[0];if(Me.value===null&&(Me.label===null||Me.label===void 0))return[]}return Ce.map(function(Oe){var Re;return Z(Z({},Oe),{},{label:(Re=typeof F=="function"?F(Oe):Oe.label)!==null&&Re!==void 0?Re:Oe.value})})},[r,Ce,F]),_t=h.useMemo(function(){return new Set(Ce.map(function(Me){return Me.value}))},[Ce]);h.useEffect(function(){if(r==="combobox"){var Me,Oe=(Me=Ce[0])===null||Me===void 0?void 0:Me.value;se(Kj(Oe)?String(Oe):"")}},[Ce]);var nt=aw(function(Me,Oe){var Re=Oe??Me;return Y(Y({},de.value,Me),de.label,Re)}),Ye=h.useMemo(function(){if(r!=="tags")return me;var Me=Ae(me),Oe=function(De){return he.has(De)};return Ae(Ce).sort(function(Re,De){return Re.value<De.value?-1:1}).forEach(function(Re){var De=Re.value;Oe(De)||Me.push(nt(De,Re.label))}),Me},[nt,me,he,Ce,r]),mt=qz(Ye,de,_e,ee,k),Je=h.useMemo(function(){return r!=="tags"||!_e||mt.some(function(Me){return Me[k||"value"]===_e})||mt.some(function(Me){return Me[de.value]===_e})?mt:[nt(_e)].concat(Ae(mt))},[nt,k,r,mt,_e,de]),yt=function Me(Oe){var Re=Ae(Oe).sort(function(De,tt){return w(De,tt,{searchValue:_e})});return Re.map(function(De){return Array.isArray(De.options)?Z(Z({},De),{},{options:De.options.length>0?Me(De.options):De.options}):De})},rt=h.useMemo(function(){return w?yt(Je):Je},[Je,w,_e]),Le=h.useMemo(function(){return yz(rt,{fieldNames:de,childrenAsData:J})},[rt,de,J]),ot=function(Oe){var Re=fe(Oe);if(Ne(Re),q&&(Re.length!==Ce.length||Re.some(function(it,Wt){var Kt;return((Kt=Ce[Wt])===null||Kt===void 0?void 0:Kt.value)!==(it==null?void 0:it.value)}))){var De=X?Re:Re.map(function(it){return it.value}),tt=Re.map(function(it){return f0(Ve(it.value))});q(G?De:De[0],G?tt:tt[0])}},ze=h.useState(null),Ke=le(ze,2),It=Ke[0],Ct=Ke[1],nn=h.useState(0),Qt=le(nn,2),Sn=Qt[0],In=Qt[1],on=N!==void 0?N:r!=="combobox",Ht=h.useCallback(function(Me,Oe){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=Re.source,tt=De===void 0?"keyboard":De;In(Oe),a&&r==="combobox"&&Me!==null&&tt==="keyboard"&&Ct(String(Me))},[a,r]),Tt=function(Oe,Re,De){var tt=function(){var cn,pn=Ve(Oe);return[X?{label:pn==null?void 0:pn[de.label],value:Oe,key:(cn=pn==null?void 0:pn.key)!==null&&cn!==void 0?cn:Oe}:Oe,f0(pn)]};if(Re&&v){var it=tt(),Wt=le(it,2),Kt=Wt[0],Lt=Wt[1];v(Kt,Lt)}else if(!Re&&y&&De!=="clear"){var At=tt(),Pn=le(At,2),$n=Pn[0],Nn=Pn[1];y($n,Nn)}},sn=aw(function(Me,Oe){var Re,De=G?Oe.selected:!0;De?Re=G?[].concat(Ae(Ce),[Me]):[Me]:Re=Ce.filter(function(tt){return tt.value!==Me}),ot(Re),Tt(Me,De),r==="combobox"?Ct(""):(!m0||g)&&(se(""),Ct(""))}),Xt=function(Oe,Re){ot(Oe);var De=Re.type,tt=Re.values;(De==="remove"||De==="clear")&&tt.forEach(function(it){Tt(it.value,!1,De)})},at=function(Oe,Re){if(se(Oe),Ct(null),Re.source==="submit"){var De=(Oe||"").trim();if(De){var tt=Array.from(new Set([].concat(Ae(_t),[De])));ot(tt),Tt(De,!0),se("")}return}Re.source!=="blur"&&(r==="combobox"&&ot(Oe),f==null||f(Oe))},$t=function(Oe){var Re=Oe;r!=="tags"&&(Re=Oe.map(function(tt){var it=ve.get(tt);return it==null?void 0:it.value}).filter(function(tt){return tt!==void 0}));var De=Array.from(new Set([].concat(Ae(_t),Ae(Re))));ot(De),De.forEach(function(tt){Tt(tt,!0)})},pt=h.useMemo(function(){var Me=j!==!1&&_!==!1;return Z(Z({},ce),{},{flattenOptions:Le,onActiveValue:Ht,defaultActiveFirstOption:on,onSelect:sn,menuItemSelectedIcon:I,rawValues:_t,fieldNames:de,virtual:Me,direction:L,listHeight:B,listItemHeight:D,childrenAsData:J,maxCount:H,optionRender:R})},[H,ce,Le,Ht,on,sn,I,_t,de,j,_,L,B,D,J,R]);return h.createElement(Uy.Provider,{value:pt},h.createElement(wz,$e({},U,{id:K,prefixCls:o,ref:t,omitDomProps:tB,mode:r,displayValues:Ze,onDisplayValuesChange:Xt,direction:L,searchValue:_e,onSearch:at,autoClearSearchValue:g,onSearchSplit:$t,dropdownMatchSelectWidth:_,OptionList:Vz,emptyOptions:!Le.length,activeValue:It,activeDescendantId:"".concat(K,"_list_").concat(Sn)})))}),Gy=rB;Gy.Option=Ky;Gy.OptGroup=qy;function pf(e,t,n){return ne({[`${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 hm=(e,t)=>t||e,iB=()=>{const[,e]=vi(),[t]=_s("Empty"),r=new _n(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return h.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(t==null?void 0:t.description)||"Empty"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(24 31.67)"},h.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),h.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"}),h.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)"}),h.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"}),h.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"})),h.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"}),h.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},h.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),h.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oB=()=>{const[,e]=vi(),[t]=_s("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:l,contentColor:u}=h.useMemo(()=>({borderColor:new _n(n).onBackground(o).toHexString(),shadowColor:new _n(r).onBackground(o).toHexString(),contentColor:new _n(i).onBackground(o).toHexString()}),[n,r,i,o]);return h.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(t==null?void 0:t.description)||"Empty"),h.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},h.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),h.createElement("g",{fillRule:"nonzero",stroke:a},h.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"}),h.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:u}))))},sB=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,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:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},aB=vn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Jt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return sB(i)});var lB=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const o$=h.createElement(iB,null),s$=h.createElement(oB,null),Ii=e=>{var t;const{className:n,rootClassName:r,prefixCls:i,image:o,description:a,children:l,imageStyle:u,style:d,classNames:f,styles:m}=e,g=lB(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:y,className:S,style:_,classNames:C,styles:w,image:k}=Dr("empty"),$=v("empty",i),[T,R,O]=aB($),[N]=_s("Empty"),I=typeof a<"u"?a:N==null?void 0:N.description,j=typeof I=="string"?I:"empty",L=(t=o??k)!==null&&t!==void 0?t:o$;let M=null;return typeof L=="string"?M=h.createElement("img",{draggable:!1,alt:j,src:L}):M=L,T(h.createElement("div",Object.assign({className:ne(R,O,$,S,{[`${$}-normal`]:L===s$,[`${$}-rtl`]:y==="rtl"},n,r,C.root,f==null?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),_),m==null?void 0:m.root),d)},g),h.createElement("div",{className:ne(`${$}-image`,C.image,f==null?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},u),w.image),m==null?void 0:m.image)},M),I&&h.createElement("div",{className:ne(`${$}-description`,C.description,f==null?void 0:f.description),style:Object.assign(Object.assign({},w.description),m==null?void 0:m.description)},I),l&&h.createElement("div",{className:ne(`${$}-footer`,C.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign({},w.footer),m==null?void 0:m.footer)},l)))};Ii.PRESENTED_IMAGE_DEFAULT=o$;Ii.PRESENTED_IMAGE_SIMPLE=s$;const a$=e=>{const{componentName:t}=e,{getPrefixCls:n}=h.useContext(kt),r=n("empty");switch(t){case"Table":case"List":return Q.createElement(Ii,{image:Ii.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Q.createElement(Ii,{image:Ii.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Q.createElement(Ii,null)}},Xy=(e,t,n)=>{var r,i;const{variant:o,[e]:a}=h.useContext(kt),l=h.useContext(P8),u=a==null?void 0:a.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=(i=(r=l??u)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const f=oO.includes(d);return[d,f]},cB=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 uB(e,t){return e||cB(t)}const lw=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},dB=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,u=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},qn(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
|
-
${i}${l}bottomLeft,
|
|
225
|
-
${o}${l}bottomLeft
|
|
226
|
-
`]:{animationName:Ly},[`
|
|
227
|
-
${i}${l}topLeft,
|
|
228
|
-
${o}${l}topLeft,
|
|
229
|
-
${i}${l}topRight,
|
|
230
|
-
${o}${l}topRight
|
|
231
|
-
`]:{animationName:Dy},[`${a}${l}bottomLeft`]:{animationName:Ay},[`
|
|
232
|
-
${a}${l}topLeft,
|
|
233
|
-
${a}${l}topRight
|
|
234
|
-
`]:{animationName:Hy},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},lw(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"},Tu),"&-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({},lw(e)),{color:e.colorTextDisabled})}),[`${u}:has(+ ${u})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${u}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ra(e,"slide-up"),ra(e,"slide-down"),hf(e,"move-up"),hf(e,"move-down")]},hB=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:re(t),itemLineHeight:re(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},fB=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},mB=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:u,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:f}=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:f,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(f).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},sc()),{display:"inline-flex",alignItems:"center",color:u,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},pB=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=fB(e),l=t?`${n}-${t}`:"",u=hB(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},mB(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:u.basePadding,paddingBlock:u.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${re(r)} 0`,lineHeight:re(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:u.itemHeight,lineHeight:re(u.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:re(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal()},[`${i}-item + ${i}-item,
|
|
235
|
-
${n}-prefix + ${n}-selection-wrap
|
|
236
|
-
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:u.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:re(o),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(u.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Dg(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${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[pB(e,t),i]}const gB=e=>{const{componentCls:t}=e,n=Jt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=Jt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Dg(e),Dg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Dg(r,"lg")]};function Hg(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},qn(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:re(o)},[`${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:re(o),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 ${re(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:re(o)}}},[`&${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 ${re(r)}`,"&:after":{display:"none"}}}}}}}function vB(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Hg(e),Hg(Jt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${re(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()}}}},Hg(Jt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const yB=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:u,zIndexPopupBase:d,colorText:f,fontWeightStrong:m,controlItemBgActive:g,controlItemBgHover:v,colorBgContainer:y,colorFillSecondary:S,colorBgContainerDisabled:_,colorTextDisabled:C,colorPrimaryHover:w,colorPrimary:k,controlOutline:$}=e,T=l*2,R=r*2,O=Math.min(i-T,i-R),N=Math.min(o-T,o-R),I=Math.min(a-T,a-R);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:d+50,optionSelectedColor:f,optionSelectedFontWeight:m,optionSelectedBg:g,optionActiveBg:v,optionPadding:`${(i-t*n)/2}px ${u}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:y,clearBg:y,singleItemHeightLG:a,multipleItemBg:S,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:N,multipleItemHeightLG:I,multipleSelectorBgDisabled:_,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:k,activeOutlineColor:$,selectAffixPadding:l}},l$=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${re(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 ${re(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},cw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},l$(e,t))}),bB=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},l$(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),cw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),cw(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:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),c$=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${re(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}}}},uw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},c$(e,t))}),_B=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},c$(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),uw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),uw(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),SB=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${re(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:`${re(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}}}}),u$=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${re(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}}}},dw=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},u$(e,t))}),CB=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},u$(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),dw(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),dw(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:`${re(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),wB=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},bB(e)),_B(e)),SB(e)),CB(e))}),xB=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"}}}},EB=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"}}}},kB=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},qn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},xB(e)),EB(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Tu),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Tu),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},sc()),{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`,[i]:{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)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},$B=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},kB(e),vB(e),gB(e),dB(e),{[`${t}-rtl`]:{direction:"rtl"}},om(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},RB=vn("Select",(e,{rootPrefixCls:t})=>{const n=Jt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[$B(n),wB(n)]},yB,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var TB={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"},PB=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:TB}))},d$=h.forwardRef(PB),OB={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"},IB=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:OB}))},ms=h.forwardRef(IB),NB={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"},MB=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:NB}))},h$=h.forwardRef(MB);function jB({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:o,hasFeedback:a,prefixCls:l,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}){const g=t??h.createElement(Gf,null),v=C=>e===null&&!a&&!f?null:h.createElement(h.Fragment,null,u!==!1&&C,a&&d);let y=null;if(e!==void 0)y=v(e);else if(i)y=v(h.createElement(Uu,{spin:!0}));else{const C=`${l}-suffix`;y=({open:w,showSearch:k})=>v(w&&k?h.createElement(h$,{className:C}):h.createElement(ms,{className:C}))}let S=null;n!==void 0?S=n:o?S=h.createElement(d$,null):S=null;let _=null;return r!==void 0?_=r:_=h.createElement(na,null),{clearIcon:g,suffixIcon:y,itemIcon:S,removeIcon:_}}function zB(e){return Q.useMemo(()=>{if(e)return(...t)=>Q.createElement(Na,{space:!0},e.apply(void 0,t))},[e])}function BB(e,t){return t!==void 0?t:e!==null}var LB=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const f$="SECRET_COMBOBOX_MODE_DO_NOT_USE",AB=(e,t)=>{var n,r,i,o,a;const{prefixCls:l,bordered:u,className:d,rootClassName:f,getPopupContainer:m,popupClassName:g,dropdownClassName:v,listHeight:y=256,placement:S,listItemHeight:_,size:C,disabled:w,notFoundContent:k,status:$,builtinPlacements:T,dropdownMatchSelectWidth:R,popupMatchSelectWidth:O,direction:N,style:I,allowClear:j,variant:L,dropdownStyle:M,transitionName:B,tagRender:z,maxCount:D,prefix:F,dropdownRender:V,popupRender:A,onDropdownVisibleChange:X,onOpenChange:q,styles:H,classNames:U}=e,K=LB(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:G,getPrefixCls:J,renderEmpty:ee,direction:de,virtual:oe,popupMatchSelectWidth:ae,popupOverflow:_e}=h.useContext(kt),{showSearch:se,style:ce,styles:he,className:ve,classNames:me}=Dr("select"),[,fe]=vi(),ye=_??(fe==null?void 0:fe.controlHeight),xe=J("select",l),Ee=J(),Ne=N??de,{compactSize:Te,compactItemClassnames:Pe}=Wa(xe,Ne),[ke,Ce]=Xy("select",L,u),Ve=go(xe),[Ze,_t,nt]=RB(xe,Ve),Ye=h.useMemo(()=>{const{mode:De}=e;if(De!=="combobox")return De===f$?"combobox":De},[e.mode]),mt=Ye==="multiple"||Ye==="tags",Je=BB(e.suffixIcon,e.showArrow),yt=(n=O??R)!==null&&n!==void 0?n:ae,rt=((r=H==null?void 0:H.popup)===null||r===void 0?void 0:r.root)||((i=he.popup)===null||i===void 0?void 0:i.root)||M,Le=zB(A||V),ot=q||X,{status:ze,hasFeedback:Ke,isFormItemInput:It,feedbackIcon:Ct}=h.useContext(Qo),nn=hm(ze,$);let Qt;k!==void 0?Qt=k:Ye==="combobox"?Qt=null:Qt=(ee==null?void 0:ee("Select"))||h.createElement(a$,{componentName:"Select"});const{suffixIcon:Sn,itemIcon:In,removeIcon:on,clearIcon:Ht}=jB(Object.assign(Object.assign({},K),{multiple:mt,hasFeedback:Ke,feedbackIcon:Ct,showSuffixIcon:Je,prefixCls:xe,componentName:"Select"})),Tt=j===!0?{clearIcon:Ht}:j,sn=rr(K,["suffixIcon","itemIcon"]),Xt=ne(((o=U==null?void 0:U.popup)===null||o===void 0?void 0:o.root)||((a=me==null?void 0:me.popup)===null||a===void 0?void 0:a.root)||g||v,{[`${xe}-dropdown-${Ne}`]:Ne==="rtl"},f,me.root,U==null?void 0:U.root,nt,Ve,_t),at=Xi(De=>{var tt;return(tt=C??Te)!==null&&tt!==void 0?tt:De}),$t=h.useContext(Xo),pt=w??$t,Me=ne({[`${xe}-lg`]:at==="large",[`${xe}-sm`]:at==="small",[`${xe}-rtl`]:Ne==="rtl",[`${xe}-${ke}`]:Ce,[`${xe}-in-form-item`]:It},pf(xe,nn,Ke),Pe,ve,d,me.root,U==null?void 0:U.root,f,nt,Ve,_t),Oe=h.useMemo(()=>S!==void 0?S:Ne==="rtl"?"bottomRight":"bottomLeft",[S,Ne]),[Re]=lc("SelectLike",rt==null?void 0:rt.zIndex);return Ze(h.createElement(Gy,Object.assign({ref:t,virtual:oe,showSearch:se},sn,{style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),H==null?void 0:H.root),ce),I),dropdownMatchSelectWidth:yt,transitionName:Yo(Ee,"slide-up",B),builtinPlacements:uB(T,_e),listHeight:y,listItemHeight:ye,mode:Ye,prefixCls:xe,placement:Oe,direction:Ne,prefix:F,suffixIcon:Sn,menuItemSelectedIcon:In,removeIcon:on,allowClear:Tt,notFoundContent:Qt,className:Me,getPopupContainer:m||G,dropdownClassName:Xt,disabled:pt,dropdownStyle:Object.assign(Object.assign({},rt),{zIndex:Re}),maxCount:mt?D:void 0,tagRender:mt?z:void 0,dropdownRender:Le,onDropdownVisibleChange:ot})))},Ua=h.forwardRef(AB),DB=Uk(Ua,"dropdownAlign");Ua.SECRET_COMBOBOX_MODE_DO_NOT_USE=f$;Ua.Option=Ky;Ua.OptGroup=qy;Ua._InternalPanelDoNotUseOrYouWillBeFired=DB;const m$=(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)},p$=(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)},Ma=["xxl","xl","lg","md","sm","xs"],HB=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)`}),FB=e=>{const t=e,n=[].concat(Ma).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,l=`screen${o}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(i<n.length-1){const u=`screen${o}Max`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`);const f=`screen${n[i+1].toUpperCase()}Min`;if(!(t[u]<=t[f]))throw new Error(`${u}<=${f} fails : !(${t[u]}<=${t[f]})`)}}),e},WB=()=>{const[,e]=vi(),t=HB(FB(e));return Q.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.entries(t).forEach(([o,a])=>{const l=({matches:d})=>{this.dispatch(Object.assign(Object.assign({},i),{[o]:d}))},u=window.matchMedia(a);m$(u,l),this.matchHandlers[a]={mql:u,listener:l},l(u)})},unregister(){Object.values(t).forEach(o=>{const a=this.matchHandlers[o];p$(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[t])};function Yy(e=!0,t={}){const n=h.useRef(t),[,r]=X6(),i=WB();return fn(()=>{const o=i.subscribe(a=>{n.current=a,e&&r()});return()=>i.unsubscribe(o)},[]),n.current}const gf=e=>e?typeof e=="function"?e():e:null;function Jy(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,l=e.style;return h.createElement("div",{className:ne("".concat(n,"-content"),a),style:l},h.createElement("div",{className:ne("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var kl={shiftX:64,adjustY:1},$l={adjustX:1,shiftY:!0},oo=[0,0],VB={left:{points:["cr","cl"],overflow:$l,offset:[-4,0],targetOffset:oo},right:{points:["cl","cr"],overflow:$l,offset:[4,0],targetOffset:oo},top:{points:["bc","tc"],overflow:kl,offset:[0,-4],targetOffset:oo},bottom:{points:["tc","bc"],overflow:kl,offset:[0,4],targetOffset:oo},topLeft:{points:["bl","tl"],overflow:kl,offset:[0,-4],targetOffset:oo},leftTop:{points:["tr","tl"],overflow:$l,offset:[-4,0],targetOffset:oo},topRight:{points:["br","tr"],overflow:kl,offset:[0,-4],targetOffset:oo},rightTop:{points:["tl","tr"],overflow:$l,offset:[4,0],targetOffset:oo},bottomRight:{points:["tr","br"],overflow:kl,offset:[0,4],targetOffset:oo},rightBottom:{points:["bl","br"],overflow:$l,offset:[4,0],targetOffset:oo},bottomLeft:{points:["tl","bl"],overflow:kl,offset:[0,4],targetOffset:oo},leftBottom:{points:["br","bl"],overflow:$l,offset:[-4,0],targetOffset:oo}},UB=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],qB=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,l=a===void 0?0:a,u=t.mouseLeaveDelay,d=u===void 0?.1:u,f=t.overlayStyle,m=t.prefixCls,g=m===void 0?"rc-tooltip":m,v=t.children,y=t.onVisibleChange,S=t.afterVisibleChange,_=t.transitionName,C=t.animation,w=t.motion,k=t.placement,$=k===void 0?"right":k,T=t.align,R=T===void 0?{}:T,O=t.destroyTooltipOnHide,N=O===void 0?!1:O,I=t.defaultVisible,j=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,B=t.id,z=t.showArrow,D=z===void 0?!0:z,F=t.classNames,V=t.styles,A=Bt(t,UB),X=am(B),q=h.useRef(null);h.useImperativeHandle(n,function(){return q.current});var H=Z({},A);"visible"in t&&(H.popupVisible=t.visible);var U=function(){return h.createElement(Jy,{key:"content",prefixCls:g,id:X,bodyClassName:F==null?void 0:F.body,overlayInnerStyle:Z(Z({},L),V==null?void 0:V.body)},M)},K=function(){var J=h.Children.only(v),ee=(J==null?void 0:J.props)||{},de=Z(Z({},ee),{},{"aria-describedby":M?X:null});return h.cloneElement(v,de)};return h.createElement(dm,$e({popupClassName:ne(r,F==null?void 0:F.root),prefixCls:g,popup:U,action:o,builtinPlacements:VB,popupPlacement:$,ref:q,popupAlign:R,getPopupContainer:j,onPopupVisibleChange:y,afterPopupVisibleChange:S,popupTransitionName:_,popupAnimation:C,popupMotion:w,defaultPopupVisible:I,autoDestroy:N,mouseLeaveDelay:d,popupStyle:Z(Z({},f),V==null?void 0:V.root),mouseEnterDelay:l,arrow:D},H),K())};const KB=h.forwardRef(qB);function Qy(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,l=r*1/Math.sqrt(2),u=i-r*(1-1/Math.sqrt(2)),d=i-n*(1/Math.sqrt(2)),f=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),m=2*i-d,g=f,v=2*i-l,y=u,S=2*i-o,_=a,C=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),k=`polygon(${w}px 100%, 50% ${w}px, ${2*i-w}px 100%, ${w}px 100%)`,$=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${l} ${u} L ${d} ${f} A ${n} ${n} 0 0 1 ${m} ${g} L ${v} ${y} A ${r} ${r} 0 0 0 ${S} ${_} Z')`;return{arrowShadowWidth:C,arrowPath:$,arrowPolygon:k}}const GB=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:l,calc:u}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:u(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${re(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},g$=8;function fm(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?g$:r}}function gh(e,t){return e?t:{}}function Zy(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:u={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"},GB(e,t,i)),{"&:before":{background:t}})]},gh(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${re(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),gh(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${re(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),gh(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),gh(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function XB(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const hw={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"]}},YB={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"]}},JB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function v$(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,l=t/2,u={},d=fm({contentRadius:o,limitVerticalRadius:!0});return Object.keys(hw).forEach(f=>{const m=r&&YB[f]||hw[f],g=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(u[f]=g,JB.has(f)&&(g.autoArrow=!1),f){case"top":case"topLeft":case"topRight":g.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=l+i;break}if(r)switch(f){case"topLeft":case"bottomLeft":g.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":g.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":g.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":g.offset[1]=d.arrowOffsetHorizontal*2-l;break}g.overflow=XB(f,d,t,n),a&&(g.htmlRegion="visibleFirst")}),u}const QB=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:u,boxShadowSecondary:d,paddingSM:f,paddingXS:m,arrowOffsetHorizontal:g,sizePopupArrow:v}=e,y=t(a).add(v).add(g).equal(),S=t(a).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},qn(e)),{position:"absolute",zIndex:l,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":o,[`${n}-inner`]:{minWidth:S,minHeight:u,padding:`${re(e.calc(f).div(2).equal())} ${re(m)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:y},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,g$)}},[`${n}-content`]:{position:"relative"}}),Kf(e,(_,{darkColor:C})=>({[`&${n}-${_}`]:{[`${n}-inner`]:{backgroundColor:C},[`${n}-arrow`]:{"--antd-arrow-background-color":C}}}))),{"&-rtl":{direction:"rtl"}})},Zy(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ZB=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},fm({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Qy(Jt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),y$=(e,t=!0)=>vn("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,l=Jt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[QB(l),Gu(r,"zoom-big-fast")]},ZB,{resetStyle:!1,injectStyle:t})(e),e7=ta.map(e=>`${e}-inverse`),t7=["success","processing","error","default","warning"];function mm(e,t=!0){return t?[].concat(Ae(e7),Ae(ta)).includes(e):ta.includes(e)}function n7(e){return t7.includes(e)}function b$(e,t){const n=mm(t),r=ne({[`${e}-${t}`]:t&&n}),i={},o={},a=VN(t).toRgb(),u=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=u,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const r7=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:l}=h.useContext(kt),u=l("tooltip",t),[d,f,m]=y$(u),g=b$(u,o),v=g.arrowStyle,y=Object.assign(Object.assign({},a),g.overlayStyle),S=ne(f,m,u,`${u}-pure`,`${u}-placement-${r}`,n,g.className);return d(h.createElement("div",{className:S,style:v},h.createElement("div",{className:`${u}-arrow`}),h.createElement(Jy,Object.assign({},e,{className:f,prefixCls:u,overlayInnerStyle:y}),i)))};var i7=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const o7=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,color:l,overlayInnerStyle:u,children:d,afterOpenChange:f,afterVisibleChange:m,destroyTooltipOnHide:g,destroyOnHidden:v,arrow:y=!0,title:S,overlay:_,builtinPlacements:C,arrowPointAtCenter:w=!1,autoAdjustOverflow:k=!0,motion:$,getPopupContainer:T,placement:R="top",mouseEnterDelay:O=.1,mouseLeaveDelay:N=.1,overlayStyle:I,rootClassName:j,overlayClassName:L,styles:M,classNames:B}=e,z=i7(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"]),D=!!y,[,F]=vi(),{getPopupContainer:V,getPrefixCls:A,direction:X,className:q,style:H,classNames:U,styles:K}=Dr("tooltip"),G=Uf(),J=h.useRef(null),ee=()=>{var Je;(Je=J.current)===null||Je===void 0||Je.forceAlign()};h.useImperativeHandle(t,()=>{var Je,yt;return{forceAlign:ee,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),ee()},nativeElement:(Je=J.current)===null||Je===void 0?void 0:Je.nativeElement,popupElement:(yt=J.current)===null||yt===void 0?void 0:yt.popupElement}});const[de,oe]=Xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ae=!S&&!_&&S!==0,_e=Je=>{var yt,rt;oe(ae?!1:Je),ae||((yt=e.onOpenChange)===null||yt===void 0||yt.call(e,Je),(rt=e.onVisibleChange)===null||rt===void 0||rt.call(e,Je))},se=h.useMemo(()=>{var Je,yt;let rt=w;return typeof y=="object"&&(rt=(yt=(Je=y.pointAtCenter)!==null&&Je!==void 0?Je:y.arrowPointAtCenter)!==null&&yt!==void 0?yt:w),C||v$({arrowPointAtCenter:rt,autoAdjustOverflow:k,arrowWidth:D?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS,visibleFirst:!0})},[w,y,C,F]),ce=h.useMemo(()=>S===0?S:_||S||"",[_,S]),he=h.createElement(Na,{space:!0},typeof ce=="function"?ce():ce),ve=A("tooltip",i),me=A(),fe=e["data-popover-inject"];let ye=de;!("open"in e)&&!("visible"in e)&&ae&&(ye=!1);const xe=h.isValidElement(d)&&!qE(d)?d:h.createElement("span",null,d),Ee=xe.props,Ne=!Ee.className||typeof Ee.className=="string"?ne(Ee.className,o||`${ve}-open`):Ee.className,[Te,Pe,ke]=y$(ve,!fe),Ce=b$(ve,l),Ve=Ce.arrowStyle,Ze=ne(L,{[`${ve}-rtl`]:X==="rtl"},Ce.className,j,Pe,ke,q,U.root,B==null?void 0:B.root),_t=ne(U.body,B==null?void 0:B.body),[nt,Ye]=lc("Tooltip",z.zIndex),mt=h.createElement(KB,Object.assign({},z,{zIndex:nt,showArrow:D,placement:R,mouseEnterDelay:O,mouseLeaveDelay:N,prefixCls:ve,classNames:{root:Ze,body:_t},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ve),K.root),H),I),M==null?void 0:M.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),u),M==null?void 0:M.body),Ce.overlayStyle)},getTooltipContainer:T||a||V,ref:J,builtinPlacements:se,overlay:he,visible:ye,onVisibleChange:_e,afterVisibleChange:f??m,arrowContent:h.createElement("span",{className:`${ve}-arrow-content`}),motion:{motionName:Yo(me,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!g}),ye?Xr(xe,{className:Ne}):xe);return Te(h.createElement(qu.Provider,{value:Ye},mt))}),Zo=o7;Zo._InternalPanelDoNotUseOrYouWillBeFired=r7;const s7=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:u,zIndexPopup:d,titleMarginBottom:f,colorBgElevated:m,popoverBg:g,titleBorderBottom:v,innerContentPadding:y,titlePadding:S}=e;return[{[t]:Object.assign(Object.assign({},qn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,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":m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:f,color:l,fontWeight:i,borderBottom:v,padding:S},[`${t}-inner-content`]:{color:n,padding:y}})},Zy(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},a7=e=>{const{componentCls:t}=e;return{[t]:ta.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},l7=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:l,marginXS:u,lineType:d,colorSplit:f,paddingSM:m}=e,g=n-r,v=g/2,y=g/2-t,S=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Qy(e)),fm({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:u,titlePadding:o?`${v}px ${S}px ${y}px`:0,titleBorderBottom:o?`${t}px ${d} ${f}`:"none",innerContentPadding:o?`${m}px ${S}px`:0})},_$=vn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Jt(e,{popoverBg:t,popoverColor:n});return[s7(r),a7(r),Gu(r,"zoom-big")]},l7,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var c7=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const S$=({title:e,content:t,prefixCls:n})=>!e&&!t?null:h.createElement(h.Fragment,null,e&&h.createElement("div",{className:`${n}-title`},e),t&&h.createElement("div",{className:`${n}-inner-content`},t)),u7=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:l,children:u}=e,d=gf(a),f=gf(l),m=ne(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return h.createElement("div",{className:m,style:i},h.createElement("div",{className:`${n}-arrow`}),h.createElement(Jy,Object.assign({},e,{className:t,prefixCls:n}),u||h.createElement(S$,{prefixCls:n,title:d,content:f})))},d7=e=>{const{prefixCls:t,className:n}=e,r=c7(e,["prefixCls","className"]),{getPrefixCls:i}=h.useContext(kt),o=i("popover",t),[a,l,u]=_$(o);return a(h.createElement(u7,Object.assign({},r,{prefixCls:o,hashId:l,className:ne(n,u)})))};var h7=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const f7=h.forwardRef((e,t)=>{var n,r;const{prefixCls:i,title:o,content:a,overlayClassName:l,placement:u="top",trigger:d="hover",children:f,mouseEnterDelay:m=.1,mouseLeaveDelay:g=.1,onOpenChange:v,overlayStyle:y={},styles:S,classNames:_}=e,C=h7(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:k,style:$,classNames:T,styles:R}=Dr("popover"),O=w("popover",i),[N,I,j]=_$(O),L=w(),M=ne(l,I,j,k,T.root,_==null?void 0:_.root),B=ne(T.body,_==null?void 0:_.body),[z,D]=Xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=(H,U)=>{D(H,!0),v==null||v(H,U)},V=H=>{H.keyCode===Xe.ESC&&F(!1,H)},A=H=>{F(H)},X=gf(o),q=gf(a);return N(h.createElement(Zo,Object.assign({placement:u,trigger:d,mouseEnterDelay:m,mouseLeaveDelay:g},C,{prefixCls:O,classNames:{root:M,body:B},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},R.root),$),y),S==null?void 0:S.root),body:Object.assign(Object.assign({},R.body),S==null?void 0:S.body)},ref:t,open:z,onOpenChange:A,overlay:X||q?h.createElement(S$,{prefixCls:O,title:X,content:q}):null,transitionName:Yo(L,"zoom-big",C.transitionName),"data-popover-inject":!0}),Xr(f,{onKeyDown:H=>{var U,K;h.isValidElement(f)&&((K=f==null?void 0:(U=f.props).onKeyDown)===null||K===void 0||K.call(U,H)),V(H)}})))}),g0=f7;g0._InternalPanelDoNotUseOrYouWillBeFired=d7;const m7=new Yt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),p7=new Yt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),g7=new Yt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),v7=new Yt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),y7=new Yt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),b7=new Yt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),_7=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:o,textFontSizeSM:a,statusSize:l,dotSize:u,textFontWeight:d,indicatorHeight:f,indicatorHeightSM:m,marginXS:g,calc:v}=e,y=`${r}-scroll-number`,S=Kf(e,(_,{darkColor:C})=>({[`&${t} ${t}-color-${_}`]:{background:C,[`&:not(${t}-count)`]:{color:C},"a:hover &":{background:C}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:f,height:f,color:e.badgeTextColor,fontWeight:d,fontSize:o,lineHeight:re(f),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:v(f).div(2).equal(),boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:a,lineHeight:re(m),borderRadius:v(m).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${re(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:u,minWidth:u,height:u,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${re(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${y}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:b7,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,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:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:m7,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:g,color:e.colorText,fontSize:e.fontSize}}}),S),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:p7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:g7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:v7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:y7,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${y}-custom-component, ${t}-count`]:{transform:"none"},[`${y}-custom-component, ${y}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[y]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${y}-only`]:{position:"relative",display:"inline-block",height:f,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${y}-only-unit`]:{height:f,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${y}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${y}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},C$=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,o=t,a=n,l=e.colorTextLightSolid,u=e.colorError,d=e.colorErrorHover;return Jt(e,{badgeFontHeight:o,badgeShadowSize:a,badgeTextColor:l,badgeColor:u,badgeColorHover:d,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},w$=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},S7=vn("Badge",e=>{const t=C$(e);return _7(t)},w$),C7=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,u=Kf(e,(d,{darkColor:f})=>({[`&${a}-color-${d}`]:{background:f,color:f}}));return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},qn(e)),{position:"absolute",top:r,padding:`0 ${re(e.paddingXS)}`,color:e.colorPrimary,lineHeight:re(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${re(o(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),u),{[`&${a}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},w7=vn(["Badge","Ribbon"],e=>{const t=C$(e);return C7(t)},w$),x7=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:a,placement:l="end",rootClassName:u}=e,{getPrefixCls:d,direction:f}=h.useContext(kt),m=d("ribbon",n),g=`${m}-wrapper`,[v,y,S]=w7(m,g),_=mm(i,!1),C=ne(m,`${m}-placement-${l}`,{[`${m}-rtl`]:f==="rtl",[`${m}-color-${i}`]:_},t),w={},k={};return i&&!_&&(w.background=i,k.color=i),v(h.createElement("div",{className:ne(g,u,y,S)},o,h.createElement("div",{className:ne(C,y),style:Object.assign(Object.assign({},w),r)},h.createElement("span",{className:`${m}-text`},a),h.createElement("div",{className:`${m}-corner`,style:k}))))},fw=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),h.createElement("span",{style:o,className:ne(`${t}-only-unit`,{current:r})},n)};function E7(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const k7=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[a,l]=h.useState(i),[u,d]=h.useState(o),f=()=>{l(i),d(o)};h.useEffect(()=>{const v=setTimeout(f,1e3);return()=>clearTimeout(v)},[i]);let m,g;if(a===i||Number.isNaN(i)||Number.isNaN(a))m=[h.createElement(fw,Object.assign({},e,{key:i,current:!0}))],g={transition:"none"};else{m=[];const v=i+10,y=[];for(let w=i;w<=v;w+=1)y.push(w);const S=u<o?1:-1,_=y.findIndex(w=>w%10===a);m=(S<0?y.slice(0,_+1):y.slice(_)).map((w,k)=>{const $=w%10;return h.createElement(fw,Object.assign({},e,{key:w,value:$,offset:S<0?k-_:k,current:k===_}))}),g={transform:`translateY(${-E7(a,i,S)}00%)`}}return h.createElement("span",{className:`${t}-only`,style:g,onTransitionEnd:f},m)};var $7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const R7=h.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:o,style:a,title:l,show:u,component:d="sup",children:f}=e,m=$7(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:g}=h.useContext(kt),v=g("scroll-number",n),y=Object.assign(Object.assign({},m),{"data-show":u,style:a,className:ne(v,i,o),title:l});let S=r;if(r&&Number(r)%1===0){const _=String(r).split("");S=h.createElement("bdi",null,_.map((C,w)=>h.createElement(k7,{prefixCls:v,count:Number(r),value:C,key:_.length-w})))}return a!=null&&a.borderColor&&(y.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),f?Xr(f,_=>({className:ne(`${v}-custom-component`,_==null?void 0:_.className,o)})):h.createElement(d,Object.assign({},y,{ref:t}),S)});var T7=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const P7=h.forwardRef((e,t)=>{var n,r,i,o,a;const{prefixCls:l,scrollNumberPrefixCls:u,children:d,status:f,text:m,color:g,count:v=null,overflowCount:y=99,dot:S=!1,size:_="default",title:C,offset:w,style:k,className:$,rootClassName:T,classNames:R,styles:O,showZero:N=!1}=e,I=T7(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:j,direction:L,badge:M}=h.useContext(kt),B=j("badge",l),[z,D,F]=S7(B),V=v>y?`${y}+`:v,A=V==="0"||V===0||m==="0"||m===0,X=v===null||A&&!N,q=(f!=null||g!=null)&&X,H=f!=null||!A,U=S&&!A,K=U?"":V,G=h.useMemo(()=>((K==null||K==="")&&(m==null||m==="")||A&&!N)&&!U,[K,A,N,U,m]),J=h.useRef(v);G||(J.current=v);const ee=J.current,de=h.useRef(K);G||(de.current=K);const oe=de.current,ae=h.useRef(U);G||(ae.current=U);const _e=h.useMemo(()=>{if(!w)return Object.assign(Object.assign({},M==null?void 0:M.style),k);const Ee={marginTop:w[1]};return L==="rtl"?Ee.left=Number.parseInt(w[0],10):Ee.right=-Number.parseInt(w[0],10),Object.assign(Object.assign(Object.assign({},Ee),M==null?void 0:M.style),k)},[L,w,k,M==null?void 0:M.style]),se=C??(typeof ee=="string"||typeof ee=="number"?ee:void 0),ce=!G&&(m===0?N:!!m&&m!==!0),he=ce?h.createElement("span",{className:`${B}-status-text`},m):null,ve=!ee||typeof ee!="object"?void 0:Xr(ee,Ee=>({style:Object.assign(Object.assign({},_e),Ee.style)})),me=mm(g,!1),fe=ne(R==null?void 0:R.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${B}-status-dot`]:q,[`${B}-status-${f}`]:!!f,[`${B}-color-${g}`]:me}),ye={};g&&!me&&(ye.color=g,ye.background=g);const xe=ne(B,{[`${B}-status`]:q,[`${B}-not-a-wrapper`]:!d,[`${B}-rtl`]:L==="rtl"},$,T,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,R==null?void 0:R.root,D,F);if(!d&&q&&(m||H||!X)){const Ee=_e.color;return z(h.createElement("span",Object.assign({},I,{className:xe,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.root),(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.root),_e)}),h.createElement("span",{className:fe,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.indicator),ye)}),ce&&h.createElement("span",{style:{color:Ee},className:`${B}-status-text`},m)))}return z(h.createElement("span",Object.assign({ref:t},I,{className:xe,style:Object.assign(Object.assign({},(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),O==null?void 0:O.root)}),d,h.createElement(Gi,{visible:!G,motionName:`${B}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Ee})=>{var Ne,Te;const Pe=j("scroll-number",u),ke=ae.current,Ce=ne(R==null?void 0:R.indicator,(Ne=M==null?void 0:M.classNames)===null||Ne===void 0?void 0:Ne.indicator,{[`${B}-dot`]:ke,[`${B}-count`]:!ke,[`${B}-count-sm`]:_==="small",[`${B}-multiple-words`]:!ke&&oe&&oe.toString().length>1,[`${B}-status-${f}`]:!!f,[`${B}-color-${g}`]:me});let Ve=Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(Te=M==null?void 0:M.styles)===null||Te===void 0?void 0:Te.indicator),_e);return g&&!me&&(Ve=Ve||{},Ve.background=g),h.createElement(R7,{prefixCls:Pe,show:!G,motionClassName:Ee,className:Ce,count:oe,title:se,style:Ve,key:"scrollNumber"},ve)}),he))}),eb=P7;eb.Ribbon=x7;var O7={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"},I7=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:O7}))},Iu=h.forwardRef(I7),N7=Xe.ESC,M7=Xe.TAB;function j7(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=h.useRef(!1),l=function(){if(t){var m,g;(m=n.current)===null||m===void 0||(g=m.focus)===null||g===void 0||g.call(m),r==null||r(!1)}},u=function(){var m;return(m=o.current)!==null&&m!==void 0&&m.focus?(o.current.focus(),a.current=!0,!0):!1},d=function(m){switch(m.keyCode){case N7:l();break;case M7:{var g=!1;a.current||(g=u()),g?m.preventDefault():l();break}}};h.useEffect(function(){return t?(window.addEventListener("keydown",d),i&&kn(u,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[t])}var z7=h.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=h.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=gi(t,Ha(o));return Q.createElement(Q.Fragment,null,r&&Q.createElement("div",{className:"".concat(i,"-arrow")}),Q.cloneElement(o,{ref:ia(o)?a:void 0}))}),Rl={adjustX:1,adjustY:1},Tl=[0,0],B7={topLeft:{points:["bl","tl"],overflow:Rl,offset:[0,-4],targetOffset:Tl},top:{points:["bc","tc"],overflow:Rl,offset:[0,-4],targetOffset:Tl},topRight:{points:["br","tr"],overflow:Rl,offset:[0,-4],targetOffset:Tl},bottomLeft:{points:["tl","bl"],overflow:Rl,offset:[0,4],targetOffset:Tl},bottom:{points:["tc","bc"],overflow:Rl,offset:[0,4],targetOffset:Tl},bottomRight:{points:["tr","br"],overflow:Rl,offset:[0,4],targetOffset:Tl}},L7=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function A7(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,l=e.transitionName,u=e.animation,d=e.align,f=e.placement,m=f===void 0?"bottomLeft":f,g=e.placements,v=g===void 0?B7:g,y=e.getPopupContainer,S=e.showAction,_=e.hideAction,C=e.overlayClassName,w=e.overlayStyle,k=e.visible,$=e.trigger,T=$===void 0?["hover"]:$,R=e.autoFocus,O=e.overlay,N=e.children,I=e.onVisibleChange,j=Bt(e,L7),L=Q.useState(),M=le(L,2),B=M[0],z=M[1],D="visible"in e?k:B,F=Q.useRef(null),V=Q.useRef(null),A=Q.useRef(null);Q.useImperativeHandle(t,function(){return F.current});var X=function(oe){z(oe),I==null||I(oe)};j7({visible:D,triggerRef:A,onVisibleChange:X,autoFocus:R,overlayRef:V});var q=function(oe){var ae=e.onOverlayClick;z(!1),ae&&ae(oe)},H=function(){return Q.createElement(z7,{ref:V,overlay:O,prefixCls:a,arrow:i})},U=function(){return typeof O=="function"?H:H()},K=function(){var oe=e.minOverlayWidthMatchTrigger,ae=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?oe:!ae},G=function(){var oe=e.openClassName;return oe!==void 0?oe:"".concat(a,"-open")},J=Q.cloneElement(N,{className:ne((n=N.props)===null||n===void 0?void 0:n.className,D&&G()),ref:ia(N)?gi(A,Ha(N)):void 0}),ee=_;return!ee&&T.indexOf("contextMenu")!==-1&&(ee=["click"]),Q.createElement(dm,$e({builtinPlacements:v},j,{prefixCls:a,ref:F,popupClassName:ne(C,Y({},"".concat(a,"-show-arrow"),i)),popupStyle:w,action:T,showAction:S,hideAction:ee,popupPlacement:m,popupAlign:d,popupTransitionName:l,popupAnimation:u,popupVisible:D,stretch:K()?"minWidth":"",popup:U(),onPopupVisibleChange:X,onPopupClick:q,getPopupContainer:y}),J)}const x$=Q.forwardRef(A7),D7=e=>typeof e!="object"&&typeof e!="function"||e===null;var E$=h.createContext(null);function k$(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function $$(e){var t=h.useContext(E$);return k$(t,e)}var H7=["children","locked"],Mo=h.createContext(null);function F7(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function Nu(e){var t=e.children,n=e.locked,r=Bt(e,H7),i=h.useContext(Mo),o=Fu(function(){return F7(i,r)},[i,r],function(a,l){return!n&&(a[0]!==l[0]||!Eu(a[1],l[1],!0))});return h.createElement(Mo.Provider,{value:o},t)}var W7=[],R$=h.createContext(null);function pm(){return h.useContext(R$)}var T$=h.createContext(W7);function uc(e){var t=h.useContext(T$);return h.useMemo(function(){return e!==void 0?[].concat(Ae(t),[e]):t},[t,e])}var P$=h.createContext(null),tb=h.createContext({});function mw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(jy(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function V7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ae(e.querySelectorAll("*")).filter(function(r){return mw(r,t)});return mw(e,t)&&n.unshift(e),n}var v0=Xe.LEFT,y0=Xe.RIGHT,b0=Xe.UP,Wh=Xe.DOWN,Vh=Xe.ENTER,O$=Xe.ESC,Uc=Xe.HOME,qc=Xe.END,pw=[b0,Wh,v0,y0];function U7(e,t,n,r){var i,o="prev",a="next",l="children",u="parent";if(e==="inline"&&r===Vh)return{inlineTrigger:!0};var d=Y(Y({},b0,o),Wh,a),f=Y(Y(Y(Y({},v0,n?a:o),y0,n?o:a),Wh,l),Vh,l),m=Y(Y(Y(Y(Y(Y({},b0,o),Wh,a),Vh,l),O$,u),v0,n?l:u),y0,n?u:l),g={inline:d,horizontal:f,vertical:m,inlineSub:d,horizontalSub:m,verticalSub:m},v=(i=g["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(v){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function q7(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function K7(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function nb(e,t){var n=V7(e,!0);return n.filter(function(r){return t.has(r)})}function gw(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=nb(e,t),o=i.length,a=i.findIndex(function(l){return n===l});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var _0=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(k$(n,a),"']"));l&&(r.add(l),o.set(l,a),i.set(a,l))}),{elements:r,key2element:i,element2key:o}};function G7(e,t,n,r,i,o,a,l,u,d){var f=h.useRef(),m=h.useRef();m.current=t;var g=function(){kn.cancel(f.current)};return h.useEffect(function(){return function(){g()}},[]),function(v){var y=v.which;if([].concat(pw,[Vh,O$,Uc,qc]).includes(y)){var S=o(),_=_0(S,r),C=_,w=C.elements,k=C.key2element,$=C.element2key,T=k.get(t),R=K7(T,w),O=$.get(R),N=U7(e,a(O,!0).length===1,n,y);if(!N&&y!==Uc&&y!==qc)return;(pw.includes(y)||[Uc,qc].includes(y))&&v.preventDefault();var I=function(V){if(V){var A=V,X=V.querySelector("a");X!=null&&X.getAttribute("href")&&(A=X);var q=$.get(V);l(q),g(),f.current=kn(function(){m.current===q&&A.focus()})}};if([Uc,qc].includes(y)||N.sibling||!R){var j;!R||e==="inline"?j=i.current:j=q7(R);var L,M=nb(j,w);y===Uc?L=M[0]:y===qc?L=M[M.length-1]:L=gw(j,w,R,N.offset),I(L)}else if(N.inlineTrigger)u(O);else if(N.offset>0)u(O,!0),g(),f.current=kn(function(){_=_0(S,r);var F=R.getAttribute("aria-controls"),V=document.getElementById(F),A=gw(V,_.elements);I(A)},5);else if(N.offset<0){var B=a(O,!0),z=B[B.length-2],D=k.get(z);u(z,!1),I(D)}}d==null||d(v)}}function X7(e){Promise.resolve().then(e)}var rb="__RC_UTIL_PATH_SPLIT__",vw=function(t){return t.join(rb)},Y7=function(t){return t.split(rb)},S0="rc-menu-more";function J7(){var e=h.useState({}),t=le(e,2),n=t[1],r=h.useRef(new Map),i=h.useRef(new Map),o=h.useState([]),a=le(o,2),l=a[0],u=a[1],d=h.useRef(0),f=h.useRef(!1),m=function(){f.current||n({})},g=h.useCallback(function(k,$){var T=vw($);i.current.set(T,k),r.current.set(k,T),d.current+=1;var R=d.current;X7(function(){R===d.current&&m()})},[]),v=h.useCallback(function(k,$){var T=vw($);i.current.delete(T),r.current.delete(k)},[]),y=h.useCallback(function(k){u(k)},[]),S=h.useCallback(function(k,$){var T=r.current.get(k)||"",R=Y7(T);return $&&l.includes(R[0])&&R.unshift(S0),R},[l]),_=h.useCallback(function(k,$){return k.filter(function(T){return T!==void 0}).some(function(T){var R=S(T,!0);return R.includes($)})},[S]),C=function(){var $=Ae(r.current.keys());return l.length&&$.push(S0),$},w=h.useCallback(function(k){var $="".concat(r.current.get(k)).concat(rb),T=new Set;return Ae(i.current.keys()).forEach(function(R){R.startsWith($)&&T.add(i.current.get(R))}),T},[]);return h.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:g,unregisterPath:v,refreshOverflowKeys:y,isSubPathKey:_,getKeyPath:S,getKeys:C,getSubPathKeys:w}}function su(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return e?n:void 0}var Q7=Math.random().toFixed(5).toString().slice(2),yw=0;function Z7(e){var t=Xn(e,{value:e}),n=le(t,2),r=n[0],i=n[1];return h.useEffect(function(){yw+=1;var o="".concat(Q7,"-").concat(yw);i("rc-menu-uuid-".concat(o))},[]),r}function I$(e,t,n,r){var i=h.useContext(Mo),o=i.activeKey,a=i.onActive,l=i.onInactive,u={active:o===e};return t||(u.onMouseEnter=function(d){n==null||n({key:e,domEvent:d}),a(e)},u.onMouseLeave=function(d){r==null||r({key:e,domEvent:d}),l(e)}),u}function N$(e){var t=h.useContext(Mo),n=t.mode,r=t.rtl,i=t.inlineIndent;if(n!=="inline")return null;var o=e;return r?{paddingRight:o*i}:{paddingLeft:o*i}}function M$(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=h.createElement(t,Z({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var eL=["item"];function vf(e){var t=e.item,n=Bt(e,eL);return Object.defineProperty(n,"item",{get:function(){return Ar(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var tL=["title","attribute","elementRef"],nL=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],rL=["active"],iL=(function(e){ys(n,e);var t=bs(n);function n(){return yr(this,n),t.apply(this,arguments)}return br(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,l=i.elementRef,u=Bt(i,tL),d=rr(u,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ar(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),h.createElement(Ko.Item,$e({},a,{title:typeof o=="string"?o:void 0},d,{ref:l}))}}]),n})(h.Component),oL=h.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,l=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,g=e.onKeyDown,v=e.onFocus,y=Bt(e,nL),S=$$(i),_=h.useContext(Mo),C=_.prefixCls,w=_.onItemClick,k=_.disabled,$=_.overflowDisabled,T=_.itemIcon,R=_.selectedKeys,O=_.onActive,N=h.useContext(tb),I=N._internalRenderMenuItem,j="".concat(C,"-item"),L=h.useRef(),M=h.useRef(),B=k||o,z=ts(t,M),D=uc(i),F=function(ae){return{key:i,keyPath:Ae(D).reverse(),item:L.current,domEvent:ae}},V=a||T,A=I$(i,B,d,f),X=A.active,q=Bt(A,rL),H=R.includes(i),U=N$(D.length),K=function(ae){if(!B){var _e=F(ae);m==null||m(vf(_e)),w(_e)}},G=function(ae){if(g==null||g(ae),ae.which===Xe.ENTER){var _e=F(ae);m==null||m(vf(_e)),w(_e)}},J=function(ae){O(i),v==null||v(ae)},ee={};e.role==="option"&&(ee["aria-selected"]=H);var de=h.createElement(iL,$e({ref:L,elementRef:z,role:u===null?"none":u||"menuitem",tabIndex:o?null:-1,"data-menu-id":$&&S?null:S},rr(y,["extra"]),q,ee,{component:"li","aria-disabled":o,style:Z(Z({},U),n),className:ne(j,Y(Y(Y({},"".concat(j,"-active"),X),"".concat(j,"-selected"),H),"".concat(j,"-disabled"),B),r),onClick:K,onKeyDown:G,onFocus:J}),l,h.createElement(M$,{props:Z(Z({},e),{},{isSelected:H}),icon:V}));return I&&(de=I(de,e,{selected:H})),de});function sL(e,t){var n=e.eventKey,r=pm(),i=uc(n);return h.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:h.createElement(oL,$e({},e,{ref:t}))}const ed=h.forwardRef(sL);var aL=["className","children"],lL=function(t,n){var r=t.className,i=t.children,o=Bt(t,aL),a=h.useContext(Mo),l=a.prefixCls,u=a.mode,d=a.rtl;return h.createElement("ul",$e({className:ne(l,d&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(u==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},ib=h.forwardRef(lL);ib.displayName="SubMenuList";function ob(e,t){return pi(e).map(function(n,r){if(h.isValidElement(n)){var i,o,a=n.key,l=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,u=l==null;u&&(l="tmp_key-".concat([].concat(Ae(t),[r]).join("-")));var d={key:l,eventKey:l};return h.cloneElement(n,d)}return n})}var si={adjustX:1,adjustY:1},cL={topLeft:{points:["bl","tl"],overflow:si},topRight:{points:["br","tr"],overflow:si},bottomLeft:{points:["tl","bl"],overflow:si},bottomRight:{points:["tr","br"],overflow:si},leftTop:{points:["tr","tl"],overflow:si},leftBottom:{points:["br","bl"],overflow:si},rightTop:{points:["tl","tr"],overflow:si},rightBottom:{points:["bl","br"],overflow:si}},uL={topLeft:{points:["bl","tl"],overflow:si},topRight:{points:["br","tr"],overflow:si},bottomLeft:{points:["tl","bl"],overflow:si},bottomRight:{points:["tr","br"],overflow:si},rightTop:{points:["tr","tl"],overflow:si},rightBottom:{points:["br","bl"],overflow:si},leftTop:{points:["tl","tr"],overflow:si},leftBottom:{points:["bl","br"],overflow:si}};function j$(e,t,n){if(t)return t;if(n)return n[e]||n.other}var dL={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function hL(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,l=e.popupOffset,u=e.disabled,d=e.mode,f=e.onVisibleChange,m=h.useContext(Mo),g=m.getPopupContainer,v=m.rtl,y=m.subMenuOpenDelay,S=m.subMenuCloseDelay,_=m.builtinPlacements,C=m.triggerSubMenuAction,w=m.forceSubMenuRender,k=m.rootClassName,$=m.motion,T=m.defaultMotions,R=h.useState(!1),O=le(R,2),N=O[0],I=O[1],j=Z(v?Z({},uL):Z({},cL),_),L=dL[d],M=j$(d,$,T),B=h.useRef(M);d!=="inline"&&(B.current=M);var z=Z(Z({},B.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),D=h.useRef();return h.useEffect(function(){return D.current=kn(function(){I(n)}),function(){kn.cancel(D.current)}},[n]),h.createElement(dm,{prefixCls:t,popupClassName:ne("".concat(t,"-popup"),Y({},"".concat(t,"-rtl"),v),a,k),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:j,popupPlacement:L,popupVisible:N,popup:i,popupStyle:o,popupAlign:l&&{offset:l},action:u?[]:[C],mouseEnterDelay:y,mouseLeaveDelay:S,onPopupVisibleChange:f,forceRender:w,popupMotion:z,fresh:!0},r)}function fL(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=h.useContext(Mo),l=a.prefixCls,u=a.forceSubMenuRender,d=a.motion,f=a.defaultMotions,m=a.mode,g=h.useRef(!1);g.current=m===o;var v=h.useState(!g.current),y=le(v,2),S=y[0],_=y[1],C=g.current?n:!1;h.useEffect(function(){g.current&&_(!1)},[m]);var w=Z({},j$(o,d,f));r.length>1&&(w.motionAppear=!1);var k=w.onVisibleChanged;return w.onVisibleChanged=function($){return!g.current&&!$&&_(!0),k==null?void 0:k($)},S?null:h.createElement(Nu,{mode:o,locked:!g.current},h.createElement(Gi,$e({visible:C},w,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function($){var T=$.className,R=$.style;return h.createElement(ib,{id:t,className:T,style:R},i)}))}var mL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],pL=["active"],gL=h.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,l=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,g=e.popupOffset,v=e.popupStyle,y=e.onClick,S=e.onMouseEnter,_=e.onMouseLeave,C=e.onTitleClick,w=e.onTitleMouseEnter,k=e.onTitleMouseLeave,$=Bt(e,mL),T=$$(o),R=h.useContext(Mo),O=R.prefixCls,N=R.mode,I=R.openKeys,j=R.disabled,L=R.overflowDisabled,M=R.activeKey,B=R.selectedKeys,z=R.itemIcon,D=R.expandIcon,F=R.onItemClick,V=R.onOpenChange,A=R.onActive,X=h.useContext(tb),q=X._internalRenderSubMenuItem,H=h.useContext(P$),U=H.isSubPathKey,K=uc(),G="".concat(O,"-submenu"),J=j||a,ee=h.useRef(),de=h.useRef(),oe=d??z,ae=f??D,_e=I.includes(o),se=!L&&_e,ce=U(B,o),he=I$(o,J,w,k),ve=he.active,me=Bt(he,pL),fe=h.useState(!1),ye=le(fe,2),xe=ye[0],Ee=ye[1],Ne=function(ze){J||Ee(ze)},Te=function(ze){Ne(!0),S==null||S({key:o,domEvent:ze})},Pe=function(ze){Ne(!1),_==null||_({key:o,domEvent:ze})},ke=h.useMemo(function(){return ve||(N!=="inline"?xe||U([M],o):!1)},[N,ve,M,xe,o,U]),Ce=N$(K.length),Ve=function(ze){J||(C==null||C({key:o,domEvent:ze}),N==="inline"&&V(o,!_e))},Ze=su(function(ot){y==null||y(vf(ot)),F(ot)}),_t=function(ze){N!=="inline"&&V(o,ze)},nt=function(){A(o)},Ye=T&&"".concat(T,"-popup"),mt=h.useMemo(function(){return h.createElement(M$,{icon:N!=="horizontal"?ae:void 0,props:Z(Z({},e),{},{isOpen:se,isSubMenu:!0})},h.createElement("i",{className:"".concat(G,"-arrow")}))},[N,ae,e,se,G]),Je=h.createElement("div",$e({role:"menuitem",style:Ce,className:"".concat(G,"-title"),tabIndex:J?null:-1,ref:ee,title:typeof i=="string"?i:null,"data-menu-id":L&&T?null:T,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":J,onClick:Ve,onFocus:nt},me),i,mt),yt=h.useRef(N);if(N!=="inline"&&K.length>1?yt.current="vertical":yt.current=N,!L){var rt=yt.current;Je=h.createElement(hL,{mode:rt,prefixCls:G,visible:!l&&se&&N!=="inline",popupClassName:m,popupOffset:g,popupStyle:v,popup:h.createElement(Nu,{mode:rt==="horizontal"?"vertical":rt},h.createElement(ib,{id:Ye,ref:de},u)),disabled:J,onVisibleChange:_t},Je)}var Le=h.createElement(Ko.Item,$e({ref:t,role:"none"},$,{component:"li",style:n,className:ne(G,"".concat(G,"-").concat(N),r,Y(Y(Y(Y({},"".concat(G,"-open"),se),"".concat(G,"-active"),ke),"".concat(G,"-selected"),ce),"".concat(G,"-disabled"),J)),onMouseEnter:Te,onMouseLeave:Pe}),Je,!L&&h.createElement(fL,{id:Ye,open:se,keyPath:K},u));return q&&(Le=q(Le,e,{selected:ce,active:ke,open:se,disabled:J})),h.createElement(Nu,{onItemClick:Ze,mode:N==="horizontal"?"vertical":N,itemIcon:oe,expandIcon:ae},Le)}),gm=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=uc(n),o=ob(r,i),a=pm();h.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var l;return a?l=o:l=h.createElement(gL,$e({ref:t},e),o),h.createElement(T$.Provider,{value:i},l)});function sb(e){var t=e.className,n=e.style,r=h.useContext(Mo),i=r.prefixCls,o=pm();return o?null:h.createElement("li",{role:"separator",className:ne("".concat(i,"-item-divider"),t),style:n})}var vL=["className","title","eventKey","children"],yL=h.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=Bt(e,vL),a=h.useContext(Mo),l=a.prefixCls,u="".concat(l,"-item-group");return h.createElement("li",$e({ref:t,role:"presentation"},o,{onClick:function(f){return f.stopPropagation()},className:ne(u,n)}),h.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:typeof r=="string"?r:void 0},r),h.createElement("ul",{role:"group",className:"".concat(u,"-list")},i))}),ab=h.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=uc(n),o=ob(r,i),a=pm();return a?o:h.createElement(yL,$e({ref:t},rr(e,["warnKey"])),o)}),bL=["label","children","key","type","extra"];function C0(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(l,u){if(l&&St(l)==="object"){var d=l,f=d.label,m=d.children,g=d.key,v=d.type,y=d.extra,S=Bt(d,bL),_=g??"tmp-".concat(u);return m||v==="group"?v==="group"?h.createElement(i,$e({key:_},S,{title:f}),C0(m,t,n)):h.createElement(o,$e({key:_},S,{title:f}),C0(m,t,n)):v==="divider"?h.createElement(a,$e({key:_},S)):h.createElement(r,$e({key:_},S,{extra:y}),f,(!!y||y===0)&&h.createElement("span",{className:"".concat(n,"-item-extra")},y))}return null}).filter(function(l){return l})}function bw(e,t,n,r,i){var o=e,a=Z({divider:sb,item:ed,group:ab,submenu:gm},r);return t&&(o=C0(t,a,i)),ob(o,n)}var _L=["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"],va=[],SL=h.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,l=r.style,u=r.className,d=r.tabIndex,f=d===void 0?0:d,m=r.items,g=r.children,v=r.direction,y=r.id,S=r.mode,_=S===void 0?"vertical":S,C=r.inlineCollapsed,w=r.disabled,k=r.disabledOverflow,$=r.subMenuOpenDelay,T=$===void 0?.1:$,R=r.subMenuCloseDelay,O=R===void 0?.1:R,N=r.forceSubMenuRender,I=r.defaultOpenKeys,j=r.openKeys,L=r.activeKey,M=r.defaultActiveFirst,B=r.selectable,z=B===void 0?!0:B,D=r.multiple,F=D===void 0?!1:D,V=r.defaultSelectedKeys,A=r.selectedKeys,X=r.onSelect,q=r.onDeselect,H=r.inlineIndent,U=H===void 0?24:H,K=r.motion,G=r.defaultMotions,J=r.triggerSubMenuAction,ee=J===void 0?"hover":J,de=r.builtinPlacements,oe=r.itemIcon,ae=r.expandIcon,_e=r.overflowedIndicator,se=_e===void 0?"...":_e,ce=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,ve=r.onClick,me=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var ye=r._internalRenderMenuItem,xe=r._internalRenderSubMenuItem,Ee=r._internalComponents,Ne=Bt(r,_L),Te=h.useMemo(function(){return[bw(g,m,va,Ee,o),bw(g,m,va,{},o)]},[g,m,Ee]),Pe=le(Te,2),ke=Pe[0],Ce=Pe[1],Ve=h.useState(!1),Ze=le(Ve,2),_t=Ze[0],nt=Ze[1],Ye=h.useRef(),mt=Z7(y),Je=v==="rtl",yt=Xn(I,{value:j,postState:function(dt){return dt||va}}),rt=le(yt,2),Le=rt[0],ot=rt[1],ze=function(dt){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function an(){ot(dt),me==null||me(dt)}lt?Zs.flushSync(an):an()},Ke=h.useState(Le),It=le(Ke,2),Ct=It[0],nn=It[1],Qt=h.useRef(!1),Sn=h.useMemo(function(){return(_==="inline"||_==="vertical")&&C?["vertical",C]:[_,!1]},[_,C]),In=le(Sn,2),on=In[0],Ht=In[1],Tt=on==="inline",sn=h.useState(on),Xt=le(sn,2),at=Xt[0],$t=Xt[1],pt=h.useState(Ht),Me=le(pt,2),Oe=Me[0],Re=Me[1];h.useEffect(function(){$t(on),Re(Ht),Qt.current&&(Tt?ot(Ct):ze(va))},[on,Ht]);var De=h.useState(0),tt=le(De,2),it=tt[0],Wt=tt[1],Kt=it>=ke.length-1||at!=="horizontal"||k;h.useEffect(function(){Tt&&nn(Le)},[Le]),h.useEffect(function(){return Qt.current=!0,function(){Qt.current=!1}},[]);var Lt=J7(),At=Lt.registerPath,Pn=Lt.unregisterPath,$n=Lt.refreshOverflowKeys,Nn=Lt.isSubPathKey,Hn=Lt.getKeyPath,cn=Lt.getKeys,pn=Lt.getSubPathKeys,Fe=h.useMemo(function(){return{registerPath:At,unregisterPath:Pn}},[At,Pn]),Qe=h.useMemo(function(){return{isSubPathKey:Nn}},[Nn]);h.useEffect(function(){$n(Kt?va:ke.slice(it+1).map(function(dn){return dn.key}))},[it,Kt]);var Ot=Xn(L||M&&((n=ke[0])===null||n===void 0?void 0:n.key),{value:L}),gt=le(Ot,2),ct=gt[0],et=gt[1],Pt=su(function(dn){et(dn)}),Gt=su(function(){et(void 0)});h.useImperativeHandle(t,function(){return{list:Ye.current,focus:function(dt){var lt,an=cn(),hn=_0(an,mt),Cn=hn.elements,xn=hn.key2element,Wr=hn.element2key,cr=nb(Ye.current,Cn),qt=ct??(cr[0]?Wr.get(cr[0]):(lt=ke.find(function(_i){return!_i.props.disabled}))===null||lt===void 0?void 0:lt.key),Cr=xn.get(qt);if(qt&&Cr){var Tr;Cr==null||(Tr=Cr.focus)===null||Tr===void 0||Tr.call(Cr,dt)}}}});var Ge=Xn(V||[],{value:A,postState:function(dt){return Array.isArray(dt)?dt:dt==null?va:[dt]}}),vt=le(Ge,2),Nt=vt[0],yn=vt[1],lr=function(dt){if(z){var lt=dt.key,an=Nt.includes(lt),hn;F?an?hn=Nt.filter(function(xn){return xn!==lt}):hn=[].concat(Ae(Nt),[lt]):hn=[lt],yn(hn);var Cn=Z(Z({},dt),{},{selectedKeys:hn});an?q==null||q(Cn):X==null||X(Cn)}!F&&Le.length&&at!=="inline"&&ze(va)},Ln=su(function(dn){ve==null||ve(vf(dn)),lr(dn)}),Yr=su(function(dn,dt){var lt=Le.filter(function(hn){return hn!==dn});if(dt)lt.push(dn);else if(at!=="inline"){var an=pn(dn);lt=lt.filter(function(hn){return!an.has(hn)})}Eu(Le,lt,!0)||ze(lt,!0)}),_r=function(dt,lt){var an=lt??!Le.includes(dt);Yr(dt,an)},Jr=G7(at,ct,Je,mt,Ye,cn,Hn,et,_r,fe);h.useEffect(function(){nt(!0)},[]);var Sr=h.useMemo(function(){return{_internalRenderMenuItem:ye,_internalRenderSubMenuItem:xe}},[ye,xe]),Fr=at!=="horizontal"||k?ke:ke.map(function(dn,dt){return h.createElement(Nu,{key:dn.key,overflowDisabled:dt>it},dn)}),Qr=h.createElement(Ko,$e({id:y,ref:Ye,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:ed,className:ne(o,"".concat(o,"-root"),"".concat(o,"-").concat(at),u,Y(Y({},"".concat(o,"-inline-collapsed"),Oe),"".concat(o,"-rtl"),Je),a),dir:v,style:l,role:"menu",tabIndex:f,data:Fr,renderRawItem:function(dt){return dt},renderRawRest:function(dt){var lt=dt.length,an=lt?ke.slice(-lt):null;return h.createElement(gm,{eventKey:S0,title:se,disabled:Kt,internalPopupClose:lt===0,popupClassName:ce},an)},maxCount:at!=="horizontal"||k?Ko.INVALIDATE:Ko.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(dt){Wt(dt)},onKeyDown:Jr},Ne));return h.createElement(tb.Provider,{value:Sr},h.createElement(E$.Provider,{value:mt},h.createElement(Nu,{prefixCls:o,rootClassName:a,mode:at,openKeys:Le,rtl:Je,disabled:w,motion:_t?K:null,defaultMotions:_t?G:null,activeKey:ct,onActive:Pt,onInactive:Gt,selectedKeys:Nt,inlineIndent:U,subMenuOpenDelay:T,subMenuCloseDelay:O,forceSubMenuRender:N,builtinPlacements:de,triggerSubMenuAction:ee,getPopupContainer:he,itemIcon:oe,expandIcon:ae,onItemClick:Ln,onOpenChange:Yr},h.createElement(P$.Provider,{value:Qe},Qr),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(R$.Provider,{value:Fe},Ce)))))}),dc=SL;dc.Item=ed;dc.SubMenu=gm;dc.ItemGroup=ab;dc.Divider=sb;var CL={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"},wL=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:CL}))},xL=h.forwardRef(wL);const z$=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),EL=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:l,footerPadding:u,fontSize:d,bodyBg:f,headerBg:m}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:f,"&, *":{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:o,padding:a,color:l,lineHeight:re(o),background:m,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:d,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},B$=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:u}=e,d=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${d}px`,headerColor:i,footerPadding:`${o}px ${d}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:u,lightTriggerBg:u,lightTriggerColor:i}},L$=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],A$=vn("Layout",EL,B$,{deprecatedTokens:L$}),kL=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:l,triggerBg:u,headerHeight:d,zeroTriggerWidth:f,zeroTriggerHeight:m,borderRadiusLG:g,lightSiderBg:v,lightTriggerColor:y,lightTriggerBg:S,bodyBg:_}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:re(a),textAlign:"center",background:u,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:d,insetInlineEnd:e.calc(f).mul(-1).equal(),zIndex:1,width:f,height:m,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${re(g)} ${re(g)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(f).mul(-1).equal(),borderRadius:`${re(g)} 0 0 ${re(g)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:y,background:S},[`${t}-zero-width-trigger`]:{color:y,background:S,border:`1px solid ${_}`,borderInlineStart:0}}}}},$L=vn(["Layout","Sider"],kL,B$,{deprecatedTokens:L$});var RL=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _w={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},TL=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),vm=h.createContext({}),PL=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),D$=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:l="dark",style:u={},collapsible:d=!1,reverseArrow:f=!1,width:m=200,collapsedWidth:g=80,zeroWidthTriggerStyle:v,breakpoint:y,onCollapse:S,onBreakpoint:_}=e,C=RL(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=h.useContext(z$),[k,$]=h.useState("collapsed"in e?e.collapsed:a),[T,R]=h.useState(!1);h.useEffect(()=>{"collapsed"in e&&$(e.collapsed)},[e.collapsed]);const O=(oe,ae)=>{"collapsed"in e||$(oe),S==null||S(oe,ae)},{getPrefixCls:N,direction:I}=h.useContext(kt),j=N("layout-sider",n),[L,M,B]=$L(j),z=h.useRef(null);z.current=oe=>{R(oe.matches),_==null||_(oe.matches),k!==oe.matches&&O(oe.matches,"responsive")},h.useEffect(()=>{function oe(_e){var se;return(se=z.current)===null||se===void 0?void 0:se.call(z,_e)}let ae;return typeof(window==null?void 0:window.matchMedia)<"u"&&y&&y in _w&&(ae=window.matchMedia(`screen and (max-width: ${_w[y]})`),m$(ae,oe),oe(ae)),()=>{p$(ae,oe)}},[y]),h.useEffect(()=>{const oe=PL("ant-sider-");return w.addSider(oe),()=>w.removeSider(oe)},[]);const D=()=>{O(!k,"clickTrigger")},F=rr(C,["collapsed"]),V=k?g:m,A=TL(V)?`${V}px`:String(V),X=Number.parseFloat(String(g||0))===0?h.createElement("span",{onClick:D,className:ne(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${f?"right":"left"}`),style:v},i||h.createElement(xL,null)):null,q=I==="rtl"==!f,K={expanded:q?h.createElement(Ui,null):h.createElement(Iu,null),collapsed:q?h.createElement(Iu,null):h.createElement(Ui,null)}[k?"collapsed":"expanded"],G=i!==null?X||h.createElement("div",{className:`${j}-trigger`,onClick:D,style:{width:A}},i||K):null,J=Object.assign(Object.assign({},u),{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}),ee=ne(j,`${j}-${l}`,{[`${j}-collapsed`]:!!k,[`${j}-has-trigger`]:d&&i!==null&&!X,[`${j}-below`]:!!T,[`${j}-zero-width`]:Number.parseFloat(A)===0},r,M,B),de=h.useMemo(()=>({siderCollapsed:k}),[k]);return L(h.createElement(vm.Provider,{value:de},h.createElement("aside",Object.assign({className:ee},F,{style:J,ref:t}),h.createElement("div",{className:`${j}-children`},o),d||T&&X?G:null)))});var OL={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"},IL=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:OL}))},lb=h.forwardRef(IL);const yf=h.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var NL=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const H$=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=NL(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=h.useContext(kt),a=o("menu",t),l=ne({[`${a}-item-divider-dashed`]:!!r},n);return h.createElement(sb,Object.assign({className:l},i))},F$=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:a,extra:l}=e,{prefixCls:u,firstLevel:d,direction:f,disableMenuItemTitleTooltip:m,inlineCollapsed:g}=h.useContext(yf),v=k=>{const $=r==null?void 0:r[0],T=h.createElement("span",{className:ne(`${u}-title-content`,{[`${u}-title-content-with-extra`]:!!l||l===0})},r);return(!i||h.isValidElement(r)&&r.type==="span")&&r&&k&&d&&typeof $=="string"?h.createElement("div",{className:`${u}-inline-collapsed-noicon`},$.charAt(0)):T},{siderCollapsed:y}=h.useContext(vm);let S=o;typeof o>"u"?S=d?r:"":o===!1&&(S="");const _={title:S};!y&&!g&&(_.title=null,_.open=!1);const C=pi(r).length;let w=h.createElement(ed,Object.assign({},rr(e,["title","icon","danger"]),{className:ne({[`${u}-item-danger`]:a,[`${u}-item-only-child`]:(i?C+1:C)===1},n),title:typeof o=="string"?o:void 0}),Xr(i,{className:ne(h.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:void 0,`${u}-item-icon`)}),v(g));return m||(w=h.createElement(Zo,Object.assign({},_,{placement:f==="rtl"?"left":"right",classNames:{root:`${u}-inline-collapsed-tooltip`}}),w)),w};var ML=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bf=h.createContext(null),jL=h.forwardRef((e,t)=>{const{children:n}=e,r=ML(e,["children"]),i=h.useContext(bf),o=h.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=rT(n),l=ts(t,a?Ha(n):null);return h.createElement(bf.Provider,{value:o},h.createElement(Na,{space:!0},a?h.cloneElement(n,{ref:l}):n))}),zL=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${re(o)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${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"}}}},BL=({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(${re(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${re(t)})`}}}}),Sw=e=>Ia(e),Cw=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:l,subMenuItemBg:u,itemSelectedBg:d,activeBarHeight:f,activeBarWidth:m,activeBarBorderWidth:g,motionDurationSlow:v,motionEaseInOut:y,motionEaseOut:S,itemPaddingInline:_,motionDurationMid:C,itemHoverColor:w,lineType:k,colorSplit:$,itemDisabledColor:T,dangerItemColor:R,dangerItemHoverColor:O,dangerItemSelectedColor:N,dangerItemActiveBg:I,dangerItemSelectedBg:j,popupBg:L,itemHoverBg:M,itemActiveBg:B,menuSubMenuBg:z,horizontalItemSelectedColor:D,horizontalItemSelectedBg:F,horizontalItemBorderRadius:V,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},Sw(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Sw(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:B}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:B}}},[`${n}-item-danger`]:{color:R,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:N},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:d,[`&${n}-item-danger`]:{backgroundColor:j}},[`&${n}-submenu > ${n}`]:{backgroundColor:z},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:e.calc(g).mul(-1).equal(),marginBottom:0,borderRadius:V,"&::after":{position:"absolute",insetInline:_,bottom:0,borderBottom:`${re(f)} solid transparent`,transition:`border-color ${v} ${y}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:f,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:F,"&:hover":{backgroundColor:F},"&::after":{borderBottomWidth:f,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${re(g)} ${k} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:u},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${re(m)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${S}`,`opacity ${C} ${S}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${y}`,`opacity ${C} ${y}`].join(",")}}}}}},ww=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:l,itemWidth:u,itemPaddingInline:d}=e,f=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:re(n),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:u},[`> ${t}-item,
|
|
253
|
-
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:re(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
254
|
-
${t}-submenu-title`]:{paddingInlineEnd:f}}},LL=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:l,paddingXL:u,itemMarginInline:d,fontSizeLG:f,motionDurationFast:m,motionDurationSlow:g,paddingXS:v,boxShadowSecondary:y,collapsedWidth:S,collapsedIconSize:_}=e,C={height:r,lineHeight:re(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},ww(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},ww(e)),{boxShadow:y})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${re(e.calc(a).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 ${g}`,`background ${g}`,`padding ${m} ${l}`].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`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:S,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:f,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% - ${re(e.calc(_).div(2).equal())} - ${re(d)})`,textOverflow:"clip",[`
|
|
258
|
-
${t}-submenu-arrow,
|
|
259
|
-
${t}-submenu-expand-icon
|
|
260
|
-
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:_,lineHeight:re(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:i}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Tu),{paddingInline:v})}}]},xw=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:l,iconMarginInlineEnd:u}=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) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:u,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},sc()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},Ew=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${re(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${re(a)})`}}}}},AL=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:l,padding:u,colorSplit:d,lineWidth:f,zIndexPopup:m,borderRadiusLG:g,subMenuItemBorderRadius:v,menuArrowSize:y,menuArrowOffset:S,lineType:_,groupTitleLineHeight:C,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},af()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qn(e)),af()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} 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:`${re(l)} ${re(u)}`,fontSize:w,lineHeight:C,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-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:d,borderStyle:_,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xw(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${re(e.calc(r).mul(2).equal())} ${re(u)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:g,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:g},xw(e)),Ew(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})},"\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}}}),Ew(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
261
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${re(S)})`},"&::after":{transform:`rotate(45deg) translateX(${re(e.calc(S).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${re(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${re(e.calc(S).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${re(S)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},DL=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:l,colorText:u,colorTextDescription:d,colorBgContainer:f,colorFillAlter:m,colorFillContent:g,lineWidth:v,lineWidthBold:y,controlItemBgActive:S,colorBgTextHover:_,controlHeightLG:C,lineHeight:w,colorBgElevated:k,marginXXS:$,padding:T,fontSize:R,controlHeightSM:O,fontSizeLG:N,colorTextLightSolid:I,colorErrorHover:j}=e,L=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,B=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,z=new _n(I).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:u,itemColor:u,colorItemTextHover:u,itemHoverColor:u,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:f,itemBg:f,colorItemBgHover:_,itemHoverBg:_,colorItemBgActive:g,itemActiveBg:S,colorSubItemBg:m,subMenuItemBg:m,colorItemBgSelected:S,itemSelectedBg:S,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:y,activeBarHeight:y,colorActiveBarBorderSize:v,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:B,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:w,collapsedWidth:C*2,popupBg:k,itemMarginBlock:$,itemPaddingInline:T,horizontalLineHeight:`${C*1.15}px`,iconSize:R,iconMarginInlineEnd:O-R,collapsedIconSize:N,groupTitleFontSize:R,darkItemDisabledColor:new _n(I).setA(.25).toRgbString(),darkItemColor:z,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:I,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:z,darkItemHoverColor:I,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:o,itemWidth:L?`calc(100% + ${M}px)`:`calc(100% - ${B*2}px)`}},HL=(e,t=e,n=!0)=>vn("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:l,darkItemColor:u,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:m,darkItemSelectedColor:g,darkItemSelectedBg:v,darkDangerItemSelectedBg:y,darkItemHoverBg:S,darkGroupTitleColor:_,darkItemHoverColor:C,darkItemDisabledColor:w,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:T,popupBg:R,darkPopupBg:O}=i,N=i.calc(l).div(7).mul(5).equal(),I=Jt(i,{menuArrowSize:N,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(N).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:R}),j=Jt(I,{itemColor:u,itemHoverColor:C,groupTitleColor:_,itemSelectedColor:g,subMenuItemSelectedColor:g,itemBg:f,popupBg:O,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:w,dangerItemColor:d,dangerItemHoverColor:k,dangerItemSelectedColor:$,dangerItemActiveBg:T,dangerItemSelectedBg:y,menuSubMenuBg:m,horizontalItemSelectedColor:g,horizontalItemSelectedBg:v});return[AL(I),zL(I),LL(I),Cw(I,"light"),Cw(j,"dark"),BL(I),uk(I),ra(I,"slide-up"),ra(I,"slide-down"),Gu(I,"zoom-big")]},DL,{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),W$=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=h.useContext(yf),{prefixCls:l,inlineCollapsed:u,theme:d}=a,f=uc();let m;if(!r)m=u&&!f.length&&i&&typeof i=="string"?h.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):h.createElement("span",{className:`${l}-title-content`},i);else{const y=h.isValidElement(i)&&i.type==="span";m=h.createElement(h.Fragment,null,Xr(r,{className:ne(h.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),y?i:h.createElement("span",{className:`${l}-title-content`},i))}const g=h.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[v]=lc("Menu");return h.createElement(yf.Provider,{value:g},h.createElement(gm,Object.assign({},rr(e,["icon"]),{title:m,popupClassName:ne(l,n,`${l}-${o||d}`),popupStyle:Object.assign({zIndex:v},e.popupStyle)})))};var FL=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Fg(e){return e===null||e===!1}const WL={item:F$,submenu:W$,divider:H$},VL=h.forwardRef((e,t)=>{var n;const r=h.useContext(bf),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:l,menu:u}=h.useContext(kt),d=o(),{prefixCls:f,className:m,style:g,theme:v="light",expandIcon:y,_internalDisableMenuItemTitleTooltip:S,inlineCollapsed:_,siderCollapsed:C,rootClassName:w,mode:k,selectable:$,onClick:T,overflowedIndicatorPopupClassName:R}=e,O=FL(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),N=rr(O,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:k});const I=Un((...U)=>{var K;T==null||T.apply(void 0,U),(K=i.onClick)===null||K===void 0||K.call(i)}),j=i.mode||k,L=$??i.selectable,M=_??C,B={horizontal:{motionName:`${d}-slide-up`},inline:rk(d),other:{motionName:`${d}-zoom-big`}},z=o("menu",f||i.prefixCls),D=go(z),[F,V,A]=HL(z,D,!r),X=ne(`${z}-${v}`,u==null?void 0:u.className,m),q=h.useMemo(()=>{var U,K;if(typeof y=="function"||Fg(y))return y||null;if(typeof i.expandIcon=="function"||Fg(i.expandIcon))return i.expandIcon||null;if(typeof(u==null?void 0:u.expandIcon)=="function"||Fg(u==null?void 0:u.expandIcon))return(u==null?void 0:u.expandIcon)||null;const G=(U=y??(i==null?void 0:i.expandIcon))!==null&&U!==void 0?U:u==null?void 0:u.expandIcon;return Xr(G,{className:ne(`${z}-submenu-expand-icon`,h.isValidElement(G)?(K=G.props)===null||K===void 0?void 0:K.className:void 0)})},[y,i==null?void 0:i.expandIcon,u==null?void 0:u.expandIcon,z]),H=h.useMemo(()=>({prefixCls:z,inlineCollapsed:M||!1,direction:l,firstLevel:!0,theme:v,mode:j,disableMenuItemTitleTooltip:S}),[z,M,l,S,v]);return F(h.createElement(bf.Provider,{value:null},h.createElement(yf.Provider,{value:H},h.createElement(dc,Object.assign({getPopupContainer:a,overflowedIndicator:h.createElement(lb,null),overflowedIndicatorPopupClassName:ne(z,`${z}-${v}`,R),mode:j,selectable:L,onClick:I},N,{inlineCollapsed:M,style:Object.assign(Object.assign({},u==null?void 0:u.style),g),className:X,prefixCls:z,direction:l,defaultMotions:B,expandIcon:q,ref:t,rootClassName:ne(w,V,i.rootClassName,A,D),_internalComponents:WL})))))}),td=h.forwardRef((e,t)=>{const n=h.useRef(null),r=h.useContext(vm);return h.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),h.createElement(VL,Object.assign({ref:n},e,r))});td.Item=F$;td.SubMenu=W$;td.Divider=H$;td.ItemGroup=ab;const UL=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},qL=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:l,motionDurationMid:u,paddingBlock:d,fontSize:f,dropdownEdgeChildPadding:m,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:y,colorBgElevated:S}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:v},[`${l}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
262
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
263
|
-
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
|
264
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
|
265
|
-
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
|
266
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ly},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
|
267
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
|
268
|
-
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
|
269
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
|
270
|
-
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
|
271
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Dy},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
272
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
|
273
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ay},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
|
274
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
|
275
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Hy}}},Zy(e,S,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},qn(e)),{[n]:Object.assign(Object.assign({padding:m,listStyleType:"none",backgroundColor:S,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},po(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${re(d)} ${re(y)}`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:f,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 ${u}`,"&: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:`${re(d)} ${re(y)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},po(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:S,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${re(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:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${re(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:S,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ra(e,"slide-up"),ra(e,"slide-down"),hf(e,"move-up"),hf(e,"move-down"),Gu(e,"zoom-big")]]},KL=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},fm({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Qy(e)),GL=vn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=Jt(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[qL(o),UL(o)]},KL,{resetStyle:!1}),ym=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:l,dropdownRender:u,popupRender:d,getPopupContainer:f,overlayClassName:m,rootClassName:g,overlayStyle:v,open:y,onOpenChange:S,visible:_,onVisibleChange:C,mouseEnterDelay:w=.15,mouseLeaveDelay:k=.1,autoAdjustOverflow:$=!0,placement:T="",overlay:R,transitionName:O,destroyOnHidden:N,destroyPopupOnHide:I}=e,{getPopupContainer:j,getPrefixCls:L,direction:M,dropdown:B}=h.useContext(kt),z=d||u;Uf();const D=h.useMemo(()=>{const ye=L();return O!==void 0?O:T.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[L,T,O]),F=h.useMemo(()=>T?T.includes("Center")?T.slice(0,T.indexOf("Center")):T:M==="rtl"?"bottomRight":"bottomLeft",[T,M]),V=L("dropdown",i),A=go(V),[X,q,H]=GL(V,A),[,U]=vi(),K=h.Children.only(D7(o)?h.createElement("span",null,o):o),G=Xr(K,{className:ne(`${V}-trigger`,{[`${V}-rtl`]:M==="rtl"},K.props.className),disabled:(t=K.props.disabled)!==null&&t!==void 0?t:l}),J=l?[]:a,ee=!!(J!=null&&J.includes("contextMenu")),[de,oe]=Xn(!1,{value:y??_}),ae=Un(ye=>{S==null||S(ye,{source:"trigger"}),C==null||C(ye),oe(ye)}),_e=ne(m,g,q,H,A,B==null?void 0:B.className,{[`${V}-rtl`]:M==="rtl"}),se=v$({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:$,offset:U.marginXXS,arrowWidth:r?U.sizePopupArrow:0,borderRadius:U.borderRadius}),ce=Un(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(S==null||S(!1,{source:"menu"}),oe(!1))}),he=()=>{let ye;return n!=null&&n.items?ye=h.createElement(td,Object.assign({},n)):typeof R=="function"?ye=R():ye=R,z&&(ye=z(ye)),ye=h.Children.only(typeof ye=="string"?h.createElement("span",null,ye):ye),h.createElement(jL,{prefixCls:`${V}-menu`,rootClassName:ne(H,A),expandIcon:h.createElement("span",{className:`${V}-menu-submenu-arrow`},M==="rtl"?h.createElement(Iu,{className:`${V}-menu-submenu-arrow-icon`}):h.createElement(Ui,{className:`${V}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:xe})=>{}},ye)},[ve,me]=lc("Dropdown",v==null?void 0:v.zIndex);let fe=h.createElement(x$,Object.assign({alignPoint:ee},rr(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:k,visible:de,builtinPlacements:se,arrow:!!r,overlayClassName:_e,prefixCls:V,getPopupContainer:f||j,transitionName:D,trigger:J,overlay:he,placement:F,onVisibleChange:ae,overlayStyle:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),v),{zIndex:ve}),autoDestroy:N??I}),G);return ve&&(fe=h.createElement(qu.Provider,{value:me},fe)),X(fe)},XL=Uk(ym,"align",void 0,"dropdown",e=>e),YL=e=>h.createElement(XL,Object.assign({},e),h.createElement("span",null));ym._InternalPanelDoNotUseOrYouWillBeFired=YL;var JL=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],QL=h.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,l=e.disabled,u=e.defaultChecked,d=u===void 0?!1:u,f=e.type,m=f===void 0?"checkbox":f,g=e.title,v=e.onChange,y=Bt(e,JL),S=h.useRef(null),_=h.useRef(null),C=Xn(d,{value:a}),w=le(C,2),k=w[0],$=w[1];h.useImperativeHandle(t,function(){return{focus:function(N){var I;(I=S.current)===null||I===void 0||I.focus(N)},blur:function(){var N;(N=S.current)===null||N===void 0||N.blur()},input:S.current,nativeElement:_.current}});var T=ne(r,i,Y(Y({},"".concat(r,"-checked"),k),"".concat(r,"-disabled"),l)),R=function(N){l||("checked"in e||$(N.target.checked),v==null||v({target:Z(Z({},e),{},{type:m,checked:N.target.checked}),stopPropagation:function(){N.stopPropagation()},preventDefault:function(){N.preventDefault()},nativeEvent:N.nativeEvent}))};return h.createElement("span",{className:T,title:g,style:o,ref:_},h.createElement("input",$e({},y,{className:"".concat(r,"-input"),ref:S,onChange:R,disabled:l,checked:!!k,type:m})),h.createElement("span",{className:"".concat(r,"-inner")}))});function ZL(e){const t=Q.useRef(null),n=()=>{kn.cancel(t.current),t.current=null};return[()=>{n(),t.current=kn(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}function nd(e){return Jt(e,{inputAffixPadding:e.paddingXXS})}const rd=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:l,lineHeightLG:u,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:m,colorFillAlter:g,colorPrimaryHover:v,colorPrimary:y,controlOutlineWidth:S,controlOutline:_,colorErrorOutline:C,colorWarningOutline:w,colorBgContainer:k,inputFontSize:$,inputFontSizeLG:T,inputFontSizeSM:R}=e,O=$||n,N=R||O,I=T||l,j=Math.round((t-O*r)/2*10)/10-i,L=Math.round((o-N*r)/2*10)/10-i,M=Math.ceil((a-I*u)/2*10)/10-i;return{paddingBlock:Math.max(j,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(M,0),paddingInline:d-i,paddingInlineSM:f-i,paddingInlineLG:m-i,addonBg:g,activeBorderColor:y,hoverBorderColor:v,activeShadow:`0 0 0 ${S}px ${_}`,errorActiveShadow:`0 0 0 ${S}px ${C}`,warningActiveShadow:`0 0 0 ${S}px ${w}`,hoverBg:k,activeBg:k,inputFontSize:O,inputFontSizeLG:I,inputFontSizeSM:N}},e9=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),bm=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({},e9(Jt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),cb=(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}}),kw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),t9=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},bm(e))}),kw(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),kw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$w=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),n9=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$w(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$w(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},bm(e))}})}),r9=(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)}},V$=(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}}},Rw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},V$(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),i9=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V$(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},bm(e))}),Rw(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Rw(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Tw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),o9=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Tw(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Tw(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),U$=(e,t)=>({background:e.colorBgContainer,borderWidth:`${re(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}}),Pw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},U$(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`}}),s9=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},U$(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"}}),Pw(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Pw(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),a9=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),q$=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${re(t)} ${re(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ub=e=>({padding:`${re(e.paddingBlockSM)} ${re(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),db=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${re(e.paddingBlock)} ${re(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},a9(e.colorTextPlaceholder)),{"&-lg":Object.assign({},q$(e)),"&-sm":Object.assign({},ub(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),l9=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({},q$(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ub(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 ${re(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${re(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${re(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:`${re(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${re(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"},af()),{[`${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}}}})}},c9=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qn(e)),db(e)),t9(e)),i9(e)),r9(e)),s9(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},u9=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 ${re(e.inputAffixPadding)}`}}}},d9=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:l}=e,u=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[u]:Object.assign(Object.assign(Object.assign(Object.assign({},db(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}}}),u9(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},h9=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},qn(e)),l9(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}}},n9(e)),o9(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}}})})}},f9=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}}}}},m9=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},K$=vn(["Input","Shared"],e=>{const t=Jt(e,nd(e));return[c9(t),d9(t)]},rd,{resetFont:!1}),G$=vn(["Input","Component"],e=>{const t=Jt(e,nd(e));return[h9(t),f9(t),m9(t),om(t)]},rd,{resetFont:!1});var p9={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"},g9=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:p9}))},v9=h.forwardRef(g9);const _m=h.createContext(null);var y9=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,l=a.size,u=a.align,d=u===void 0?"center":u,f=h.useState(),m=le(f,2),g=m[0],v=m[1],y=h.useRef(),S=Q.useCallback(function(C){return typeof l=="function"?l(C):typeof l=="number"?l:C},[l]);function _(){kn.cancel(y.current)}return h.useEffect(function(){var C={};if(n)if(r){C.width=S(n.width);var w=i?"right":"left";d==="start"&&(C[w]=n[w]),d==="center"&&(C[w]=n[w]+n.width/2,C.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(C[w]=n[w]+n.width,C.transform="translateX(-100%)")}else C.height=S(n.height),d==="start"&&(C.top=n.top),d==="center"&&(C.top=n.top+n.height/2,C.transform="translateY(-50%)"),d==="end"&&(C.top=n.top+n.height,C.transform="translateY(-100%)");return _(),y.current=kn(function(){var k=g&&C&&Object.keys(C).every(function($){var T=C[$],R=g[$];return typeof T=="number"&&typeof R=="number"?Math.round(T)===Math.round(R):T===R});k||v(C)}),_},[JSON.stringify(n),r,i,d,S]),{style:g}},Ow={width:0,height:0,left:0,top:0};function b9(e,t,n){return h.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ow,a=o.left+o.width,l=0;l<e.length;l+=1){var u=e[l].key,d=t.get(u);if(!d){var f;d=t.get((f=e[l-1])===null||f===void 0?void 0:f.key)||Ow}var m=i.get(u)||Z({},d);m.right=a-m.left-m.width,i.set(u,m)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function Iw(e,t){var n=h.useRef(e),r=h.useState({}),i=le(r,2),o=i[1];function a(l){var u=typeof l=="function"?l(n.current):l;u!==n.current&&t(u,n.current),n.current=u,o({})}return[n.current,a]}var _9=.1,Nw=.01,Uh=20,Mw=Math.pow(.995,Uh);function S9(e,t){var n=h.useState(),r=le(n,2),i=r[0],o=r[1],a=h.useState(0),l=le(a,2),u=l[0],d=l[1],f=h.useState(0),m=le(f,2),g=m[0],v=m[1],y=h.useState(),S=le(y,2),_=S[0],C=S[1],w=h.useRef();function k(I){var j=I.touches[0],L=j.screenX,M=j.screenY;o({x:L,y:M}),window.clearInterval(w.current)}function $(I){if(i){var j=I.touches[0],L=j.screenX,M=j.screenY;o({x:L,y:M});var B=L-i.x,z=M-i.y;t(B,z);var D=Date.now();d(D),v(D-u),C({x:B,y:z})}}function T(){if(i&&(o(null),C(null),_)){var I=_.x/g,j=_.y/g,L=Math.abs(I),M=Math.abs(j);if(Math.max(L,M)<_9)return;var B=I,z=j;w.current=window.setInterval(function(){if(Math.abs(B)<Nw&&Math.abs(z)<Nw){window.clearInterval(w.current);return}B*=Mw,z*=Mw,t(B*Uh,z*Uh)},Uh)}}var R=h.useRef();function O(I){var j=I.deltaX,L=I.deltaY,M=0,B=Math.abs(j),z=Math.abs(L);B===z?M=R.current==="x"?j:L:B>z?(M=j,R.current="x"):(M=L,R.current="y"),t(-M,-M)&&I.preventDefault()}var N=h.useRef(null);N.current={onTouchStart:k,onTouchMove:$,onTouchEnd:T,onWheel:O},h.useEffect(function(){function I(B){N.current.onTouchStart(B)}function j(B){N.current.onTouchMove(B)}function L(B){N.current.onTouchEnd(B)}function M(B){N.current.onWheel(B)}return document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",I,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",j),document.removeEventListener("touchend",L)}},[])}function X$(e){var t=h.useState(0),n=le(t,2),r=n[0],i=n[1],o=h.useRef(0),a=h.useRef();return a.current=e,$v(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function C9(e){var t=h.useRef([]),n=h.useState({}),r=le(n,2),i=r[1],o=h.useRef(typeof e=="function"?e():e),a=X$(function(){var u=o.current;t.current.forEach(function(d){u=d(u)}),t.current=[],o.current=u,i({})});function l(u){t.current.push(u),a()}return[o.current,l]}var jw={width:0,height:0,left:0,top:0,right:0};function w9(e,t,n,r,i,o,a){var l=a.tabs,u=a.tabPosition,d=a.rtl,f,m,g;return["top","bottom"].includes(u)?(f="width",m=d?"right":"left",g=Math.abs(n)):(f="height",m="top",g=-n),h.useMemo(function(){if(!l.length)return[0,0];for(var v=l.length,y=v,S=0;S<v;S+=1){var _=e.get(l[S].key)||jw;if(Math.floor(_[m]+_[f])>Math.floor(g+t)){y=S-1;break}}for(var C=0,w=v-1;w>=0;w-=1){var k=e.get(l[w].key)||jw;if(k[m]<g){C=w+1;break}}return C>y?[0,-1]:[C,y]},[e,t,r,i,o,g,u,l.map(function(v){return v.key}).join("_"),d])}function zw(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var x9="TABS_DQ";function Y$(e){return String(e).replace(/"/g,x9)}function hb(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var J$=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:h.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),Bw=h.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return St(i)==="object"&&!h.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?h.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),E9=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,l=e.more,u=l===void 0?{}:l,d=e.style,f=e.className,m=e.editable,g=e.tabBarGutter,v=e.rtl,y=e.removeAriaLabel,S=e.onTabClick,_=e.getPopupContainer,C=e.popupClassName,w=h.useState(!1),k=le(w,2),$=k[0],T=k[1],R=h.useState(null),O=le(R,2),N=O[0],I=O[1],j=u.icon,L=j===void 0?"More":j,M="".concat(r,"-more-popup"),B="".concat(n,"-dropdown"),z=N!==null?"".concat(M,"-").concat(N):null,D=o==null?void 0:o.dropdownAriaLabel;function F(K,G){K.preventDefault(),K.stopPropagation(),m.onEdit("remove",{key:G,event:K})}var V=h.createElement(dc,{onClick:function(G){var J=G.key,ee=G.domEvent;S(J,ee),T(!1)},prefixCls:"".concat(B,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":z,selectedKeys:[N],"aria-label":D!==void 0?D:"expanded dropdown"},i.map(function(K){var G=K.closable,J=K.disabled,ee=K.closeIcon,de=K.key,oe=K.label,ae=hb(G,ee,m,J);return h.createElement(ed,{key:de,id:"".concat(M,"-").concat(de),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(de),disabled:J},h.createElement("span",null,oe),ae&&h.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(B,"-menu-item-remove"),onClick:function(se){se.stopPropagation(),F(se,de)}},ee||m.removeIcon||"×"))}));function A(K){for(var G=i.filter(function(ae){return!ae.disabled}),J=G.findIndex(function(ae){return ae.key===N})||0,ee=G.length,de=0;de<ee;de+=1){J=(J+K+ee)%ee;var oe=G[J];if(!oe.disabled){I(oe.key);return}}}function X(K){var G=K.which;if(!$){[Xe.DOWN,Xe.SPACE,Xe.ENTER].includes(G)&&(T(!0),K.preventDefault());return}switch(G){case Xe.UP:A(-1),K.preventDefault();break;case Xe.DOWN:A(1),K.preventDefault();break;case Xe.ESC:T(!1);break;case Xe.SPACE:case Xe.ENTER:N!==null&&S(N,K);break}}h.useEffect(function(){var K=document.getElementById(z);K&&K.scrollIntoView&&K.scrollIntoView(!1)},[N]),h.useEffect(function(){$||I(null)},[$]);var q=Y({},v?"marginRight":"marginLeft",g);i.length||(q.visibility="hidden",q.order=1);var H=ne(Y({},"".concat(B,"-rtl"),v)),U=a?null:h.createElement(x$,$e({prefixCls:B,overlay:V,visible:i.length?$:!1,onVisibleChange:T,overlayClassName:ne(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:_},u),h.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:q,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":$,onKeyDown:X},L));return h.createElement("div",{className:ne("".concat(n,"-nav-operations"),f),style:d,ref:t},U,h.createElement(J$,{prefixCls:n,locale:o,editable:m}))});const k9=h.memo(E9,function(e,t){return t.tabMoving});var $9=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.focus,a=t.tab,l=a.key,u=a.label,d=a.disabled,f=a.closeIcon,m=a.icon,g=t.closable,v=t.renderWrapper,y=t.removeAriaLabel,S=t.editable,_=t.onClick,C=t.onFocus,w=t.onBlur,k=t.onKeyDown,$=t.onMouseDown,T=t.onMouseUp,R=t.style,O=t.tabCount,N=t.currentPosition,I="".concat(n,"-tab"),j=hb(g,f,S,d);function L(F){d||_(F)}function M(F){F.preventDefault(),F.stopPropagation(),S.onEdit("remove",{key:l,event:F})}var B=h.useMemo(function(){return m&&typeof u=="string"?h.createElement("span",null,u):u},[u,m]),z=h.useRef(null);h.useEffect(function(){o&&z.current&&z.current.focus()},[o]);var D=h.createElement("div",{key:l,"data-node-key":Y$(l),className:ne(I,Y(Y(Y(Y({},"".concat(I,"-with-remove"),j),"".concat(I,"-active"),i),"".concat(I,"-disabled"),d),"".concat(I,"-focus"),o)),style:R,onClick:L},h.createElement("div",{ref:z,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(I,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":d,tabIndex:d?null:i?0:-1,onClick:function(V){V.stopPropagation(),L(V)},onKeyDown:k,onMouseDown:$,onMouseUp:T,onFocus:C,onBlur:w},o&&h.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(N," of ").concat(O)),m&&h.createElement("span",{className:"".concat(I,"-icon")},m),u&&B),j&&h.createElement("button",{type:"button",role:"tab","aria-label":y||"remove",tabIndex:i?0:-1,className:"".concat(I,"-remove"),onClick:function(V){V.stopPropagation(),M(V)}},f||S.removeIcon||"×"));return v?v(D):D},R9=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),u=l.width,d=l.height,f=l.left,m=l.top;return Math.abs(u-r)<1?[u,d,f-n.left,m-n.top]:[r,i,a,o]},Pl=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,o=n.offsetHeight,a=o===void 0?0:o;if(t.current){var l=t.current.getBoundingClientRect(),u=l.width,d=l.height;if(Math.abs(u-i)<1)return[u,d]}return[i,a]},vh=function(t,n){return t[n?0:1]},Lw=h.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,a=e.activeKey,l=e.rtl,u=e.extra,d=e.editable,f=e.locale,m=e.tabPosition,g=e.tabBarGutter,v=e.children,y=e.onTabClick,S=e.onTabScroll,_=e.indicator,C=h.useContext(_m),w=C.prefixCls,k=C.tabs,$=h.useRef(null),T=h.useRef(null),R=h.useRef(null),O=h.useRef(null),N=h.useRef(null),I=h.useRef(null),j=h.useRef(null),L=m==="top"||m==="bottom",M=Iw(0,function(ct,et){L&&S&&S({direction:ct>et?"left":"right"})}),B=le(M,2),z=B[0],D=B[1],F=Iw(0,function(ct,et){!L&&S&&S({direction:ct>et?"top":"bottom"})}),V=le(F,2),A=V[0],X=V[1],q=h.useState([0,0]),H=le(q,2),U=H[0],K=H[1],G=h.useState([0,0]),J=le(G,2),ee=J[0],de=J[1],oe=h.useState([0,0]),ae=le(oe,2),_e=ae[0],se=ae[1],ce=h.useState([0,0]),he=le(ce,2),ve=he[0],me=he[1],fe=C9(new Map),ye=le(fe,2),xe=ye[0],Ee=ye[1],Ne=b9(k,xe,ee[0]),Te=vh(U,L),Pe=vh(ee,L),ke=vh(_e,L),Ce=vh(ve,L),Ve=Math.floor(Te)<Math.floor(Pe+ke),Ze=Ve?Te-Ce:Te-ke,_t="".concat(w,"-nav-operations-hidden"),nt=0,Ye=0;L&&l?(nt=0,Ye=Math.max(0,Pe-Ze)):(nt=Math.min(0,Ze-Pe),Ye=0);function mt(ct){return ct<nt?nt:ct>Ye?Ye:ct}var Je=h.useRef(null),yt=h.useState(),rt=le(yt,2),Le=rt[0],ot=rt[1];function ze(){ot(Date.now())}function Ke(){Je.current&&clearTimeout(Je.current)}S9(O,function(ct,et){function Pt(Gt,Ge){Gt(function(vt){var Nt=mt(vt+Ge);return Nt})}return Ve?(L?Pt(D,ct):Pt(X,et),Ke(),ze(),!0):!1}),h.useEffect(function(){return Ke(),Le&&(Je.current=setTimeout(function(){ot(0)},100)),Ke},[Le]);var It=w9(Ne,Ze,L?z:A,Pe,ke,Ce,Z(Z({},e),{},{tabs:k})),Ct=le(It,2),nn=Ct[0],Qt=Ct[1],Sn=Un(function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,et=Ne.get(ct)||{width:0,height:0,left:0,right:0,top:0};if(L){var Pt=z;l?et.right<z?Pt=et.right:et.right+et.width>z+Ze&&(Pt=et.right+et.width-Ze):et.left<-z?Pt=-et.left:et.left+et.width>-z+Ze&&(Pt=-(et.left+et.width-Ze)),X(0),D(mt(Pt))}else{var Gt=A;et.top<-A?Gt=-et.top:et.top+et.height>-A+Ze&&(Gt=-(et.top+et.height-Ze)),D(0),X(mt(Gt))}}),In=h.useState(),on=le(In,2),Ht=on[0],Tt=on[1],sn=h.useState(!1),Xt=le(sn,2),at=Xt[0],$t=Xt[1],pt=k.filter(function(ct){return!ct.disabled}).map(function(ct){return ct.key}),Me=function(et){var Pt=pt.indexOf(Ht||a),Gt=pt.length,Ge=(Pt+et+Gt)%Gt,vt=pt[Ge];Tt(vt)},Oe=function(et,Pt){var Gt=pt.indexOf(et),Ge=k.find(function(Nt){return Nt.key===et}),vt=hb(Ge==null?void 0:Ge.closable,Ge==null?void 0:Ge.closeIcon,d,Ge==null?void 0:Ge.disabled);vt&&(Pt.preventDefault(),Pt.stopPropagation(),d.onEdit("remove",{key:et,event:Pt}),Gt===pt.length-1?Me(-1):Me(1))},Re=function(et,Pt){$t(!0),Pt.button===1&&Oe(et,Pt)},De=function(et){var Pt=et.code,Gt=l&&L,Ge=pt[0],vt=pt[pt.length-1];switch(Pt){case"ArrowLeft":{L&&Me(Gt?1:-1);break}case"ArrowRight":{L&&Me(Gt?-1:1);break}case"ArrowUp":{et.preventDefault(),L||Me(-1);break}case"ArrowDown":{et.preventDefault(),L||Me(1);break}case"Home":{et.preventDefault(),Tt(Ge);break}case"End":{et.preventDefault(),Tt(vt);break}case"Enter":case"Space":{et.preventDefault(),y(Ht??a,et);break}case"Backspace":case"Delete":{Oe(Ht,et);break}}},tt={};L?tt[l?"marginRight":"marginLeft"]=g:tt.marginTop=g;var it=k.map(function(ct,et){var Pt=ct.key;return h.createElement($9,{id:i,prefixCls:w,key:Pt,tab:ct,style:et===0?void 0:tt,closable:ct.closable,editable:d,active:Pt===a,focus:Pt===Ht,renderWrapper:v,removeAriaLabel:f==null?void 0:f.removeAriaLabel,tabCount:pt.length,currentPosition:et+1,onClick:function(Ge){y(Pt,Ge)},onKeyDown:De,onFocus:function(){at||Tt(Pt),Sn(Pt),ze(),O.current&&(l||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){Tt(void 0)},onMouseDown:function(Ge){return Re(Pt,Ge)},onMouseUp:function(){$t(!1)}})}),Wt=function(){return Ee(function(){var et,Pt=new Map,Gt=(et=N.current)===null||et===void 0?void 0:et.getBoundingClientRect();return k.forEach(function(Ge){var vt,Nt=Ge.key,yn=(vt=N.current)===null||vt===void 0?void 0:vt.querySelector('[data-node-key="'.concat(Y$(Nt),'"]'));if(yn){var lr=R9(yn,Gt),Ln=le(lr,4),Yr=Ln[0],_r=Ln[1],Jr=Ln[2],Sr=Ln[3];Pt.set(Nt,{width:Yr,height:_r,left:Jr,top:Sr})}}),Pt})};h.useEffect(function(){Wt()},[k.map(function(ct){return ct.key}).join("_")]);var Kt=X$(function(){var ct=Pl($),et=Pl(T),Pt=Pl(R);K([ct[0]-et[0]-Pt[0],ct[1]-et[1]-Pt[1]]);var Gt=Pl(j);se(Gt);var Ge=Pl(I);me(Ge);var vt=Pl(N);de([vt[0]-Gt[0],vt[1]-Gt[1]]),Wt()}),Lt=k.slice(0,nn),At=k.slice(Qt+1),Pn=[].concat(Ae(Lt),Ae(At)),$n=Ne.get(a),Nn=y9({activeTabOffset:$n,horizontal:L,indicator:_,rtl:l}),Hn=Nn.style;h.useEffect(function(){Sn()},[a,nt,Ye,zw($n),zw(Ne),L]),h.useEffect(function(){Kt()},[l]);var cn=!!Pn.length,pn="".concat(w,"-nav-wrap"),Fe,Qe,Ot,gt;return L?l?(Qe=z>0,Fe=z!==Ye):(Fe=z<0,Qe=z!==nt):(Ot=A<0,gt=A!==nt),h.createElement(ho,{onResize:Kt},h.createElement("div",{ref:ts(t,$),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:ne("".concat(w,"-nav"),n),style:r,onKeyDown:function(){ze()}},h.createElement(Bw,{ref:T,position:"left",extra:u,prefixCls:w}),h.createElement(ho,{onResize:Kt},h.createElement("div",{className:ne(pn,Y(Y(Y(Y({},"".concat(pn,"-ping-left"),Fe),"".concat(pn,"-ping-right"),Qe),"".concat(pn,"-ping-top"),Ot),"".concat(pn,"-ping-bottom"),gt)),ref:O},h.createElement(ho,{onResize:Kt},h.createElement("div",{ref:N,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(A,"px)"),transition:Le?"none":void 0}},it,h.createElement(J$,{ref:j,prefixCls:w,locale:f,editable:d,style:Z(Z({},it.length===0?void 0:tt),{},{visibility:cn?"hidden":null})}),h.createElement("div",{className:ne("".concat(w,"-ink-bar"),Y({},"".concat(w,"-ink-bar-animated"),o.inkBar)),style:Hn}))))),h.createElement(k9,$e({},e,{removeAriaLabel:f==null?void 0:f.removeAriaLabel,ref:I,prefixCls:w,tabs:Pn,className:!cn&&_t,tabMoving:!!Le})),h.createElement(Bw,{ref:R,position:"right",extra:u,prefixCls:w})))}),Q$=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,l=e.tabKey,u=e.children;return h.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!a,style:i,className:ne(n,a&&"".concat(n,"-active"),r),ref:t},u)}),T9=["renderTabBar"],P9=["label","key"],O9=function(t){var n=t.renderTabBar,r=Bt(t,T9),i=h.useContext(_m),o=i.tabs;if(n){var a=Z(Z({},r),{},{panes:o.map(function(l){var u=l.label,d=l.key,f=Bt(l,P9);return h.createElement(Q$,$e({tab:u,key:d,tabKey:d},f))})});return n(a,Lw)}return h.createElement(Lw,r)},I9=["key","forceRender","style","className","destroyInactiveTabPane"],N9=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,l=h.useContext(_m),u=l.prefixCls,d=l.tabs,f=i.tabPane,m="".concat(u,"-tabpane");return h.createElement("div",{className:ne("".concat(u,"-content-holder"))},h.createElement("div",{className:ne("".concat(u,"-content"),"".concat(u,"-content-").concat(o),Y({},"".concat(u,"-content-animated"),f))},d.map(function(g){var v=g.key,y=g.forceRender,S=g.style,_=g.className,C=g.destroyInactiveTabPane,w=Bt(g,I9),k=v===r;return h.createElement(Gi,$e({key:v,visible:k,forceRender:y,removeOnLeave:!!(a||C),leavedClassName:"".concat(m,"-hidden")},i.tabPaneMotion),function($,T){var R=$.style,O=$.className;return h.createElement(Q$,$e({},w,{prefixCls:m,id:n,tabKey:v,animated:f,active:k,style:Z(Z({},S),R),className:ne(_,O),ref:T}))})})))};function M9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Z({inkBar:!0},St(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var j9=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Aw=0,z9=h.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,l=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,m=e.animated,g=e.tabPosition,v=g===void 0?"top":g,y=e.tabBarGutter,S=e.tabBarStyle,_=e.tabBarExtraContent,C=e.locale,w=e.more,k=e.destroyInactiveTabPane,$=e.renderTabBar,T=e.onChange,R=e.onTabClick,O=e.onTabScroll,N=e.getPopupContainer,I=e.popupClassName,j=e.indicator,L=Bt(e,j9),M=h.useMemo(function(){return(a||[]).filter(function(ve){return ve&&St(ve)==="object"&&"key"in ve})},[a]),B=l==="rtl",z=M9(m),D=h.useState(!1),F=le(D,2),V=F[0],A=F[1];h.useEffect(function(){A(Vy())},[]);var X=Xn(function(){var ve;return(ve=M[0])===null||ve===void 0?void 0:ve.key},{value:u,defaultValue:d}),q=le(X,2),H=q[0],U=q[1],K=h.useState(function(){return M.findIndex(function(ve){return ve.key===H})}),G=le(K,2),J=G[0],ee=G[1];h.useEffect(function(){var ve=M.findIndex(function(fe){return fe.key===H});if(ve===-1){var me;ve=Math.max(0,Math.min(J,M.length-1)),U((me=M[ve])===null||me===void 0?void 0:me.key)}ee(ve)},[M.map(function(ve){return ve.key}).join("_"),H,J]);var de=Xn(null,{value:n}),oe=le(de,2),ae=oe[0],_e=oe[1];h.useEffect(function(){n||(_e("rc-tabs-".concat(Aw)),Aw+=1)},[]);function se(ve,me){R==null||R(ve,me);var fe=ve!==H;U(ve),fe&&(T==null||T(ve))}var ce={id:ae,activeKey:H,animated:z,tabPosition:v,rtl:B,mobile:V},he=Z(Z({},ce),{},{editable:f,locale:C,more:w,tabBarGutter:y,onTabClick:se,onTabScroll:O,extra:_,style:S,panes:null,getPopupContainer:N,popupClassName:I,indicator:j});return h.createElement(_m.Provider,{value:{tabs:M,prefixCls:i}},h.createElement("div",$e({ref:t,id:n,className:ne(i,"".concat(i,"-").concat(v),Y(Y(Y({},"".concat(i,"-mobile"),V),"".concat(i,"-editable"),f),"".concat(i,"-rtl"),B),o)},L),h.createElement(O9,$e({},he,{renderTabBar:$})),h.createElement(N9,$e({destroyInactiveTabPane:k},ce,{animated:z}))))});const B9={motionAppear:!1,motionEnter:!0,motionLeave:!0};function L9(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({},B9),{motionName:Yo(e,"switch")})),n}var A9=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function D9(e){return e.filter(t=>t)}function H9(e,t){if(e)return e.map(r=>{var i;const o=(i=r.destroyOnHidden)!==null&&i!==void 0?i:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:o})});const n=pi(t).map(r=>{if(h.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:l}=a,u=A9(a,["tab"]);return Object.assign(Object.assign({key:String(i)},u),{label:l})}return null});return D9(n)}const F9=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}`}}}}},[ra(e,"slide-up"),ra(e,"slide-down")]]},W9=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${re(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ia(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:re(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:re(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadiusLG)} 0 0 ${re(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 ${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},V9=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},qn(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:`${re(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({},Tu),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${re(e.paddingXXS)} ${re(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"}}})}})}},U9=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${re(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:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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:re(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},q9=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${re(e.borderRadius)} ${re(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${re(e.borderRadius)} ${re(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${re(e.borderRadius)} ${re(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${re(e.borderRadius)} 0 0 ${re(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},K9=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:l,itemColor:u}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:u,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-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}},po(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:Ia(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},G9=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=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:re(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:re(e.marginXS)},marginLeft:{_skip_check_:!0,value:re(o(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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},X9=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qn(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:i},background:"transparent",border:`${re(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${re(e.borderRadiusLG)} ${re(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},po(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),K9(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},po(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"}}}}}},Y9=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:o}=e,a=t||o,l=n||i,u=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:u,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(u-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}},J9=vn("Tabs",e=>{const t=Jt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${re(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${re(e.horizontalItemGutter)}`});return[q9(t),G9(t),U9(t),V9(t),W9(t),X9(t),F9(t)]},Y9),Q9=()=>null;var Z9=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const eA=h.forwardRef((e,t)=>{var n,r,i,o,a,l,u,d,f,m,g;const{type:v,className:y,rootClassName:S,size:_,onEdit:C,hideAdd:w,centered:k,addIcon:$,removeIcon:T,moreIcon:R,more:O,popupClassName:N,children:I,items:j,animated:L,style:M,indicatorSize:B,indicator:z,destroyInactiveTabPane:D,destroyOnHidden:F}=e,V=Z9(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:A}=V,{direction:X,tabs:q,getPrefixCls:H,getPopupContainer:U}=h.useContext(kt),K=H("tabs",A),G=go(K),[J,ee,de]=J9(K,G),oe=h.useRef(null);h.useImperativeHandle(t,()=>({nativeElement:oe.current}));let ae;v==="editable-card"&&(ae={onEdit:(fe,{key:ye,event:xe})=>{C==null||C(fe==="add"?xe:ye,fe)},removeIcon:(n=T??(q==null?void 0:q.removeIcon))!==null&&n!==void 0?n:h.createElement(na,null),addIcon:($??(q==null?void 0:q.addIcon))||h.createElement(v9,null),showAdd:w!==!0});const _e=H(),se=Xi(_),ce=H9(j,I),he=L9(K,L),ve=Object.assign(Object.assign({},q==null?void 0:q.style),M),me={align:(r=z==null?void 0:z.align)!==null&&r!==void 0?r:(i=q==null?void 0:q.indicator)===null||i===void 0?void 0:i.align,size:(u=(a=(o=z==null?void 0:z.size)!==null&&o!==void 0?o:B)!==null&&a!==void 0?a:(l=q==null?void 0:q.indicator)===null||l===void 0?void 0:l.size)!==null&&u!==void 0?u:q==null?void 0:q.indicatorSize};return J(h.createElement(z9,Object.assign({ref:oe,direction:X,getPopupContainer:U},V,{items:ce,className:ne({[`${K}-${se}`]:se,[`${K}-card`]:["card","editable-card"].includes(v),[`${K}-editable-card`]:v==="editable-card",[`${K}-centered`]:k},q==null?void 0:q.className,y,S,ee,de,G),popupClassName:ne(N,ee,de,G),style:ve,editable:ae,more:Object.assign({icon:(g=(m=(f=(d=q==null?void 0:q.more)===null||d===void 0?void 0:d.icon)!==null&&f!==void 0?f:q==null?void 0:q.moreIcon)!==null&&m!==void 0?m:R)!==null&&g!==void 0?g:h.createElement(lb,null),transitionName:`${_e}-slide-up`},O),prefixCls:K,animated:he,indicator:me,destroyInactiveTabPane:F??D})))}),fb=eA;fb.TabPane=Q9;function tA(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,l=a===void 0?!1:a,u=r.debounceMode,d=u===void 0?void 0:u,f,m=!1,g=0;function v(){f&&clearTimeout(f)}function y(_){var C=_||{},w=C.upcomingOnly,k=w===void 0?!1:w;v(),m=!k}function S(){for(var _=arguments.length,C=new Array(_),w=0;w<_;w++)C[w]=arguments[w];var k=this,$=Date.now()-g;if(m)return;function T(){g=Date.now(),t.apply(k,C)}function R(){f=void 0}!l&&d&&!f&&T(),v(),d===void 0&&$>e?l?(g=Date.now(),o||(f=setTimeout(d?R:T,e))):T():o!==!0&&(f=setTimeout(d?R:T,d===void 0?e-$:e))}return S.cancel=y,S}function nA(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return tA(e,t,{debounceMode:o!==!1})}const rA=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},qn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},qn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},qn(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Ia(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${re(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
293
|
-
${n}:not(${n}-disabled),
|
|
294
|
-
${t}:not(${t}-disabled)
|
|
295
|
-
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
296
|
-
${n}-checked:not(${n}-disabled),
|
|
297
|
-
${t}-checked:not(${t}-disabled)
|
|
298
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function iA(e,t){const n=Jt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return rA(n)}const Z$=vn("Checkbox",(e,{prefixCls:t})=>[iA(t,e)]),e4=Q.createContext(null);var oA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const sA=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:l=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:m=!1,disabled:g}=e,v=oA(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:S,checkbox:_}=h.useContext(kt),C=h.useContext(e4),{isFormItemInput:w}=h.useContext(Qo),k=h.useContext(Xo),$=(n=(C==null?void 0:C.disabled)||g)!==null&&n!==void 0?n:k,T=h.useRef(v.value),R=h.useRef(null),O=gi(t,R);h.useEffect(()=>{C==null||C.registerValue(v.value)},[]),h.useEffect(()=>{if(!m)return v.value!==T.current&&(C==null||C.cancelValue(T.current),C==null||C.registerValue(v.value),T.current=v.value),()=>C==null?void 0:C.cancelValue(v.value)},[v.value]),h.useEffect(()=>{var A;!((A=R.current)===null||A===void 0)&&A.input&&(R.current.input.indeterminate=l)},[l]);const N=y("checkbox",r),I=go(N),[j,L,M]=Z$(N,I),B=Object.assign({},v);C&&!m&&(B.onChange=(...A)=>{v.onChange&&v.onChange.apply(v,A),C.toggleOption&&C.toggleOption({label:a,value:v.value})},B.name=C.name,B.checked=C.value.includes(v.value));const z=ne(`${N}-wrapper`,{[`${N}-rtl`]:S==="rtl",[`${N}-wrapper-checked`]:B.checked,[`${N}-wrapper-disabled`]:$,[`${N}-wrapper-in-form-item`]:w},_==null?void 0:_.className,i,o,M,I,L),D=ne({[`${N}-indeterminate`]:l},zy,L),[F,V]=ZL(B.onClick);return j(h.createElement(Yf,{component:"Checkbox",disabled:$},h.createElement("label",{className:z,style:Object.assign(Object.assign({},_==null?void 0:_.style),u),onMouseEnter:d,onMouseLeave:f,onClick:F},h.createElement(QL,Object.assign({},B,{onClick:V,prefixCls:N,className:D,disabled:$,ref:O})),a!=null&&h.createElement("span",{className:`${N}-label`},a))))},t4=h.forwardRef(sA);var aA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const lA=h.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:l,style:u,onChange:d}=e,f=aA(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:m,direction:g}=h.useContext(kt),[v,y]=h.useState(f.value||n||[]),[S,_]=h.useState([]);h.useEffect(()=>{"value"in f&&y(f.value||[])},[f.value]);const C=h.useMemo(()=>i.map(D=>typeof D=="string"||typeof D=="number"?{label:D,value:D}:D),[i]),w=D=>{_(F=>F.filter(V=>V!==D))},k=D=>{_(F=>[].concat(Ae(F),[D]))},$=D=>{const F=v.indexOf(D.value),V=Ae(v);F===-1?V.push(D.value):V.splice(F,1),"value"in f||y(V),d==null||d(V.filter(A=>S.includes(A)).sort((A,X)=>{const q=C.findIndex(U=>U.value===A),H=C.findIndex(U=>U.value===X);return q-H}))},T=m("checkbox",o),R=`${T}-group`,O=go(T),[N,I,j]=Z$(T,O),L=rr(f,["value","disabled"]),M=i.length?C.map(D=>h.createElement(t4,{prefixCls:T,key:D.value.toString(),disabled:"disabled"in D?D.disabled:f.disabled,value:D.value,checked:v.includes(D.value),onChange:D.onChange,className:ne(`${R}-item`,D.className),style:D.style,title:D.title,id:D.id,required:D.required},D.label)):r,B=h.useMemo(()=>({toggleOption:$,value:v,disabled:f.disabled,name:f.name,registerValue:k,cancelValue:w}),[$,v,f.disabled,f.name,k,w]),z=ne(R,{[`${R}-rtl`]:g==="rtl"},a,l,j,O,I);return N(h.createElement("div",Object.assign({className:z,style:u},L,{ref:t}),h.createElement(e4.Provider,{value:B},M)))}),mb=t4;mb.Group=lA;mb.__ANT_CHECKBOX=!0;const n4=h.createContext({});var cA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Dw(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 uA=["xs","sm","md","lg","xl","xxl"],dA=h.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=h.useContext(kt),{gutter:i,wrap:o}=h.useContext(n4),{prefixCls:a,span:l,order:u,offset:d,push:f,pull:m,className:g,children:v,flex:y,style:S}=e,_=cA(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",a),[w,k,$]=aj(C),T={};let R={};uA.forEach(I=>{let j={};const L=e[I];typeof L=="number"?j.span=L:typeof L=="object"&&(j=L||{}),delete _[I],R=Object.assign(Object.assign({},R),{[`${C}-${I}-${j.span}`]:j.span!==void 0,[`${C}-${I}-order-${j.order}`]:j.order||j.order===0,[`${C}-${I}-offset-${j.offset}`]:j.offset||j.offset===0,[`${C}-${I}-push-${j.push}`]:j.push||j.push===0,[`${C}-${I}-pull-${j.pull}`]:j.pull||j.pull===0,[`${C}-rtl`]:r==="rtl"}),j.flex&&(R[`${C}-${I}-flex`]=!0,T[`--${C}-${I}-flex`]=Dw(j.flex))});const O=ne(C,{[`${C}-${l}`]:l!==void 0,[`${C}-order-${u}`]:u,[`${C}-offset-${d}`]:d,[`${C}-push-${f}`]:f,[`${C}-pull-${m}`]:m},g,R,k,$),N={};if(i!=null&&i[0]){const I=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;N.paddingLeft=I,N.paddingRight=I}return y&&(N.flex=Dw(y),o===!1&&!N.minWidth&&(N.minWidth=0)),w(h.createElement("div",Object.assign({},_,{style:Object.assign(Object.assign(Object.assign({},N),S),T),className:O,ref:t}),v))});function hA(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,a)=>{if(typeof o=="object"&&o!==null)for(let l=0;l<Ma.length;l++){const u=Ma[l];if(i[u]&&o[u]!==void 0){n[a]=o[u];break}}else n[a]=o}),n}var fA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Hw(e,t){const[n,r]=h.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<Ma.length;o++){const a=Ma[o];if(!t||!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return h.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const mA=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:u=0,wrap:d}=e,f=fA(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:m,direction:g}=h.useContext(kt),v=Yy(!0,null),y=Hw(i,v),S=Hw(r,v),_=m("row",n),[C,w,k]=sj(_),$=hA(u,v),T=ne(_,{[`${_}-no-wrap`]:d===!1,[`${_}-${S}`]:S,[`${_}-${y}`]:y,[`${_}-rtl`]:g==="rtl"},o,w,k),R={};if($!=null&&$[0]){const j=typeof $[0]=="number"?`${$[0]/-2}px`:`calc(${$[0]} / -2)`;R.marginLeft=j,R.marginRight=j}const[O,N]=$;R.rowGap=N;const I=h.useMemo(()=>({gutter:[O,N],wrap:d}),[O,N,d]);return C(h.createElement(n4.Provider,{value:I},h.createElement("div",Object.assign({},f,{className:T,style:Object.assign(Object.assign({},R),a),ref:t}),l)))}),pA=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},gA=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},qn(e)),{borderBlockStart:`${re(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${re(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${re(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${re(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:`${re(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${re(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${re(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,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}}})}},vA=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),yA=vn("Divider",e=>{const t=Jt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[gA(t),pA(t)]},vA,{unitless:{orientationMargin:!0}});var bA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const _A={small:"sm",middle:"md"},Fw=e=>{const{getPrefixCls:t,direction:n,className:r,style:i}=Dr("divider"),{prefixCls:o,type:a="horizontal",orientation:l="center",orientationMargin:u,className:d,rootClassName:f,children:m,dashed:g,variant:v="solid",plain:y,style:S,size:_}=e,C=bA(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",o),[k,$,T]=yA(w),R=Xi(_),O=_A[R],N=!!m,I=h.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),j=I==="start"&&u!=null,L=I==="end"&&u!=null,M=ne(w,r,$,T,`${w}-${a}`,{[`${w}-with-text`]:N,[`${w}-with-text-${I}`]:N,[`${w}-dashed`]:!!g,[`${w}-${v}`]:v!=="solid",[`${w}-plain`]:!!y,[`${w}-rtl`]:n==="rtl",[`${w}-no-default-orientation-margin-start`]:j,[`${w}-no-default-orientation-margin-end`]:L,[`${w}-${O}`]:!!O},d,f),B=h.useMemo(()=>typeof u=="number"?u:/^\d+$/.test(u)?Number(u):u,[u]),z={marginInlineStart:j?B:void 0,marginInlineEnd:L?B:void 0};return k(h.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},i),S)},C,{role:"separator"}),m&&a!=="vertical"&&h.createElement("span",{className:`${w}-inner-text`,style:z},m)))};function SA(e){return!!(e.addonBefore||e.addonAfter)}function CA(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ww(e,t,n){var r=t.cloneNode(!0),i=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)},i}function _f(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=Ww(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=Ww(t,e,r),n(i);return}n(i)}}function r4(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var i4=Q.forwardRef(function(e,t){var n,r,i,o=e.inputElement,a=e.children,l=e.prefixCls,u=e.prefix,d=e.suffix,f=e.addonBefore,m=e.addonAfter,g=e.className,v=e.style,y=e.disabled,S=e.readOnly,_=e.focused,C=e.triggerFocus,w=e.allowClear,k=e.value,$=e.handleReset,T=e.hidden,R=e.classes,O=e.classNames,N=e.dataAttrs,I=e.styles,j=e.components,L=e.onClear,M=a??o,B=(j==null?void 0:j.affixWrapper)||"span",z=(j==null?void 0:j.groupWrapper)||"span",D=(j==null?void 0:j.wrapper)||"span",F=(j==null?void 0:j.groupAddon)||"span",V=h.useRef(null),A=function(me){var fe;(fe=V.current)!==null&&fe!==void 0&&fe.contains(me.target)&&(C==null||C())},X=CA(e),q=h.cloneElement(M,{value:k,className:ne((n=M.props)===null||n===void 0?void 0:n.className,!X&&(O==null?void 0:O.variant))||null}),H=h.useRef(null);if(Q.useImperativeHandle(t,function(){return{nativeElement:H.current||V.current}}),X){var U=null;if(w){var K=!y&&!S&&k,G="".concat(l,"-clear-icon"),J=St(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";U=Q.createElement("button",{type:"button",tabIndex:-1,onClick:function(me){$==null||$(me),L==null||L()},onMouseDown:function(me){return me.preventDefault()},className:ne(G,Y(Y({},"".concat(G,"-hidden"),!K),"".concat(G,"-has-suffix"),!!d))},J)}var ee="".concat(l,"-affix-wrapper"),de=ne(ee,Y(Y(Y(Y(Y({},"".concat(l,"-disabled"),y),"".concat(ee,"-disabled"),y),"".concat(ee,"-focused"),_),"".concat(ee,"-readonly"),S),"".concat(ee,"-input-with-clear-btn"),d&&w&&k),R==null?void 0:R.affixWrapper,O==null?void 0:O.affixWrapper,O==null?void 0:O.variant),oe=(d||w)&&Q.createElement("span",{className:ne("".concat(l,"-suffix"),O==null?void 0:O.suffix),style:I==null?void 0:I.suffix},U,d);q=Q.createElement(B,$e({className:de,style:I==null?void 0:I.affixWrapper,onClick:A},N==null?void 0:N.affixWrapper,{ref:V}),u&&Q.createElement("span",{className:ne("".concat(l,"-prefix"),O==null?void 0:O.prefix),style:I==null?void 0:I.prefix},u),q,oe)}if(SA(e)){var ae="".concat(l,"-group"),_e="".concat(ae,"-addon"),se="".concat(ae,"-wrapper"),ce=ne("".concat(l,"-wrapper"),ae,R==null?void 0:R.wrapper,O==null?void 0:O.wrapper),he=ne(se,Y({},"".concat(se,"-disabled"),y),R==null?void 0:R.group,O==null?void 0:O.groupWrapper);q=Q.createElement(z,{className:he,ref:H},Q.createElement(D,{className:ce},f&&Q.createElement(F,{className:_e},f),q,m&&Q.createElement(F,{className:_e},m)))}return Q.cloneElement(q,{className:ne((r=q.props)===null||r===void 0?void 0:r.className,g)||null,style:Z(Z({},(i=q.props)===null||i===void 0?void 0:i.style),v),hidden:T})}),wA=["show"];function o4(e,t){return h.useMemo(function(){var n={};t&&(n.show=St(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,i=r.show,o=Bt(r,wA);return Z(Z({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var xA=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],EA=h.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,u=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,m=e.disabled,g=e.htmlSize,v=e.className,y=e.maxLength,S=e.suffix,_=e.showCount,C=e.count,w=e.type,k=w===void 0?"text":w,$=e.classes,T=e.classNames,R=e.styles,O=e.onCompositionStart,N=e.onCompositionEnd,I=Bt(e,xA),j=h.useState(!1),L=le(j,2),M=L[0],B=L[1],z=h.useRef(!1),D=h.useRef(!1),F=h.useRef(null),V=h.useRef(null),A=function(Ce){F.current&&r4(F.current,Ce)},X=Xn(e.defaultValue,{value:e.value}),q=le(X,2),H=q[0],U=q[1],K=H==null?"":String(H),G=h.useState(null),J=le(G,2),ee=J[0],de=J[1],oe=o4(C,_),ae=oe.max||y,_e=oe.strategy(K),se=!!ae&&_e>ae;h.useImperativeHandle(t,function(){var ke;return{focus:A,blur:function(){var Ve;(Ve=F.current)===null||Ve===void 0||Ve.blur()},setSelectionRange:function(Ve,Ze,_t){var nt;(nt=F.current)===null||nt===void 0||nt.setSelectionRange(Ve,Ze,_t)},select:function(){var Ve;(Ve=F.current)===null||Ve===void 0||Ve.select()},input:F.current,nativeElement:((ke=V.current)===null||ke===void 0?void 0:ke.nativeElement)||F.current}}),h.useEffect(function(){D.current&&(D.current=!1),B(function(ke){return ke&&m?!1:ke})},[m]);var ce=function(Ce,Ve,Ze){var _t=Ve;if(!z.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ve)>oe.max){if(_t=oe.exceedFormatter(Ve,{max:oe.max}),Ve!==_t){var nt,Ye;de([((nt=F.current)===null||nt===void 0?void 0:nt.selectionStart)||0,((Ye=F.current)===null||Ye===void 0?void 0:Ye.selectionEnd)||0])}}else if(Ze.source==="compositionEnd")return;U(_t),F.current&&_f(F.current,Ce,r,_t)};h.useEffect(function(){if(ee){var ke;(ke=F.current)===null||ke===void 0||ke.setSelectionRange.apply(ke,Ae(ee))}},[ee]);var he=function(Ce){ce(Ce,Ce.target.value,{source:"change"})},ve=function(Ce){z.current=!1,ce(Ce,Ce.currentTarget.value,{source:"compositionEnd"}),N==null||N(Ce)},me=function(Ce){a&&Ce.key==="Enter"&&!D.current&&(D.current=!0,a(Ce)),l==null||l(Ce)},fe=function(Ce){Ce.key==="Enter"&&(D.current=!1),u==null||u(Ce)},ye=function(Ce){B(!0),i==null||i(Ce)},xe=function(Ce){D.current&&(D.current=!1),B(!1),o==null||o(Ce)},Ee=function(Ce){U(""),A(),F.current&&_f(F.current,Ce,r)},Ne=se&&"".concat(f,"-out-of-range"),Te=function(){var Ce=rr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Q.createElement("input",$e({autoComplete:n},Ce,{onChange:he,onFocus:ye,onBlur:xe,onKeyDown:me,onKeyUp:fe,className:ne(f,Y({},"".concat(f,"-disabled"),m),T==null?void 0:T.input),style:R==null?void 0:R.input,ref:F,size:g,type:k,onCompositionStart:function(Ze){z.current=!0,O==null||O(Ze)},onCompositionEnd:ve}))},Pe=function(){var Ce=Number(ae)>0;if(S||oe.show){var Ve=oe.showFormatter?oe.showFormatter({value:K,count:_e,maxLength:ae}):"".concat(_e).concat(Ce?" / ".concat(ae):"");return Q.createElement(Q.Fragment,null,oe.show&&Q.createElement("span",{className:ne("".concat(f,"-show-count-suffix"),Y({},"".concat(f,"-show-count-has-suffix"),!!S),T==null?void 0:T.count),style:Z({},R==null?void 0:R.count)},Ve),S)}return null};return Q.createElement(i4,$e({},I,{prefixCls:f,className:ne(v,Ne),handleReset:Ee,value:K,focused:M,triggerFocus:A,suffix:Pe(),disabled:m,classes:$,classNames:T,styles:R,ref:V}),Te())});const s4=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Q.createElement(Gf,null)}),t};function a4(e,t){const n=h.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,l;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return h.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function kA(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var $A=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const Sm=h.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:i,size:o,disabled:a,onBlur:l,onFocus:u,suffix:d,allowClear:f,addonAfter:m,addonBefore:g,className:v,style:y,styles:S,rootClassName:_,onChange:C,classNames:w,variant:k,_skipAddonWarning:$}=e,T=$A(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:R,direction:O,allowClear:N,autoComplete:I,className:j,style:L,classNames:M,styles:B}=Dr("input"),z=R("input",n),D=h.useRef(null),F=go(z),[V,A,X]=K$(z,_),[q]=G$(z,F),{compactSize:H,compactItemClassnames:U}=Wa(z,O),K=Xi(Ee=>{var Ne;return(Ne=o??H)!==null&&Ne!==void 0?Ne:Ee}),G=Q.useContext(Xo),J=a??G,{status:ee,hasFeedback:de,feedbackIcon:oe}=h.useContext(Qo),ae=hm(ee,i),_e=kA(e)||!!de;h.useRef(_e);const se=a4(D,!0),ce=Ee=>{se(),l==null||l(Ee)},he=Ee=>{se(),u==null||u(Ee)},ve=Ee=>{se(),C==null||C(Ee)},me=(de||d)&&Q.createElement(Q.Fragment,null,d,de&&oe),fe=s4(f??N),[ye,xe]=Xy("input",k,r);return V(q(Q.createElement(EA,Object.assign({ref:gi(t,D),prefixCls:z,autoComplete:I},T,{disabled:J,onBlur:ce,onFocus:he,style:Object.assign(Object.assign({},L),y),styles:Object.assign(Object.assign({},B),S),suffix:me,allowClear:fe,className:ne(v,_,X,F,U,j),onChange:ve,addonBefore:g&&Q.createElement(Na,{form:!0,space:!0},g),addonAfter:m&&Q.createElement(Na,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},w),M),{input:ne({[`${z}-sm`]:K==="small",[`${z}-lg`]:K==="large",[`${z}-rtl`]:O==="rtl"},w==null?void 0:w.input,M.input,A),variant:ne({[`${z}-${ye}`]:xe},pf(z,ae)),affixWrapper:ne({[`${z}-affix-wrapper-sm`]:K==="small",[`${z}-affix-wrapper-lg`]:K==="large",[`${z}-affix-wrapper-rtl`]:O==="rtl"},A),wrapper:ne({[`${z}-group-rtl`]:O==="rtl"},A),groupWrapper:ne({[`${z}-group-wrapper-sm`]:K==="small",[`${z}-group-wrapper-lg`]:K==="large",[`${z}-group-wrapper-rtl`]:O==="rtl",[`${z}-group-wrapper-${ye}`]:xe},pf(`${z}-group-wrapper`,ae,de),A)})}))))});var Vw=h.createContext(null),l4=h.createContext({}),RA=["prefixCls","className","containerRef"],TA=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=Bt(t,RA),a=h.useContext(l4),l=a.panel,u=ts(l,i);return h.createElement("div",$e({className:ne("".concat(n,"-content"),r),role:"dialog",ref:u},Ni(t,{aria:!0}),{"aria-modal":"true"},o))};function Uw(e){return typeof e=="string"&&String(Number(e))===e?(Ar(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var qw={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function PA(e,t){var n,r,i,o=e.prefixCls,a=e.open,l=e.placement,u=e.inline,d=e.push,f=e.forceRender,m=e.autoFocus,g=e.keyboard,v=e.classNames,y=e.rootClassName,S=e.rootStyle,_=e.zIndex,C=e.className,w=e.id,k=e.style,$=e.motion,T=e.width,R=e.height,O=e.children,N=e.mask,I=e.maskClosable,j=e.maskMotion,L=e.maskClassName,M=e.maskStyle,B=e.afterOpenChange,z=e.onClose,D=e.onMouseEnter,F=e.onMouseOver,V=e.onMouseLeave,A=e.onClick,X=e.onKeyDown,q=e.onKeyUp,H=e.styles,U=e.drawerRender,K=h.useRef(),G=h.useRef(),J=h.useRef();h.useImperativeHandle(t,function(){return K.current});var ee=function(Pe){var ke=Pe.keyCode,Ce=Pe.shiftKey;switch(ke){case Xe.TAB:{if(ke===Xe.TAB){if(!Ce&&document.activeElement===J.current){var Ve;(Ve=G.current)===null||Ve===void 0||Ve.focus({preventScroll:!0})}else if(Ce&&document.activeElement===G.current){var Ze;(Ze=J.current)===null||Ze===void 0||Ze.focus({preventScroll:!0})}}break}case Xe.ESC:{z&&g&&(Pe.stopPropagation(),z(Pe));break}}};h.useEffect(function(){if(a&&m){var Te;(Te=K.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},[a]);var de=h.useState(!1),oe=le(de,2),ae=oe[0],_e=oe[1],se=h.useContext(Vw),ce;typeof d=="boolean"?ce=d?{}:{distance:0}:ce=d||{};var he=(n=(r=(i=ce)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:se==null?void 0:se.pushDistance)!==null&&n!==void 0?n:180,ve=h.useMemo(function(){return{pushDistance:he,push:function(){_e(!0)},pull:function(){_e(!1)}}},[he]);h.useEffect(function(){if(a){var Te;se==null||(Te=se.push)===null||Te===void 0||Te.call(se)}else{var Pe;se==null||(Pe=se.pull)===null||Pe===void 0||Pe.call(se)}},[a]),h.useEffect(function(){return function(){var Te;se==null||(Te=se.pull)===null||Te===void 0||Te.call(se)}},[]);var me=h.createElement(Gi,$e({key:"mask"},j,{visible:N&&a}),function(Te,Pe){var ke=Te.className,Ce=Te.style;return h.createElement("div",{className:ne("".concat(o,"-mask"),ke,v==null?void 0:v.mask,L),style:Z(Z(Z({},Ce),M),H==null?void 0:H.mask),onClick:I&&a?z:void 0,ref:Pe})}),fe=typeof $=="function"?$(l):$,ye={};if(ae&&he)switch(l){case"top":ye.transform="translateY(".concat(he,"px)");break;case"bottom":ye.transform="translateY(".concat(-he,"px)");break;case"left":ye.transform="translateX(".concat(he,"px)");break;default:ye.transform="translateX(".concat(-he,"px)");break}l==="left"||l==="right"?ye.width=Uw(T):ye.height=Uw(R);var xe={onMouseEnter:D,onMouseOver:F,onMouseLeave:V,onClick:A,onKeyDown:X,onKeyUp:q},Ee=h.createElement(Gi,$e({key:"panel"},fe,{visible:a,forceRender:f,onVisibleChanged:function(Pe){B==null||B(Pe)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(Te,Pe){var ke=Te.className,Ce=Te.style,Ve=h.createElement(TA,$e({id:w,containerRef:Pe,prefixCls:o,className:ne(C,v==null?void 0:v.content),style:Z(Z({},k),H==null?void 0:H.content)},Ni(e,{aria:!0}),xe),O);return h.createElement("div",$e({className:ne("".concat(o,"-content-wrapper"),v==null?void 0:v.wrapper,ke),style:Z(Z(Z({},ye),Ce),H==null?void 0:H.wrapper)},Ni(e,{data:!0})),U?U(Ve):Ve)}),Ne=Z({},S);return _&&(Ne.zIndex=_),h.createElement(Vw.Provider,{value:ve},h.createElement("div",{className:ne(o,"".concat(o,"-").concat(l),y,Y(Y({},"".concat(o,"-open"),a),"".concat(o,"-inline"),u)),style:Ne,tabIndex:-1,ref:K,onKeyDown:ee},me,h.createElement("div",{tabIndex:0,ref:G,style:qw,"aria-hidden":"true","data-sentinel":"start"}),Ee,h.createElement("div",{tabIndex:0,ref:J,style:qw,"aria-hidden":"true","data-sentinel":"end"})))}var OA=h.forwardRef(PA),IA=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,l=a===void 0?"right":a,u=t.autoFocus,d=u===void 0?!0:u,f=t.keyboard,m=f===void 0?!0:f,g=t.width,v=g===void 0?378:g,y=t.mask,S=y===void 0?!0:y,_=t.maskClosable,C=_===void 0?!0:_,w=t.getContainer,k=t.forceRender,$=t.afterOpenChange,T=t.destroyOnClose,R=t.onMouseEnter,O=t.onMouseOver,N=t.onMouseLeave,I=t.onClick,j=t.onKeyDown,L=t.onKeyUp,M=t.panelRef,B=h.useState(!1),z=le(B,2),D=z[0],F=z[1],V=h.useState(!1),A=le(V,2),X=A[0],q=A[1];fn(function(){q(!0)},[]);var H=X?r:!1,U=h.useRef(),K=h.useRef();fn(function(){H&&(K.current=document.activeElement)},[H]);var G=function(ae){var _e;if(F(ae),$==null||$(ae),!ae&&K.current&&!((_e=U.current)!==null&&_e!==void 0&&_e.contains(K.current))){var se;(se=K.current)===null||se===void 0||se.focus({preventScroll:!0})}},J=h.useMemo(function(){return{panel:M}},[M]);if(!k&&!D&&!H&&T)return null;var ee={onMouseEnter:R,onMouseOver:O,onMouseLeave:N,onClick:I,onKeyDown:j,onKeyUp:L},de=Z(Z({},t),{},{open:H,prefixCls:o,placement:l,autoFocus:d,keyboard:m,width:v,mask:S,maskClosable:C,inline:w===!1,afterOpenChange:G,ref:U},ee);return h.createElement(l4.Provider,{value:J},h.createElement(sm,{open:H||k||D,autoDestroy:!1,getContainer:w,autoLock:S&&(H||D)},h.createElement(OA,de)))};const c4=e=>{var t,n;const{prefixCls:r,ariaId:i,title:o,footer:a,extra:l,closable:u,loading:d,onClose:f,headerStyle:m,bodyStyle:g,footerStyle:v,children:y,classNames:S,styles:_}=e,C=Dr("drawer");let w;u===!1?w=void 0:u===void 0||u===!0?w="start":w=(u==null?void 0:u.placement)==="end"?"end":"start";const k=h.useCallback(N=>h.createElement("button",{type:"button",onClick:f,className:ne(`${r}-close`,{[`${r}-close-${w}`]:w==="end"})},N),[f,r,w]),[$,T]=Oy(nc(e),nc(C),{closable:!0,closeIconRender:k}),R=()=>{var N,I;return!o&&!$?null:h.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(N=C.styles)===null||N===void 0?void 0:N.header),m),_==null?void 0:_.header),className:ne(`${r}-header`,{[`${r}-header-close-only`]:$&&!o&&!l},(I=C.classNames)===null||I===void 0?void 0:I.header,S==null?void 0:S.header)},h.createElement("div",{className:`${r}-header-title`},w==="start"&&T,o&&h.createElement("div",{className:`${r}-title`,id:i},o)),l&&h.createElement("div",{className:`${r}-extra`},l),w==="end"&&T)},O=()=>{var N,I;if(!a)return null;const j=`${r}-footer`;return h.createElement("div",{className:ne(j,(N=C.classNames)===null||N===void 0?void 0:N.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(I=C.styles)===null||I===void 0?void 0:I.footer),v),_==null?void 0:_.footer)},a)};return h.createElement(h.Fragment,null,R(),h.createElement("div",{className:ne(`${r}-body`,S==null?void 0:S.body,(t=C.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=C.styles)===null||n===void 0?void 0:n.body),g),_==null?void 0:_.body)},d?h.createElement(Va,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):y),O())},NA=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},u4=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),d4=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},u4({opacity:e},{opacity:1})),MA=(e,t)=>[d4(.7,t),u4({transform:NA(e)},{transform:"none"})],jA=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:d4(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:MA(i,n)}),{})}}},zA=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:l,paddingXS:u,padding:d,paddingLG:f,fontSizeLG:m,lineHeightLG:g,lineWidth:v,lineType:y,colorSplit:S,marginXS:_,colorIcon:C,colorIconHover:w,colorBgTextHover:k,colorBgTextActive:$,colorText:T,fontWeightStrong:R,footerPaddingBlock:O,footerPaddingInline:N,calc:I}=e,j=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:o,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:i,pointerEvents:"auto"},[j]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${j}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${j}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${j}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${j}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${re(d)} ${re(f)}`,fontSize:m,lineHeight:g,borderBottom:`${re(v)} ${y} ${S}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:I(m).add(u).equal(),height:I(m).add(u).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:C,fontWeight:R,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:_},[`&:not(${n}-close-end)`]:{marginInlineEnd:_},"&:hover":{color:w,backgroundColor:k,textDecoration:"none"},"&:active":{backgroundColor:$}},po(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:g},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:f,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${re(O)} ${re(N)}`,borderTop:`${re(v)} ${y} ${S}`},"&-rtl":{direction:"rtl"}}}},BA=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),h4=vn("Drawer",e=>{const t=Jt(e,{});return[zA(t),jA(t)]},BA);var f4=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const LA={distance:180},qh=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=LA,open:l,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:m,panelRef:g=null,style:v,className:y,"aria-labelledby":S,visible:_,afterVisibleChange:C,maskStyle:w,drawerStyle:k,contentWrapperStyle:$,destroyOnClose:T,destroyOnHidden:R}=e,O=f4(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=am(),I=O.title?N:void 0,{getPopupContainer:j,getPrefixCls:L,direction:M,className:B,style:z,classNames:D,styles:F}=Dr("drawer"),V=L("drawer",f),[A,X,q]=h4(V),H=m===void 0&&j?()=>j(document.body):m,U=ne({"no-mask":!o,[`${V}-rtl`]:M==="rtl"},t,X,q),K=h.useMemo(()=>n??(i==="large"?736:378),[n,i]),G=h.useMemo(()=>r??(i==="large"?736:378),[r,i]),J={motionName:Yo(V,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ee=he=>({motionName:Yo(V,`panel-motion-${he}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),de=$k(),oe=gi(g,de),[ae,_e]=lc("Drawer",O.zIndex),{classNames:se={},styles:ce={}}=O;return A(h.createElement(Na,{form:!0,space:!0},h.createElement(qu.Provider,{value:_e},h.createElement(IA,Object.assign({prefixCls:V,onClose:d,maskMotion:J,motion:ee},O,{classNames:{mask:ne(se.mask,D.mask),content:ne(se.content,D.content),wrapper:ne(se.wrapper,D.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ce.mask),w),F.mask),content:Object.assign(Object.assign(Object.assign({},ce.content),k),F.content),wrapper:Object.assign(Object.assign(Object.assign({},ce.wrapper),$),F.wrapper)},open:l??_,mask:o,push:a,width:K,height:G,style:Object.assign(Object.assign({},z),v),className:ne(B,y),rootClassName:U,getContainer:H,afterOpenChange:u??C,panelRef:oe,zIndex:ae,"aria-labelledby":S??I,destroyOnClose:R??T}),h.createElement(c4,Object.assign({prefixCls:V},O,{ariaId:I,onClose:d}))))))},AA=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=f4(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=h.useContext(kt),l=a("drawer",t),[u,d,f]=h4(l),m=ne(l,`${l}-pure`,`${l}-${i}`,d,f,r);return u(h.createElement("div",{className:m,style:n},h.createElement(c4,Object.assign({prefixCls:l},o))))};qh._InternalPanelDoNotUseOrYouWillBeFired=AA;function Kw(e){return["small","middle","large"].includes(e)}function Gw(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const DA=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:o,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:u,borderRadiusSM:d,colorBgContainerDisabled:f,lineWidth:m}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:f,borderWidth:m,borderStyle:"solid",borderColor:i,borderRadius:n,"&-large":{fontSize:a,borderRadius:u},"&-small":{paddingInline:o,borderRadius:d,fontSize:l},"&-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}},om(e,{focus:!1})]}},HA=vn(["Space","Addon"],e=>[DA(e)]);var FA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const WA=Q.forwardRef((e,t)=>{const{className:n,children:r,style:i,prefixCls:o}=e,a=FA(e,["className","children","style","prefixCls"]),{getPrefixCls:l,direction:u}=Q.useContext(kt),d=l("space-addon",o),[f,m,g]=HA(d),{compactItemClassnames:v,compactSize:y}=Wa(d,u),S=ne(d,m,v,g,{[`${d}-${y}`]:y},n);return f(Q.createElement("div",Object.assign({ref:t,className:S,style:i},a),r))}),m4=Q.createContext({latestIndex:0}),VA=m4.Provider,UA=({className:e,index:t,children:n,split:r,style:i})=>{const{latestIndex:o}=h.useContext(m4);return n==null?null:h.createElement(h.Fragment,null,h.createElement("div",{className:e,style:i},n),t<o&&r&&h.createElement("span",{className:`${e}-split`},r))},qA=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"}}}},KA=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}}}},GA=vn("Space",e=>{const t=Jt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[qA(t),KA(t)]},()=>({}),{resetStyle:!1});var XA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const YA=h.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,size:o,className:a,style:l,classNames:u,styles:d}=Dr("space"),{size:f=o??"small",align:m,className:g,rootClassName:v,children:y,direction:S="horizontal",prefixCls:_,split:C,style:w,wrap:k=!1,classNames:$,styles:T}=e,R=XA(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,N]=Array.isArray(f)?f:[f,f],I=Kw(N),j=Kw(O),L=Gw(N),M=Gw(O),B=pi(y,{keepEmpty:!0}),z=m===void 0&&S==="horizontal"?"center":m,D=r("space",_),[F,V,A]=GA(D),X=ne(D,a,V,`${D}-${S}`,{[`${D}-rtl`]:i==="rtl",[`${D}-align-${z}`]:z,[`${D}-gap-row-${N}`]:I,[`${D}-gap-col-${O}`]:j},g,v,A),q=ne(`${D}-item`,(n=$==null?void 0:$.item)!==null&&n!==void 0?n:u.item),H=Object.assign(Object.assign({},d.item),T==null?void 0:T.item),U=B.map((J,ee)=>{const de=(J==null?void 0:J.key)||`${q}-${ee}`;return h.createElement(UA,{className:q,key:de,index:ee,split:C,style:H},J)}),K=h.useMemo(()=>({latestIndex:B.reduce((ee,de,oe)=>de!=null?oe:ee,0)}),[B]);if(B.length===0)return null;const G={};return k&&(G.flexWrap="wrap"),!j&&M&&(G.columnGap=O),!I&&L&&(G.rowGap=N),F(h.createElement("div",Object.assign({ref:t,className:X,style:Object.assign(Object.assign(Object.assign({},G),l),w)},R),h.createElement(VA,{value:K},U)))}),ps=YA;ps.Compact=LI;ps.Addon=WA;var JA=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const p4=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=h.useContext(kt),{prefixCls:i,type:o="default",danger:a,disabled:l,loading:u,onClick:d,htmlType:f,children:m,className:g,menu:v,arrow:y,autoFocus:S,overlay:_,trigger:C,align:w,open:k,onOpenChange:$,placement:T,getPopupContainer:R,href:O,icon:N=h.createElement(lb,null),title:I,buttonsRender:j=se=>se,mouseEnterDelay:L,mouseLeaveDelay:M,overlayClassName:B,overlayStyle:z,destroyOnHidden:D,destroyPopupOnHide:F,dropdownRender:V,popupRender:A}=e,X=JA(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",i),H=`${q}-button`,K={menu:v,arrow:y,autoFocus:S,align:w,disabled:l,trigger:l?[]:C,onOpenChange:$,getPopupContainer:R||t,mouseEnterDelay:L,mouseLeaveDelay:M,overlayClassName:B,overlayStyle:z,destroyOnHidden:D,popupRender:A||V},{compactSize:G,compactItemClassnames:J}=Wa(q,r),ee=ne(H,J,g);"destroyPopupOnHide"in e&&(K.destroyPopupOnHide=F),"overlay"in e&&(K.overlay=_),"open"in e&&(K.open=k),"placement"in e?K.placement=T:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const de=h.createElement(Gn,{type:o,danger:a,disabled:l,loading:u,onClick:d,htmlType:f,href:O,title:I},m),oe=h.createElement(Gn,{type:o,danger:a,icon:N}),[ae,_e]=j([de,oe]);return h.createElement(ps.Compact,Object.assign({className:ee,size:G,block:!0},X),ae,h.createElement(ym,Object.assign({},K),_e))};p4.__ANT_BUTTON=!0;const g4=ym;g4.Button=p4;var QA={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"},ZA=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:QA}))},vu=h.forwardRef(ZA),eD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},tD=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:eD}))},nD=h.forwardRef(tD);const rD=e=>{const{getPrefixCls:t,direction:n}=h.useContext(kt),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[l,u,d]=G$(a),f=ne(o,d,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},u,i),m=h.useContext(Qo),g=h.useMemo(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return l(h.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},h.createElement(Qo.Provider,{value:g},e.children)))},iD=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},oD=vn(["Input","OTP"],e=>{const t=Jt(e,nd(e));return iD(t)},rd);var sD=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const aD=h.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:o,index:a,mask:l}=e,u=sD(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=h.useContext(kt),f=d("otp"),m=typeof l=="string"?l:r,g=h.useRef(null);h.useImperativeHandle(t,()=>g.current);const v=_=>{i(a,_.target.value)},y=()=>{kn(()=>{var _;const C=(_=g.current)===null||_===void 0?void 0:_.input;document.activeElement===C&&C&&C.select()})},S=_=>{const{key:C,ctrlKey:w,metaKey:k}=_;C==="ArrowLeft"?o(a-1):C==="ArrowRight"?o(a+1):C==="z"&&(w||k)?_.preventDefault():C==="Backspace"&&!r&&o(a-1),y()};return h.createElement("span",{className:`${f}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&h.createElement("span",{className:`${f}-mask-icon`,"aria-hidden":"true"},m),h.createElement(Sm,Object.assign({"aria-label":`OTP Input ${a+1}`,type:l===!0?"password":"text"},u,{ref:g,value:r,onInput:v,onFocus:y,onKeyDown:S,onMouseDown:y,onMouseUp:y,className:ne(n,{[`${f}-mask-input`]:l})})))});var lD=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function yh(e){return(e||"").split("")}const cD=e=>{const{index:t,prefixCls:n,separator:r}=e,i=typeof r=="function"?r(t):r;return i?h.createElement("span",{className:`${n}-separator`},i):null},uD=h.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:l,formatter:u,separator:d,variant:f,disabled:m,status:g,autoFocus:v,mask:y,type:S,onInput:_,inputMode:C}=e,w=lD(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:k,direction:$}=h.useContext(kt),T=k("otp",n),R=Ni(w,{aria:!0,data:!0,attr:!0}),[O,N,I]=oD(T),j=Xi(G=>i??G),L=h.useContext(Qo),M=hm(L.status,g),B=h.useMemo(()=>Object.assign(Object.assign({},L),{status:M,hasFeedback:!1,feedbackIcon:null}),[L,M]),z=h.useRef(null),D=h.useRef({});h.useImperativeHandle(t,()=>({focus:()=>{var G;(G=D.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let J=0;J<r;J+=1)(G=D.current[J])===null||G===void 0||G.blur()},nativeElement:z.current}));const F=G=>u?u(G):G,[V,A]=h.useState(()=>yh(F(o||"")));h.useEffect(()=>{a!==void 0&&A(yh(a))},[a]);const X=Un(G=>{A(G),_&&_(G),l&&G.length===r&&G.every(J=>J)&&G.some((J,ee)=>V[ee]!==J)&&l(G.join(""))}),q=Un((G,J)=>{let ee=Ae(V);for(let oe=0;oe<G;oe+=1)ee[oe]||(ee[oe]="");J.length<=1?ee[G]=J:ee=ee.slice(0,G).concat(yh(J)),ee=ee.slice(0,r);for(let oe=ee.length-1;oe>=0&&!ee[oe];oe-=1)ee.pop();const de=F(ee.map(oe=>oe||" ").join(""));return ee=yh(de).map((oe,ae)=>oe===" "&&!ee[ae]?ee[ae]:oe),ee}),H=(G,J)=>{var ee;const de=q(G,J),oe=Math.min(G+J.length,r-1);oe!==G&&de[G]!==void 0&&((ee=D.current[oe])===null||ee===void 0||ee.focus()),X(de)},U=G=>{var J;(J=D.current[G])===null||J===void 0||J.focus()},K={variant:f,disabled:m,status:M,mask:y,type:S,inputMode:C};return O(h.createElement("div",Object.assign({},R,{ref:z,className:ne(T,{[`${T}-sm`]:j==="small",[`${T}-lg`]:j==="large",[`${T}-rtl`]:$==="rtl"},I,N),role:"group"}),h.createElement(Qo.Provider,{value:B},Array.from({length:r}).map((G,J)=>{const ee=`otp-${J}`,de=V[J]||"";return h.createElement(h.Fragment,{key:ee},h.createElement(aD,Object.assign({ref:oe=>{D.current[J]=oe},index:J,size:j,htmlSize:1,className:`${T}-input`,onChange:H,value:de,onActiveChange:U,autoFocus:J===0&&v},K)),J<r-1&&h.createElement(cD,{separator:d,index:J,prefixCls:T}))}))))});var dD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},hD=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:dD}))},fD=h.forwardRef(hD),mD=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const pD=e=>e?h.createElement(nD,null):h.createElement(fD,null),gD={click:"onClick",hover:"onMouseOver"},vD=h.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=pD,suffix:a}=e,l=h.useContext(Xo),u=n??l,d=typeof i=="object"&&i.visible!==void 0,[f,m]=h.useState(()=>d?i.visible:!1),g=h.useRef(null);h.useEffect(()=>{d&&m(i.visible)},[d,i]);const v=a4(g),y=()=>{var L;if(u)return;f&&v();const M=!f;m(M),typeof i=="object"&&((L=i.onVisibleChange)===null||L===void 0||L.call(i,M))},S=L=>{const M=gD[r]||"",B=o(f),z={[M]:y,className:`${L}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return h.cloneElement(h.isValidElement(B)?B:h.createElement("span",null,B),z)},{className:_,prefixCls:C,inputPrefixCls:w,size:k}=e,$=mD(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:T}=h.useContext(kt),R=T("input",w),O=T("input-password",C),N=i&&S(O),I=ne(O,_,{[`${O}-${k}`]:!!k}),j=Object.assign(Object.assign({},rr($,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:I,prefixCls:R,suffix:h.createElement(h.Fragment,null,N,a)});return k&&(j.size=k),h.createElement(Sm,Object.assign({ref:gi(t,g)},j))});var yD=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const bD=h.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:l=!1,addonAfter:u,loading:d,disabled:f,onSearch:m,onChange:g,onCompositionStart:v,onCompositionEnd:y,variant:S,onPressEnter:_}=e,C=yD(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:w,direction:k}=h.useContext(kt),$=h.useRef(!1),T=w("input-search",n),R=w("input",r),{compactSize:O}=Wa(T,k),N=Xi(K=>{var G;return(G=o??O)!==null&&G!==void 0?G:K}),I=h.useRef(null),j=K=>{K!=null&&K.target&&K.type==="click"&&m&&m(K.target.value,K,{source:"clear"}),g==null||g(K)},L=K=>{var G;document.activeElement===((G=I.current)===null||G===void 0?void 0:G.input)&&K.preventDefault()},M=K=>{var G,J;m&&m((J=(G=I.current)===null||G===void 0?void 0:G.input)===null||J===void 0?void 0:J.value,K,{source:"input"})},B=K=>{$.current||d||(_==null||_(K),M(K))},z=typeof l=="boolean"?h.createElement(h$,null):null,D=`${T}-button`;let F;const V=l||{},A=V.type&&V.type.__ANT_BUTTON===!0;A||V.type==="button"?F=Xr(V,Object.assign({onMouseDown:L,onClick:K=>{var G,J;(J=(G=V==null?void 0:V.props)===null||G===void 0?void 0:G.onClick)===null||J===void 0||J.call(G,K),M(K)},key:"enterButton"},A?{className:D,size:N}:{})):F=h.createElement(Gn,{className:D,color:l?"primary":"default",size:N,disabled:f,key:"enterButton",onMouseDown:L,onClick:M,loading:d,icon:z,variant:S==="borderless"||S==="filled"||S==="underlined"?"text":l?"solid":void 0},l),u&&(F=[F,Xr(u,{key:"addonAfter"})]);const X=ne(T,{[`${T}-rtl`]:k==="rtl",[`${T}-${N}`]:!!N,[`${T}-with-button`]:!!l},i),q=K=>{$.current=!0,v==null||v(K)},H=K=>{$.current=!1,y==null||y(K)},U=Object.assign(Object.assign({},C),{className:X,prefixCls:R,type:"search",size:N,variant:S,onPressEnter:B,onCompositionStart:q,onCompositionEnd:H,addonAfter:F,suffix:a,onChange:j,disabled:f,_skipAddonWarning:!0});return h.createElement(Sm,Object.assign({ref:gi(I,t)},U))});var _D=`
|
|
299
|
-
min-height:0 !important;
|
|
300
|
-
max-height:none !important;
|
|
301
|
-
height:0 !important;
|
|
302
|
-
visibility:hidden !important;
|
|
303
|
-
overflow:hidden !important;
|
|
304
|
-
position:absolute !important;
|
|
305
|
-
z-index:-1000 !important;
|
|
306
|
-
top:0 !important;
|
|
307
|
-
right:0 !important;
|
|
308
|
-
pointer-events: none !important;
|
|
309
|
-
`,SD=["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"],Wg={},Fi;function CD(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&&Wg[n])return Wg[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=SD.map(function(d){return"".concat(d,":").concat(r.getPropertyValue(d))}).join(";"),u={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(Wg[n]=u),u}function wD(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;Fi||(Fi=document.createElement("textarea"),Fi.setAttribute("tab-index","-1"),Fi.setAttribute("aria-hidden","true"),Fi.setAttribute("name","hiddenTextarea"),document.body.appendChild(Fi)),e.getAttribute("wrap")?Fi.setAttribute("wrap",e.getAttribute("wrap")):Fi.removeAttribute("wrap");var i=CD(e,t),o=i.paddingSize,a=i.borderSize,l=i.boxSizing,u=i.sizingStyle;Fi.setAttribute("style","".concat(u,";").concat(_D)),Fi.value=e.value||e.placeholder||"";var d=void 0,f=void 0,m,g=Fi.scrollHeight;if(l==="border-box"?g+=a:l==="content-box"&&(g-=o),n!==null||r!==null){Fi.value=" ";var v=Fi.scrollHeight-o;n!==null&&(d=v*n,l==="border-box"&&(d=d+o+a),g=Math.max(d,g)),r!==null&&(f=v*r,l==="border-box"&&(f=f+o+a),m=g>f?"":"hidden",g=Math.min(f,g))}var y={height:g,overflowY:m,resize:"none"};return d&&(y.minHeight=d),f&&(y.maxHeight=f),y}var xD=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Vg=0,Ug=1,qg=2,ED=h.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,l=n.onResize,u=n.className,d=n.style,f=n.disabled,m=n.onChange;n.onInternalAutoSize;var g=Bt(n,xD),v=Xn(i,{value:o,postState:function(K){return K??""}}),y=le(v,2),S=y[0],_=y[1],C=function(K){_(K.target.value),m==null||m(K)},w=h.useRef();h.useImperativeHandle(t,function(){return{textArea:w.current}});var k=h.useMemo(function(){return a&&St(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),$=le(k,2),T=$[0],R=$[1],O=!!a,N=h.useState(qg),I=le(N,2),j=I[0],L=I[1],M=h.useState(),B=le(M,2),z=B[0],D=B[1],F=function(){L(Vg)};fn(function(){O&&F()},[o,T,R,O]),fn(function(){if(j===Vg)L(Ug);else if(j===Ug){var U=wD(w.current,!1,T,R);L(qg),D(U)}},[j]);var V=h.useRef(),A=function(){kn.cancel(V.current)},X=function(K){j===qg&&(l==null||l(K),a&&(A(),V.current=kn(function(){F()})))};h.useEffect(function(){return A},[]);var q=O?z:null,H=Z(Z({},d),q);return(j===Vg||j===Ug)&&(H.overflowY="hidden",H.overflowX="hidden"),h.createElement(ho,{onResize:X,disabled:!(a||l)},h.createElement("textarea",$e({},g,{ref:w,style:H,className:ne(r,u,Y({},"".concat(r,"-disabled"),f)),disabled:f,value:S,onChange:C})))}),kD=["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"],$D=Q.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,l=e.onChange,u=e.allowClear,d=e.maxLength,f=e.onCompositionStart,m=e.onCompositionEnd,g=e.suffix,v=e.prefixCls,y=v===void 0?"rc-textarea":v,S=e.showCount,_=e.count,C=e.className,w=e.style,k=e.disabled,$=e.hidden,T=e.classNames,R=e.styles,O=e.onResize,N=e.onClear,I=e.onPressEnter,j=e.readOnly,L=e.autoSize,M=e.onKeyDown,B=Bt(e,kD),z=Xn(r,{value:i,defaultValue:r}),D=le(z,2),F=D[0],V=D[1],A=F==null?"":String(F),X=Q.useState(!1),q=le(X,2),H=q[0],U=q[1],K=Q.useRef(!1),G=Q.useState(null),J=le(G,2),ee=J[0],de=J[1],oe=h.useRef(null),ae=h.useRef(null),_e=function(){var Le;return(Le=ae.current)===null||Le===void 0?void 0:Le.textArea},se=function(){_e().focus()};h.useImperativeHandle(t,function(){var rt;return{resizableTextArea:ae.current,focus:se,blur:function(){_e().blur()},nativeElement:((rt=oe.current)===null||rt===void 0?void 0:rt.nativeElement)||_e()}}),h.useEffect(function(){U(function(rt){return!k&&rt})},[k]);var ce=Q.useState(null),he=le(ce,2),ve=he[0],me=he[1];Q.useEffect(function(){if(ve){var rt;(rt=_e()).setSelectionRange.apply(rt,Ae(ve))}},[ve]);var fe=o4(_,S),ye=(n=fe.max)!==null&&n!==void 0?n:d,xe=Number(ye)>0,Ee=fe.strategy(A),Ne=!!ye&&Ee>ye,Te=function(Le,ot){var ze=ot;!K.current&&fe.exceedFormatter&&fe.max&&fe.strategy(ot)>fe.max&&(ze=fe.exceedFormatter(ot,{max:fe.max}),ot!==ze&&me([_e().selectionStart||0,_e().selectionEnd||0])),V(ze),_f(Le.currentTarget,Le,l,ze)},Pe=function(Le){K.current=!0,f==null||f(Le)},ke=function(Le){K.current=!1,Te(Le,Le.currentTarget.value),m==null||m(Le)},Ce=function(Le){Te(Le,Le.target.value)},Ve=function(Le){Le.key==="Enter"&&I&&I(Le),M==null||M(Le)},Ze=function(Le){U(!0),o==null||o(Le)},_t=function(Le){U(!1),a==null||a(Le)},nt=function(Le){V(""),se(),_f(_e(),Le,l)},Ye=g,mt;fe.show&&(fe.showFormatter?mt=fe.showFormatter({value:A,count:Ee,maxLength:ye}):mt="".concat(Ee).concat(xe?" / ".concat(ye):""),Ye=Q.createElement(Q.Fragment,null,Ye,Q.createElement("span",{className:ne("".concat(y,"-data-count"),T==null?void 0:T.count),style:R==null?void 0:R.count},mt)));var Je=function(Le){var ot;O==null||O(Le),(ot=_e())!==null&&ot!==void 0&&ot.style.height&&de(!0)},yt=!L&&!S&&!u;return Q.createElement(i4,{ref:oe,value:A,allowClear:u,handleReset:nt,suffix:Ye,prefixCls:y,classNames:Z(Z({},T),{},{affixWrapper:ne(T==null?void 0:T.affixWrapper,Y(Y({},"".concat(y,"-show-count"),S),"".concat(y,"-textarea-allow-clear"),u))}),disabled:k,focused:H,className:ne(C,Ne&&"".concat(y,"-out-of-range")),style:Z(Z({},w),ee&&!yt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof mt=="string"?mt:void 0}},hidden:$,readOnly:j,onClear:N},Q.createElement(ED,$e({},B,{autoSize:L,maxLength:d,onKeyDown:Ve,onChange:Ce,onFocus:Ze,onBlur:_t,onCompositionStart:Pe,onCompositionEnd:ke,className:ne(T==null?void 0:T.textarea),style:Z(Z({},R==null?void 0:R.textarea),{},{resize:w==null?void 0:w.resize}),disabled:k,prefixCls:y,onResize:Je,ref:ae,readOnly:j})))});const RD=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
310
|
-
&-allow-clear > ${t},
|
|
311
|
-
&-affix-wrapper${r}-has-feedback ${t}
|
|
312
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},TD=vn(["Input","TextArea"],e=>{const t=Jt(e,nd(e));return RD(t)},rd,{resetFont:!1});var PD=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const v4=h.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:o,disabled:a,status:l,allowClear:u,classNames:d,rootClassName:f,className:m,style:g,styles:v,variant:y,showCount:S,onMouseDown:_,onResize:C}=e,w=PD(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:k,direction:$,allowClear:T,autoComplete:R,className:O,style:N,classNames:I,styles:j}=Dr("textArea"),L=h.useContext(Xo),M=a??L,{status:B,hasFeedback:z,feedbackIcon:D}=h.useContext(Qo),F=hm(B,l),V=h.useRef(null);h.useImperativeHandle(t,()=>{var fe;return{resizableTextArea:(fe=V.current)===null||fe===void 0?void 0:fe.resizableTextArea,focus:ye=>{var xe,Ee;r4((Ee=(xe=V.current)===null||xe===void 0?void 0:xe.resizableTextArea)===null||Ee===void 0?void 0:Ee.textArea,ye)},blur:()=>{var ye;return(ye=V.current)===null||ye===void 0?void 0:ye.blur()}}});const A=k("input",r),X=go(A),[q,H,U]=K$(A,f),[K]=TD(A,X),{compactSize:G,compactItemClassnames:J}=Wa(A,$),ee=Xi(fe=>{var ye;return(ye=o??G)!==null&&ye!==void 0?ye:fe}),[de,oe]=Xy("textArea",y,i),ae=s4(u??T),[_e,se]=h.useState(!1),[ce,he]=h.useState(!1),ve=fe=>{se(!0),_==null||_(fe);const ye=()=>{se(!1),document.removeEventListener("mouseup",ye)};document.addEventListener("mouseup",ye)},me=fe=>{var ye,xe;if(C==null||C(fe),_e&&typeof getComputedStyle=="function"){const Ee=(xe=(ye=V.current)===null||ye===void 0?void 0:ye.nativeElement)===null||xe===void 0?void 0:xe.querySelector("textarea");Ee&&getComputedStyle(Ee).resize==="both"&&he(!0)}};return q(K(h.createElement($D,Object.assign({autoComplete:R},w,{style:Object.assign(Object.assign({},N),g),styles:Object.assign(Object.assign({},j),v),disabled:M,allowClear:ae,className:ne(U,X,m,f,J,O,ce&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),I),{textarea:ne({[`${A}-sm`]:ee==="small",[`${A}-lg`]:ee==="large"},H,d==null?void 0:d.textarea,I.textarea,_e&&`${A}-mouse-active`),variant:ne({[`${A}-${de}`]:oe},pf(A,F)),affixWrapper:ne(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:$==="rtl",[`${A}-affix-wrapper-sm`]:ee==="small",[`${A}-affix-wrapper-lg`]:ee==="large",[`${A}-textarea-show-count`]:S||((n=e.count)===null||n===void 0?void 0:n.show)},H)}),prefixCls:A,suffix:z&&h.createElement("span",{className:`${A}-textarea-suffix`},D),showCount:S,ref:V,onResize:me,onMouseDown:ve}))))}),hc=Sm;hc.Group=rD;hc.Search=bD;hc.TextArea=v4;hc.Password=vD;hc.OTP=uD;function OD(e,t,n){return typeof n=="boolean"?n:e.length?!0:pi(t).some(i=>i.type===D$)}var y4=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Cm({suffixCls:e,tagName:t,displayName:n}){return r=>h.forwardRef((o,a)=>h.createElement(r,Object.assign({ref:a,suffixCls:e,tagName:t},o)))}const pb=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=y4(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=h.useContext(kt),u=l("layout",n),[d,f,m]=A$(u),g=r?`${u}-${r}`:u;return d(h.createElement(o,Object.assign({className:ne(n||g,i,f,m),ref:t},a)))}),ID=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(kt),[r,i]=h.useState([]),{prefixCls:o,className:a,rootClassName:l,children:u,hasSider:d,tagName:f,style:m}=e,g=y4(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=rr(g,["suffixCls"]),{getPrefixCls:y,className:S,style:_}=Dr("layout"),C=y("layout",o),w=OD(r,u,d),[k,$,T]=A$(C),R=ne(C,{[`${C}-has-sider`]:w,[`${C}-rtl`]:n==="rtl"},S,a,l,$,T),O=h.useMemo(()=>({siderHook:{addSider:N=>{i(I=>[].concat(Ae(I),[N]))},removeSider:N=>{i(I=>I.filter(j=>j!==N))}}}),[]);return k(h.createElement(z$.Provider,{value:O},h.createElement(f,Object.assign({ref:t,className:R,style:Object.assign(Object.assign({},_),m)},v),u)))}),ND=Cm({tagName:"div",displayName:"Layout"})(ID),MD=Cm({suffixCls:"header",tagName:"header",displayName:"Header"})(pb),jD=Cm({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(pb),zD=Cm({suffixCls:"content",tagName:"main",displayName:"Content"})(pb),Js=ND;Js.Header=MD;Js.Footer=jD;Js.Content=zD;Js.Sider=D$;Js._InternalSiderContext=vm;var BD={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"},LD=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:BD}))},Xw=h.forwardRef(LD),AD={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"},DD=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:AD}))},Yw=h.forwardRef(DD),HD={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:"页码"},FD=[10,20,50,100],WD=function(t){var n=t.pageSizeOptions,r=n===void 0?FD:n,i=t.locale,o=t.changeSize,a=t.pageSize,l=t.goButton,u=t.quickGo,d=t.rootPrefixCls,f=t.disabled,m=t.buildOptionText,g=t.showSizeChanger,v=t.sizeChangerRender,y=Q.useState(""),S=le(y,2),_=S[0],C=S[1],w=function(){return!_||Number.isNaN(_)?void 0:Number(_)},k=typeof m=="function"?m:function(M){return"".concat(M," ").concat(i.items_per_page)},$=function(B){C(B.target.value)},T=function(B){l||_===""||(C(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&(u==null||u(w())))},R=function(B){_!==""&&(B.keyCode===Xe.ENTER||B.type==="click")&&(C(""),u==null||u(w()))},O=function(){return r.some(function(B){return B.toString()===a.toString()})?r:r.concat([a]).sort(function(B,z){var D=Number.isNaN(Number(B))?0:Number(B),F=Number.isNaN(Number(z))?0:Number(z);return D-F})},N="".concat(d,"-options");if(!g&&!u)return null;var I=null,j=null,L=null;return g&&v&&(I=v({disabled:f,size:a,onSizeChange:function(B){o==null||o(Number(B))},"aria-label":i.page_size,className:"".concat(N,"-size-changer"),options:O().map(function(M){return{label:k(M),value:M}})})),u&&(l&&(L=typeof l=="boolean"?Q.createElement("button",{type:"button",onClick:R,onKeyUp:R,disabled:f,className:"".concat(N,"-quick-jumper-button")},i.jump_to_confirm):Q.createElement("span",{onClick:R,onKeyUp:R},l)),j=Q.createElement("div",{className:"".concat(N,"-quick-jumper")},i.jump_to,Q.createElement("input",{disabled:f,type:"text",value:_,onChange:$,onKeyUp:R,onBlur:T,"aria-label":i.page}),i.page,L)),Q.createElement("li",{className:N},I,j)},Kc=function(t){var n=t.rootPrefixCls,r=t.page,i=t.active,o=t.className,a=t.showTitle,l=t.onClick,u=t.onKeyPress,d=t.itemRender,f="".concat(n,"-item"),m=ne(f,"".concat(f,"-").concat(r),Y(Y({},"".concat(f,"-active"),i),"".concat(f,"-disabled"),!r),o),g=function(){l(r)},v=function(_){u(_,l,r)},y=d(r,"page",Q.createElement("a",{rel:"nofollow"},r));return y?Q.createElement("li",{title:a?String(r):null,className:m,onClick:g,onKeyDown:v,tabIndex:0},y):null},VD=function(t,n,r){return r};function Jw(){}function Qw(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ya(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var UD=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,i=t.selectPrefixCls,o=i===void 0?"rc-select":i,a=t.className,l=t.current,u=t.defaultCurrent,d=u===void 0?1:u,f=t.total,m=f===void 0?0:f,g=t.pageSize,v=t.defaultPageSize,y=v===void 0?10:v,S=t.onChange,_=S===void 0?Jw:S,C=t.hideOnSinglePage,w=t.align,k=t.showPrevNextJumpers,$=k===void 0?!0:k,T=t.showQuickJumper,R=t.showLessItems,O=t.showTitle,N=O===void 0?!0:O,I=t.onShowSizeChange,j=I===void 0?Jw:I,L=t.locale,M=L===void 0?HD:L,B=t.style,z=t.totalBoundaryShowSizeChanger,D=z===void 0?50:z,F=t.disabled,V=t.simple,A=t.showTotal,X=t.showSizeChanger,q=X===void 0?m>D:X,H=t.sizeChangerRender,U=t.pageSizeOptions,K=t.itemRender,G=K===void 0?VD:K,J=t.jumpPrevIcon,ee=t.jumpNextIcon,de=t.prevIcon,oe=t.nextIcon,ae=Q.useRef(null),_e=Xn(10,{value:g,defaultValue:y}),se=le(_e,2),ce=se[0],he=se[1],ve=Xn(1,{value:l,defaultValue:d,postState:function(vt){return Math.max(1,Math.min(vt,ya(void 0,ce,m)))}}),me=le(ve,2),fe=me[0],ye=me[1],xe=Q.useState(fe),Ee=le(xe,2),Ne=Ee[0],Te=Ee[1];h.useEffect(function(){Te(fe)},[fe]);var Pe=Math.max(1,fe-(R?3:5)),ke=Math.min(ya(void 0,ce,m),fe+(R?3:5));function Ce(Ge,vt){var Nt=Ge||Q.createElement("button",{type:"button","aria-label":vt,className:"".concat(r,"-item-link")});return typeof Ge=="function"&&(Nt=Q.createElement(Ge,Z({},t))),Nt}function Ve(Ge){var vt=Ge.target.value,Nt=ya(void 0,ce,m),yn;return vt===""?yn=vt:Number.isNaN(Number(vt))?yn=Ne:vt>=Nt?yn=Nt:yn=Number(vt),yn}function Ze(Ge){return Qw(Ge)&&Ge!==fe&&Qw(m)&&m>0}var _t=m>ce?T:!1;function nt(Ge){(Ge.keyCode===Xe.UP||Ge.keyCode===Xe.DOWN)&&Ge.preventDefault()}function Ye(Ge){var vt=Ve(Ge);switch(vt!==Ne&&Te(vt),Ge.keyCode){case Xe.ENTER:yt(vt);break;case Xe.UP:yt(vt-1);break;case Xe.DOWN:yt(vt+1);break}}function mt(Ge){yt(Ve(Ge))}function Je(Ge){var vt=ya(Ge,ce,m),Nt=fe>vt&&vt!==0?vt:fe;he(Ge),Te(Nt),j==null||j(fe,Ge),ye(Nt),_==null||_(Nt,Ge)}function yt(Ge){if(Ze(Ge)&&!F){var vt=ya(void 0,ce,m),Nt=Ge;return Ge>vt?Nt=vt:Ge<1&&(Nt=1),Nt!==Ne&&Te(Nt),ye(Nt),_==null||_(Nt,ce),Nt}return fe}var rt=fe>1,Le=fe<ya(void 0,ce,m);function ot(){rt&&yt(fe-1)}function ze(){Le&&yt(fe+1)}function Ke(){yt(Pe)}function It(){yt(ke)}function Ct(Ge,vt){if(Ge.key==="Enter"||Ge.charCode===Xe.ENTER||Ge.keyCode===Xe.ENTER){for(var Nt=arguments.length,yn=new Array(Nt>2?Nt-2:0),lr=2;lr<Nt;lr++)yn[lr-2]=arguments[lr];vt.apply(void 0,yn)}}function nn(Ge){Ct(Ge,ot)}function Qt(Ge){Ct(Ge,ze)}function Sn(Ge){Ct(Ge,Ke)}function In(Ge){Ct(Ge,It)}function on(Ge){var vt=G(Ge,"prev",Ce(de,"prev page"));return Q.isValidElement(vt)?Q.cloneElement(vt,{disabled:!rt}):vt}function Ht(Ge){var vt=G(Ge,"next",Ce(oe,"next page"));return Q.isValidElement(vt)?Q.cloneElement(vt,{disabled:!Le}):vt}function Tt(Ge){(Ge.type==="click"||Ge.keyCode===Xe.ENTER)&&yt(Ne)}var sn=null,Xt=Ni(t,{aria:!0,data:!0}),at=A&&Q.createElement("li",{className:"".concat(r,"-total-text")},A(m,[m===0?0:(fe-1)*ce+1,fe*ce>m?m:fe*ce])),$t=null,pt=ya(void 0,ce,m);if(C&&m<=ce)return null;var Me=[],Oe={rootPrefixCls:r,onClick:yt,onKeyPress:Ct,showTitle:N,itemRender:G,page:-1},Re=fe-1>0?fe-1:0,De=fe+1<pt?fe+1:pt,tt=T&&T.goButton,it=St(V)==="object"?V.readOnly:!V,Wt=tt,Kt=null;V&&(tt&&(typeof tt=="boolean"?Wt=Q.createElement("button",{type:"button",onClick:Tt,onKeyUp:Tt},M.jump_to_confirm):Wt=Q.createElement("span",{onClick:Tt,onKeyUp:Tt},tt),Wt=Q.createElement("li",{title:N?"".concat(M.jump_to).concat(fe,"/").concat(pt):null,className:"".concat(r,"-simple-pager")},Wt)),Kt=Q.createElement("li",{title:N?"".concat(fe,"/").concat(pt):null,className:"".concat(r,"-simple-pager")},it?Ne:Q.createElement("input",{type:"text","aria-label":M.jump_to,value:Ne,disabled:F,onKeyDown:nt,onKeyUp:Ye,onChange:Ye,onBlur:mt,size:3}),Q.createElement("span",{className:"".concat(r,"-slash")},"/"),pt));var Lt=R?1:2;if(pt<=3+Lt*2){pt||Me.push(Q.createElement(Kc,$e({},Oe,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var At=1;At<=pt;At+=1)Me.push(Q.createElement(Kc,$e({},Oe,{key:At,page:At,active:fe===At})))}else{var Pn=R?M.prev_3:M.prev_5,$n=R?M.next_3:M.next_5,Nn=G(Pe,"jump-prev",Ce(J,"prev page")),Hn=G(ke,"jump-next",Ce(ee,"next page"));$&&(sn=Nn?Q.createElement("li",{title:N?Pn:null,key:"prev",onClick:Ke,tabIndex:0,onKeyDown:Sn,className:ne("".concat(r,"-jump-prev"),Y({},"".concat(r,"-jump-prev-custom-icon"),!!J))},Nn):null,$t=Hn?Q.createElement("li",{title:N?$n:null,key:"next",onClick:It,tabIndex:0,onKeyDown:In,className:ne("".concat(r,"-jump-next"),Y({},"".concat(r,"-jump-next-custom-icon"),!!ee))},Hn):null);var cn=Math.max(1,fe-Lt),pn=Math.min(fe+Lt,pt);fe-1<=Lt&&(pn=1+Lt*2),pt-fe<=Lt&&(cn=pt-Lt*2);for(var Fe=cn;Fe<=pn;Fe+=1)Me.push(Q.createElement(Kc,$e({},Oe,{key:Fe,page:Fe,active:fe===Fe})));if(fe-1>=Lt*2&&fe!==3&&(Me[0]=Q.cloneElement(Me[0],{className:ne("".concat(r,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(sn)),pt-fe>=Lt*2&&fe!==pt-2){var Qe=Me[Me.length-1];Me[Me.length-1]=Q.cloneElement(Qe,{className:ne("".concat(r,"-item-before-jump-next"),Qe.props.className)}),Me.push($t)}cn!==1&&Me.unshift(Q.createElement(Kc,$e({},Oe,{key:1,page:1}))),pn!==pt&&Me.push(Q.createElement(Kc,$e({},Oe,{key:pt,page:pt})))}var Ot=on(Re);if(Ot){var gt=!rt||!pt;Ot=Q.createElement("li",{title:N?M.prev_page:null,onClick:ot,tabIndex:gt?null:0,onKeyDown:nn,className:ne("".concat(r,"-prev"),Y({},"".concat(r,"-disabled"),gt)),"aria-disabled":gt},Ot)}var ct=Ht(De);if(ct){var et,Pt;V?(et=!Le,Pt=rt?0:null):(et=!Le||!pt,Pt=et?null:0),ct=Q.createElement("li",{title:N?M.next_page:null,onClick:ze,tabIndex:Pt,onKeyDown:Qt,className:ne("".concat(r,"-next"),Y({},"".concat(r,"-disabled"),et)),"aria-disabled":et},ct)}var Gt=ne(r,a,Y(Y(Y(Y(Y({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),V),"".concat(r,"-disabled"),F));return Q.createElement("ul",$e({className:Gt,style:B,ref:ae},Xt),at,Ot,V?Kt:Me,ct,Q.createElement(WD,{locale:M,rootPrefixCls:r,disabled:F,selectPrefixCls:o,changeSize:Je,pageSize:ce,pageSizeOptions:U,quickGo:_t?yt:null,goButton:Wt,showSizeChanger:q,sizeChangerRender:H}))};const qD=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}}}}},KD=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:re(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:re(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
313
|
-
&${t}-mini ${t}-prev ${t}-item-link,
|
|
314
|
-
&${t}-mini ${t}-next ${t}-item-link
|
|
315
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:re(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM),input:Object.assign(Object.assign({},ub(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},GD=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:re(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:re(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 ${re(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${re(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:`${re(e.inputOutlineOffset)} 0 ${re(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:re(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:re(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},XD=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
316
|
-
${t}-prev,
|
|
317
|
-
${t}-jump-prev,
|
|
318
|
-
${t}-jump-next
|
|
319
|
-
`]:{marginInlineEnd:e.marginXS},[`
|
|
320
|
-
${t}-prev,
|
|
321
|
-
${t}-next,
|
|
322
|
-
${t}-jump-prev,
|
|
323
|
-
${t}-jump-next
|
|
324
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:re(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:`${re(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:re(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},db(e)),cb(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},bm(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},YD=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:re(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${re(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${re(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}}}}},JD=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qn(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:re(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),YD(e)),XD(e)),GD(e)),KD(e)),qD(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"}}},QD=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},po(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ia(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ia(e)}}}},b4=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},rd(e)),_4=e=>Jt(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"},nd(e)),ZD=vn("Pagination",e=>{const t=_4(e);return[JD(t),QD(t)]},b4),eH=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:`${re(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}}}}},tH=Vu(["Pagination","bordered"],e=>{const t=_4(e);return eH(t)},b4);function Zw(e){return h.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var nH=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const rH=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:a,size:l,locale:u,responsive:d,showSizeChanger:f,selectComponentClass:m,pageSizeOptions:g}=e,v=nH(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:y}=Yy(d),[,S]=vi(),{getPrefixCls:_,direction:C,showSizeChanger:w,className:k,style:$}=Dr("pagination"),T=_("pagination",n),[R,O,N]=ZD(T),I=Xi(l),j=I==="small"||!!(y&&!I&&d),[L]=_s("Pagination",aE),M=Object.assign(Object.assign({},L),u),[B,z]=Zw(f),[D,F]=Zw(w),V=B??D,A=z??F,X=m||Ua,q=h.useMemo(()=>g?g.map(ee=>Number(ee)):void 0,[g]),H=ee=>{var de;const{disabled:oe,size:ae,onSizeChange:_e,"aria-label":se,className:ce,options:he}=ee,{className:ve,onChange:me}=A||{},fe=(de=he.find(ye=>String(ye.value)===String(ae)))===null||de===void 0?void 0:de.value;return h.createElement(X,Object.assign({disabled:oe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ye=>ye.parentNode,"aria-label":se,options:he},A,{value:fe,onChange:(ye,xe)=>{_e==null||_e(ye),me==null||me(ye,xe)},size:j?"small":"middle",className:ne(ce,ve)}))},U=h.useMemo(()=>{const ee=h.createElement("span",{className:`${T}-item-ellipsis`},"•••"),de=h.createElement("button",{className:`${T}-item-link`,type:"button",tabIndex:-1},C==="rtl"?h.createElement(Ui,null):h.createElement(Iu,null)),oe=h.createElement("button",{className:`${T}-item-link`,type:"button",tabIndex:-1},C==="rtl"?h.createElement(Iu,null):h.createElement(Ui,null)),ae=h.createElement("a",{className:`${T}-item-link`},h.createElement("div",{className:`${T}-item-container`},C==="rtl"?h.createElement(Yw,{className:`${T}-item-link-icon`}):h.createElement(Xw,{className:`${T}-item-link-icon`}),ee)),_e=h.createElement("a",{className:`${T}-item-link`},h.createElement("div",{className:`${T}-item-container`},C==="rtl"?h.createElement(Xw,{className:`${T}-item-link-icon`}):h.createElement(Yw,{className:`${T}-item-link-icon`}),ee));return{prevIcon:de,nextIcon:oe,jumpPrevIcon:ae,jumpNextIcon:_e}},[C,T]),K=_("select",r),G=ne({[`${T}-${t}`]:!!t,[`${T}-mini`]:j,[`${T}-rtl`]:C==="rtl",[`${T}-bordered`]:S.wireframe},k,i,o,O,N),J=Object.assign(Object.assign({},$),a);return R(h.createElement(h.Fragment,null,S.wireframe&&h.createElement(tH,{prefixCls:T}),h.createElement(UD,Object.assign({},U,v,{style:J,prefixCls:T,selectPrefixCls:K,className:G,locale:M,pageSizeOptions:q,showSizeChanger:V,sizeChangerRender:H}))))},Sf=100,S4=Sf/5,C4=Sf/2-S4/2,Kg=C4*2*Math.PI,ex=50,tx=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return h.createElement("circle",{className:ne(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:C4,cx:ex,cy:ex,strokeWidth:S4,style:n})},iH=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[o,a]=h.useState(!1);fn(()=>{e!==0&&a(!0)},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!o)return null;const u={strokeDashoffset:`${Kg/4}`,strokeDasharray:`${Kg*l/100} ${Kg*(100-l)/100}`};return h.createElement("span",{className:ne(r,`${n}-progress`,l<=0&&i)},h.createElement("svg",{viewBox:`0 0 ${Sf} ${Sf}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},h.createElement(tx,{dotClassName:n,hasCircleCls:!0}),h.createElement(tx,{dotClassName:n,style:u})))};function oH(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return h.createElement(h.Fragment,null,h.createElement("span",{className:ne(i,n>0&&o)},h.createElement("span",{className:ne(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>h.createElement("i",{className:`${t}-dot-item`,key:a})))),h.createElement(iH,{prefixCls:t,percent:n}))}function sH(e){var t;const{prefixCls:n,indicator:r,percent:i}=e,o=`${n}-dot`;return r&&h.isValidElement(r)?Xr(r,{className:ne((t=r.props)===null||t===void 0?void 0:t.className,o),percent:i}):h.createElement(oH,{prefixCls:n,percent:i})}const aH=new Yt("antSpinMove",{to:{opacity:1}}),lH=new Yt("antRotate",{to:{transform:"rotate(405deg)"}}),cH=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},qn(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:aH,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:lH,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"}})}},uH=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},dH=vn("Spin",e=>{const t=Jt(e,{spinDotDefault:e.colorTextDescription});return cH(t)},uH),hH=200,nx=[[30,.05],[70,.03],[96,.01]];function fH(e,t){const[n,r]=h.useState(0),i=h.useRef(null),o=t==="auto";return h.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const l=100-a;for(let u=0;u<nx.length;u+=1){const[d,f]=nx[u];if(a<=d)return a+l*f}return a})},hH)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[o,e]),o?n:t}var mH=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let w4;function pH(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const ja=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:a,size:l="default",tip:u,wrapperClassName:d,style:f,children:m,fullscreen:g=!1,indicator:v,percent:y}=e,S=mH(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:_,direction:C,className:w,style:k,indicator:$}=Dr("spin"),T=_("spin",n),[R,O,N]=dH(T),[I,j]=h.useState(()=>r&&!pH(r,i)),L=fH(I,y);h.useEffect(()=>{if(r){const A=nA(i,()=>{j(!0)});return A(),()=>{var X;(X=A==null?void 0:A.cancel)===null||X===void 0||X.call(A)}}j(!1)},[i,r]);const M=h.useMemo(()=>typeof m<"u"&&!g,[m,g]),B=ne(T,w,{[`${T}-sm`]:l==="small",[`${T}-lg`]:l==="large",[`${T}-spinning`]:I,[`${T}-show-text`]:!!u,[`${T}-rtl`]:C==="rtl"},o,!g&&a,O,N),z=ne(`${T}-container`,{[`${T}-blur`]:I}),D=(t=v??$)!==null&&t!==void 0?t:w4,F=Object.assign(Object.assign({},k),f),V=h.createElement("div",Object.assign({},S,{style:F,className:B,"aria-live":"polite","aria-busy":I}),h.createElement(sH,{prefixCls:T,indicator:D,percent:L}),u&&(M||g)?h.createElement("div",{className:`${T}-text`},u):null);return R(M?h.createElement("div",Object.assign({},S,{className:ne(`${T}-nested-loading`,d,O,N)}),I&&h.createElement("div",{key:"loading"},V),h.createElement("div",{className:z,key:"container"},m)):g?h.createElement("div",{className:ne(`${T}-fullscreen`,{[`${T}-fullscreen-show`]:I},a,O,N)},V):V)};ja.setDefaultIndicator=e=>{w4=e};const gb=Q.createContext({});gb.Consumer;var x4=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const gH=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=x4(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=h.useContext(kt),u=l("list",t),d=ne(`${u}-item-meta`,n),f=Q.createElement("div",{className:`${u}-item-meta-content`},i&&Q.createElement("h4",{className:`${u}-item-meta-title`},i),o&&Q.createElement("div",{className:`${u}-item-meta-description`},o));return Q.createElement("div",Object.assign({},a,{className:d}),r&&Q.createElement("div",{className:`${u}-item-meta-avatar`},r),(i||o)&&f)},vH=Q.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:o,styles:a,className:l,classNames:u,colStyle:d}=e,f=x4(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:m,itemLayout:g}=h.useContext(gb),{getPrefixCls:v,list:y}=h.useContext(kt),S=O=>{var N,I;return ne((I=(N=y==null?void 0:y.item)===null||N===void 0?void 0:N.classNames)===null||I===void 0?void 0:I[O],u==null?void 0:u[O])},_=O=>{var N,I;return Object.assign(Object.assign({},(I=(N=y==null?void 0:y.item)===null||N===void 0?void 0:N.styles)===null||I===void 0?void 0:I[O]),a==null?void 0:a[O])},C=()=>{let O=!1;return h.Children.forEach(r,N=>{typeof N=="string"&&(O=!0)}),O&&h.Children.count(r)>1},w=()=>g==="vertical"?!!o:!C(),k=v("list",n),$=i&&i.length>0&&Q.createElement("ul",{className:ne(`${k}-item-action`,S("actions")),key:"actions",style:_("actions")},i.map((O,N)=>Q.createElement("li",{key:`${k}-item-action-${N}`},O,N!==i.length-1&&Q.createElement("em",{className:`${k}-item-action-split`})))),T=m?"div":"li",R=Q.createElement(T,Object.assign({},f,m?{}:{ref:t},{className:ne(`${k}-item`,{[`${k}-item-no-flex`]:!w()},l)}),g==="vertical"&&o?[Q.createElement("div",{className:`${k}-item-main`,key:"content"},r,$),Q.createElement("div",{className:ne(`${k}-item-extra`,S("extra")),key:"extra",style:_("extra")},o)]:[r,$,Xr(o,{key:"extra"})]);return m?Q.createElement(dA,{ref:t,flex:1,style:d},R):R}),E4=vH;E4.Meta=gH;const yH=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:o,itemPaddingLG:a,marginLG:l,borderRadiusLG:u}=e,d=re(e.calc(u).sub(e.lineWidth).equal());return{[t]:{border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:u,[`${n}-header`]:{borderRadius:`${d} ${d} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${d} ${d}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${re(i)} ${re(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},bH=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:o,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${re(a)}`}}}}}},_H=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:o,marginLG:a,padding:l,itemPadding:u,colorPrimary:d,itemPaddingSM:f,itemPaddingLG:m,paddingXS:g,margin:v,colorText:y,colorTextDescription:S,motionDurationSlow:_,lineWidth:C,headerBg:w,footerBg:k,emptyTextPadding:$,metaMarginBottom:T,avatarMarginRight:R,titleMarginBottom:O,descriptionFontSize:N}=e;return{[t]:Object.assign(Object.assign({},qn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:k},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:u,color:y,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:R},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:y},[`${t}-item-meta-title`]:{margin:`0 0 ${re(e.marginXXS)} 0`,color:y,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:y,transition:`all ${_}`,"&:hover":{color:d}}},[`${t}-item-meta-description`]:{color:S,fontSize:N,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${re(g)}`,color:S,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:C,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${re(l)} 0`,color:S,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:$,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:v,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:y,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${re(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${re(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:`${re(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:f},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},SH=e=>({contentWidth:220,itemPadding:`${re(e.paddingContentVertical)} 0`,itemPaddingSM:`${re(e.paddingContentVerticalSM)} ${re(e.paddingContentHorizontal)}`,itemPaddingLG:`${re(e.paddingContentVerticalLG)} ${re(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),CH=vn("List",e=>{const t=Jt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[_H(t),yH(t),bH(t)]},SH);var wH=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xH(e,t){const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:o=!0,className:a,rootClassName:l,style:u,children:d,itemLayout:f,loadMore:m,grid:g,dataSource:v=[],size:y,header:S,footer:_,loading:C=!1,rowKey:w,renderItem:k,locale:$}=e,T=wH(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),R=n&&typeof n=="object"?n:{},[O,N]=h.useState(R.defaultCurrent||1),[I,j]=h.useState(R.defaultPageSize||10),{getPrefixCls:L,direction:M,className:B,style:z}=Dr("list"),{renderEmpty:D}=h.useContext(kt),F={current:1,total:0,position:"bottom"},V=Pe=>(ke,Ce)=>{var Ve;N(ke),j(Ce),n&&((Ve=n==null?void 0:n[Pe])===null||Ve===void 0||Ve.call(n,ke,Ce))},A=V("onChange"),X=V("onShowSizeChange"),q=(Pe,ke)=>{if(!k)return null;let Ce;return typeof w=="function"?Ce=w(Pe):w?Ce=Pe[w]:Ce=Pe.key,Ce||(Ce=`list-item-${ke}`),h.createElement(h.Fragment,{key:Ce},k(Pe,ke))},H=!!(m||n||_),U=L("list",r),[K,G,J]=CH(U);let ee=C;typeof ee=="boolean"&&(ee={spinning:ee});const de=!!(ee!=null&&ee.spinning),oe=Xi(y);let ae="";switch(oe){case"large":ae="lg";break;case"small":ae="sm";break}const _e=ne(U,{[`${U}-vertical`]:f==="vertical",[`${U}-${ae}`]:ae,[`${U}-split`]:o,[`${U}-bordered`]:i,[`${U}-loading`]:de,[`${U}-grid`]:!!g,[`${U}-something-after-last-item`]:H,[`${U}-rtl`]:M==="rtl"},B,a,l,G,J),se=Gv(F,{total:v.length,current:O,pageSize:I},n||{}),ce=Math.ceil(se.total/se.pageSize);se.current=Math.min(se.current,ce);const he=n&&h.createElement("div",{className:ne(`${U}-pagination`)},h.createElement(rH,Object.assign({align:"end"},se,{onChange:A,onShowSizeChange:X})));let ve=Ae(v);n&&v.length>(se.current-1)*se.pageSize&&(ve=Ae(v).splice((se.current-1)*se.pageSize,se.pageSize));const me=Object.keys(g||{}).some(Pe=>["xs","sm","md","lg","xl","xxl"].includes(Pe)),fe=Yy(me),ye=h.useMemo(()=>{for(let Pe=0;Pe<Ma.length;Pe+=1){const ke=Ma[Pe];if(fe[ke])return ke}},[fe]),xe=h.useMemo(()=>{if(!g)return;const Pe=ye&&g[ye]?g[ye]:g.column;if(Pe)return{width:`${100/Pe}%`,maxWidth:`${100/Pe}%`}},[JSON.stringify(g),ye]);let Ee=de&&h.createElement("div",{style:{minHeight:53}});if(ve.length>0){const Pe=ve.map(q);Ee=g?h.createElement(mA,{gutter:g.gutter},h.Children.map(Pe,ke=>h.createElement("div",{key:ke==null?void 0:ke.key,style:xe},ke))):h.createElement("ul",{className:`${U}-items`},Pe)}else!d&&!de&&(Ee=h.createElement("div",{className:`${U}-empty-text`},($==null?void 0:$.emptyText)||(D==null?void 0:D("List"))||h.createElement(a$,{componentName:"List"})));const Ne=se.position,Te=h.useMemo(()=>({grid:g,itemLayout:f}),[JSON.stringify(g),f]);return K(h.createElement(gb.Provider,{value:Te},h.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},z),u),className:_e},T),(Ne==="top"||Ne==="both")&&he,S&&h.createElement("div",{className:`${U}-header`},S),h.createElement(ja,Object.assign({},ee),Ee,d),_&&h.createElement("div",{className:`${U}-footer`},_),m||(Ne==="bottom"||Ne==="both")&&he)))}const EH=h.forwardRef(xH),Mu=EH;Mu.Item=E4;const kH=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let co=null,ka=e=>e(),ju=[],zu={};function rx(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=zu,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const $H=Q.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=h.useContext(kt),o=zu.prefixCls||i("message"),a=h.useContext(Ej),[l,u]=ek(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return Q.useImperativeHandle(t,()=>{const d=Object.assign({},l);return Object.keys(d).forEach(f=>{d[f]=(...m)=>(r(),l[f].apply(l,m))}),{instance:d,sync:r}}),u}),RH=Q.forwardRef((e,t)=>{const[n,r]=Q.useState(rx),i=()=>{r(rx)};Q.useEffect(i,[]);const o=LE(),a=o.getRootPrefixCls(),l=o.getIconPrefixCls(),u=o.getTheme(),d=Q.createElement($H,{ref:t,sync:i,messageConfig:n});return Q.createElement(No,{prefixCls:a,iconPrefixCls:l,theme:u},o.holderRender?o.holderRender(d):d)}),wm=()=>{if(!co){const e=document.createDocumentFragment(),t={fragment:e};co=t,ka(()=>{My()(Q.createElement(RH,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,wm())})}}),e)});return}co.instance&&(ju.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{ka(()=>{const r=co.instance.open(Object.assign(Object.assign({},zu),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":ka(()=>{co==null||co.instance.destroy(e.key)});break;default:ka(()=>{var r;const i=(r=co.instance)[t].apply(r,Ae(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),ju=[])};function TH(e){zu=Object.assign(Object.assign({},zu),e),ka(()=>{var t;(t=co==null?void 0:co.sync)===null||t===void 0||t.call(co)})}function PH(e){const t=Iy(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return ju.push(i),()=>{r?ka(()=>{r()}):i.skipped=!0}});return wm(),t}function OH(e,t){const n=Iy(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return ju.push(o),()=>{i?ka(()=>{i()}):o.skipped=!0}});return wm(),n}const IH=e=>{ju.push({type:"destroy",key:e}),wm()},NH=["success","info","warning","error","loading"],MH={open:PH,destroy:IH,config:TH,useMessage:hI,_InternalPanelDoNotUseOrYouWillBeFired:iI},Oi=MH;NH.forEach(e=>{Oi[e]=(...t)=>OH(e,t)});var jH=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const zH=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:l,footer:u}=e,d=jH(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:f}=h.useContext(kt),m=f(),g=t||f("modal"),v=go(m),[y,S,_]=Nk(g,v),C=`${g}-confirm`;let w={};return o?w={closable:i??!1,title:"",footer:"",children:h.createElement(jk,Object.assign({},e,{prefixCls:g,confirmPrefixCls:C,rootPrefixCls:m,content:l}))}:w={closable:i??!0,title:a,footer:u!==null&&h.createElement(Tk,Object.assign({},e)),children:l},y(h.createElement(yk,Object.assign({prefixCls:g,className:ne(S,`${g}-pure-panel`,o&&C,o&&`${C}-${o}`,n,_,v)},d,{closeIcon:Rk(g,r),closable:i},w)))},BH=Vk(zH);function k4(e){return Qu(Ak(e))}const Mi=Mk;Mi.useModal=xj;Mi.info=function(t){return Qu(Dk(t))};Mi.success=function(t){return Qu(Hk(t))};Mi.error=function(t){return Qu(Fk(t))};Mi.warning=k4;Mi.warn=k4;Mi.confirm=function(t){return Qu(Wk(t))};Mi.destroyAll=function(){for(;Ea.length;){const t=Ea.pop();t&&t()}};Mi.config=bj;Mi._InternalPanelDoNotUseOrYouWillBeFired=BH;var LH=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$4=h.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,l=e.defaultChecked,u=e.disabled,d=e.loadingIcon,f=e.checkedChildren,m=e.unCheckedChildren,g=e.onClick,v=e.onChange,y=e.onKeyDown,S=Bt(e,LH),_=Xn(!1,{value:a,defaultValue:l}),C=le(_,2),w=C[0],k=C[1];function $(N,I){var j=w;return u||(j=N,k(j),v==null||v(j,I)),j}function T(N){N.which===Xe.LEFT?$(!1,N):N.which===Xe.RIGHT&&$(!0,N),y==null||y(N)}function R(N){var I=$(!w,N);g==null||g(I,N)}var O=ne(i,o,(n={},Y(n,"".concat(i,"-checked"),w),Y(n,"".concat(i,"-disabled"),u),n));return h.createElement("button",$e({},S,{type:"button",role:"switch","aria-checked":w,disabled:u,className:O,ref:t,onKeyDown:T,onClick:R}),d,h.createElement("span",{className:"".concat(i,"-inner")},h.createElement("span",{className:"".concat(i,"-inner-checked")},f),h.createElement("span",{className:"".concat(i,"-inner-unchecked")},m)))});$4.displayName="Switch";const AH=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:l,calc:u}=e,d=`${t}-inner`,f=re(u(l).add(u(r).mul(2)).equal()),m=re(u(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:re(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${d}-checked, ${d}-unchecked`]:{minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${m})`,marginInlineEnd:`calc(100% - ${f} + ${m})`},[`${d}-unchecked`]:{marginTop:u(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:u(u(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${m})`,marginInlineEnd:`calc(-100% + ${f} - ${m})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${re(u(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:u(e.marginXXS).div(2).equal(),marginInlineEnd:u(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:u(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:u(e.marginXXS).div(2).equal()}}}}}}},DH=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}}}},HH=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${re(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},FH=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:l}=e,u=`${t}-inner`,d=re(l(a).add(l(r).mul(2)).equal()),f=re(l(o).mul(2).equal());return{[t]:{[u]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${u}-checked, ${u}-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},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${u}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},WH=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},qn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:re(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}}),po(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"}})}},VH=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,l=2,u=o-l*2,d=a-l*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:u*2+l*4,trackMinWidthSM:d*2+l*2,trackPadding:l,handleBg:i,handleSize:u,handleSizeSM:d,handleShadow:`0 2px 4px 0 ${new _n("#00230b").setA(.2).toRgbString()}`,innerMinMargin:u/2,innerMaxMargin:u+l+l*2,innerMinMarginSM:d/2,innerMaxMarginSM:d+l+l*2}},UH=vn("Switch",e=>{const t=Jt(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[WH(t),FH(t),HH(t),DH(t),AH(t)]},VH);var qH=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const KH=h.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:l,style:u,checked:d,value:f,defaultChecked:m,defaultValue:g,onChange:v}=e,y=qH(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,_]=Xn(!1,{value:d??f,defaultValue:m??g}),{getPrefixCls:C,direction:w,switch:k}=h.useContext(kt),$=h.useContext(Xo),T=(i??$)||o,R=C("switch",n),O=h.createElement("div",{className:`${R}-handle`},o&&h.createElement(Uu,{className:`${R}-loading-icon`})),[N,I,j]=UH(R),L=Xi(r),M=ne(k==null?void 0:k.className,{[`${R}-small`]:L==="small",[`${R}-loading`]:o,[`${R}-rtl`]:w==="rtl"},a,l,I,j),B=Object.assign(Object.assign({},k==null?void 0:k.style),u),z=(...D)=>{_(D[0]),v==null||v.apply(void 0,D)};return N(h.createElement(Yf,{component:"Switch",disabled:T},h.createElement($4,Object.assign({},y,{checked:S,onChange:z,prefixCls:R,className:M,style:B,disabled:T,ref:t,loadingIcon:O}))))}),au=KH;au.__ANT_SWITCH=!0;const GH=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,a=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},qn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${re(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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:a}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},vb=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Jt(e,{tagFontSize:i,tagLineHeight:re(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},yb=e=>({defaultBg:new _n(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),R4=vn("Tag",e=>{const t=vb(e);return GH(t)},yb);var XH=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const YH=h.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,children:a,icon:l,onChange:u,onClick:d}=e,f=XH(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:m,tag:g}=h.useContext(kt),v=k=>{u==null||u(!o),d==null||d(k)},y=m("tag",n),[S,_,C]=R4(y),w=ne(y,`${y}-checkable`,{[`${y}-checkable-checked`]:o},g==null?void 0:g.className,i,_,C);return S(h.createElement("span",Object.assign({},f,{ref:t,style:Object.assign(Object.assign({},r),g==null?void 0:g.style),className:w,onClick:v}),l,h.createElement("span",null,a)))}),JH=e=>Kf(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),QH=Vu(["Tag","preset"],e=>{const t=vb(e);return JH(t)},yb);function ZH(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const bh=(e,t,n)=>{const r=ZH(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"}}}},eF=Vu(["Tag","status"],e=>{const t=vb(e);return[bh(t,"success","Success"),bh(t,"processing","Info"),bh(t,"error","Error"),bh(t,"warning","Warning")]},yb);var tF=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const nF=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:a,icon:l,color:u,onClose:d,bordered:f=!0,visible:m}=e,g=tF(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:y,tag:S}=h.useContext(kt),[_,C]=h.useState(!0),w=rr(g,["closeIcon","closable"]);h.useEffect(()=>{m!==void 0&&C(m)},[m]);const k=mm(u),$=n7(u),T=k||$,R=Object.assign(Object.assign({backgroundColor:u&&!T?u:void 0},S==null?void 0:S.style),o),O=v("tag",n),[N,I,j]=R4(O),L=ne(O,S==null?void 0:S.className,{[`${O}-${u}`]:T,[`${O}-has-color`]:u&&!T,[`${O}-hidden`]:!_,[`${O}-rtl`]:y==="rtl",[`${O}-borderless`]:!f},r,i,I,j),M=A=>{A.stopPropagation(),d==null||d(A),!A.defaultPrevented&&C(!1)},[,B]=Oy(nc(e),nc(S),{closable:!1,closeIconRender:A=>{const X=h.createElement("span",{className:`${O}-close-icon`,onClick:M},A);return KE(A,X,q=>({onClick:H=>{var U;(U=q==null?void 0:q.onClick)===null||U===void 0||U.call(q,H),M(H)},className:ne(q==null?void 0:q.className,`${O}-close-icon`)}))}}),z=typeof g.onClick=="function"||a&&a.type==="a",D=l||null,F=D?h.createElement(h.Fragment,null,D,a&&h.createElement("span",null,a)):a,V=h.createElement("span",Object.assign({},w,{ref:t,className:L,style:R}),F,B,k&&h.createElement(QH,{key:"preset",prefixCls:O}),$&&h.createElement(eF,{key:"status",prefixCls:O}));return N(z?h.createElement(Yf,{component:"Tag"},V):V)}),Ki=nF;Ki.CheckableTag=YH;const so=(e,t)=>new _n(e).setA(t).toRgbString(),Ol=(e,t)=>new _n(e).lighten(t).toHexString(),rF=e=>{const t=Oa(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]}},iF=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:so(r,.85),colorTextSecondary:so(r,.65),colorTextTertiary:so(r,.45),colorTextQuaternary:so(r,.25),colorFill:so(r,.18),colorFillSecondary:so(r,.12),colorFillTertiary:so(r,.08),colorFillQuaternary:so(r,.04),colorBgSolid:so(r,.95),colorBgSolidHover:so(r,1),colorBgSolidActive:so(r,.9),colorBgElevated:Ol(n,12),colorBgContainer:Ol(n,8),colorBgLayout:Ol(n,0),colorBgSpotlight:Ol(n,26),colorBgBlur:so(r,.04),colorBorder:Ol(n,26),colorBorderSecondary:Ol(n,19)}},oF=(e,t)=>{const n=Object.keys(Ty).map(o=>{const a=Oa(e[o],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,u,d)=>(l[`${o}-${d+1}`]=a[d],l[`${o}${d+1}`]=a[d],l),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),r=t??fE(e),i=hE(e,{generateColorPalettes:rF,generateNeutralColorPalettes:iF});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),i),{colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover})},ix={defaultSeed:sf.token,darkAlgorithm:oF};var sF={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"},aF=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:sF}))},lF=h.forwardRef(aF),cF={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"},uF=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:cF}))},dF=h.forwardRef(uF);const hF=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},fF=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
325
|
-
h${r}&,
|
|
326
|
-
div&-h${r},
|
|
327
|
-
div&-h${r} > textarea,
|
|
328
|
-
h${r}
|
|
329
|
-
`]=hF(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},mF=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},xE(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},pF=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:rf[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}}),gF=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"}}}},vF=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),yF=()=>({"\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"}}),bF=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"}},fF(e)),{[`
|
|
330
|
-
& + h1${t},
|
|
331
|
-
& + h2${t},
|
|
332
|
-
& + h3${t},
|
|
333
|
-
& + h4${t},
|
|
334
|
-
& + h5${t}
|
|
335
|
-
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),pF(e)),mF(e)),{[`
|
|
336
|
-
${t}-expand,
|
|
337
|
-
${t}-collapse,
|
|
338
|
-
${t}-edit,
|
|
339
|
-
${t}-copy
|
|
340
|
-
`]:Object.assign(Object.assign({},xE(e)),{marginInlineStart:e.marginXXS})}),gF(e)),vF(e)),yF()),{"&-rtl":{direction:"rtl"}})}},_F=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),T4=vn("Typography",bF,_F),SF=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:l=!0,value:u,onSave:d,onCancel:f,onEnd:m,component:g,enterIcon:v=h.createElement(dF,null)}=e,y=h.useRef(null),S=h.useRef(!1),_=h.useRef(null),[C,w]=h.useState(u);h.useEffect(()=>{w(u)},[u]),h.useEffect(()=>{var z;if(!((z=y.current)===null||z===void 0)&&z.resizableTextArea){const{textArea:D}=y.current.resizableTextArea;D.focus();const{length:F}=D.value;D.setSelectionRange(F,F)}},[]);const k=({target:z})=>{w(z.value.replace(/[\n\r]/g,""))},$=()=>{S.current=!0},T=()=>{S.current=!1},R=({keyCode:z})=>{S.current||(_.current=z)},O=()=>{d(C.trim())},N=({keyCode:z,ctrlKey:D,altKey:F,metaKey:V,shiftKey:A})=>{_.current!==z||S.current||D||F||V||A||(z===Xe.ENTER?(O(),m==null||m()):z===Xe.ESC&&f())},I=()=>{O()},[j,L,M]=T4(t),B=ne(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${g}`]:!!g},r,L,M);return j(h.createElement("div",{className:B,style:i},h.createElement(v4,{ref:y,maxLength:a,value:C,onChange:k,onKeyDown:R,onKeyUp:N,onCompositionStart:$,onCompositionEnd:T,onBlur:I,"aria-label":n,rows:1,autoSize:l}),v!==null?Xr(v,{className:`${t}-edit-content-confirm`}):null))};var Gg,ox;function CF(){return ox||(ox=1,Gg=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(i){e.addRange(i)}),t&&t.focus()}}),Gg}var Xg,sx;function wF(){if(sx)return Xg;sx=1;var e=CF(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var l,u,d,f,m,g,v=!1;a||(a={}),l=a.debug||!1;try{d=e(),f=document.createRange(),m=document.getSelection(),g=document.createElement("span"),g.textContent=o,g.ariaHidden="true",g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(S){if(S.stopPropagation(),a.format)if(S.preventDefault(),typeof S.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=t[a.format]||t.default;window.clipboardData.setData(_,o)}else S.clipboardData.clearData(),S.clipboardData.setData(a.format,o);a.onCopy&&(S.preventDefault(),a.onCopy(S.clipboardData))}),document.body.appendChild(g),f.selectNodeContents(g),m.addRange(f);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");v=!0}catch(S){l&&console.error("unable to copy using execCommand: ",S),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),v=!0}catch(_){l&&console.error("unable to copy using clipboardData: ",_),l&&console.error("falling back to prompt"),u=r("message"in a?a.message:n),window.prompt(u,o)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(f):m.removeAllRanges()),g&&document.body.removeChild(g),d()}return v}return Xg=i,Xg}var xF=wF();const EF=Hu(xF);var kF=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(f){try{d(r.next(f))}catch(m){a(m)}}function u(f){try{d(r.throw(f))}catch(m){a(m)}}function d(f){f.done?o(f.value):i(f.value).then(l,u)}d((r=r.apply(e,t||[])).next())})};const $F=({copyConfig:e,children:t})=>{const[n,r]=h.useState(!1),[i,o]=h.useState(!1),a=h.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},u={};e.format&&(u.format=e.format),h.useEffect(()=>l,[]);const d=Un(f=>kF(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),o(!0);try{const g=typeof e.text=="function"?yield e.text():e.text;EF(g||kH(t,!0).join("")||"",u),o(!1),r(!0),l(),a.current=setTimeout(()=>{r(!1)},3e3),(m=e.onCopy)===null||m===void 0||m.call(e,f)}catch(g){throw o(!1),g}}));return{copied:n,copyLoading:i,onClick:d}};function Yg(e,t){return h.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const RF=e=>{const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current},TF=(e,t,n)=>h.useMemo(()=>e===!0?{title:t??n}:h.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var PF=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const P4=h.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:l,direction:u,style:d}=e,f=PF(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:g,className:v,style:y}=Dr("typography"),S=u??g,_=a?gi(t,a):t,C=m("typography",n),[w,k,$]=T4(C),T=ne(C,v,{[`${C}-rtl`]:S==="rtl"},i,o,k,$),R=Object.assign(Object.assign({},y),d);return w(h.createElement(r,Object.assign({className:T,style:R,ref:_},f),l))});var OF={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"},IF=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:OF}))},yu=h.forwardRef(IF);function ax(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Jg(e,t,n){return e===!0||e===void 0?t:e||n&&t}function NF(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 bb=e=>["string","number"].includes(typeof e),MF=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:o,tabIndex:a,onCopy:l,loading:u})=>{const d=ax(i),f=ax(o),{copied:m,copy:g}=n??{},v=t?m:g,y=Jg(d[t?1:0],v),S=typeof y=="string"?y:v;return h.createElement(Zo,{title:y},h.createElement("button",{type:"button",className:ne(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":S,tabIndex:a},t?Jg(f[1],h.createElement(d$,null),!0):Jg(f[0],u?h.createElement(Uu,null):h.createElement(yu,null),!0)))},_h=h.forwardRef(({style:e,children:t},n)=>{const r=h.useRef(null);return h.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),h.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)}),jF=e=>e.reduce((t,n)=>t+(bb(n)?String(n).length:1),0);function lx(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const o=e[i],l=bb(o)?String(o).length:1,u=n+l;if(u>t){const d=t-n;return r.push(String(o).slice(0,d)),r}r.push(o),n=u}return e}const Qg=0,Zg=1,ev=2,tv=3,cx=4,Sh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function zF(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:l,onEllipsis:u}=e,d=h.useMemo(()=>pi(r),[r]),f=h.useMemo(()=>jF(d),[r]),m=h.useMemo(()=>i(d,!1),[r]),[g,v]=h.useState(null),y=h.useRef(null),S=h.useRef(null),_=h.useRef(null),C=h.useRef(null),w=h.useRef(null),[k,$]=h.useState(!1),[T,R]=h.useState(Qg),[O,N]=h.useState(0),[I,j]=h.useState(null);fn(()=>{R(t&&n&&f?Zg:Qg)},[n,r,o,t,d]),fn(()=>{var z,D,F,V;if(T===Zg){R(ev);const A=S.current&&getComputedStyle(S.current).whiteSpace;j(A)}else if(T===ev){const A=!!(!((z=_.current)===null||z===void 0)&&z.isExceed());R(A?tv:cx),v(A?[0,f]:null),$(A);const X=((D=_.current)===null||D===void 0?void 0:D.getHeight())||0,q=o===1?0:((F=C.current)===null||F===void 0?void 0:F.getHeight())||0,H=((V=w.current)===null||V===void 0?void 0:V.getHeight())||0,U=Math.max(X,q+H);N(U+1),u(A)}},[T]);const L=g?Math.ceil((g[0]+g[1])/2):0;fn(()=>{var z;const[D,F]=g||[0,0];if(D!==F){const A=(((z=y.current)===null||z===void 0?void 0:z.getHeight())||0)>O;let X=L;F-D===1&&(X=A?D:F),v(A?[D,X]:[X,F])}},[g,L]);const M=h.useMemo(()=>{if(!t)return i(d,!1);if(T!==tv||!g||g[0]!==g[1]){const z=i(d,!1);return[cx,Qg].includes(T)?z:h.createElement("span",{style:Object.assign(Object.assign({},Sh),{WebkitLineClamp:o})},z)}return i(a?d:lx(d,g[0]),k)},[a,T,g,d].concat(Ae(l))),B={width:n,margin:0,padding:0,whiteSpace:I==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,M,T===ev&&h.createElement(h.Fragment,null,h.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},B),Sh),{WebkitLineClamp:o}),ref:_},m),h.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},B),Sh),{WebkitLineClamp:o-1}),ref:C},m),h.createElement(_h,{style:Object.assign(Object.assign(Object.assign({},B),Sh),{WebkitLineClamp:1}),ref:w},i([],!0))),T===tv&&g&&g[0]!==g[1]&&h.createElement(_h,{style:Object.assign(Object.assign({},B),{top:400}),ref:y},i(lx(d,L),!0)),T===Zg&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:S}))}const BF=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:h.createElement(Zo,Object.assign({open:t?void 0:!1},r),n);var LF=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function AF({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:o,italic:a},l){let u=l;function d(f,m){m&&(u=h.createElement(f,{},u))}return d("strong",i),d("u",n),d("del",r),d("code",t),d("mark",e),d("kbd",o),d("i",a),u}const DF="...",ux=["delete","mark","code","underline","strong","keyboard","italic"],xm=h.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:a,disabled:l,children:u,ellipsis:d,editable:f,copyable:m,component:g,title:v}=e,y=LF(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:_}=h.useContext(kt),[C]=_s("Text"),w=h.useRef(null),k=h.useRef(null),$=S("typography",r),T=rr(y,ux),[R,O]=Yg(f),[N,I]=Xn(!1,{value:O.editing}),{triggerType:j=["icon"]}=O,L=ze=>{var Ke;ze&&((Ke=O.onStart)===null||Ke===void 0||Ke.call(O)),I(ze)},M=RF(N);fn(()=>{var ze;!N&&M&&((ze=k.current)===null||ze===void 0||ze.focus())},[N]);const B=ze=>{ze==null||ze.preventDefault(),L(!0)},z=ze=>{var Ke;(Ke=O.onChange)===null||Ke===void 0||Ke.call(O,ze),L(!1)},D=()=>{var ze;(ze=O.onCancel)===null||ze===void 0||ze.call(O),L(!1)},[F,V]=Yg(m),{copied:A,copyLoading:X,onClick:q}=$F({copyConfig:V,children:u}),[H,U]=h.useState(!1),[K,G]=h.useState(!1),[J,ee]=h.useState(!1),[de,oe]=h.useState(!1),[ae,_e]=h.useState(!0),[se,ce]=Yg(d,{expandable:!1,symbol:ze=>ze?C==null?void 0:C.collapse:C==null?void 0:C.expand}),[he,ve]=Xn(ce.defaultExpanded||!1,{value:ce.expanded}),me=se&&(!he||ce.expandable==="collapsible"),{rows:fe=1}=ce,ye=h.useMemo(()=>me&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||R||F),[me,ce,R,F]);fn(()=>{se&&!ye&&(U(zC("webkitLineClamp")),G(zC("textOverflow")))},[ye,se]);const[xe,Ee]=h.useState(me),Ne=h.useMemo(()=>ye?!1:fe===1?K:H,[ye,K,H]);fn(()=>{Ee(Ne&&me)},[Ne,me]);const Te=me&&(xe?de:J),Pe=me&&fe===1&&xe,ke=me&&fe>1&&xe,Ce=(ze,Ke)=>{var It;ve(Ke.expanded),(It=ce.onExpand)===null||It===void 0||It.call(ce,ze,Ke)},[Ve,Ze]=h.useState(0),_t=({offsetWidth:ze})=>{Ze(ze)},nt=ze=>{var Ke;ee(ze),J!==ze&&((Ke=ce.onEllipsis)===null||Ke===void 0||Ke.call(ce,ze))};h.useEffect(()=>{const ze=w.current;if(se&&xe&&ze){const Ke=NF(ze);de!==Ke&&oe(Ke)}},[se,xe,u,ke,ae,Ve]),h.useEffect(()=>{const ze=w.current;if(typeof IntersectionObserver>"u"||!ze||!xe||!me)return;const Ke=new IntersectionObserver(()=>{_e(!!ze.offsetParent)});return Ke.observe(ze),()=>{Ke.disconnect()}},[xe,me]);const Ye=TF(ce.tooltip,O.text,u),mt=h.useMemo(()=>{if(!(!se||xe))return[O.text,u,v,Ye.title].find(bb)},[se,xe,v,Ye.title,Te]);if(N)return h.createElement(SF,{value:(n=O.text)!==null&&n!==void 0?n:typeof u=="string"?u:"",onSave:z,onCancel:D,onEnd:O.onEnd,prefixCls:$,className:i,style:o,direction:_,component:g,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const Je=()=>{const{expandable:ze,symbol:Ke}=ce;return ze?h.createElement("button",{type:"button",key:"expand",className:`${$}-${he?"collapse":"expand"}`,onClick:It=>Ce(It,{expanded:!he}),"aria-label":he?C.collapse:C==null?void 0:C.expand},typeof Ke=="function"?Ke(he):Ke):null},yt=()=>{if(!R)return;const{icon:ze,tooltip:Ke,tabIndex:It}=O,Ct=pi(Ke)[0]||(C==null?void 0:C.edit),nn=typeof Ct=="string"?Ct:"";return j.includes("icon")?h.createElement(Zo,{key:"edit",title:Ke===!1?"":Ct},h.createElement("button",{type:"button",ref:k,className:`${$}-edit`,onClick:B,"aria-label":nn,tabIndex:It},ze||h.createElement(lF,{role:"button"}))):null},rt=()=>F?h.createElement(MF,Object.assign({key:"copy"},V,{prefixCls:$,copied:A,locale:C,onCopy:q,loading:X,iconOnly:u==null})):null,Le=ze=>[ze&&Je(),yt(),rt()],ot=ze=>[ze&&!he&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},DF),ce.suffix,Le(ze)];return h.createElement(ho,{onResize:_t,disabled:!me},ze=>h.createElement(BF,{tooltipProps:Ye,enableEllipsis:me,isEllipsis:Te},h.createElement(P4,Object.assign({className:ne({[`${$}-${a}`]:a,[`${$}-disabled`]:l,[`${$}-ellipsis`]:se,[`${$}-ellipsis-single-line`]:Pe,[`${$}-ellipsis-multiple-line`]:ke},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ke?fe:void 0}),component:g,ref:gi(ze,w,t),direction:_,onClick:j.includes("text")?B:void 0,"aria-label":mt==null?void 0:mt.toString(),title:v},T),h.createElement(zF,{enableMeasure:me&&!xe,text:u,rows:fe,width:Ve,onEllipsis:nt,expanded:he,miscDeps:[A,he,X,R,F,C].concat(Ae(ux.map(Ke=>e[Ke])))},(Ke,It)=>AF(e,h.createElement(h.Fragment,null,Ke.length>0&&It&&!he&&mt?h.createElement("span",{key:"show-content","aria-hidden":!0},Ke):Ke,ot(It)))))))});var HF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const FF=h.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:o}=e,a=HF(e,["ellipsis","rel","children","navigate"]),l=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return h.createElement(xm,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}),i)});var WF=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const VF=h.forwardRef((e,t)=>{const{children:n}=e,r=WF(e,["children"]);return h.createElement(xm,Object.assign({ref:t},r,{component:"div"}),n)});var UF=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const qF=(e,t)=>{const{ellipsis:n,children:r}=e,i=UF(e,["ellipsis","children"]),o=h.useMemo(()=>n&&typeof n=="object"?rr(n,["expandable","rows"]):n,[n]);return h.createElement(xm,Object.assign({ref:t},i,{ellipsis:o,component:"span"}),r)},KF=h.forwardRef(qF);var GF=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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const XF=[1,2,3,4,5],YF=h.forwardRef((e,t)=>{const{level:n=1,children:r}=e,i=GF(e,["level","children"]),o=XF.includes(n)?`h${n}`:"h1";return h.createElement(xm,Object.assign({ref:t},i,{component:o}),r)}),jo=P4;jo.Text=KF;jo.Link=FF;jo.Title=YF;jo.Paragraph=VF;var JF={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"},QF=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:JF}))},ZF=h.forwardRef(QF),eW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},tW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:eW}))},dx=h.forwardRef(tW),nW={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"},rW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:nW}))},Kh=h.forwardRef(rW),iW={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"},oW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:iW}))},sW=h.forwardRef(oW),aW={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"},lW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:aW}))},cW=h.forwardRef(lW),uW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},dW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:uW}))},hW=h.forwardRef(dW),fW={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"},mW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:fW}))},pW=h.forwardRef(mW),gW={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"},vW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:gW}))},O4=h.forwardRef(vW),yW={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"},bW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:yW}))},hx=h.forwardRef(bW),_W={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"},SW=function(t,n){return h.createElement(mn,$e({},t,{ref:n,icon:_W}))},CW=h.forwardRef(SW),wW=Object.defineProperty,Cf=Object.getOwnPropertySymbols,I4=Object.prototype.hasOwnProperty,N4=Object.prototype.propertyIsEnumerable,fx=(e,t,n)=>t in e?wW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w0=(e,t)=>{for(var n in t||(t={}))I4.call(t,n)&&fx(e,n,t[n]);if(Cf)for(var n of Cf(t))N4.call(t,n)&&fx(e,n,t[n]);return e},x0=(e,t)=>{var n={};for(var r in e)I4.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Cf)for(var r of Cf(e))t.indexOf(r)<0&&N4.call(e,r)&&(n[r]=e[r]);return n};/**
|
|
341
|
-
* @license QR Code generator library (TypeScript)
|
|
342
|
-
* Copyright (c) Project Nayuki.
|
|
343
|
-
* SPDX-License-Identifier: MIT
|
|
344
|
-
*/var za;(e=>{const t=class ln{constructor(u,d,f,m){if(this.version=u,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],u<ln.MIN_VERSION||u>ln.MAX_VERSION)throw new RangeError("Version value out of range");if(m<-1||m>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let g=[];for(let y=0;y<this.size;y++)g.push(!1);for(let y=0;y<this.size;y++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();const v=this.addEccAndInterleave(f);if(this.drawCodewords(v),m==-1){let y=1e9;for(let S=0;S<8;S++){this.applyMask(S),this.drawFormatBits(S);const _=this.getPenaltyScore();_<y&&(m=S,y=_),this.applyMask(S)}}i(0<=m&&m<=7),this.mask=m,this.applyMask(m),this.drawFormatBits(m),this.isFunction=[]}static encodeText(u,d){const f=e.QrSegment.makeSegments(u);return ln.encodeSegments(f,d)}static encodeBinary(u,d){const f=e.QrSegment.makeBytes(u);return ln.encodeSegments([f],d)}static encodeSegments(u,d,f=1,m=40,g=-1,v=!0){if(!(ln.MIN_VERSION<=f&&f<=m&&m<=ln.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");let y,S;for(y=f;;y++){const k=ln.getNumDataCodewords(y,d)*8,$=a.getTotalBits(u,y);if($<=k){S=$;break}if(y>=m)throw new RangeError("Data too long")}for(const k of[ln.Ecc.MEDIUM,ln.Ecc.QUARTILE,ln.Ecc.HIGH])v&&S<=ln.getNumDataCodewords(y,k)*8&&(d=k);let _=[];for(const k of u){n(k.mode.modeBits,4,_),n(k.numChars,k.mode.numCharCountBits(y),_);for(const $ of k.getData())_.push($)}i(_.length==S);const C=ln.getNumDataCodewords(y,d)*8;i(_.length<=C),n(0,Math.min(4,C-_.length),_),n(0,(8-_.length%8)%8,_),i(_.length%8==0);for(let k=236;_.length<C;k^=253)n(k,8,_);let w=[];for(;w.length*8<_.length;)w.push(0);return _.forEach((k,$)=>w[$>>>3]|=k<<7-($&7)),new ln(y,d,w,g)}getModule(u,d){return 0<=u&&u<this.size&&0<=d&&d<this.size&&this.modules[d][u]}getModules(){return this.modules}drawFunctionPatterns(){for(let f=0;f<this.size;f++)this.setFunctionModule(6,f,f%2==0),this.setFunctionModule(f,6,f%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),d=u.length;for(let f=0;f<d;f++)for(let m=0;m<d;m++)f==0&&m==0||f==0&&m==d-1||f==d-1&&m==0||this.drawAlignmentPattern(u[f],u[m]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const d=this.errorCorrectionLevel.formatBits<<3|u;let f=d;for(let g=0;g<10;g++)f=f<<1^(f>>>9)*1335;const m=(d<<10|f)^21522;i(m>>>15==0);for(let g=0;g<=5;g++)this.setFunctionModule(8,g,r(m,g));this.setFunctionModule(8,7,r(m,6)),this.setFunctionModule(8,8,r(m,7)),this.setFunctionModule(7,8,r(m,8));for(let g=9;g<15;g++)this.setFunctionModule(14-g,8,r(m,g));for(let g=0;g<8;g++)this.setFunctionModule(this.size-1-g,8,r(m,g));for(let g=8;g<15;g++)this.setFunctionModule(8,this.size-15+g,r(m,g));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let f=0;f<12;f++)u=u<<1^(u>>>11)*7973;const d=this.version<<12|u;i(d>>>18==0);for(let f=0;f<18;f++){const m=r(d,f),g=this.size-11+f%3,v=Math.floor(f/3);this.setFunctionModule(g,v,m),this.setFunctionModule(v,g,m)}}drawFinderPattern(u,d){for(let f=-4;f<=4;f++)for(let m=-4;m<=4;m++){const g=Math.max(Math.abs(m),Math.abs(f)),v=u+m,y=d+f;0<=v&&v<this.size&&0<=y&&y<this.size&&this.setFunctionModule(v,y,g!=2&&g!=4)}}drawAlignmentPattern(u,d){for(let f=-2;f<=2;f++)for(let m=-2;m<=2;m++)this.setFunctionModule(u+m,d+f,Math.max(Math.abs(m),Math.abs(f))!=1)}setFunctionModule(u,d,f){this.modules[d][u]=f,this.isFunction[d][u]=!0}addEccAndInterleave(u){const d=this.version,f=this.errorCorrectionLevel;if(u.length!=ln.getNumDataCodewords(d,f))throw new RangeError("Invalid argument");const m=ln.NUM_ERROR_CORRECTION_BLOCKS[f.ordinal][d],g=ln.ECC_CODEWORDS_PER_BLOCK[f.ordinal][d],v=Math.floor(ln.getNumRawDataModules(d)/8),y=m-v%m,S=Math.floor(v/m);let _=[];const C=ln.reedSolomonComputeDivisor(g);for(let k=0,$=0;k<m;k++){let T=u.slice($,$+S-g+(k<y?0:1));$+=T.length;const R=ln.reedSolomonComputeRemainder(T,C);k<y&&T.push(0),_.push(T.concat(R))}let w=[];for(let k=0;k<_[0].length;k++)_.forEach(($,T)=>{(k!=S-g||T>=y)&&w.push($[k])});return i(w.length==v),w}drawCodewords(u){if(u.length!=Math.floor(ln.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let f=this.size-1;f>=1;f-=2){f==6&&(f=5);for(let m=0;m<this.size;m++)for(let g=0;g<2;g++){const v=f-g,S=(f+1&2)==0?this.size-1-m:m;!this.isFunction[S][v]&&d<u.length*8&&(this.modules[S][v]=r(u[d>>>3],7-(d&7)),d++)}}i(d==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let d=0;d<this.size;d++)for(let f=0;f<this.size;f++){let m;switch(u){case 0:m=(f+d)%2==0;break;case 1:m=d%2==0;break;case 2:m=f%3==0;break;case 3:m=(f+d)%3==0;break;case 4:m=(Math.floor(f/3)+Math.floor(d/2))%2==0;break;case 5:m=f*d%2+f*d%3==0;break;case 6:m=(f*d%2+f*d%3)%2==0;break;case 7:m=((f+d)%2+f*d%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[d][f]&&m&&(this.modules[d][f]=!this.modules[d][f])}}getPenaltyScore(){let u=0;for(let g=0;g<this.size;g++){let v=!1,y=0,S=[0,0,0,0,0,0,0];for(let _=0;_<this.size;_++)this.modules[g][_]==v?(y++,y==5?u+=ln.PENALTY_N1:y>5&&u++):(this.finderPenaltyAddHistory(y,S),v||(u+=this.finderPenaltyCountPatterns(S)*ln.PENALTY_N3),v=this.modules[g][_],y=1);u+=this.finderPenaltyTerminateAndCount(v,y,S)*ln.PENALTY_N3}for(let g=0;g<this.size;g++){let v=!1,y=0,S=[0,0,0,0,0,0,0];for(let _=0;_<this.size;_++)this.modules[_][g]==v?(y++,y==5?u+=ln.PENALTY_N1:y>5&&u++):(this.finderPenaltyAddHistory(y,S),v||(u+=this.finderPenaltyCountPatterns(S)*ln.PENALTY_N3),v=this.modules[_][g],y=1);u+=this.finderPenaltyTerminateAndCount(v,y,S)*ln.PENALTY_N3}for(let g=0;g<this.size-1;g++)for(let v=0;v<this.size-1;v++){const y=this.modules[g][v];y==this.modules[g][v+1]&&y==this.modules[g+1][v]&&y==this.modules[g+1][v+1]&&(u+=ln.PENALTY_N2)}let d=0;for(const g of this.modules)d=g.reduce((v,y)=>v+(y?1:0),d);const f=this.size*this.size,m=Math.ceil(Math.abs(d*20-f*10)/f)-1;return i(0<=m&&m<=9),u+=m*ln.PENALTY_N4,i(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let f=[6];for(let m=this.size-7;f.length<u;m-=d)f.splice(1,0,m);return f}}static getNumRawDataModules(u){if(u<ln.MIN_VERSION||u>ln.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*u+128)*u+64;if(u>=2){const f=Math.floor(u/7)+2;d-=(25*f-10)*f-55,u>=7&&(d-=36)}return i(208<=d&&d<=29648),d}static getNumDataCodewords(u,d){return Math.floor(ln.getNumRawDataModules(u)/8)-ln.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u]*ln.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let d=[];for(let m=0;m<u-1;m++)d.push(0);d.push(1);let f=1;for(let m=0;m<u;m++){for(let g=0;g<d.length;g++)d[g]=ln.reedSolomonMultiply(d[g],f),g+1<d.length&&(d[g]^=d[g+1]);f=ln.reedSolomonMultiply(f,2)}return d}static reedSolomonComputeRemainder(u,d){let f=d.map(m=>0);for(const m of u){const g=m^f.shift();f.push(0),d.forEach((v,y)=>f[y]^=ln.reedSolomonMultiply(v,g))}return f}static reedSolomonMultiply(u,d){if(u>>>8||d>>>8)throw new RangeError("Byte out of range");let f=0;for(let m=7;m>=0;m--)f=f<<1^(f>>>7)*285,f^=(d>>>m&1)*u;return i(f>>>8==0),f}finderPenaltyCountPatterns(u){const d=u[1];i(d<=this.size*3);const f=d>0&&u[2]==d&&u[3]==d*3&&u[4]==d&&u[5]==d;return(f&&u[0]>=d*4&&u[6]>=d?1:0)+(f&&u[6]>=d*4&&u[0]>=d?1:0)}finderPenaltyTerminateAndCount(u,d,f){return u&&(this.finderPenaltyAddHistory(d,f),d=0),d+=this.size,this.finderPenaltyAddHistory(d,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(u,d){d[0]==0&&(u+=this.size),d.pop(),d.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,u,d){if(u<0||u>31||l>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)d.push(l>>>f&1)}function r(l,u){return(l>>>u&1)!=0}function i(l){if(!l)throw new Error("Assertion error")}const o=class or{constructor(u,d,f){if(this.mode=u,this.numChars=d,this.bitData=f,d<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}static makeBytes(u){let d=[];for(const f of u)n(f,8,d);return new or(or.Mode.BYTE,u.length,d)}static makeNumeric(u){if(!or.isNumeric(u))throw new RangeError("String contains non-numeric characters");let d=[];for(let f=0;f<u.length;){const m=Math.min(u.length-f,3);n(parseInt(u.substring(f,f+m),10),m*3+1,d),f+=m}return new or(or.Mode.NUMERIC,u.length,d)}static makeAlphanumeric(u){if(!or.isAlphanumeric(u))throw new RangeError("String contains unencodable characters in alphanumeric mode");let d=[],f;for(f=0;f+2<=u.length;f+=2){let m=or.ALPHANUMERIC_CHARSET.indexOf(u.charAt(f))*45;m+=or.ALPHANUMERIC_CHARSET.indexOf(u.charAt(f+1)),n(m,11,d)}return f<u.length&&n(or.ALPHANUMERIC_CHARSET.indexOf(u.charAt(f)),6,d),new or(or.Mode.ALPHANUMERIC,u.length,d)}static makeSegments(u){return u==""?[]:or.isNumeric(u)?[or.makeNumeric(u)]:or.isAlphanumeric(u)?[or.makeAlphanumeric(u)]:[or.makeBytes(or.toUtf8ByteArray(u))]}static makeEci(u){let d=[];if(u<0)throw new RangeError("ECI assignment value out of range");if(u<128)n(u,8,d);else if(u<16384)n(2,2,d),n(u,14,d);else if(u<1e6)n(6,3,d),n(u,21,d);else throw new RangeError("ECI assignment value out of range");return new or(or.Mode.ECI,0,d)}static isNumeric(u){return or.NUMERIC_REGEX.test(u)}static isAlphanumeric(u){return or.ALPHANUMERIC_REGEX.test(u)}getData(){return this.bitData.slice()}static getTotalBits(u,d){let f=0;for(const m of u){const g=m.mode.numCharCountBits(d);if(m.numChars>=1<<g)return 1/0;f+=4+g+m.bitData.length}return f}static toUtf8ByteArray(u){u=encodeURI(u);let d=[];for(let f=0;f<u.length;f++)u.charAt(f)!="%"?d.push(u.charCodeAt(f)):(d.push(parseInt(u.substring(f+1,f+3),16)),f+=2);return d}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=o;e.QrSegment=o})(za||(za={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(za||(za={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(za||(za={}));var Fl=za;/**
|
|
345
|
-
* @license qrcode.react
|
|
346
|
-
* Copyright (c) Paul O'Shannessy
|
|
347
|
-
* SPDX-License-Identifier: ISC
|
|
348
|
-
*/var xW={L:Fl.QrCode.Ecc.LOW,M:Fl.QrCode.Ecc.MEDIUM,Q:Fl.QrCode.Ecc.QUARTILE,H:Fl.QrCode.Ecc.HIGH},M4=128,j4="L",z4="#FFFFFF",B4="#000000",L4=!1,A4=1,EW=4,kW=0,$W=.1;function D4(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(a,l){if(!a&&o!==null){n.push(`M${o+t} ${i+t}h${l-o}v1H${o+t}z`),o=null;return}if(l===r.length-1){if(!a)return;o===null?n.push(`M${l+t},${i+t} h1v1H${l+t}z`):n.push(`M${o+t},${i+t} h${l+1-o}v1H${o+t}z`);return}a&&o===null&&(o=l)})}),n.join("")}function H4(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function RW(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*$W),a=i/t,l=(r.width||o)*a,u=(r.height||o)*a,d=r.x==null?e.length/2-l/2:r.x*a,f=r.y==null?e.length/2-u/2:r.y*a,m=r.opacity==null?1:r.opacity;let g=null;if(r.excavate){let y=Math.floor(d),S=Math.floor(f),_=Math.ceil(l+d-y),C=Math.ceil(u+f-S);g={x:y,y:S,w:_,h:C}}const v=r.crossOrigin;return{x:d,y:f,h:u,w:l,excavation:g,opacity:m,crossOrigin:v}}function TW(e,t){return t!=null?Math.max(Math.floor(t),0):e?EW:kW}function F4({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:a,boostLevel:l}){let u=Q.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((S,_)=>(S.push(...Fl.QrSegment.makeSegments(_)),S),[]);return Fl.QrCode.encodeSegments(y,xW[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:d,margin:f,numCells:m,calculatedImageSettings:g}=Q.useMemo(()=>{let v=u.getModules();const y=TW(r,i),S=v.length+y*2,_=RW(v,a,y,o);return{cells:v,margin:y,numCells:S,calculatedImageSettings:_}},[u,a,o,r,i]);return{qrcode:u,margin:f,cells:d,numCells:m,calculatedImageSettings:g}}var PW=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),W4=Q.forwardRef(function(t,n){const r=t,{value:i,size:o=M4,level:a=j4,bgColor:l=z4,fgColor:u=B4,includeMargin:d=L4,minVersion:f=A4,boostLevel:m,marginSize:g,imageSettings:v}=r,S=x0(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:_}=S,C=x0(S,["style"]),w=v==null?void 0:v.src,k=Q.useRef(null),$=Q.useRef(null),T=Q.useCallback(z=>{k.current=z,typeof n=="function"?n(z):n&&(n.current=z)},[n]),[R,O]=Q.useState(!1),{margin:N,cells:I,numCells:j,calculatedImageSettings:L}=F4({value:i,level:a,minVersion:f,boostLevel:m,includeMargin:d,marginSize:g,imageSettings:v,size:o});Q.useEffect(()=>{if(k.current!=null){const z=k.current,D=z.getContext("2d");if(!D)return;let F=I;const V=$.current,A=L!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;A&&L.excavation!=null&&(F=H4(I,L.excavation));const X=window.devicePixelRatio||1;z.height=z.width=o*X;const q=o/j*X;D.scale(q,q),D.fillStyle=l,D.fillRect(0,0,j,j),D.fillStyle=u,PW?D.fill(new Path2D(D4(F,N))):I.forEach(function(H,U){H.forEach(function(K,G){K&&D.fillRect(G+N,U+N,1,1)})}),L&&(D.globalAlpha=L.opacity),A&&D.drawImage(V,L.x+N,L.y+N,L.w,L.h)}}),Q.useEffect(()=>{O(!1)},[w]);const M=w0({height:o,width:o},_);let B=null;return w!=null&&(B=Q.createElement("img",{src:w,key:w,style:{display:"none"},onLoad:()=>{O(!0)},ref:$,crossOrigin:L==null?void 0:L.crossOrigin})),Q.createElement(Q.Fragment,null,Q.createElement("canvas",w0({style:M,height:o,width:o,ref:T,role:"img"},C)),B)});W4.displayName="QRCodeCanvas";var OW=Q.forwardRef(function(t,n){const r=t,{value:i,size:o=M4,level:a=j4,bgColor:l=z4,fgColor:u=B4,includeMargin:d=L4,minVersion:f=A4,boostLevel:m,title:g,marginSize:v,imageSettings:y}=r,S=x0(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:_,cells:C,numCells:w,calculatedImageSettings:k}=F4({value:i,level:a,minVersion:f,boostLevel:m,includeMargin:d,marginSize:v,imageSettings:y,size:o});let $=C,T=null;y!=null&&k!=null&&(k.excavation!=null&&($=H4(C,k.excavation)),T=Q.createElement("image",{href:y.src,height:k.h,width:k.w,x:k.x+_,y:k.y+_,preserveAspectRatio:"none",opacity:k.opacity,crossOrigin:k.crossOrigin}));const R=D4($,_);return Q.createElement("svg",w0({height:o,width:o,viewBox:`0 0 ${w} ${w}`,ref:n,role:"img"},S),!!g&&Q.createElement("title",null,g),Q.createElement("path",{fill:l,d:`M0,0 h${w}v${w}H0z`,shapeRendering:"crispEdges"}),Q.createElement("path",{fill:u,d:R,shapeRendering:"crispEdges"}),T)});OW.displayName="QRCodeSVG";const mx=/command execution specialist|file search specialist|planning specialist|general-purpose agent/i;function wf(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 Kr(e){if(!e)return!1;if(e.mainAgent){const r=wf(e.body||{});return!mx.test(r)}const t=e.body||{},n=t.tools;if(t.system&&Array.isArray(n)&&n.length>10){const r=n.some(a=>a.name==="Edit"),i=n.some(a=>a.name==="Bash"),o=n.some(a=>a.name==="Task"||a.name==="Agent");if(r&&i&&o){const a=wf(t);if(a.includes("You are Claude Code")&&!mx.test(a))return!0}}return!1}function E0(e){return e?/^Base directory for this skill:/i.test(e.trim()):!1}function _b(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 V4(e){if(!Array.isArray(e))return{commands:[],textBlocks:[],skillBlocks:[]};const t=e.some(o=>o.type==="text"&&/<command-message>/i.test(o.text||"")),n=[];if(t)for(const o of e){if(o.type!=="text")continue;const a=(o.text||"").match(/<command-name>\s*([^<]*)<\/command-name>/i);if(a){const l=a[1].trim();n.push(l.startsWith("/")?l:`/${l}`)}}let r=e.filter(o=>o.type==="text"&&!_b(o.text));t&&(r=r.filter(o=>!/<command-message>/i.test(o.text||"")));const i=r.filter(o=>E0(o.text));return i.length>0&&(r=r.filter(o=>!E0(o.text))),{commands:n,textBlocks:r,skillBlocks:i}}function U4(e,t){var v,y;const n=e[t];if(!Kr(n))return null;const r=(y=(v=n.response)==null?void 0:v.body)==null?void 0:y.usage;if(!r)return null;const i=r.cache_creation_input_tokens||0,o=r.cache_read_input_tokens||0;if(i===0||i<=o)return null;let a=null;for(let S=t-1;S>=0;S--)if(Kr(e[S])){a=e[S];break}if(!a)return null;if(n.timestamp-a.timestamp>300*1e3)return{reason:"ttl"};const u=Ta(a.body),d=Ta(n.body);if(!u||!d)return{reason:"key_change"};const f=[];u.model!==d.model&&f.push("model_change"),JSON.stringify(u.system)!==JSON.stringify(d.system)&&f.push("system_change"),JSON.stringify(u.tools)!==JSON.stringify(d.tools)&&f.push("tools_change");const m=u.messages||[],g=d.messages||[];if(g.length<m.length)f.push("msg_truncated");else{const S=Math.min(m.length,g.length);let _=!0;for(let C=0;C<S;C++)if(JSON.stringify(m[C])!==JSON.stringify(g[C])){_=!1;break}_||f.push("msg_modified")}return f.length===0?{reason:"key_change"}:{reason:f[0],reasons:f}}function xf(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}function q4(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(`
|
|
349
|
-
`):JSON.stringify(e.content):String(e.content??"")}const IW=[{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 NW(e){if(!e)return null;for(const t of IW)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:Bl("agent")}}function Bl(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 fr(e){return e==null||e===0?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function Ta(e){if(Array.isArray(e))return e.map(Ta);if(e&&typeof e=="object"){const t={};for(const n of Object.keys(e))n.startsWith("_")||(t[n]=Ta(e[n]));return t}return e}function MW(e){var n,r,i;const t={};for(const o of e){const a=(r=(n=o.response)==null?void 0:n.body)==null?void 0:r.usage;if(!a)continue;const l=((i=o.body)==null?void 0:i.model)||"unknown";t[l]||(t[l]={input:0,output:0,cacheCreation:0,cacheRead:0});const u=t[l];u.input+=a.input_tokens||0,u.output+=a.output_tokens||0,u.cacheCreation+=a.cache_creation_input_tokens||0,u.cacheRead+=a.cache_read_input_tokens||0}return t}function jW(e){var n,r,i;const t={ttl:{count:0,cacheCreate:0},system_change:{count:0,cacheCreate:0},tools_change:{count:0,cacheCreate:0},model_change:{count:0,cacheCreate:0},msg_truncated:{count:0,cacheCreate:0},msg_modified:{count:0,cacheCreate:0},key_change:{count:0,cacheCreate:0}};for(let o=0;o<e.length;o++){const a=U4(e,o);if(!a)continue;const l=((i=(r=(n=e[o].response)==null?void 0:n.body)==null?void 0:r.usage)==null?void 0:i.cache_creation_input_tokens)||0,u=a.reasons||[a.reason];for(const d of u)t[d]&&(t[d].count++,t[d].cacheCreate+=l)}return t}function zW(e){var n,r;const t={};for(const i of e){const o=(r=(n=i.response)==null?void 0:n.body)==null?void 0:r.content;if(Array.isArray(o))for(const a of o)a.type==="tool_use"&&a.name&&(t[a.name]=(t[a.name]||0)+1)}return Object.entries(t).sort((i,o)=>o[1]-i[1])}function BW(e){var n;const t={};for(const r of e){const i=(n=r.body)==null?void 0:n.messages;if(Array.isArray(i))for(const o of i){if(o.role!=="user")continue;const a=o.content;if(Array.isArray(a))for(const l of a){if(l.type!=="text"||!E0(l.text))continue;const u=l.text.match(/^#\s+(.+)$/m),d=u?u[1]:"Skill";t[d]=(t[d]||0)+1}}}return Object.entries(t).sort((r,i)=>i[1]-r[1])}function Ef(e){return typeof e!="string"?!1:e.includes("<system-reminder>")&&e.includes("# claudeMd")}function kf(e){return typeof e!="string"?!1:e.includes("<system-reminder>")&&e.includes("skills are available")}function LW(e){const t=e==null?void 0:e.messages;if(!Array.isArray(t))return!1;for(const n of t){const r=n==null?void 0:n.content;if(typeof r=="string"){if(Ef(r))return!0}else if(Array.isArray(r)){for(const i of r)if(i.type==="text"&&Ef(i.text))return!0}}return!1}function AW(e){const t=e==null?void 0:e.messages;if(!Array.isArray(t))return!1;for(const n of t){const r=n==null?void 0:n.content;if(typeof r=="string"){if(kf(r))return!0}else if(Array.isArray(r)){for(const i of r)if(i.type==="text"&&kf(i.text))return!0}}return!1}function DW(e){return e?e.replace(/^claude-/,"").replace(/-\d{8,}$/,""):null}function HW(e){const t=(e==null?void 0:e.url)||"";return!(e.isHeartbeat||e.isCountTokens||/\/api\/eval\/sdk-/.test(t)||/\/messages\/count_tokens/.test(t))}function hs(e){return e.filter(HW)}function px(e,t){for(let n=t-1;n>=0;n--)if(Kr(e[n])&&e[n].timestamp)return e[n].timestamp;return null}function Sb(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 FW(e){const t=e.body||{},n=wf(t);if(/Extract any file paths/i.test(n)||/process Bash commands/i.test(n)||/command execution specialist/i.test(n))return"Bash";if(/file search specialist/i.test(n))return"Search";if(/planning specialist/i.test(n))return"Plan";if(/general-purpose agent/i.test(n))return"General";const r=t.messages||[];for(let i=r.length-1;i>=0;i--){if(r[i].role!=="user")continue;const o=Sb(r[i]);if(/^Command:/m.test(o))return"Bash";break}return null}function WW(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 VW(e,t){var u;const n=e.body||{},r=n.tools,i=n.messages||[];if(Array.isArray(r)&&r.length>0||i.length!==1||i[0].role!=="user")return!1;const o=Sb(i[0]);if(!o||o.trim()==="count")return!1;const a=o.trim();if(/^Command:/m.test(o)||/^<policy_spec>/i.test(a)||/^<task-notification>/i.test(a))return!1;const l=wf(n);if(!l.includes("Claude Code")||/process Bash commands/i.test(l)||/Extract any file paths/i.test(l))return!1;if(t){const d=((u=t.body)==null?void 0:u.messages)||[],f=o.slice(0,80);if(d.some(g=>{const v=g==null?void 0:g.content;return typeof v=="string"?v.includes(f):Array.isArray(v)?v.some(y=>(y==null?void 0:y.type)==="text"&&y.text&&y.text.includes(f)):!1}))return!0}return!1}function Ba(e,t){var r;if(Kr(e))return{type:"MainAgent",subType:null};if(e.isCountTokens||WW(e))return{type:"Count",subType:null};if(VW(e,t)){const i=Sb((((r=e.body)==null?void 0:r.messages)||[])[0]);return/^Implement the following plan:/i.test(i.trim())?{type:"Plan",subType:"Prompt"}:{type:"Preflight",subType:null}}return{type:"SubAgent",subType:FW(e)}}function $f(e,t){return e==="Plan"&&t?`Plan:${t}`:e==="SubAgent"&&t?`SubAgent:${t}`:e}const UW={"ui.guide.title":{zh:"欢迎使用 CC Viewer",en:"Welcome to CC Viewer","zh-TW":"歡迎使用 CC Viewer",ko:"CC Viewer에 오신 것을 환영합니다",ja:"CC Viewer へようこそ",de:"Willkommen bei CC Viewer",es:"Bienvenido a CC Viewer",fr:"Bienvenue sur CC Viewer",it:"Benvenuto in CC Viewer",da:"Velkommen til CC Viewer",pl:"Witamy w CC Viewer",ru:"Добро пожаловать в CC Viewer",ar:"مرحبًا بك في CC Viewer",no:"Velkommen til CC Viewer","pt-BR":"Bem-vindo ao CC Viewer",th:"ยินดีต้อนรับสู่ CC Viewer",tr:"CC Viewer'a hoş geldiniz",uk:"Ласкаво просимо до CC Viewer"},"ui.guide.step1":{zh:"你可以先尝试在 Claude 中发起一轮对话。不知道说什么?可以问问:",en:"Try starting a conversation in Claude. Not sure what to say? Try asking:","zh-TW":"你可以先嘗試在 Claude 中發起一輪對話。不知道說什麼?可以問問:",ko:"Claude에서 대화를 시작해 보세요. 무슨 말을 해야 할지 모르겠다면:",ja:"まず Claude で会話を始めてみましょう。何を言えばいいかわからない場合:",de:"Starten Sie ein Gespräch in Claude. Nicht sicher, was Sie sagen sollen? Fragen Sie:",es:"Intenta iniciar una conversación en Claude. ¿No sabes qué decir? Prueba preguntar:",fr:"Essayez de lancer une conversation dans Claude. Vous ne savez pas quoi dire ? Demandez :",it:"Prova ad avviare una conversazione in Claude. Non sai cosa dire? Prova a chiedere:",da:"Prøv at starte en samtale i Claude. Ikke sikker på hvad du skal sige? Prøv at spørge:",pl:"Spróbuj rozpocząć rozmowę w Claude. Nie wiesz co powiedzieć? Zapytaj:",ru:"Попробуйте начать разговор в Claude. Не знаете, что сказать? Спросите:",ar:"جرّب بدء محادثة في Claude. لا تعرف ماذا تقول؟ جرّب أن تسأل:",no:"Prøv å starte en samtale i Claude. Usikker på hva du skal si? Prøv å spørre:","pt-BR":"Tente iniciar uma conversa no Claude. Não sabe o que dizer? Pergunte:",th:"ลองเริ่มบทสนทนาใน Claude ไม่รู้จะพูดอะไร? ลองถามว่า:",tr:"Claude'da bir sohbet başlatmayı deneyin. Ne söyleyeceğinizi bilmiyor musunuz? Şunu sorun:",uk:"Спробуйте розпочати розмову в Claude. Не знаєте, що сказати? Запитайте:"},"ui.guide.exampleQuestion":{zh:"看看我现在有多少 skill",en:"How many skills do I have right now?","zh-TW":"看看我現在有多少 skill",ko:"지금 내가 가진 skill이 몇 개인지 확인해줘",ja:"今いくつの skill があるか見てみて",de:"Wie viele Skills habe ich gerade?",es:"¿Cuántos skills tengo ahora mismo?",fr:"Combien de skills ai-je en ce moment ?",it:"Quanti skill ho in questo momento?",da:"Hvor mange skills har jeg lige nu?",pl:"Ile mam teraz skills?",ru:"Сколько у меня сейчас skills?",ar:"كم عدد الـ skills لديّ الآن؟",no:"Hvor mange skills har jeg nå?","pt-BR":"Quantos skills eu tenho agora?",th:"ตอนนี้ฉันมีกี่ skill?",tr:"Şu anda kaç tane skill'im var?",uk:"Скільки у мене зараз skills?"},"ui.guide.step2":{zh:"你能看到这段文字,说明服务已经启动。如果 Claude 有响应但这里没有变化,可以让 Claude 帮你排查:",en:"If you can see this, the service is running. If Claude responds but nothing shows here, ask Claude to help troubleshoot:","zh-TW":"你能看到這段文字,說明服務已經啟動。如果 Claude 有回應但這裡沒有變化,可以讓 Claude 幫你排查:",ko:"이 텍스트가 보이면 서비스가 실행 중입니다. Claude가 응답하지만 여기에 변화가 없다면 Claude에게 문제 해결을 요청하세요:",ja:"このテキストが見えていればサービスは起動しています。Claude が応答しているのにここに変化がない場合、Claude にトラブルシューティングを依頼してください:",de:"Wenn Sie diesen Text sehen, läuft der Dienst. Wenn Claude antwortet, aber hier nichts angezeigt wird, bitten Sie Claude um Hilfe:",es:"Si puedes ver este texto, el servicio está funcionando. Si Claude responde pero aquí no cambia nada, pide a Claude que te ayude:",fr:"Si vous voyez ce texte, le service fonctionne. Si Claude répond mais rien ne s'affiche ici, demandez à Claude de vous aider :",it:"Se puoi vedere questo testo, il servizio è in esecuzione. Se Claude risponde ma qui non cambia nulla, chiedi a Claude di aiutarti:",da:"Hvis du kan se denne tekst, kører tjenesten. Hvis Claude svarer, men intet vises her, bed Claude om hjælp:",pl:"Jeśli widzisz ten tekst, usługa działa. Jeśli Claude odpowiada, ale tutaj nic się nie zmienia, poproś Claude o pomoc:",ru:"Если вы видите этот текст, сервис запущен. Если Claude отвечает, но здесь ничего не меняется, попросите Claude помочь:",ar:"إذا كنت ترى هذا النص، فالخدمة تعمل. إذا كان Claude يستجيب ولكن لا شيء يظهر هنا، اطلب من Claude المساعدة:",no:"Hvis du kan se denne teksten, kjører tjenesten. Hvis Claude svarer men ingenting vises her, be Claude om hjelp:","pt-BR":"Se você pode ver este texto, o serviço está rodando. Se o Claude responde mas nada aparece aqui, peça ao Claude para ajudar:",th:"ถ้าคุณเห็นข้อความนี้ แสดงว่าบริการกำลังทำงาน หาก Claude ตอบกลับแต่ที่นี่ไม่มีการเปลี่ยนแปลง ให้ขอให้ Claude ช่วยแก้ไข:",tr:"Bu metni görebiliyorsanız, hizmet çalışıyor. Claude yanıt veriyor ama burada bir değişiklik olmuyorsa, Claude'dan yardım isteyin:",uk:"Якщо ви бачите цей текст, сервіс працює. Якщо Claude відповідає, але тут нічого не змінюється, попросіть Claude допомогти:"},"ui.guide.troubleshootCmd":{zh:"我已经启动了 cc-viewer,但是无法看到 cc-viewer 的请求,检查 npm 包中 cc-viewer 的实现,检查问题,并修复",en:"I've started cc-viewer but can't see any requests. Check the cc-viewer npm package implementation, find the issue, and fix it","zh-TW":"我已經啟動了 cc-viewer,但是無法看到 cc-viewer 的請求,檢查 npm 包中 cc-viewer 的實現,檢查問題,並修復",ko:"cc-viewer를 시작했지만 요청을 볼 수 없습니다. cc-viewer npm 패키지 구현을 확인하고 문제를 찾아 수정해 주세요",ja:"cc-viewer を起動しましたがリクエストが表示されません。cc-viewer npm パッケージの実装を確認し、問題を見つけて修正してください",de:"Ich habe cc-viewer gestartet, kann aber keine Anfragen sehen. Überprüfen Sie die cc-viewer npm-Paket-Implementierung, finden Sie das Problem und beheben Sie es",es:"He iniciado cc-viewer pero no puedo ver las solicitudes. Revisa la implementación del paquete npm cc-viewer, encuentra el problema y corrígelo",fr:"J'ai démarré cc-viewer mais je ne vois aucune requête. Vérifiez l'implémentation du package npm cc-viewer, trouvez le problème et corrigez-le",it:"Ho avviato cc-viewer ma non riesco a vedere le richieste. Controlla l'implementazione del pacchetto npm cc-viewer, trova il problema e risolvilo",da:"Jeg har startet cc-viewer, men kan ikke se nogen forespørgsler. Tjek cc-viewer npm-pakkens implementering, find problemet og ret det",pl:"Uruchomiłem cc-viewer, ale nie widzę żadnych żądań. Sprawdź implementację pakietu npm cc-viewer, znajdź problem i napraw go",ru:"Я запустил cc-viewer, но не вижу запросов. Проверьте реализацию npm-пакета cc-viewer, найдите проблему и исправьте её",ar:"لقد قمت بتشغيل cc-viewer ولكن لا أستطيع رؤية أي طلبات. تحقق من تنفيذ حزمة npm الخاصة بـ cc-viewer، وابحث عن المشكلة وأصلحها",no:"Jeg har startet cc-viewer, men kan ikke se noen forespørsler. Sjekk cc-viewer npm-pakkens implementering, finn problemet og fiks det","pt-BR":"Iniciei o cc-viewer mas não consigo ver as requisições. Verifique a implementação do pacote npm cc-viewer, encontre o problema e corrija",th:"ฉันเริ่ม cc-viewer แล้วแต่ไม่เห็นคำขอใดๆ ตรวจสอบการใช้งานแพ็กเกจ npm ของ cc-viewer หาปัญหาและแก้ไข",tr:"cc-viewer'ı başlattım ama istekleri göremiyorum. cc-viewer npm paketinin uygulamasını kontrol edin, sorunu bulun ve düzeltin",uk:"Я запустив cc-viewer, але не бачу жодних запитів. Перевірте реалізацію npm-пакету cc-viewer, знайдіть проблему та виправте її"},"ui.guide.step3":{zh:"在极端情况下,native 版本的 Claude 无法拦截。你可以尝试切回 npm 版本:",en:"In extreme cases, the native version of Claude cannot be intercepted. You can try switching back to the npm version:","zh-TW":"在極端情況下,native 版本的 Claude 無法攔截。你可以嘗試切回 npm 版本:",ko:"극단적인 경우 native 버전의 Claude는 가로챌 수 없습니다. npm 버전으로 전환해 보세요:",ja:"極端な場合、ネイティブ版の Claude はインターセプトできません。npm 版に切り替えてみてください:",de:"In extremen Fällen kann die native Version von Claude nicht abgefangen werden. Versuchen Sie, zur npm-Version zu wechseln:",es:"En casos extremos, la versión nativa de Claude no puede ser interceptada. Puedes intentar volver a la versión npm:",fr:"Dans les cas extrêmes, la version native de Claude ne peut pas être interceptée. Essayez de revenir à la version npm :",it:"In casi estremi, la versione nativa di Claude non può essere intercettata. Puoi provare a tornare alla versione npm:",da:"I ekstreme tilfælde kan den native version af Claude ikke opsnappes. Du kan prøve at skifte tilbage til npm-versionen:",pl:"W skrajnych przypadkach natywna wersja Claude nie może być przechwycona. Możesz spróbować przełączyć się na wersję npm:",ru:"В крайних случаях нативная версия Claude не может быть перехвачена. Попробуйте переключиться на npm-версию:",ar:"في الحالات القصوى، لا يمكن اعتراض النسخة الأصلية من Claude. يمكنك محاولة العودة إلى نسخة npm:",no:"I ekstreme tilfeller kan den native versjonen av Claude ikke fanges opp. Du kan prøve å bytte tilbake til npm-versjonen:","pt-BR":"Em casos extremos, a versão nativa do Claude não pode ser interceptada. Você pode tentar voltar para a versão npm:",th:"ในกรณีสุดขีด เวอร์ชัน native ของ Claude ไม่สามารถดักจับได้ คุณสามารถลองเปลี่ยนกลับไปใช้เวอร์ชัน npm:",tr:"Aşırı durumlarda, Claude'un native sürümü yakalanamaz. npm sürümüne geri dönmeyi deneyebilirsiniz:",uk:"У крайніх випадках нативну версію Claude неможливо перехопити. Спробуйте переключитися на npm-версію:"},"cli.alreadyWorking":{zh:"CC Viewer 已经能工作了",en:"CC Viewer is already working","zh-TW":"CC Viewer 已經能工作了",ko:"CC Viewer가 이미 작동 중입니다",ja:"CC Viewer は既に動作しています",de:"CC Viewer funktioniert bereits",es:"CC Viewer ya está funcionando",fr:"CC Viewer fonctionne déjà",it:"CC Viewer è già funzionante",da:"CC Viewer fungerer allerede",pl:"CC Viewer już działa",ru:"CC Viewer уже работает",ar:"CC Viewer يعمل بالفعل",no:"CC Viewer fungerer allerede","pt-BR":"CC Viewer já está funcionando",th:"CC Viewer ทำงานอยู่แล้ว",tr:"CC Viewer zaten çalışıyor",uk:"CC Viewer вже працює"},"cli.inject.success":{zh:"CC Viewer 安装成功",en:"CC Viewer installed successfully","zh-TW":"CC Viewer 安裝成功",ko:"CC Viewer 설치 성공",ja:"CC Viewer インストール成功",de:"CC Viewer erfolgreich installiert",es:"CC Viewer instalado correctamente",fr:"CC Viewer installé avec succès",it:"CC Viewer installato con successo",da:"CC Viewer installeret",pl:"CC Viewer zainstalowany pomyślnie",ru:"CC Viewer успешно установлен",ar:"تم تثبيت CC Viewer بنجاح",no:"CC Viewer installert","pt-BR":"CC Viewer instalado com sucesso",th:"ติดตั้ง CC Viewer สำเร็จ",tr:"CC Viewer başarıyla kuruldu",uk:"CC Viewer успішно встановлено"},"cli.inject.exists":{zh:"CC Viewer 已安装,无需重复操作",en:"CC Viewer already installed, no action needed","zh-TW":"CC Viewer 已安裝,無需重複操作",ko:"CC Viewer 이미 설치됨, 추가 작업 불필요",ja:"CC Viewer は既にインストール済み、操作不要",de:"CC Viewer bereits installiert, keine Aktion nötig",es:"CC Viewer ya instalado, no se requiere acción",fr:"CC Viewer déjà installé, aucune action nécessaire",it:"CC Viewer già installato, nessuna azione necessaria",da:"CC Viewer allerede installeret, ingen handling nødvendig",pl:"CC Viewer już zainstalowany, nie wymaga działania",ru:"CC Viewer уже установлен, действий не требуется",ar:"CC Viewer مثبت بالفعل، لا حاجة لأي إجراء",no:"CC Viewer allerede installert, ingen handling nødvendig","pt-BR":"CC Viewer já instalado, nenhuma ação necessária",th:"CC Viewer ติดตั้งแล้ว ไม่ต้องดำเนินการ",tr:"CC Viewer zaten kurulu, işlem gerekmiyor",uk:"CC Viewer вже встановлено, дій не потрібно"},"cli.inject.fail":{zh:"❌ 安装失败: {error}",en:"❌ Installation failed: {error}","zh-TW":"❌ 安裝失敗: {error}",ko:"❌ 설치 실패: {error}",ja:"❌ インストール失敗: {error}",de:"❌ Installation fehlgeschlagen: {error}",es:"❌ Instalación fallida: {error}",fr:"❌ Échec de l'installation : {error}",it:"❌ Installazione fallita: {error}",da:"❌ Installation mislykkedes: {error}",pl:"❌ Instalacja nie powiodła się: {error}",ru:"❌ Ошибка установки: {error}",ar:"❌ فشل التثبيت: {error}",no:"❌ Installasjon mislyktes: {error}","pt-BR":"❌ Falha na instalação: {error}",th:"❌ ติดตั้งล้มเหลว: {error}",tr:"❌ Kurulum başarısız: {error}",uk:"❌ Помилка встановлення: {error}"},"cli.inject.notFound":{zh:"❌ 找不到 Claude Code cli.js: {path}",en:"❌ Claude Code cli.js not found: {path}","zh-TW":"❌ 找不到 Claude Code cli.js: {path}",ko:"❌ Claude Code cli.js를 찾을 수 없음: {path}",ja:"❌ Claude Code cli.js が見つかりません: {path}",de:"❌ Claude Code cli.js nicht gefunden: {path}",es:"❌ Claude Code cli.js no encontrado: {path}",fr:"❌ Claude Code cli.js introuvable : {path}",it:"❌ Claude Code cli.js non trovato: {path}",da:"❌ Claude Code cli.js ikke fundet: {path}",pl:"❌ Nie znaleziono Claude Code cli.js: {path}",ru:"❌ Claude Code cli.js не найден: {path}",ar:"❌ لم يتم العثور على Claude Code cli.js: {path}",no:"❌ Claude Code cli.js ikke funnet: {path}","pt-BR":"❌ Claude Code cli.js não encontrado: {path}",th:"❌ ไม่พบ Claude Code cli.js: {path}",tr:"❌ Claude Code cli.js bulunamadı: {path}",uk:"❌ Claude Code cli.js не знайдено: {path}"},"cli.inject.notFoundHint":{zh:" 请确认 @anthropic-ai/claude-code 已安装",en:" Please make sure @anthropic-ai/claude-code is installed","zh-TW":" 請確認 @anthropic-ai/claude-code 已安裝",ko:" @anthropic-ai/claude-code가 설치되어 있는지 확인하세요",ja:" @anthropic-ai/claude-code がインストールされていることを確認してください",de:" Bitte stellen Sie sicher, dass @anthropic-ai/claude-code installiert ist",es:" Asegúrese de que @anthropic-ai/claude-code esté instalado",fr:" Veuillez vérifier que @anthropic-ai/claude-code est installé",it:" Assicurati che @anthropic-ai/claude-code sia installato",da:" Sørg for at @anthropic-ai/claude-code er installeret",pl:" Upewnij się, że @anthropic-ai/claude-code jest zainstalowany",ru:" Убедитесь, что @anthropic-ai/claude-code установлен",ar:" يرجى التأكد من تثبيت @anthropic-ai/claude-code",no:" Sørg for at @anthropic-ai/claude-code er installert","pt-BR":" Certifique-se de que @anthropic-ai/claude-code está instalado",th:" กรุณาตรวจสอบว่า @anthropic-ai/claude-code ถูกติดตั้งแล้ว",tr:" @anthropic-ai/claude-code'un kurulu olduğundan emin olun",uk:" Переконайтеся, що @anthropic-ai/claude-code встановлено"},"cli.hook.exists":{zh:"自动修复 hook 已存在于 {path}",en:"Auto-repair hook already exists in {path}","zh-TW":"自動修復 hook 已存在於 {path}",ko:"자동 복구 hook이 이미 {path}에 존재함",ja:"自動修復 hook は既に {path} に存在します",de:"Auto-Reparatur-Hook existiert bereits in {path}",es:"Hook de auto-reparación ya existe en {path}",fr:"Hook de réparation auto déjà présent dans {path}",it:"Hook di auto-riparazione già presente in {path}",da:"Auto-reparations-hook findes allerede i {path}",pl:"Hook auto-naprawy już istnieje w {path}",ru:"Hook автовосстановления уже существует в {path}",ar:"hook الإصلاح التلقائي موجود بالفعل في {path}",no:"Auto-reparasjons-hook finnes allerede i {path}","pt-BR":"Hook de auto-reparo já existe em {path}",th:"hook ซ่อมอัตโนมัติมีอยู่แล้วใน {path}",tr:"Otomatik onarım hook'u zaten {path} dosyasında mevcut",uk:"Hook автовідновлення вже існує в {path}"},"cli.hook.fail":{zh:"⚠️ shell hook 写入失败: {error}",en:"⚠️ Failed to write shell hook: {error}","zh-TW":"⚠️ shell hook 寫入失敗: {error}",ko:"⚠️ shell hook 작성 실패: {error}",ja:"⚠️ shell hook の書き込みに失敗: {error}",de:"⚠️ Shell-Hook konnte nicht geschrieben werden: {error}",es:"⚠️ Error al escribir el shell hook: {error}",fr:"⚠️ Échec de l'écriture du shell hook : {error}",it:"⚠️ Impossibile scrivere il shell hook: {error}",da:"⚠️ Kunne ikke skrive shell hook: {error}",pl:"⚠️ Nie udało się zapisać shell hook: {error}",ru:"⚠️ Не удалось записать shell hook: {error}",ar:"⚠️ فشل كتابة shell hook: {error}",no:"⚠️ Kunne ikke skrive shell hook: {error}","pt-BR":"⚠️ Falha ao escrever shell hook: {error}",th:"⚠️ เขียน shell hook ล้มเหลว: {error}",tr:"⚠️ Shell hook yazılamadı: {error}",uk:"⚠️ Не вдалося записати shell hook: {error}"},"cli.usage.hint":{zh:`
|
|
350
|
-
如需卸载,请运行: ccv --uninstall`,en:`
|
|
351
|
-
To uninstall, run: ccv --uninstall`,"zh-TW":`
|
|
352
|
-
如需卸載,請執行: ccv --uninstall`,ko:`
|
|
353
|
-
제거하려면 실행: ccv --uninstall`,ja:`
|
|
354
|
-
アンインストールするには: ccv --uninstall`,de:`
|
|
355
|
-
Zum Deinstallieren: ccv --uninstall`,es:`
|
|
356
|
-
Para desinstalar, ejecute: ccv --uninstall`,fr:`
|
|
357
|
-
Pour désinstaller, exécutez : ccv --uninstall`,it:`
|
|
358
|
-
Per disinstallare, esegui: ccv --uninstall`,da:`
|
|
359
|
-
For at afinstallere, kør: ccv --uninstall`,pl:`
|
|
360
|
-
Aby odinstalować, uruchom: ccv --uninstall`,ru:`
|
|
361
|
-
Для удаления выполните: ccv --uninstall`,ar:`
|
|
362
|
-
لإلغاء التثبيت، قم بتشغيل: ccv --uninstall`,no:`
|
|
363
|
-
For å avinstallere, kjør: ccv --uninstall`,"pt-BR":`
|
|
364
|
-
Para desinstalar, execute: ccv --uninstall`,th:`
|
|
365
|
-
หากต้องการถอนการติดตั้ง ให้เรียกใช้: ccv --uninstall`,tr:`
|
|
366
|
-
Kaldırmak için çalıştırın: ccv --uninstall`,uk:`
|
|
367
|
-
Для видалення виконайте: ccv --uninstall`},"cli.help":{zh:`CC Viewer CLI
|
|
368
|
-
|
|
369
|
-
用法:
|
|
370
|
-
ccv [options]
|
|
371
|
-
ccv run -- <command> [args...]
|
|
372
|
-
|
|
373
|
-
选项:
|
|
374
|
-
-h, --help 显示帮助
|
|
375
|
-
-v, --version 显示版本
|
|
376
|
-
--uninstall 移除 CC Viewer 集成
|
|
377
|
-
|
|
378
|
-
说明:
|
|
379
|
-
直接运行 ccv 将安装/修复 Claude Code 的集成 Hook。`,en:`CC Viewer CLI
|
|
380
|
-
|
|
381
|
-
Usage:
|
|
382
|
-
ccv [options]
|
|
383
|
-
ccv run -- <command> [args...]
|
|
384
|
-
|
|
385
|
-
Options:
|
|
386
|
-
-h, --help Show help
|
|
387
|
-
-v, --version Show version
|
|
388
|
-
--uninstall Remove CC Viewer integration
|
|
389
|
-
|
|
390
|
-
Notes:
|
|
391
|
-
Running ccv without arguments installs/repairs the Claude Code hook.`,"zh-TW":`CC Viewer CLI
|
|
392
|
-
|
|
393
|
-
用法:
|
|
394
|
-
ccv [options]
|
|
395
|
-
ccv run -- <command> [args...]
|
|
396
|
-
|
|
397
|
-
選項:
|
|
398
|
-
-h, --help 顯示說明
|
|
399
|
-
-v, --version 顯示版本
|
|
400
|
-
--uninstall 移除 CC Viewer 整合
|
|
401
|
-
|
|
402
|
-
說明:
|
|
403
|
-
直接執行 ccv 會安裝/修復 Claude Code 的整合 Hook。`},"cli.usage.uninstallHint":{zh:"",en:"","zh-TW":"",ko:"",ja:"",de:"",es:"",fr:"",it:"",da:"",pl:"",ru:"",ar:"",no:"","pt-BR":"",th:"",tr:"",uk:""},"cli.uninstall.cliCleaned":{zh:"✅ cli.js 已清理",en:"✅ cli.js cleaned","zh-TW":"✅ cli.js 已清理",ko:"✅ cli.js 정리 완료",ja:"✅ cli.js をクリーンアップしました",de:"✅ cli.js bereinigt",es:"✅ cli.js limpiado",fr:"✅ cli.js nettoyé",it:"✅ cli.js pulito",da:"✅ cli.js renset",pl:"✅ cli.js wyczyszczony",ru:"✅ cli.js очищен",ar:"✅ تم تنظيف cli.js",no:"✅ cli.js renset","pt-BR":"✅ cli.js limpo",th:"✅ ล้าง cli.js แล้ว",tr:"✅ cli.js temizlendi",uk:"✅ cli.js очищено"},"cli.uninstall.cliNotFound":{zh:"⚠️ 未找到 Claude Code cli.js,跳过",en:"⚠️ Claude Code cli.js not found, skipped","zh-TW":"⚠️ 未找到 Claude Code cli.js,跳過",ko:"⚠️ Claude Code cli.js를 찾을 수 없음, 건너뜀",ja:"⚠️ Claude Code cli.js が見つかりません、スキップ",de:"⚠️ Claude Code cli.js nicht gefunden, übersprungen",es:"⚠️ Claude Code cli.js no encontrado, omitido",fr:"⚠️ Claude Code cli.js introuvable, ignoré",it:"⚠️ Claude Code cli.js non trovato, saltato",da:"⚠️ Claude Code cli.js ikke fundet, sprunget over",pl:"⚠️ Nie znaleziono Claude Code cli.js, pominięto",ru:"⚠️ Claude Code cli.js не найден, пропущено",ar:"⚠️ لم يتم العثور على Claude Code cli.js، تم التخطي",no:"⚠️ Claude Code cli.js ikke funnet, hoppet over","pt-BR":"⚠️ Claude Code cli.js não encontrado, ignorado",th:"⚠️ ไม่พบ Claude Code cli.js ข้ามไป",tr:"⚠️ Claude Code cli.js bulunamadı, atlandı",uk:"⚠️ Claude Code cli.js не знайдено, пропущено"},"cli.uninstall.cliFail":{zh:"❌ cli.js 清理失败",en:"❌ Failed to clean cli.js","zh-TW":"❌ cli.js 清理失敗",ko:"❌ cli.js 정리 실패",ja:"❌ cli.js のクリーンアップに失敗",de:"❌ cli.js Bereinigung fehlgeschlagen",es:"❌ Fallo al limpiar cli.js",fr:"❌ Échec du nettoyage de cli.js",it:"❌ Pulizia cli.js fallita",da:"❌ Rensning af cli.js mislykkedes",pl:"❌ Czyszczenie cli.js nie powiodło się",ru:"❌ Ошибка очистки cli.js",ar:"❌ فشل تنظيف cli.js",no:"❌ Rensing av cli.js mislyktes","pt-BR":"❌ Falha ao limpar cli.js",th:"❌ ล้าง cli.js ล้มเหลว",tr:"❌ cli.js temizleme başarısız",uk:"❌ Помилка очищення cli.js"},"cli.uninstall.hookRemoved":{zh:"✅ shell hook 已从 {path} 移除",en:"✅ Shell hook removed from {path}","zh-TW":"✅ shell hook 已從 {path} 移除",ko:"✅ shell hook이 {path}에서 제거됨",ja:"✅ shell hook を {path} から削除しました",de:"✅ Shell-Hook aus {path} entfernt",es:"✅ Shell hook eliminado de {path}",fr:"✅ Shell hook supprimé de {path}",it:"✅ Shell hook rimosso da {path}",da:"✅ Shell hook fjernet fra {path}",pl:"✅ Shell hook usunięty z {path}",ru:"✅ Shell hook удалён из {path}",ar:"✅ تم إزالة shell hook من {path}",no:"✅ Shell hook fjernet fra {path}","pt-BR":"✅ Shell hook removido de {path}",th:"✅ Shell hook ถูกลบออกจาก {path}",tr:"✅ Shell hook {path} dosyasından kaldırıldı",uk:"✅ Shell hook видалено з {path}"},"cli.uninstall.hookClean":{zh:"✅ {path} 中无需清理",en:"✅ No cleanup needed in {path}","zh-TW":"✅ {path} 中無需清理",ko:"✅ {path}에서 정리할 항목 없음",ja:"✅ {path} のクリーンアップは不要です",de:"✅ Keine Bereinigung in {path} nötig",es:"✅ No se necesita limpieza en {path}",fr:"✅ Aucun nettoyage nécessaire dans {path}",it:"✅ Nessuna pulizia necessaria in {path}",da:"✅ Ingen oprydning nødvendig i {path}",pl:"✅ Brak potrzeby czyszczenia w {path}",ru:"✅ Очистка в {path} не требуется",ar:"✅ لا حاجة للتنظيف في {path}",no:"✅ Ingen opprydding nødvendig i {path}","pt-BR":"✅ Nenhuma limpeza necessária em {path}",th:"✅ ไม่จำเป็นต้องล้างใน {path}",tr:"✅ {path} dosyasında temizlik gerekmiyor",uk:"✅ Очищення в {path} не потрібне"},"cli.uninstall.hookFail":{zh:"❌ shell hook 清理失败: {error}",en:"❌ Failed to clean shell hook: {error}","zh-TW":"❌ shell hook 清理失敗: {error}",ko:"❌ shell hook 정리 실패: {error}",ja:"❌ shell hook のクリーンアップに失敗: {error}",de:"❌ Shell-Hook-Bereinigung fehlgeschlagen: {error}",es:"❌ Error al limpiar el shell hook: {error}",fr:"❌ Échec du nettoyage du shell hook : {error}",it:"❌ Pulizia shell hook fallita: {error}",da:"❌ Kunne ikke rense shell hook: {error}",pl:"❌ Nie udało się wyczyścić shell hook: {error}",ru:"❌ Не удалось очистить shell hook: {error}",ar:"❌ فشل تنظيف shell hook: {error}",no:"❌ Kunne ikke rense shell hook: {error}","pt-BR":"❌ Falha ao limpar shell hook: {error}",th:"❌ ล้าง shell hook ล้มเหลว: {error}",tr:"❌ Shell hook temizlenemedi: {error}",uk:"❌ Не вдалося очистити shell hook: {error}"},"cli.uninstall.done":{zh:`
|
|
404
|
-
🗑️ CC Viewer 集成已移除 (运行 'npm uninstall -g cc-viewer' 以彻底删除命令)`,en:`
|
|
405
|
-
🗑️ CC Viewer integration removed (Run 'npm uninstall -g cc-viewer' to remove command)`,"zh-TW":`
|
|
406
|
-
🗑️ CC Viewer 集成已移除 (運行 'npm uninstall -g cc-viewer' 以徹底刪除命令)`,ko:`
|
|
407
|
-
🗑️ CC Viewer 통합 제거됨 ('npm uninstall -g cc-viewer'를 실행하여 명령 삭제)`,ja:`
|
|
408
|
-
🗑️ CC Viewer 統合を削除しました (コマンドを完全に削除するには 'npm uninstall -g cc-viewer' を実行)`,de:`
|
|
409
|
-
🗑️ CC Viewer-Integration entfernt (Führen Sie 'npm uninstall -g cc-viewer' aus, um den Befehl zu entfernen)`,es:`
|
|
410
|
-
🗑️ Integración de CC Viewer eliminada (Ejecute 'npm uninstall -g cc-viewer' para eliminar el comando)`,fr:`
|
|
411
|
-
🗑️ Intégration CC Viewer supprimée (Exécutez 'npm uninstall -g cc-viewer' pour supprimer la commande)`,it:`
|
|
412
|
-
🗑️ Integrazione CC Viewer rimossa (Esegui 'npm uninstall -g cc-viewer' per rimuovere il comando)`,da:`
|
|
413
|
-
🗑️ CC Viewer integration fjernet (Kør 'npm uninstall -g cc-viewer' for at fjerne kommandoen)`,pl:`
|
|
414
|
-
🗑️ Integracja CC Viewer usunięta (Uruchom 'npm uninstall -g cc-viewer', aby usunąć polecenie)`,ru:`
|
|
415
|
-
🗑️ Интеграция CC Viewer удалена (Запустите 'npm uninstall -g cc-viewer' для удаления команды)`,ar:`
|
|
416
|
-
🗑️ تمت إزالة تكامل CC Viewer (قم بتشغيل 'npm uninstall -g cc-viewer' لإزالة الأمر)`,no:`
|
|
417
|
-
🗑️ CC Viewer-integrasjon fjernet (Kjør 'npm uninstall -g cc-viewer' for å fjerne kommandoen)`,"pt-BR":`
|
|
418
|
-
🗑️ Integração do CC Viewer removida (Execute 'npm uninstall -g cc-viewer' para remover o comando)`,th:`
|
|
419
|
-
🗑️ การรวม CC Viewer ถูกลบออก (เรียกใช้ 'npm uninstall -g cc-viewer' เพื่อลบคำสั่ง)`,tr:`
|
|
420
|
-
🗑️ CC Viewer entegrasyonu kaldırıldı (Komutu kaldırmak için 'npm uninstall -g cc-viewer' çalıştırın)`,uk:`
|
|
421
|
-
🗑️ Інтеграцію CC Viewer видалено (Запустіть 'npm uninstall -g cc-viewer', щоб видалити команду)`},"server.started":{zh:`
|
|
422
|
-
Claude 请求监控服务已启动: http://{host}:{port}
|
|
423
|
-
`,en:`
|
|
424
|
-
CC Viewer started: http://{host}:{port}
|
|
425
|
-
`,"zh-TW":`
|
|
426
|
-
Claude 請求監控服務已啟動: http://{host}:{port}
|
|
427
|
-
`,ko:`
|
|
428
|
-
CC Viewer 시작됨: http://{host}:{port}
|
|
429
|
-
`,ja:`
|
|
430
|
-
CC Viewer 起動: http://{host}:{port}
|
|
431
|
-
`,de:`
|
|
432
|
-
CC Viewer gestartet: http://{host}:{port}
|
|
433
|
-
`,es:`
|
|
434
|
-
CC Viewer iniciado: http://{host}:{port}
|
|
435
|
-
`,fr:`
|
|
436
|
-
CC Viewer démarré : http://{host}:{port}
|
|
437
|
-
`,it:`
|
|
438
|
-
CC Viewer avviato: http://{host}:{port}
|
|
439
|
-
`,da:`
|
|
440
|
-
CC Viewer startet: http://{host}:{port}
|
|
441
|
-
`,pl:`
|
|
442
|
-
CC Viewer uruchomiony: http://{host}:{port}
|
|
443
|
-
`,ru:`
|
|
444
|
-
CC Viewer запущен: http://{host}:{port}
|
|
445
|
-
`,ar:`
|
|
446
|
-
تم تشغيل CC Viewer: http://{host}:{port}
|
|
447
|
-
`,no:`
|
|
448
|
-
CC Viewer startet: http://{host}:{port}
|
|
449
|
-
`,"pt-BR":`
|
|
450
|
-
CC Viewer iniciado: http://{host}:{port}
|
|
451
|
-
`,th:`
|
|
452
|
-
CC Viewer เริ่มทำงาน: http://{host}:{port}
|
|
453
|
-
`,tr:`
|
|
454
|
-
CC Viewer başlatıldı: http://{host}:{port}
|
|
455
|
-
`,uk:`
|
|
456
|
-
CC Viewer запущено: http://{host}:{port}
|
|
457
|
-
`},"server.reuse":{zh:`
|
|
458
|
-
CC Viewer 已在运行: http://{host}:{port}
|
|
459
|
-
`,en:`
|
|
460
|
-
CC Viewer already running: http://{host}:{port}
|
|
461
|
-
`,"zh-TW":`
|
|
462
|
-
CC Viewer 已在運行: http://{host}:{port}
|
|
463
|
-
`,ko:`
|
|
464
|
-
CC Viewer 이미 실행 중: http://{host}:{port}
|
|
465
|
-
`,ja:`
|
|
466
|
-
CC Viewer は既に実行中: http://{host}:{port}
|
|
467
|
-
`,de:`
|
|
468
|
-
CC Viewer läuft bereits: http://{host}:{port}
|
|
469
|
-
`,es:`
|
|
470
|
-
CC Viewer ya en ejecución: http://{host}:{port}
|
|
471
|
-
`,fr:`
|
|
472
|
-
CC Viewer déjà en cours d'exécution : http://{host}:{port}
|
|
473
|
-
`,it:`
|
|
474
|
-
CC Viewer già in esecuzione: http://{host}:{port}
|
|
475
|
-
`,da:`
|
|
476
|
-
CC Viewer kører allerede: http://{host}:{port}
|
|
477
|
-
`,pl:`
|
|
478
|
-
CC Viewer już działa: http://{host}:{port}
|
|
479
|
-
`,ru:`
|
|
480
|
-
CC Viewer уже запущен: http://{host}:{port}
|
|
481
|
-
`,ar:`
|
|
482
|
-
CC Viewer يعمل بالفعل: http://{host}:{port}
|
|
483
|
-
`,no:`
|
|
484
|
-
CC Viewer kjører allerede: http://{host}:{port}
|
|
485
|
-
`,"pt-BR":`
|
|
486
|
-
CC Viewer já em execução: http://{host}:{port}
|
|
487
|
-
`,th:`
|
|
488
|
-
CC Viewer กำลังทำงานอยู่แล้ว: http://{host}:{port}
|
|
489
|
-
`,tr:`
|
|
490
|
-
CC Viewer zaten çalışıyor: http://{host}:{port}
|
|
491
|
-
`,uk:`
|
|
492
|
-
CC Viewer вже працює: http://{host}:{port}
|
|
493
|
-
`},"server.portsBusy":{zh:"⚠️ 端口 {start}-{end} 均被占用,请求监控服务未启动",en:"⚠️ Ports {start}-{end} are all in use, monitoring service not started","zh-TW":"⚠️ 端口 {start}-{end} 均被佔用,請求監控服務未啟動",ko:"⚠️ 포트 {start}-{end} 모두 사용 중, 모니터링 서비스 미시작",ja:"⚠️ ポート {start}-{end} はすべて使用中、監視サービスは起動されませんでした",de:"⚠️ Ports {start}-{end} sind alle belegt, Überwachungsdienst nicht gestartet",es:"⚠️ Puertos {start}-{end} están todos en uso, servicio de monitoreo no iniciado",fr:"⚠️ Ports {start}-{end} tous occupés, service de surveillance non démarré",it:"⚠️ Porte {start}-{end} tutte in uso, servizio di monitoraggio non avviato",da:"⚠️ Porte {start}-{end} er alle i brug, overvågningstjeneste ikke startet",pl:"⚠️ Porty {start}-{end} są wszystkie zajęte, usługa monitorowania nie uruchomiona",ru:"⚠️ Порты {start}-{end} все заняты, служба мониторинга не запущена",ar:"⚠️ المنافذ {start}-{end} كلها مشغولة، لم يتم تشغيل خدمة المراقبة",no:"⚠️ Porter {start}-{end} er alle i bruk, overvåkningstjeneste ikke startet","pt-BR":"⚠️ Portas {start}-{end} estão todas em uso, serviço de monitoramento não iniciado",th:"⚠️ พอร์ต {start}-{end} ถูกใช้งานทั้งหมด บริการตรวจสอบไม่ได้เริ่มทำงาน",tr:"⚠️ {start}-{end} portları kullanımda, izleme servisi başlatılamadı",uk:"⚠️ Порти {start}-{end} всі зайняті, служба моніторингу не запущена"},"ui.requestList":{zh:"请求列表",en:"Requests","zh-TW":"請求列表",ko:"요청 목록",ja:"リクエスト一覧",de:"Anfragen",es:"Solicitudes",fr:"Requêtes",it:"Richieste",da:"Forespørgsler",pl:"Żądania",ru:"Запросы",ar:"الطلبات",no:"Forespørsler","pt-BR":"Requisições",th:"รายการคำขอ",tr:"İstekler",uk:"Запити"},"ui.totalRequests":{zh:"总请求数: {count}",en:"Total: {count}","zh-TW":"總請求數: {count}",ko:"총 요청 수: {count}",ja:"合計: {count}",de:"Gesamt: {count}",es:"Total: {count}",fr:"Total : {count}",it:"Totale: {count}",da:"Total: {count}",pl:"Łącznie: {count}",ru:"Всего: {count}",ar:"الإجمالي: {count}",no:"Totalt: {count}","pt-BR":"Total: {count}",th:"ทั้งหมด: {count}",tr:"Toplam: {count}",uk:"Всього: {count}"},"ui.waitingRequests":{zh:"等待请求...",en:"Waiting for requests...","zh-TW":"等待請求...",ko:"요청 대기 중...",ja:"リクエスト待機中...",de:"Warte auf Anfragen...",es:"Esperando solicitudes...",fr:"En attente de requêtes...",it:"In attesa di richieste...",da:"Venter på forespørgsler...",pl:"Oczekiwanie na żądania...",ru:"Ожидание запросов...",ar:"في انتظار الطلبات...",no:"Venter på forespørsler...","pt-BR":"Aguardando requisições...",th:"รอคำขอ...",tr:"İstekler bekleniyor...",uk:"Очікування запитів..."},"ui.importLocalLogs":{zh:"日志管理工具",en:"Log Management","zh-TW":"日誌管理工具",ko:"로그 관리 도구",ja:"ログ管理ツール",de:"Log-Verwaltung",es:"Gestión de logs",fr:"Gestion des logs",it:"Gestione log",da:"Loghåndtering",pl:"Zarządzanie logami",ru:"Управление логами",ar:"إدارة السجلات",no:"Loggadministrasjon","pt-BR":"Gerenciamento de logs",th:"จัดการบันทึก",tr:"Log yönetimi",uk:"Керування логами"},"ui.loadLocalJsonl":{zh:"直接选择加载本地jsonl文件",en:"Load local JSONL file","zh-TW":"直接選擇載入本地jsonl檔案",ko:"로컬 JSONL 파일 선택",ja:"ローカルJSONLファイルを選択",de:"Lokale JSONL-Datei auswählen",es:"Seleccionar archivo JSONL local",fr:"Sélectionner un fichier JSONL local",it:"Seleziona file JSONL locale",da:"Vælg lokal JSONL-fil",pl:"Wybierz lokalny plik JSONL",ru:"Выбрать локальный JSONL файл",ar:"اختيار ملف JSONL محلي",no:"Velg lokal JSONL-fil","pt-BR":"Selecionar arquivo JSONL local",th:"เลือกไฟล์ JSONL ในเครื่อง",tr:"Yerel JSONL dosyası seç",uk:"Вибрати локальний JSONL файл"},"ui.fileTooLarge":{zh:"文件大小不能超过 500MB",en:"File size cannot exceed 500MB","zh-TW":"檔案大小不能超過 500MB",ko:"파일 크기는 500MB를 초과할 수 없습니다",ja:"ファイルサイズは500MBを超えることはできません",de:"Dateigröße darf 500MB nicht überschreiten",es:"El tamaño del archivo no puede superar 500MB",fr:"La taille du fichier ne peut pas dépasser 500 Mo",it:"La dimensione del file non può superare 500MB",da:"Filstørrelsen må ikke overstige 500MB",pl:"Rozmiar pliku nie może przekraczać 500MB",ru:"Размер файла не может превышать 500МБ",ar:"حجم الملف لا يمكن أن يتجاوز 500 ميجابايت",no:"Filstørrelsen kan ikke overstige 500MB","pt-BR":"O tamanho do arquivo não pode exceder 500MB",th:"ขนาดไฟล์ต้องไม่เกิน 500MB",tr:"Dosya boyutu 500MB'ı aşamaz",uk:"Розмір файлу не може перевищувати 500МБ"},"ui.saveLog":{zh:"下载当前日志",en:"Download current log","zh-TW":"下載當前日誌",ko:"현재 로그 다운로드",ja:"現在のログをダウンロード",de:"Aktuelles Log herunterladen",es:"Descargar log actual",fr:"Télécharger le log actuel",it:"Scarica log corrente",da:"Download nuværende log",pl:"Pobierz bieżący log",ru:"Скачать текущий лог",ar:"تحميل السجل الحالي",no:"Last ned gjeldende logg","pt-BR":"Baixar log atual",th:"ดาวน์โหลดล็อกปัจจุบัน",tr:"Mevcut günlüğü indir",uk:"Завантажити поточний лог"},"ui.exportPrompts":{zh:"查看用户 Prompt",en:"Export user prompts","zh-TW":"匯出用戶 Prompt",ko:"사용자 Prompt 내보내기",ja:"ユーザー Prompt をエクスポート",de:"Benutzer-Prompts exportieren",es:"Exportar prompts de usuario",fr:"Exporter les prompts utilisateur",it:"Esporta prompt utente",da:"Eksportér bruger-prompts",pl:"Eksportuj prompty użytkownika",ru:"Экспорт пользовательских Prompt",ar:"تصدير Prompt المستخدم",no:"Eksporter bruker-prompts","pt-BR":"Exportar prompts do usuário",th:"ส่งออก Prompt ผู้ใช้",tr:"Kullanıcı Prompt'larını dışa aktar",uk:"Експорт Prompt користувача"},"ui.exportPromptsTxt":{zh:"导出到本地 .txt",en:"Export to local .txt","zh-TW":"匯出到本地 .txt",ko:"로컬 .txt로 내보내기",ja:"ローカル .txt にエクスポート",de:"Als lokale .txt exportieren",es:"Exportar a .txt local",fr:"Exporter en .txt local",it:"Esporta in .txt locale",da:"Eksportér til lokal .txt",pl:"Eksportuj do lokalnego .txt",ru:"Экспорт в локальный .txt",ar:"تصدير إلى ملف .txt محلي",no:"Eksporter til lokal .txt","pt-BR":"Exportar para .txt local",th:"ส่งออกเป็นไฟล์ .txt ในเครื่อง",tr:"Yerel .txt olarak dışa aktar",uk:"Експорт у локальний .txt"},"ui.tokenStats":{zh:"数据统计",en:"Data Stats","zh-TW":"數據統計",ko:"데이터 통계",ja:"データ統計",de:"Datenstatistik",es:"Estadísticas de datos",fr:"Statistiques de données",it:"Statistiche dati",da:"Datastatistik",pl:"Statystyki danych",ru:"Статистика данных",ar:"إحصائيات البيانات",no:"Datastatistikk","pt-BR":"Estatísticas de dados",th:"สถิติข้อมูล",tr:"Veri İstatistikleri",uk:"Статистика даних"},"ui.liveMonitoring":{zh:"实时监控中",en:"Live","zh-TW":"即時監控中",ko:"실시간 모니터링",ja:"リアルタイム監視中",de:"Live",es:"En vivo",fr:"En direct",it:"Live",da:"Live",pl:"Na żywo",ru:"Мониторинг",ar:"مباشر",no:"Live","pt-BR":"Ao vivo",th:"สด",tr:"Canlı",uk:"Моніторинг"},"ui.mobileChatBrowse":{zh:"对话浏览",en:"Chat Browse","zh-TW":"對話瀏覽",ko:"대화 찾아보기",ja:"チャット閲覧",de:"Chat durchsuchen",es:"Ver chat",fr:"Parcourir le chat",it:"Sfoglia chat",da:"Gennemse chat",pl:"Przeglądaj czat",ru:"Просмотр чата",ar:"تصفح المحادثة",no:"Bla gjennom chat","pt-BR":"Navegar chat",th:"ดูแชท",tr:"Sohbet Gözat",uk:"Перегляд чату"},"ui.mobileChatExit":{zh:"退出对话",en:"Exit Chat","zh-TW":"退出對話",ko:"채팅 종료",ja:"チャット終了",de:"Chat beenden",es:"Salir del chat",fr:"Quitter le chat",it:"Esci dalla chat",da:"Afslut chat",pl:"Zamknij czat",ru:"Выйти из чата",ar:"الخروج من المحادثة",no:"Avslutt chat","pt-BR":"Sair do chat",th:"ออกจากแชท",tr:"Sohbetten Çık",uk:"Вийти з чату"},"ui.inflightRequests":{zh:"在途请求",en:"Inflight Requests","zh-TW":"在途請求",ko:"진행 중인 요청",ja:"処理中のリクエスト",de:"Laufende Anfragen",es:"Solicitudes en curso",fr:"Requêtes en cours",it:"Richieste in corso",da:"Igangværende forespørgsler",pl:"Trwające żądania",ru:"Текущие запросы",ar:"الطلبات الجارية",no:"Pågående forespørsler","pt-BR":"Requisições em andamento",th:"คำขอที่กำลังดำเนินการ",tr:"Devam Eden İstekler",uk:"Поточні запити"},"ui.noInflightRequests":{zh:"暂无在途请求",en:"No inflight requests","zh-TW":"暫無在途請求",ko:"진행 중인 요청 없음",ja:"処理中のリクエストなし",de:"Keine laufenden Anfragen",es:"Sin solicitudes en curso",fr:"Aucune requête en cours",it:"Nessuna richiesta in corso",da:"Ingen igangværende forespørgsler",pl:"Brak trwających żądań",ru:"Нет текущих запросов",ar:"لا توجد طلبات جارية",no:"Ingen pågående forespørsler","pt-BR":"Nenhuma requisição em andamento",th:"ไม่มีคำขอที่กำลังดำเนินการ",tr:"Devam eden istek yok",uk:"Немає поточних запитів"},"ui.historyLog":{zh:"历史日志: {file}",en:"History: {file}","zh-TW":"歷史日誌: {file}",ko:"기록: {file}",ja:"履歴: {file}",de:"Verlauf: {file}",es:"Historial: {file}",fr:"Historique : {file}",it:"Cronologia: {file}",da:"Historik: {file}",pl:"Historia: {file}",ru:"История: {file}",ar:"السجل: {file}",no:"Historikk: {file}","pt-BR":"Histórico: {file}",th:"ประวัติ: {file}",tr:"Geçmiş: {file}",uk:"Історія: {file}"},"ui.chatMode":{zh:"对话模式",en:"Chat mode","zh-TW":"對話模式",ko:"대화 모드",ja:"チャットモード",de:"Chat-Modus",es:"Modo chat",fr:"Mode conversation",it:"Modalità chat",da:"Chat-tilstand",pl:"Tryb czatu",ru:"Режим чата",ar:"وضع المحادثة",no:"Chat-modus","pt-BR":"Modo chat",th:"โหมดแชท",tr:"Sohbet modu",uk:"Режим чату"},"ui.rawMode":{zh:"查看网络报文",en:"Network Packets","zh-TW":"查看網路封包",ko:"네트워크 패킷 보기",ja:"ネットワークパケット",de:"Netzwerkpakete",es:"Paquetes de red",fr:"Paquets réseau",it:"Pacchetti di rete",da:"Netværkspakker",pl:"Pakiety sieciowe",ru:"Сетевые пакеты",ar:"حزم الشبكة",no:"Nettverkspakker","pt-BR":"Pacotes de rede",th:"แพ็กเก็ตเครือข่าย",tr:"Ağ paketleri",uk:"Мережеві пакети"},"ui.viewRequest":{zh:"查看请求",en:"View Request","zh-TW":"查看請求",ko:"요청 보기",ja:"リクエストを表示",de:"Anfrage anzeigen",es:"Ver solicitud",fr:"Voir la requête",it:"Visualizza richiesta",da:"Vis forespørgsel",pl:"Zobacz żądanie",ru:"Просмотр запроса",ar:"عرض الطلب",no:"Vis forespørsel","pt-BR":"Ver requisição",th:"ดูคำขอ",tr:"İsteği görüntüle",uk:"Переглянути запит"},"ui.viewInChat":{zh:"在对话中查看",en:"View in chat","zh-TW":"在對話中查看",ko:"대화에서 보기",ja:"チャットで表示",de:"Im Chat anzeigen",es:"Ver en chat",fr:"Voir dans le chat",it:"Vedi nella chat",da:"Vis i chat",pl:"Zobacz w czacie",ru:"Посмотреть в чате",ar:"عرض في المحادثة",no:"Vis i chat","pt-BR":"Ver no chat",th:"ดูในแชท",tr:"Sohbette görüntüle",uk:"Переглянути в чаті"},"ui.cannotMap":{zh:"无法映射到对话",en:"Cannot map to conversation","zh-TW":"無法映射到對話",ko:"대화에 매핑할 수 없습니다",ja:"会話にマッピングできません",de:"Kann nicht zur Konversation zugeordnet werden",es:"No se puede mapear a la conversación",fr:"Impossible de mapper à la conversation",it:"Impossibile mappare alla conversazione",da:"Kan ikke mappe til samtale",pl:"Nie można zmapować do rozmowy",ru:"Невозможно сопоставить с диалогом",ar:"لا يمكن الربط بالمحادثة",no:"Kan ikke tilordne til samtale","pt-BR":"Não é possível mapear para a conversa",th:"ไม่สามารถแมปไปยังการสนทนาได้",tr:"Konuşmaya eşlenemedi",uk:"Неможливо зіставити з діалогом"},"ui.cacheExpired":{zh:"已失效",en:"Expired","zh-TW":"已失效",ko:"만료됨",ja:"期限切れ",de:"Abgelaufen",es:"Expirado",fr:"Expiré",it:"Scaduto",da:"Udløbet",pl:"Wygasło",ru:"Истёк",ar:"منتهي الصلاحية",no:"Utløpt","pt-BR":"Expirado",th:"หมดอายุ",tr:"Süresi doldu",uk:"Закінчився"},"ui.cacheCountdown":{zh:"MainAgent 缓存{type}失效倒计时:",en:"MainAgent cache{type} expires in: ","zh-TW":"MainAgent 快取{type}失效倒數:",ko:"MainAgent cache{type} 만료 카운트다운: ",ja:"MainAgent cache{type} 期限切れまで: ",de:"MainAgent Cache{type} läuft ab in: ",es:"Cache{type} de MainAgent expira en: ",fr:"Cache{type} MainAgent expire dans : ",it:"Cache{type} MainAgent scade tra: ",da:"MainAgent cache{type} udløber om: ",pl:"Cache{type} MainAgent wygasa za: ",ru:"Cache{type} MainAgent истекает через: ",ar:"ينتهي cache{type} لـ MainAgent خلال: ",no:"MainAgent cache{type} utløper om: ","pt-BR":"Cache{type} do MainAgent expira em: ",th:"Cache{type} ของ MainAgent หมดอายุใน: ",tr:"MainAgent cache{type} süresi doluyor: ",uk:"Cache{type} MainAgent закінчується через: "},"ui.minuteSecond":{zh:"{m}分{s}秒",en:"{m}m{s}s","zh-TW":"{m}分{s}秒",ko:"{m}분{s}초",ja:"{m}分{s}秒",de:"{m}m{s}s",es:"{m}m{s}s",fr:"{m}m{s}s",it:"{m}m{s}s",da:"{m}m{s}s",pl:"{m}m{s}s",ru:"{m}м{s}с",ar:"{m}د{s}ث",no:"{m}m{s}s","pt-BR":"{m}m{s}s",th:"{m}นาที{s}วินาที",tr:"{m}dk{s}sn",uk:"{m}хв{s}с"},"ui.second":{zh:"{s}秒",en:"{s}s","zh-TW":"{s}秒",ko:"{s}초",ja:"{s}秒",de:"{s}s",es:"{s}s",fr:"{s}s",it:"{s}s",da:"{s}s",pl:"{s}s",ru:"{s}с",ar:"{s}ث",no:"{s}s","pt-BR":"{s}s",th:"{s}วินาที",tr:"{s}sn",uk:"{s}с"},"ui.hitRate":{zh:"命中率",en:"Hit rate","zh-TW":"命中率",ko:"적중률",ja:"ヒット率",de:"Trefferquote",es:"Tasa de aciertos",fr:"Taux de succès",it:"Tasso di successo",da:"Hitrate",pl:"Współczynnik trafień",ru:"Процент попаданий",ar:"معدل الإصابة",no:"Treffrate","pt-BR":"Taxa de acerto",th:"อัตราการเข้าถึง",tr:"İsabet oranı",uk:"Відсоток влучень"},"ui.userPrompt":{zh:"用户 Prompt",en:"User Prompt","zh-TW":"用戶 Prompt",ko:"사용자 Prompt",ja:"ユーザー Prompt",de:"Benutzer-Prompt",es:"Prompt de usuario",fr:"Prompt utilisateur",it:"Prompt utente",da:"Bruger-Prompt",pl:"Prompt użytkownika",ru:"Prompt пользователя",ar:"Prompt المستخدم",no:"Bruker-Prompt","pt-BR":"Prompt do usuário",th:"Prompt ผู้ใช้",tr:"Kullanıcı Prompt",uk:"Prompt користувача"},"ui.noPrompt":{zh:"暂无用户 Prompt",en:"No user prompts yet","zh-TW":"暫無用戶 Prompt",ko:"사용자 Prompt 없음",ja:"ユーザー Prompt はまだありません",de:"Noch keine Benutzer-Prompts",es:"Sin prompts de usuario aún",fr:"Aucun prompt utilisateur",it:"Nessun prompt utente",da:"Ingen bruger-prompts endnu",pl:"Brak promptów użytkownika",ru:"Нет пользовательских Prompt",ar:"لا توجد Prompt للمستخدم بعد",no:"Ingen bruker-prompts ennå","pt-BR":"Nenhum prompt de usuário ainda",th:"ยังไม่มี Prompt ผู้ใช้",tr:"Henüz kullanıcı Prompt'u yok",uk:"Немає Prompt користувача"},"ui.promptCountUnit":{zh:"条",en:"","zh-TW":"條",ko:"개",ja:"件",de:"",es:"",fr:"",it:"",da:"",pl:"",ru:"",ar:"",no:"","pt-BR":"",th:"",tr:"",uk:""},"ui.promptModeOriginal":{zh:"原文模式",en:"Original"},"ui.promptModeContext":{zh:"上下文模式",en:"Context"},"ui.promptModeText":{zh:"Text模式",en:"Text"},"ui.unknownTime":{zh:"未知时间",en:"Unknown time","zh-TW":"未知時間",ko:"알 수 없는 시간",ja:"不明な時刻",de:"Unbekannte Zeit",es:"Hora desconocida",fr:"Heure inconnue",it:"Ora sconosciuta",da:"Ukendt tid",pl:"Nieznany czas",ru:"Неизвестное время",ar:"وقت غير معروف",no:"Ukjent tid","pt-BR":"Hora desconhecida",th:"เวลาไม่ทราบ",tr:"Bilinmeyen zaman",uk:"Невідомий час"},"ui.logCount":{zh:"{count} 个日志",en:"{count} logs","zh-TW":"{count} 個日誌",ko:"{count}개 로그",ja:"{count} 件のログ",de:"{count} Logs",es:"{count} logs",fr:"{count} logs",it:"{count} log",da:"{count} logs",pl:"{count} logów",ru:"{count} логов",ar:"{count} سجلات",no:"{count} logger","pt-BR":"{count} logs",th:"{count} บันทึก",tr:"{count} log",uk:"{count} логів"},"ui.noLogs":{zh:"暂无日志文件",en:"No log files","zh-TW":"暫無日誌檔案",ko:"로그 파일 없음",ja:"ログファイルなし",de:"Keine Log-Dateien",es:"Sin archivos de log",fr:"Aucun fichier de log",it:"Nessun file di log",da:"Ingen logfiler",pl:"Brak plików logów",ru:"Нет файлов логов",ar:"لا توجد ملفات سجلات",no:"Ingen loggfiler","pt-BR":"Nenhum arquivo de log",th:"ไม่มีไฟล์บันทึก",tr:"Log dosyası yok",uk:"Немає файлів логів"},"ui.footer.starRequest":{zh:"在此感谢各位GitHub大佬赏赐一个STAR",en:"Please give us a STAR on GitHub if you like it","zh-TW":"在此感謝各位GitHub大佬賞賜一個STAR",ko:"마음에 드시면 GitHub에서 STAR를 눌러주세요",ja:"よろしければGitHubでSTARをお願いします",de:"Bitte geben Sie uns einen STAR auf GitHub",es:"Por favor, danos una STAR en GitHub",fr:"Merci de nous donner une STAR sur GitHub",it:"Per favore, dacci una STAR su GitHub",da:"Giv os venligst en STAR på GitHub",pl:"Prosimy o STAR na GitHubie",ru:"Пожалуйста, поставьте нам STAR на GitHub",ar:"يرجى منحنا نجمة STAR على GitHub",no:"Vennligst gi oss en STAR på GitHub","pt-BR":"Por favor, nos dê uma STAR no GitHub",th:"กรุณาให้ STAR บน GitHub ด้วยนะครับ",tr:"Lütfen GitHub'da bize bir STAR verin",uk:"Будь ласка, поставте нам STAR на GitHub"},"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.terminal.exited":{zh:"[进程已退出,退出码: {code}]",en:"[Process exited with code {code}]","zh-TW":"[程序已退出,退出碼: {code}]",ko:"[프로세스가 코드 {code}(으)로 종료되었습니다]",ja:"[プロセスがコード {code} で終了しました]",de:"[Prozess mit Code {code} beendet]",es:"[Proceso finalizado con código {code}]",fr:"[Processus terminé avec le code {code}]",it:"[Processo terminato con codice {code}]",da:"[Proces afsluttet med kode {code}]",pl:"[Proces zakończony z kodem {code}]",ru:"[Процесс завершился с кодом {code}]",ar:"[انتهت العملية برمز {code}]",no:"[Prosess avsluttet med kode {code}]","pt-BR":"[Processo encerrado com código {code}]",th:"[กระบวนการออกด้วยรหัส {code}]",tr:"[İşlem {code} koduyla çıkış yaptı]",uk:"[Процес завершився з кодом {code}]"},"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:"Display Settings","zh-TW":"顯示設定",ko:"표시 설정",ja:"表示設定",de:"Anzeigeeinstellungen",es:"Configuración de visualización",fr:"Paramètres d'affichage",it:"Impostazioni di visualizzazione",da:"Visningsindstillinger",pl:"Ustawienia wyświetlania",ru:"Настройки отображения",ar:"إعدادات العرض",no:"Visningsinnstillinger","pt-BR":"Configurações de exibição",th:"ตั้งค่าการแสดงผล",tr:"Görüntüleme ayarları",uk:"Налаштування відображення"},"ui.collapseToolResults":{zh:"折叠工具返回内容",en:"Collapse tool results","zh-TW":"摺疊工具回傳內容",ko:"도구 결과 접기",ja:"ツール結果を折りたたむ",de:"Werkzeugergebnisse einklappen",es:"Contraer resultados de herramientas",fr:"Réduire les résultats des outils",it:"Comprimi risultati strumenti",da:"Skjul værktøjsresultater",pl:"Zwiń wyniki narzędzi",ru:"Свернуть результаты инструментов",ar:"طي نتائج الأدوات",no:"Skjul verktøyresultater","pt-BR":"Recolher resultados de ferramentas",th:"ย่อผลลัพธ์เครื่องมือ",tr:"Araç sonuçlarını daralt",uk:"Згорнути результати інструментів"},"ui.expandThinking":{zh:'展开"思考过程"',en:'Expand "Thinking"',"zh-TW":'展開"思考過程"',ko:'"사고 과정" 펼치기',ja:'"思考プロセス"を展開',de:'"Denkprozess" aufklappen',es:'Expandir "Proceso de pensamiento"',fr:'Développer "Processus de réflexion"',it:'Espandi "Processo di pensiero"',da:'Udvid "Tænkeproces"',pl:'Rozwiń "Proces myślenia"',ru:'Развернуть "Процесс мышления"',ar:'توسيع "عملية التفكير"',no:'Utvid "Tenkeprosess"',"pt-BR":'Expandir "Processo de pensamento"',th:'ขยาย "กระบวนการคิด"',tr:'"Düşünce süreci"ni genişlet',uk:'Розгорнути "Процес мислення"'},"ui.expandDiff":{zh:"默认展开 Body Diff JSON",en:"Expand Body Diff JSON by default","zh-TW":"預設展開 Body Diff JSON",ko:"Body Diff JSON 기본 펼치기",ja:"Body Diff JSON をデフォルトで展開",de:"Body Diff JSON standardmäßig aufklappen",es:"Expandir Body Diff JSON por defecto",fr:"Développer Body Diff JSON par défaut",it:"Espandi Body Diff JSON per impostazione predefinita",da:"Udvid Body Diff JSON som standard",pl:"Domyślnie rozwiń Body Diff JSON",ru:"Разворачивать Body Diff JSON по умолчанию",ar:"توسيع Body Diff JSON افتراضيًا",no:"Utvid Body Diff JSON som standard","pt-BR":"Expandir Body Diff JSON por padrão",th:"ขยาย Body Diff JSON เป็นค่าเริ่มต้น",tr:"Body Diff JSON'u varsayılan olarak genişlet",uk:"Розгортати Body Diff JSON за замовчуванням"},"ui.globalSettings":{zh:"全局设置",en:"Global Settings","zh-TW":"全域設定",ko:"전역 설정",ja:"グローバル設定",de:"Globale Einstellungen",es:"Configuración global",fr:"Paramètres globaux",it:"Impostazioni globali",da:"Globale indstillinger",pl:"Ustawienia globalne",ru:"Глобальные настройки",ar:"الإعدادات العامة",no:"Globale innstillinger","pt-BR":"Configurações globais",th:"ตั้งค่าทั่วไป",tr:"Genel ayarlar",uk:"Глобальні налаштування"},"ui.languageSettings":{zh:"语言设置",en:"Language","zh-TW":"語言設定",ko:"언어 설정",ja:"言語設定",de:"Sprache",es:"Idioma",fr:"Langue",it:"Lingua",da:"Sprog",pl:"Język",ru:"Язык",ar:"اللغة",no:"Språk","pt-BR":"Idioma",th:"ภาษา",tr:"Dil",uk:"Мова"},"ui.scanToCoding":{zh:"手机扫码编程",en:"Scan to Code","zh-TW":"手機掃碼編程",ko:"스캔하여 코딩",ja:"スキャンしてコーディング",de:"Scannen zum Programmieren",es:"Escanear para programar",fr:"Scanner pour coder",it:"Scansiona per programmare",da:"Scan for at kode",pl:"Skanuj, aby kodować",ru:"Сканируйте для кодирования",ar:"امسح للبرمجة",no:"Skann for å kode","pt-BR":"Escaneie para programar",th:"สแกนเพื่อเขียนโค้ด",tr:"Kodlamak için tarayın",uk:"Скануйте для кодування"},"ui.copied":{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.chatDisplaySwitches":{zh:"对话内容展示开关",en:"Chat Display Switches","zh-TW":"對話內容顯示開關",ko:"대화 표시 스위치",ja:"チャット表示スイッチ",de:"Chat-Anzeigeoptionen",es:"Opciones de visualización del chat",fr:"Options d'affichage du chat",it:"Opzioni di visualizzazione chat",da:"Chat-visningsindstillinger",pl:"Przełączniki wyświetlania czatu",ru:"Переключатели отображения чата",ar:"مفاتيح عرض المحادثة",no:"Chat-visningsbrytere","pt-BR":"Opções de exibição do chat",th:"สวิตช์การแสดงแชท",tr:"Sohbet görüntüleme ayarları",uk:"Перемикачі відображення чату"},"ui.filterIrrelevant":{zh:"过滤无关请求",en:"Filter irrelevant requests","zh-TW":"過濾無關請求",ko:"무관한 요청 필터링",ja:"無関係なリクエストをフィルタ",de:"Irrelevante Anfragen filtern",es:"Filtrar solicitudes irrelevantes",fr:"Filtrer les requêtes non pertinentes",it:"Filtra richieste irrilevanti",da:"Filtrer irrelevante forespørgsler",pl:"Filtruj nieistotne żądania",ru:"Фильтровать нерелевантные запросы",ar:"تصفية الطلبات غير ذات الصلة",no:"Filtrer irrelevante forespørsler","pt-BR":"Filtrar solicitações irrelevantes",th:"กรองคำขอที่ไม่เกี่ยวข้อง",tr:"İlgisiz istekleri filtrele",uk:"Фільтрувати нерелевантні запити"},"ui.thinking":{zh:"思考过程",en:"Thinking","zh-TW":"思考過程",ko:"사고 과정",ja:"思考プロセス",de:"Denkprozess",es:"Proceso de pensamiento",fr:"Processus de réflexion",it:"Processo di pensiero",da:"Tænkeproces",pl:"Proces myślenia",ru:"Процесс мышления",ar:"عملية التفكير",no:"Tenkeprosess","pt-BR":"Processo de pensamento",th:"กระบวนการคิด",tr:"Düşünce süreci",uk:"Процес мислення"},"ui.translate":{zh:"翻译",en:"Translate","zh-TW":"翻譯",ko:"번역",ja:"翻訳",de:"Übersetzen",es:"Traducir",fr:"Traduire",it:"Traduci",da:"Oversæt",pl:"Tłumacz",ru:"Перевести",ar:"ترجمة",no:"Oversett","pt-BR":"Traduzir",th:"แปล",tr:"Çevir",uk:"Перекласти"},"ui.translating":{zh:"翻译中…",en:"Translating…","zh-TW":"翻譯中…",ko:"번역 중…",ja:"翻訳中…",de:"Übersetze…",es:"Traduciendo…",fr:"Traduction…",it:"Traduzione…",da:"Oversætter…",pl:"Tłumaczenie…",ru:"Перевод…",ar:"جارٍ الترجمة…",no:"Oversetter…","pt-BR":"Traduzindo…",th:"กำลังแปล…",tr:"Çevriliyor…",uk:"Переклад…"},"ui.skillLoaded":{zh:"Skill 已加载",en:"Skill Loaded","zh-TW":"Skill 已載入",ko:"Skill 로드됨",ja:"Skill 読み込み済み",de:"Skill geladen",es:"Skill cargado",fr:"Skill chargé",it:"Skill caricato",da:"Skill indlæst",pl:"Skill załadowany",ru:"Skill загружен",ar:"تم تحميل Skill",no:"Skill lastet","pt-BR":"Skill carregado",th:"โหลด Skill แล้ว",tr:"Skill yüklendi",uk:"Skill завантажено"},"ui.cacheLoss.ttl":{zh:"缓存丢失:距上次 MainAgent 请求超过 5 分钟,缓存已过期",en:"Cache miss: over 5 minutes since last MainAgent request, cache expired","zh-TW":"快取遺失:距上次 MainAgent 請求超過 5 分鐘,快取已過期",ko:"캐시 손실: 마지막 MainAgent 요청 후 5분 초과, 캐시 만료",ja:"キャッシュミス:前回の MainAgent リクエストから5分以上経過、キャッシュ期限切れ",de:"Cache-Verlust: Über 5 Minuten seit letzter MainAgent-Anfrage, Cache abgelaufen",es:"Pérdida de caché: más de 5 minutos desde la última solicitud MainAgent, caché expirada",fr:"Perte de cache : plus de 5 minutes depuis la dernière requête MainAgent, cache expiré",it:"Cache persa: oltre 5 minuti dall'ultima richiesta MainAgent, cache scaduta",da:"Cache-tab: over 5 minutter siden sidste MainAgent-forespørgsel, cache udløbet",pl:"Utrata cache: ponad 5 minut od ostatniego żądania MainAgent, cache wygasł",ru:"Потеря кэша: прошло более 5 минут с последнего запроса MainAgent, кэш истёк",ar:"فقدان التخزين المؤقت: مرور أكثر من 5 دقائق منذ آخر طلب MainAgent، انتهت صلاحية التخزين المؤقت",no:"Cache-tap: over 5 minutter siden siste MainAgent-forespørsel, cache utløpt","pt-BR":"Perda de cache: mais de 5 minutos desde a última requisição MainAgent, cache expirado",th:"แคชหาย: เกิน 5 นาทีจากคำขอ MainAgent ล่าสุด แคชหมดอายุ",tr:"Önbellek kaybı: Son MainAgent isteğinden 5 dakikadan fazla geçti, önbellek süresi doldu",uk:"Втрата кешу: минуло понад 5 хвилин з останнього запиту MainAgent, кеш закінчився"},"ui.cacheLoss.systemChange":{zh:"缓存重建:system prompt 发生变更",en:"Cache rebuild: system prompt changed","zh-TW":"快取重建:system prompt 發生變更",ko:"캐시 재생성: 시스템 프롬프트 변경",ja:"キャッシュ再構築:システムプロンプトが変更されました",de:"Cache-Neuaufbau: System-Prompt geändert",es:"Reconstrucción de caché: el prompt del sistema cambió",fr:"Reconstruction du cache : le prompt système a changé",it:"Ricostruzione cache: il prompt di sistema è cambiato",da:"Cache-genopbygning: systemprompt ændret",pl:"Odbudowa cache: prompt systemowy zmieniony",ru:"Перестройка кэша: системный промпт изменён",ar:"إعادة بناء التخزين المؤقت: تم تغيير موجه النظام",no:"Cache-gjenoppbygging: systemprompt endret","pt-BR":"Reconstrução de cache: prompt do sistema alterado",th:"สร้างแคชใหม่: system prompt เปลี่ยนแปลง",tr:"Önbellek yeniden oluşturma: sistem istemi değişti",uk:"Перебудова кешу: системний промпт змінено"},"ui.cacheLoss.toolsChange":{zh:"缓存重建:工具定义发生变更",en:"Cache rebuild: tool definitions changed","zh-TW":"快取重建:工具定義發生變更",ko:"캐시 재생성: 도구 정의 변경",ja:"キャッシュ再構築:ツール定義が変更されました",de:"Cache-Neuaufbau: Tool-Definitionen geändert",es:"Reconstrucción de caché: las definiciones de herramientas cambiaron",fr:"Reconstruction du cache : les définitions d'outils ont changé",it:"Ricostruzione cache: le definizioni degli strumenti sono cambiate",da:"Cache-genopbygning: værktøjsdefinitioner ændret",pl:"Odbudowa cache: definicje narzędzi zmienione",ru:"Перестройка кэша: определения инструментов изменены",ar:"إعادة بناء التخزين المؤقت: تم تغيير تعريفات الأدوات",no:"Cache-gjenoppbygging: verktøydefinisjoner endret","pt-BR":"Reconstrução de cache: definições de ferramentas alteradas",th:"สร้างแคชใหม่: คำจำกัดความเครื่องมือเปลี่ยนแปลง",tr:"Önbellek yeniden oluşturma: araç tanımları değişti",uk:"Перебудова кешу: визначення інструментів змінено"},"ui.cacheLoss.modelChange":{zh:"缓存重建:模型切换",en:"Cache rebuild: model switched","zh-TW":"快取重建:模型切換",ko:"캐시 재생성: 모델 전환",ja:"キャッシュ再構築:モデルが切り替わりました",de:"Cache-Neuaufbau: Modell gewechselt",es:"Reconstrucción de caché: modelo cambiado",fr:"Reconstruction du cache : modèle changé",it:"Ricostruzione cache: modello cambiato",da:"Cache-genopbygning: model skiftet",pl:"Odbudowa cache: model zmieniony",ru:"Перестройка кэша: модель переключена",ar:"إعادة بناء التخزين المؤقت: تم تبديل النموذج",no:"Cache-gjenoppbygging: modell byttet","pt-BR":"Reconstrução de cache: modelo alterado",th:"สร้างแคชใหม่: เปลี่ยนโมเดล",tr:"Önbellek yeniden oluşturma: model değiştirildi",uk:"Перебудова кешу: модель переключено"},"ui.cacheLoss.msgTruncated":{zh:"缓存重建:消息栈被截断(上下文窗口溢出)",en:"Cache rebuild: message stack truncated (context window overflow)","zh-TW":"快取重建:訊息堆疊被截斷(上下文視窗溢出)",ko:"캐시 재생성: 메시지 스택 잘림 (컨텍스트 윈도우 오버플로)",ja:"キャッシュ再構築:メッセージスタックが切り詰められました(コンテキストウィンドウオーバーフロー)",de:"Cache-Neuaufbau: Nachrichtenstapel gekürzt (Kontextfenster-Überlauf)",es:"Reconstrucción de caché: pila de mensajes truncada (desbordamiento de ventana de contexto)",fr:"Reconstruction du cache : pile de messages tronquée (dépassement de la fenêtre de contexte)",it:"Ricostruzione cache: stack messaggi troncato (overflow finestra di contesto)",da:"Cache-genopbygning: beskedstakken afkortet (kontekstvindue-overløb)",pl:"Odbudowa cache: stos wiadomości obcięty (przepełnienie okna kontekstu)",ru:"Перестройка кэша: стек сообщений усечён (переполнение контекстного окна)",ar:"إعادة بناء التخزين المؤقت: تم اقتطاع مكدس الرسائل (تجاوز نافذة السياق)",no:"Cache-gjenoppbygging: meldingsstakken avkortet (kontekstvindu-overflyt)","pt-BR":"Reconstrução de cache: pilha de mensagens truncada (estouro da janela de contexto)",th:"สร้างแคชใหม่: สแต็กข้อความถูกตัด (context window ล้น)",tr:"Önbellek yeniden oluşturma: mesaj yığını kesildi (bağlam penceresi taşması)",uk:"Перебудова кешу: стек повідомлень обрізано (переповнення контекстного вікна)"},"ui.cacheLoss.msgModified":{zh:"缓存重建:历史消息内容被修改",en:"Cache rebuild: historical message content modified","zh-TW":"快取重建:歷史訊息內容被修改",ko:"캐시 재생성: 이전 메시지 내용 수정됨",ja:"キャッシュ再構築:過去のメッセージ内容が変更されました",de:"Cache-Neuaufbau: Historische Nachrichteninhalte geändert",es:"Reconstrucción de caché: contenido de mensajes históricos modificado",fr:"Reconstruction du cache : contenu des messages historiques modifié",it:"Ricostruzione cache: contenuto dei messaggi storici modificato",da:"Cache-genopbygning: historisk beskedindhold ændret",pl:"Odbudowa cache: treść historycznych wiadomości zmodyfikowana",ru:"Перестройка кэша: содержимое исторических сообщений изменено",ar:"إعادة بناء التخزين المؤقت: تم تعديل محتوى الرسائل السابقة",no:"Cache-gjenoppbygging: historisk meldingsinnhold endret","pt-BR":"Reconstrução de cache: conteúdo de mensagens históricas modificado",th:"สร้างแคชใหม่: เนื้อหาข้อความในประวัติถูกแก้ไข",tr:"Önbellek yeniden oluşturma: geçmiş mesaj içeriği değiştirildi",uk:"Перебудова кешу: вміст історичних повідомлень змінено"},"ui.cacheLoss.keyChange":{zh:"缓存重建:缓存键变更(原因未知)",en:"Cache rebuild: cache key changed (unknown reason)","zh-TW":"快取重建:快取鍵變更(原因未知)",ko:"캐시 재생성: 캐시 키 변경 (원인 불명)",ja:"キャッシュ再構築:キャッシュキーが変更されました(原因不明)",de:"Cache-Neuaufbau: Cache-Schlüssel geändert (Grund unbekannt)",es:"Reconstrucción de caché: clave de caché cambiada (razón desconocida)",fr:"Reconstruction du cache : clé de cache modifiée (raison inconnue)",it:"Ricostruzione cache: chiave cache cambiata (motivo sconosciuto)",da:"Cache-genopbygning: cache-nøgle ændret (ukendt årsag)",pl:"Odbudowa cache: klucz cache zmieniony (nieznana przyczyna)",ru:"Перестройка кэша: ключ кэша изменён (причина неизвестна)",ar:"إعادة بناء التخزين المؤقت: تم تغيير مفتاح التخزين المؤقت (سبب غير معروف)",no:"Cache-gjenoppbygging: cache-nøkkel endret (ukjent årsak)","pt-BR":"Reconstrução de cache: chave de cache alterada (motivo desconhecido)",th:"สร้างแคชใหม่: คีย์แคชเปลี่ยนแปลง (ไม่ทราบสาเหตุ)",tr:"Önbellek yeniden oluşturma: önbellek anahtarı değişti (bilinmeyen neden)",uk:"Перебудова кешу: ключ кешу змінено (причина невідома)"},"ui.cacheRebuildStats":{zh:"缓存重建统计",en:"Cache Rebuild Stats","zh-TW":"快取重建統計",ko:"캐시 재구축 통계",ja:"キャッシュ再構築統計",de:"Cache-Neuaufbau-Statistik",es:"Estadísticas de reconstrucción de caché",fr:"Statistiques de reconstruction du cache",it:"Statistiche ricostruzione cache",da:"Cache-genopbygningsstatistik",pl:"Statystyki przebudowy cache",ru:"Статистика перестройки кеша",ar:"إحصائيات إعادة بناء ذاكرة التخزين المؤقت",no:"Cache-gjenoppbyggingsstatistikk","pt-BR":"Estatísticas de reconstrução de cache",th:"สถิติการสร้างแคชใหม่",tr:"Önbellek Yeniden Oluşturma İstatistikleri",uk:"Статистика перебудови кешу"},"ui.cacheRebuild.reason":{zh:"原因",en:"Reason","zh-TW":"原因",ko:"원인",ja:"原因",de:"Ursache",es:"Razón",fr:"Raison",it:"Motivo",da:"Årsag",pl:"Przyczyna",ru:"Причина",ar:"السبب",no:"Årsak","pt-BR":"Razão",th:"สาเหตุ",tr:"Neden",uk:"Причина"},"ui.cacheRebuild.count":{zh:"次数",en:"Count","zh-TW":"次數",ko:"횟수",ja:"回数",de:"Anzahl",es:"Veces",fr:"Nombre",it:"Volte",da:"Antal",pl:"Liczba",ru:"Кол-во",ar:"العدد",no:"Antall","pt-BR":"Vezes",th:"จำนวน",tr:"Sayı",uk:"Кількість"},"ui.cacheRebuild.cacheCreate":{zh:"重建缓存量",en:"Cache Created","zh-TW":"重建快取量",ko:"재구축 캐시량",ja:"再構築キャッシュ量",de:"Cache erstellt",es:"Caché creado",fr:"Cache créé",it:"Cache creata",da:"Cache oprettet",pl:"Utworzony cache",ru:"Создано кеша",ar:"الذاكرة المؤقتة المُنشأة",no:"Cache opprettet","pt-BR":"Cache criado",th:"แคชที่สร้าง",tr:"Oluşturulan önbellek",uk:"Створено кешу"},"ui.cacheRebuild.ttl":{zh:"缓存过期",en:"Cache Expired","zh-TW":"快取過期",ko:"캐시 만료",ja:"キャッシュ期限切れ",de:"Cache abgelaufen",es:"Caché expirado",fr:"Cache expiré",it:"Cache scaduta",da:"Cache udløbet",pl:"Cache wygasł",ru:"Кеш истёк",ar:"انتهاء صلاحية الذاكرة المؤقتة",no:"Cache utløpt","pt-BR":"Cache expirado",th:"แคชหมดอายุ",tr:"Önbellek süresi doldu",uk:"Кеш закінчився"},"ui.cacheRebuild.systemChange":{zh:"System Prompt 变更",en:"System Prompt Changed","zh-TW":"System Prompt 變更",ko:"System Prompt 변경",ja:"System Prompt 変更",de:"System Prompt geändert",es:"System Prompt cambiado",fr:"System Prompt modifié",it:"System Prompt modificato",da:"System Prompt ændret",pl:"System Prompt zmieniony",ru:"System Prompt изменён",ar:"تغيير System Prompt",no:"System Prompt endret","pt-BR":"System Prompt alterado",th:"System Prompt เปลี่ยนแปลง",tr:"System Prompt değişti",uk:"System Prompt змінено"},"ui.cacheRebuild.toolsChange":{zh:"工具定义变更",en:"Tools Changed","zh-TW":"工具定義變更",ko:"도구 정의 변경",ja:"ツール定義変更",de:"Tools geändert",es:"Herramientas cambiadas",fr:"Outils modifiés",it:"Strumenti modificati",da:"Værktøjer ændret",pl:"Narzędzia zmienione",ru:"Инструменты изменены",ar:"تغيير الأدوات",no:"Verktøy endret","pt-BR":"Ferramentas alteradas",th:"เครื่องมือเปลี่ยนแปลง",tr:"Araçlar değişti",uk:"Інструменти змінено"},"ui.cacheRebuild.modelChange":{zh:"模型切换",en:"Model Switched","zh-TW":"模型切換",ko:"모델 전환",ja:"モデル切替",de:"Modell gewechselt",es:"Modelo cambiado",fr:"Modèle changé",it:"Modello cambiato",da:"Model skiftet",pl:"Model zmieniony",ru:"Модель переключена",ar:"تبديل النموذج",no:"Modell byttet","pt-BR":"Modelo alterado",th:"เปลี่ยนโมเดล",tr:"Model değiştirildi",uk:"Модель переключено"},"ui.cacheRebuild.msgTruncated":{zh:"消息栈被截断",en:"Messages Truncated","zh-TW":"訊息堆疊被截斷",ko:"메시지 스택 잘림",ja:"メッセージスタック切り詰め",de:"Nachrichten abgeschnitten",es:"Mensajes truncados",fr:"Messages tronqués",it:"Messaggi troncati",da:"Beskeder afkortet",pl:"Wiadomości obcięte",ru:"Сообщения обрезаны",ar:"اقتطاع الرسائل",no:"Meldinger avkortet","pt-BR":"Mensagens truncadas",th:"ข้อความถูกตัด",tr:"Mesajlar kesildi",uk:"Повідомлення обрізано"},"ui.cacheRebuild.msgModified":{zh:"历史消息修改",en:"Messages Modified","zh-TW":"歷史訊息修改",ko:"기록 메시지 수정",ja:"履歴メッセージ変更",de:"Nachrichten geändert",es:"Mensajes modificados",fr:"Messages modifiés",it:"Messaggi modificati",da:"Beskeder ændret",pl:"Wiadomości zmodyfikowane",ru:"Сообщения изменены",ar:"تعديل الرسائل",no:"Meldinger endret","pt-BR":"Mensagens modificadas",th:"ข้อความถูกแก้ไข",tr:"Mesajlar değiştirildi",uk:"Повідомлення змінено"},"ui.cacheRebuild.keyChange":{zh:"未知键变更",en:"Unknown Key Change","zh-TW":"未知鍵變更",ko:"알 수 없는 키 변경",ja:"不明なキー変更",de:"Unbekannte Schlüsseländerung",es:"Cambio de clave desconocido",fr:"Changement de clé inconnu",it:"Modifica chiave sconosciuta",da:"Ukendt nøgleændring",pl:"Nieznana zmiana klucza",ru:"Неизвестное изменение ключа",ar:"تغيير مفتاح غير معروف",no:"Ukjent nøkkelendring","pt-BR":"Alteração de chave desconhecida",th:"การเปลี่ยนแปลงคีย์ที่ไม่ทราบ",tr:"Bilinmeyen anahtar değişikliği",uk:"Невідома зміна ключа"},"ui.skillUsageStats":{zh:"Skill 使用统计",en:"Skill Usage Stats","zh-TW":"Skill 使用統計",ko:"Skill 사용 통계",ja:"Skill 使用統計",de:"Skill-Nutzungsstatistik",es:"Estadísticas de uso de Skills",fr:"Statistiques d'utilisation des Skills",it:"Statistiche utilizzo Skill",da:"Skill-brugsstatistik",pl:"Statystyki użycia Skill",ru:"Статистика использования Skill",ar:"إحصائيات استخدام Skill",no:"Skill-bruksstatistikk","pt-BR":"Estatísticas de uso de Skills",th:"สถิติการใช้ Skill",tr:"Skill Kullanım İstatistikleri",uk:"Статистика використання Skill"},"ui.toolUsageStats":{zh:"工具使用统计",en:"Tool Usage Stats","zh-TW":"工具使用統計",ko:"도구 사용 통계",ja:"ツール使用統計",de:"Tool-Nutzungsstatistik",es:"Estadísticas de uso de herramientas",fr:"Statistiques d'utilisation des outils",it:"Statistiche utilizzo strumenti",da:"Værktøjsbrugsstatistik",pl:"Statystyki użycia narzędzi",ru:"Статистика использования инструментов",ar:"إحصائيات استخدام الأدوات",no:"Verktøybruksstatistikk","pt-BR":"Estatísticas de uso de ferramentas",th:"สถิติการใช้เครื่องมือ",tr:"Araç Kullanım İstatistikleri",uk:"Статистика використання інструментів"},"ui.subAgentStats":{zh:"SubAgent 调用统计",en:"SubAgent Call Stats","zh-TW":"SubAgent 調用統計",ko:"SubAgent 호출 통계",ja:"SubAgent 呼び出し統計",de:"SubAgent-Aufrufstatistik",es:"Estadísticas de llamadas SubAgent",fr:"Statistiques d'appels SubAgent",it:"Statistiche chiamate SubAgent",da:"SubAgent-kaldsstatistik",pl:"Statystyki wywołań SubAgent",ru:"Статистика вызовов SubAgent",ar:"إحصائيات استدعاء SubAgent",no:"SubAgent-anropsstatistikk","pt-BR":"Estatísticas de chamadas SubAgent",th:"สถิติการเรียก SubAgent",tr:"SubAgent Çağrı İstatistikleri",uk:"Статистика викликів SubAgent"},"ui.mergeLogs":{zh:"合并日志",en:"Merge Logs","zh-TW":"合併日誌",ko:"로그 병합",ja:"ログを結合",de:"Logs zusammenführen",es:"Fusionar logs",fr:"Fusionner les logs",it:"Unisci log",da:"Flet logs",pl:"Scal logi",ru:"Объединить логи",ar:"دمج السجلات",no:"Slå sammen logger","pt-BR":"Mesclar logs",th:"รวมบันทึก",tr:"Logları birleştir",uk:"Об'єднати логи"},"ui.openLog":{zh:"打开",en:"Open","zh-TW":"開啟",ko:"열기",ja:"開く",de:"Öffnen",es:"Abrir",fr:"Ouvrir",it:"Apri",da:"Åbn",pl:"Otwórz",ru:"Открыть",ar:"فتح",no:"Åpne","pt-BR":"Abrir",th:"เปิด",tr:"Aç",uk:"Відкрити"},"ui.turns":{zh:"轮",en:"turns","zh-TW":"輪",ko:"턴",ja:"ターン",de:"Runden",es:"turnos",fr:"tours",it:"turni",da:"runder",pl:"tur",ru:"ходов",ar:"جولات",no:"runder","pt-BR":"turnos",th:"รอบ",tr:"tur",uk:"ходів"},"ui.mergeNotConsecutive":{zh:"请选择连续的日志文件",en:"Please select consecutive log files","zh-TW":"請選擇連續的日誌檔案",ko:"연속된 로그 파일을 선택하세요",ja:"連続したログファイルを選択してください",de:"Bitte wählen Sie aufeinanderfolgende Log-Dateien",es:"Seleccione archivos de log consecutivos",fr:"Veuillez sélectionner des fichiers de log consécutifs",it:"Seleziona file di log consecutivi",da:"Vælg venligst sammenhængende logfiler",pl:"Wybierz kolejne pliki logów",ru:"Выберите последовательные файлы логов",ar:"يرجى اختيار ملفات سجلات متتالية",no:"Velg sammenhengende loggfiler","pt-BR":"Selecione arquivos de log consecutivos",th:"กรุณาเลือกไฟล์บันทึกที่ต่อเนื่องกัน",tr:"Lütfen ardışık log dosyalarını seçin",uk:"Виберіть послідовні файли логів"},"ui.mergeTooLarge":{zh:"选中的日志文件总大小超过 500MB",en:"Selected log files exceed 500MB","zh-TW":"選中的日誌檔案總大小超過 500MB",ko:"선택한 로그 파일의 총 크기가 500MB를 초과합니다",ja:"選択したログファイルの合計サイズが 500MB を超えています",de:"Ausgewählte Log-Dateien überschreiten 500MB",es:"Los archivos de log seleccionados superan los 500MB",fr:"Les fichiers de log sélectionnés dépassent 500 Mo",it:"I file di log selezionati superano i 500MB",da:"Valgte logfiler overstiger 500MB",pl:"Wybrane pliki logów przekraczają 500MB",ru:"Выбранные файлы логов превышают 500МБ",ar:"ملفات السجلات المحددة تتجاوز 500 ميجابايت",no:"Valgte loggfiler overstiger 500MB","pt-BR":"Arquivos de log selecionados excedem 500MB",th:"ไฟล์บันทึกที่เลือกมีขนาดรวมเกิน 500MB",tr:"Seçilen log dosyaları 500MB'ı aşıyor",uk:"Вибрані файли логів перевищують 500МБ"},"ui.mergeSuccess":{zh:"日志合并成功",en:"Logs merged successfully","zh-TW":"日誌合併成功",ko:"로그 병합 성공",ja:"ログの結合に成功しました",de:"Logs erfolgreich zusammengeführt",es:"Logs fusionados correctamente",fr:"Logs fusionnés avec succès",it:"Log uniti con successo",da:"Logs flettet",pl:"Logi scalone pomyślnie",ru:"Логи успешно объединены",ar:"تم دمج السجلات بنجاح",no:"Logger slått sammen","pt-BR":"Logs mesclados com sucesso",th:"รวมบันทึกสำเร็จ",tr:"Loglar başarıyla birleştirildi",uk:"Логи успішно об'єднано"},"ui.mergeLatestNotAllowed":{zh:"最新的日志文件不允许被合并,以避免当前窗口日志丢失",en:"The latest log file cannot be merged to avoid losing the current session","zh-TW":"最新的日誌檔案不允許被合併,以避免當前視窗日誌遺失",ko:"현재 세션 손실을 방지하기 위해 최신 로그 파일은 병합할 수 없습니다",ja:"現在のセッションの損失を防ぐため、最新のログファイルは結合できません",de:"Die neueste Logdatei kann nicht zusammengeführt werden, um den Verlust der aktuellen Sitzung zu vermeiden",es:"El archivo de log más reciente no se puede fusionar para evitar perder la sesión actual",fr:"Le fichier de log le plus récent ne peut pas être fusionné pour éviter la perte de la session en cours",it:"Il file di log più recente non può essere unito per evitare la perdita della sessione corrente",da:"Den nyeste logfil kan ikke flettes for at undgå tab af den aktuelle session",pl:"Najnowszy plik logów nie może być scalony, aby uniknąć utraty bieżącej sesji",ru:"Последний файл логов не может быть объединён, чтобы избежать потери текущей сессии",ar:"لا يمكن دمج أحدث ملف سجل لتجنب فقدان الجلسة الحالية",no:"Den nyeste loggfilen kan ikke slås sammen for å unngå tap av gjeldende økt","pt-BR":"O arquivo de log mais recente não pode ser mesclado para evitar perda da sessão atual",th:"ไม่สามารถรวมไฟล์บันทึกล่าสุดเพื่อหลีกเลี่ยงการสูญเสียเซสชันปัจจุบัน",tr:"Mevcut oturumun kaybını önlemek için en son günlük dosyası birleştirilemez",uk:"Найновіший файл логів не може бути об'єднаний, щоб уникнути втрати поточної сесії"},"ui.projectStats":{zh:"项目统计",en:"Project Stats","zh-TW":"專案統計",ko:"프로젝트 통계",ja:"プロジェクト統計",de:"Projektstatistik",es:"Estadísticas del proyecto",fr:"Statistiques du projet",it:"Statistiche progetto",da:"Projektstatistik",pl:"Statystyki projektu",ru:"Статистика проекта",ar:"إحصائيات المشروع",no:"Prosjektstatistikk","pt-BR":"Estatísticas do projeto",th:"สถิติโปรเจกต์",tr:"Proje İstatistikleri",uk:"Статистика проєкту"},"ui.projectStats.totalRequests":{zh:"总请求数",en:"Total Requests","zh-TW":"總請求數",ko:"총 요청 수",ja:"リクエスト総数",de:"Gesamtanfragen",es:"Total de solicitudes",fr:"Total des requêtes",it:"Richieste totali",da:"Samlede forespørgsler",pl:"Łączna liczba żądań",ru:"Всего запросов",ar:"إجمالي الطلبات",no:"Totale forespørsler","pt-BR":"Total de requisições",th:"คำขอทั้งหมด",tr:"Toplam İstekler",uk:"Всього запитів"},"ui.projectStats.sessionCount":{zh:"会话轮次",en:"Sessions","zh-TW":"會話輪次",ko:"세션 수",ja:"セッション数",de:"Sitzungen",es:"Sesiones",fr:"Sessions",it:"Sessioni",da:"Sessioner",pl:"Sesje",ru:"Сессий",ar:"الجلسات",no:"Sesjoner","pt-BR":"Sessões",th:"เซสชัน",tr:"Oturumlar",uk:"Сесії"},"ui.projectStats.totalFiles":{zh:"会话文件数",en:"Session Files","zh-TW":"會話檔案數",ko:"세션 파일 수",ja:"セッションファイル数",de:"Sitzungsdateien",es:"Archivos de sesión",fr:"Fichiers de session",it:"File di sessione",da:"Sessionsfiler",pl:"Pliki sesji",ru:"Файлов сессий",ar:"ملفات الجلسات",no:"Sesjonsfiler","pt-BR":"Arquivos de sessão",th:"ไฟล์เซสชัน",tr:"Oturum Dosyaları",uk:"Файли сесій"},"ui.projectStats.modelUsage":{zh:"模型使用统计",en:"Model Usage","zh-TW":"模型使用統計",ko:"모델 사용 통계",ja:"モデル使用統計",de:"Modellnutzung",es:"Uso de modelos",fr:"Utilisation des modèles",it:"Utilizzo modelli",da:"Modelbrug",pl:"Użycie modeli",ru:"Использование моделей",ar:"استخدام النماذج",no:"Modellbruk","pt-BR":"Uso de modelos",th:"การใช้โมเดล",tr:"Model Kullanımı",uk:"Використання моделей"},"ui.projectStats.noData":{zh:"暂无统计数据",en:"No stats available","zh-TW":"暫無統計資料",ko:"통계 데이터 없음",ja:"統計データなし",de:"Keine Statistiken verfügbar",es:"Sin estadísticas disponibles",fr:"Aucune statistique disponible",it:"Nessuna statistica disponibile",da:"Ingen statistik tilgængelig",pl:"Brak dostępnych statystyk",ru:"Статистика недоступна",ar:"لا توجد إحصائيات متاحة",no:"Ingen statistikk tilgjengelig","pt-BR":"Sem estatísticas disponíveis",th:"ไม่มีข้อมูลสถิติ",tr:"İstatistik mevcut değil",uk:"Статистика недоступна"},"ui.projectStats.updatedAt":{zh:"更新于 {time}",en:"Updated at {time}","zh-TW":"更新於 {time}",ko:"{time}에 업데이트됨",ja:"{time} に更新",de:"Aktualisiert um {time}",es:"Actualizado a las {time}",fr:"Mis à jour à {time}",it:"Aggiornato alle {time}",da:"Opdateret {time}",pl:"Zaktualizowano {time}",ru:"Обновлено в {time}",ar:"تم التحديث في {time}",no:"Oppdatert {time}","pt-BR":"Atualizado em {time}",th:"อัปเดตเมื่อ {time}",tr:"{time} tarihinde güncellendi",uk:"Оновлено о {time}"},"ui.update.completed":{zh:"已更新到 v{version},下次启动生效",en:"Updated to v{version}, effective on next restart","zh-TW":"已更新到 v{version},下次啟動生效",ko:"v{version}으로 업데이트됨, 다음 시작 시 적용",ja:"v{version} に更新済み、次回起動時に有効",de:"Auf v{version} aktualisiert, wirksam beim nächsten Neustart",es:"Actualizado a v{version}, efectivo en el próximo reinicio",fr:"Mis à jour vers v{version}, effectif au prochain redémarrage",it:"Aggiornato a v{version}, effettivo al prossimo riavvio",da:"Opdateret til v{version}, træder i kraft ved næste genstart",pl:"Zaktualizowano do v{version}, obowiązuje po ponownym uruchomieniu",ru:"Обновлено до v{version}, вступит в силу при следующем запуске",ar:"تم التحديث إلى v{version}، سيسري عند إعادة التشغيل التالية",no:"Oppdatert til v{version}, trer i kraft ved neste omstart","pt-BR":"Atualizado para v{version}, efetivo na próxima reinicialização",th:"อัปเดตเป็น v{version} แล้ว มีผลเมื่อเริ่มใหม่",tr:"v{version} sürümüne güncellendi, bir sonraki başlatmada geçerli",uk:"Оновлено до v{version}, набуде чинності при наступному запуску"},"ui.update.majorAvailable":{zh:"新大版本 v{version} 可用,请手动更新: npm i -g cc-viewer@latest",en:"Major version v{version} available, update manually: npm i -g cc-viewer@latest","zh-TW":"新大版本 v{version} 可用,請手動更新: npm i -g cc-viewer@latest",ko:"새 메이저 버전 v{version} 사용 가능, 수동 업데이트: npm i -g cc-viewer@latest",ja:"メジャーバージョン v{version} が利用可能、手動更新: npm i -g cc-viewer@latest",de:"Hauptversion v{version} verfügbar, manuell aktualisieren: npm i -g cc-viewer@latest",es:"Versión principal v{version} disponible, actualice: npm i -g cc-viewer@latest",fr:"Version majeure v{version} disponible, mettez à jour : npm i -g cc-viewer@latest",it:"Versione principale v{version} disponibile, aggiornare: npm i -g cc-viewer@latest",da:"Hovedversion v{version} tilgængelig, opdater manuelt: npm i -g cc-viewer@latest",pl:"Główna wersja v{version} dostępna, zaktualizuj: npm i -g cc-viewer@latest",ru:"Доступна основная версия v{version}, обновите: npm i -g cc-viewer@latest",ar:"الإصدار الرئيسي v{version} متاح، حدّث يدويًا: npm i -g cc-viewer@latest",no:"Hovedversjon v{version} tilgjengelig, oppdater manuelt: npm i -g cc-viewer@latest","pt-BR":"Versão principal v{version} disponível, atualize: npm i -g cc-viewer@latest",th:"เวอร์ชันหลัก v{version} พร้อมใช้งาน อัปเดตด้วยตนเอง: npm i -g cc-viewer@latest",tr:"Ana sürüm v{version} mevcut, manuel güncelleyin: npm i -g cc-viewer@latest",uk:"Доступна основна версія v{version}, оновіть: npm i -g cc-viewer@latest"},"ui.chatInput.placeholder":{zh:"输入消息发送给 Claude...",en:"Type a message to Claude...","zh-TW":"輸入訊息傳送給 Claude...",ko:"Claude에게 메시지를 입력하세요...",ja:"Claudeにメッセージを入力...",de:"Nachricht an Claude eingeben...",es:"Escribe un mensaje para Claude...",fr:"Tapez un message pour Claude...",it:"Scrivi un messaggio per Claude...",da:"Skriv en besked til Claude...",pl:"Wpisz wiadomość do Claude...",ru:"Введите сообщение для Claude...",ar:"اكتب رسالة إلى Claude...",no:"Skriv en melding til Claude...","pt-BR":"Digite uma mensagem para o Claude...",th:"พิมพ์ข้อความถึง Claude...",tr:"Claude'a mesaj yazın...",uk:"Введіть повідомлення для Claude..."},"ui.chatInput.send":{zh:"发送",en:"Send","zh-TW":"傳送",ko:"보내기",ja:"送信",de:"Senden",es:"Enviar",fr:"Envoyer",it:"Invia",da:"Send",pl:"Wyślij",ru:"Отправить",ar:"إرسال",no:"Send","pt-BR":"Enviar",th:"ส่ง",tr:"Gönder",uk:"Надіслати"},"ui.chatInput.hintEnter":{zh:"Enter 发送,Shift+Enter 换行",en:"Enter to send, Shift+Enter for new line","zh-TW":"Enter 傳送,Shift+Enter 換行",ko:"Enter로 전송, Shift+Enter로 줄바꿈",ja:"Enterで送信、Shift+Enterで改行",de:"Enter zum Senden, Shift+Enter für neue Zeile",es:"Enter para enviar, Shift+Enter para nueva línea",fr:"Entrée pour envoyer, Shift+Entrée pour nouvelle ligne",it:"Invio per inviare, Shift+Invio per nuova riga",da:"Enter for at sende, Shift+Enter for ny linje",pl:"Enter aby wysłać, Shift+Enter nowa linia",ru:"Enter — отправить, Shift+Enter — новая строка",ar:"Enter للإرسال، Shift+Enter لسطر جديد",no:"Enter for å sende, Shift+Enter for ny linje","pt-BR":"Enter para enviar, Shift+Enter para nova linha",th:"Enter ส่ง, Shift+Enter ขึ้นบรรทัดใหม่",tr:"Enter gönder, Shift+Enter yeni satır",uk:"Enter — надіслати, Shift+Enter — новий рядок"},"ui.chatInput.hintTab":{zh:"Tab 接受建议",en:"Tab to accept suggestion","zh-TW":"Tab 接受建議",ko:"Tab으로 제안 수락",ja:"Tabで提案を受け入れ",de:"Tab zum Akzeptieren des Vorschlags",es:"Tab para aceptar sugerencia",fr:"Tab pour accepter la suggestion",it:"Tab per accettare il suggerimento",da:"Tab for at acceptere forslag",pl:"Tab aby zaakceptować sugestię",ru:"Tab — принять предложение",ar:"Tab لقبول الاقتراح",no:"Tab for å akseptere forslag","pt-BR":"Tab para aceitar sugestão",th:"Tab ยอมรับคำแนะนำ",tr:"Tab ile öneriyi kabul et",uk:"Tab — прийняти пропозицію"},"ui.terminal":{zh:"终端",en:"Terminal","zh-TW":"終端機",ko:"터미널",ja:"ターミナル",de:"Terminal",es:"Terminal",fr:"Terminal",it:"Terminale",da:"Terminal",pl:"Terminal",ru:"Терминал",ar:"طرفية",no:"Terminal","pt-BR":"Terminal",th:"เทอร์มินัล",tr:"Terminal",uk:"Термінал"},"ui.stickyBottom":{zh:"保持吸底",en:"Stick to bottom","zh-TW":"保持置底",ko:"하단 고정",ja:"下部に固定",de:"Unten fixieren",es:"Fijar al fondo",fr:"Fixer en bas",it:"Fissa in basso",da:"Fastgør i bunden",pl:"Przypnij na dole",ru:"Прикрепить внизу",ar:"تثبيت في الأسفل",no:"Fest til bunnen","pt-BR":"Fixar no fundo",th:"ตรึงด้านล่าง",tr:"Alta sabitle",uk:"Закріпити внизу"},"ui.askQuestion":{zh:"提问",en:"Question","zh-TW":"提問",ko:"질문",ja:"質問",de:"Frage",es:"Pregunta",fr:"Question",it:"Domanda",da:"Spørgsmål",pl:"Pytanie",ru:"Вопрос",ar:"سؤال",no:"Spørsmål","pt-BR":"Pergunta",th:"คำถาม",tr:"Soru",uk:"Питання"},"ui.enterPlanMode":{zh:"进入计划模式",en:"Entering Plan Mode","zh-TW":"進入計劃模式",ko:"계획 모드 진입",ja:"プランモードに入ります",de:"Planungsmodus wird gestartet",es:"Entrando en modo de planificación",fr:"Entrée en mode planification",it:"Accesso alla modalità pianificazione",da:"Går ind i planlægningstilstand",pl:"Wchodzenie w tryb planowania",ru:"Вход в режим планирования",ar:"الدخول في وضع التخطيط",no:"Går inn i planleggingsmodus","pt-BR":"Entrando no modo de planejamento",th:"เข้าสู่โหมดวางแผน",tr:"Plan moduna giriliyor",uk:"Вхід у режим планування"},"ui.exitPlanMode":{zh:"计划就绪,等待审批",en:"Plan Ready for Approval","zh-TW":"計劃就緒,等待審批",ko:"계획 준비 완료, 승인 대기",ja:"プラン準備完了、承認待ち",de:"Plan bereit zur Genehmigung",es:"Plan listo para aprobación",fr:"Plan prêt pour approbation",it:"Piano pronto per l'approvazione",da:"Plan klar til godkendelse",pl:"Plan gotowy do zatwierdzenia",ru:"План готов к утверждению",ar:"الخطة جاهزة للموافقة",no:"Plan klar for godkjenning","pt-BR":"Plano pronto para aprovação",th:"แผนพร้อมรอการอนุมัติ",tr:"Plan onaya hazır",uk:"План готовий до затвердження"},"ui.allowedPrompts":{zh:"请求的权限",en:"Requested Permissions","zh-TW":"請求的權限",ko:"요청된 권한",ja:"要求された権限",de:"Angeforderte Berechtigungen",es:"Permisos solicitados",fr:"Permissions demandées",it:"Permessi richiesti",da:"Anmodede tilladelser",pl:"Żądane uprawnienia",ru:"Запрошенные разрешения",ar:"الأذونات المطلوبة",no:"Forespurte tillatelser","pt-BR":"Permissões solicitadas",th:"สิทธิ์ที่ร้องขอ",tr:"İstenen izinler",uk:"Запитані дозволи"},"ui.context.systemPrompt":{zh:"系统提示词",en:"System Prompt","zh-TW":"系統提示詞",ko:"시스템 프롬프트",ja:"システムプロンプト",de:"System-Prompt",es:"Prompt del sistema",fr:"Prompt système",it:"Prompt di sistema",da:"System-prompt",pl:"Prompt systemowy",ru:"Системный промпт",ar:"موجه النظام",no:"System-prompt","pt-BR":"Prompt do sistema",th:"System Prompt",tr:"Sistem Prompt'u",uk:"Системний промпт"},"ui.context.messages":{zh:"消息",en:"Messages","zh-TW":"訊息",ko:"메시지",ja:"メッセージ",de:"Nachrichten",es:"Mensajes",fr:"Messages",it:"Messaggi",da:"Beskeder",pl:"Wiadomości",ru:"Сообщения",ar:"الرسائل",no:"Meldinger","pt-BR":"Mensagens",th:"ข้อความ",tr:"Mesajlar",uk:"Повідомлення"},"ui.context.tools":{zh:"工具",en:"Tools","zh-TW":"工具",ko:"도구",ja:"ツール",de:"Tools",es:"Herramientas",fr:"Outils",it:"Strumenti",da:"Værktøjer",pl:"Narzędzia",ru:"Инструменты",ar:"الأدوات",no:"Verktøy","pt-BR":"Ferramentas",th:"เครื่องมือ",tr:"Araçlar",uk:"Інструменти"},"ui.context.noData":{zh:"暂无 Context 数据",en:"No context data","zh-TW":"暫無 Context 資料",ko:"컨텍스트 데이터 없음",ja:"コンテキストデータなし",de:"Keine Kontextdaten",es:"Sin datos de contexto",fr:"Aucune donnée de contexte",it:"Nessun dato di contesto",da:"Ingen kontekstdata",pl:"Brak danych kontekstu",ru:"Нет данных контекста",ar:"لا توجد بيانات سياق",no:"Ingen kontekstdata","pt-BR":"Sem dados de contexto",th:"ไม่มีข้อมูล Context",tr:"Bağlam verisi yok",uk:"Немає даних контексту"},"ui.context.noFields":{zh:"Request body 中未找到 messages / system / tools",en:"No messages / system / tools found in request body","zh-TW":"Request body 中未找到 messages / system / tools",ko:"요청 본문에서 messages / system / tools를 찾을 수 없음",ja:"リクエストボディに messages / system / tools が見つかりません",de:"Keine messages / system / tools im Request-Body gefunden",es:"No se encontraron messages / system / tools en el cuerpo de la solicitud",fr:"Aucun messages / system / tools dans le corps de la requête",it:"Nessun messages / system / tools trovato nel corpo della richiesta",da:"Ingen messages / system / tools fundet i request body",pl:"Nie znaleziono messages / system / tools w treści żądania",ru:"В теле запроса не найдено messages / system / tools",ar:"لم يتم العثور على messages / system / tools في جسم الطلب",no:"Ingen messages / system / tools funnet i request body","pt-BR":"Nenhum messages / system / tools encontrado no corpo da requisição",th:"ไม่พบ messages / system / tools ใน request body",tr:"İstek gövdesinde messages / system / tools bulunamadı",uk:"У тілі запиту не знайдено messages / system / tools"},"ui.context.selectPrompt":{zh:"请在左侧选择一个要查看的内容",en:"Select an item on the left to view","zh-TW":"請在左側選擇一個要查看的內容",ko:"왼쪽에서 항목을 선택하세요",ja:"左側から項目を選択してください",de:"Wählen Sie links einen Eintrag aus",es:"Seleccione un elemento a la izquierda",fr:"Sélectionnez un élément à gauche",it:"Seleziona un elemento a sinistra",da:"Vælg et element til venstre",pl:"Wybierz element po lewej stronie",ru:"Выберите элемент слева",ar:"اختر عنصرًا على اليسار",no:"Velg et element til venstre","pt-BR":"Selecione um item à esquerda",th:"เลือกรายการทางซ้าย",tr:"Soldan bir öğe seçin",uk:"Виберіть елемент ліворуч"},"ui.context.history":{zh:"历史",en:"History","zh-TW":"歷史",ko:"기록",ja:"履歴",de:"Verlauf",es:"Historial",fr:"Historique",it:"Cronologia",da:"Historik",pl:"Historia",ru:"История",ar:"التاريخ",no:"Historikk","pt-BR":"Histórico",th:"ประวัติ",tr:"Geçmiş",uk:"Історія"},"ui.context.currentTurn":{zh:"当前轮次",en:"Current Turn","zh-TW":"當前輪次",ko:"현재 턴",ja:"現在のターン",de:"Aktueller Durchgang",es:"Turno actual",fr:"Tour actuel",it:"Turno corrente",da:"Aktuel tur",pl:"Bieżąca tura",ru:"Текущий ход",ar:"الدور الحالي",no:"Gjeldende tur","pt-BR":"Turno atual",th:"รอบปัจจุบัน",tr:"Mevcut tur",uk:"Поточний хід"},"ui.context.historyTurnNoTime":{zh:"历史轮次 {n}",en:"Turn {n}","zh-TW":"歷史輪次 {n}",ko:"턴 {n}",ja:"ターン {n}",de:"Runde {n}",es:"Turno {n}",fr:"Tour {n}",it:"Turno {n}",da:"Tur {n}",pl:"Tura {n}",ru:"Ход {n}",ar:"الدور {n}",no:"Tur {n}","pt-BR":"Turno {n}",th:"รอบ {n}",tr:"Tur {n}",uk:"Хід {n}"}},Gl={};for(const[e,t]of Object.entries(UW))for(const[n,r]of Object.entries(t))Gl[n]||(Gl[n]={}),Gl[n][e]=r;let Cb="zh";const Ch={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 qW(e){if(!e)return"en";const t=e.toLowerCase().replace(/_/g,"-");if(Ch[t])return Ch[t];const n=t.split("-")[0];return Ch[n]?Ch[n]:"en"}function KW(){return typeof navigator<"u"&&navigator.language?qW(navigator.language):"en"}function wb(e){Cb=Gl[e]?e:"en"}function Bu(){return Cb}function we(e,t){var r;let n=((r=Gl[Cb])==null?void 0:r[e])||Gl.en[e]||e;if(t)for(const[i,o]of Object.entries(t))n=n.replaceAll(`{${i}}`,o);return n}wb(KW());function xb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var qa=xb();function K4(e){qa=e}var wa={exec:()=>null};function gn(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(mi.caret,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,t)};return r}var GW=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),mi={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)}}>`)},XW=/^(?:[ \t]*(?:\n|$))+/,YW=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,JW=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,id=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,QW=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Eb=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,G4=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,X4=gn(G4).replace(/bull/g,Eb).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(),ZW=gn(G4).replace(/bull/g,Eb).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(),kb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,eV=/^[^\n]+/,$b=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,tV=gn(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$b).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nV=gn(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Eb).getRegex(),Em="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",Rb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rV=gn("^ {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",Rb).replace("tag",Em).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Y4=gn(kb).replace("hr",id).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",Em).getRegex(),iV=gn(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Y4).getRegex(),Tb={blockquote:iV,code:YW,def:tV,fences:JW,heading:QW,hr:id,html:rV,lheading:X4,list:nV,newline:XW,paragraph:Y4,table:wa,text:eV},gx=gn("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",id).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",Em).getRegex(),oV={...Tb,lheading:ZW,table:gx,paragraph:gn(kb).replace("hr",id).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gx).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",Em).getRegex()},sV={...Tb,html:gn(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Rb).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:wa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:gn(kb).replace("hr",id).replace("heading",` *#{1,6} *[^
|
|
494
|
-
]`).replace("lheading",X4).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},aV=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,lV=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,J4=/^( {2,}|\\)\n(?!\s*$)/,cV=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,km=/[\p{P}\p{S}]/u,Pb=/[\s\p{P}\p{S}]/u,Q4=/[^\s\p{P}\p{S}]/u,uV=gn(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pb).getRegex(),Z4=/(?!~)[\p{P}\p{S}]/u,dV=/(?!~)[\s\p{P}\p{S}]/u,hV=/(?:[^\s\p{P}\p{S}]|~)/u,e3=/(?![*_])[\p{P}\p{S}]/u,fV=/(?![*_])[\s\p{P}\p{S}]/u,mV=/(?:[^\s\p{P}\p{S}]|[*_])/u,pV=gn(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",GW?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),t3=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,gV=gn(t3,"u").replace(/punct/g,km).getRegex(),vV=gn(t3,"u").replace(/punct/g,Z4).getRegex(),n3="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",yV=gn(n3,"gu").replace(/notPunctSpace/g,Q4).replace(/punctSpace/g,Pb).replace(/punct/g,km).getRegex(),bV=gn(n3,"gu").replace(/notPunctSpace/g,hV).replace(/punctSpace/g,dV).replace(/punct/g,Z4).getRegex(),_V=gn("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Q4).replace(/punctSpace/g,Pb).replace(/punct/g,km).getRegex(),SV=gn(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,e3).getRegex(),CV="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",wV=gn(CV,"gu").replace(/notPunctSpace/g,mV).replace(/punctSpace/g,fV).replace(/punct/g,e3).getRegex(),xV=gn(/\\(punct)/,"gu").replace(/punct/g,km).getRegex(),EV=gn(/^<(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(),kV=gn(Rb).replace("(?:-->|$)","-->").getRegex(),$V=gn("^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",kV).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Rf=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,RV=gn(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Rf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),r3=gn(/^!?\[(label)\]\[(ref)\]/).replace("label",Rf).replace("ref",$b).getRegex(),i3=gn(/^!?\[(ref)\](?:\[\])?/).replace("ref",$b).getRegex(),TV=gn("reflink|nolink(?!\\()","g").replace("reflink",r3).replace("nolink",i3).getRegex(),vx=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ob={_backpedal:wa,anyPunctuation:xV,autolink:EV,blockSkip:pV,br:J4,code:lV,del:wa,delLDelim:wa,delRDelim:wa,emStrongLDelim:gV,emStrongRDelimAst:yV,emStrongRDelimUnd:_V,escape:aV,link:RV,nolink:i3,punctuation:uV,reflink:r3,reflinkSearch:TV,tag:$V,text:cV,url:wa},PV={...Ob,link:gn(/^!?\[(label)\]\((.*?)\)/).replace("label",Rf).getRegex(),reflink:gn(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Rf).getRegex()},k0={...Ob,emStrongRDelimAst:bV,emStrongLDelim:vV,delLDelim:SV,delRDelim:wV,url:gn(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vx).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:gn(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vx).getRegex()},OV={...k0,br:gn(J4).replace("{2,}","*").getRegex(),text:gn(k0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wh={normal:Tb,gfm:oV,pedantic:sV},Gc={normal:Ob,gfm:k0,breaks:OV,pedantic:PV},IV={"&":"&","<":"<",">":">",'"':""","'":"'"},yx=e=>IV[e];function Fo(e,t){if(t){if(mi.escapeTest.test(e))return e.replace(mi.escapeReplace,yx)}else if(mi.escapeTestNoEncode.test(e))return e.replace(mi.escapeReplaceNoEncode,yx);return e}function bx(e){try{e=encodeURI(e).replace(mi.percentDecode,"%")}catch{return null}return e}function _x(e,t){var o;let n=e.replace(mi.findPipe,(a,l,u)=>{let d=!1,f=l;for(;--f>=0&&u[f]==="\\";)d=!d;return d?"|":" |"}),r=n.split(mi.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((o=r.at(-1))!=null&&o.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(mi.slashPipe,"|");return r}function Xc(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function NV(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 MV(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}function Sx(e,t,n,r,i){let o=t.href,a=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,u}function jV(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
495
|
-
`).map(o=>{let a=o.match(n.other.beginningSpace);if(a===null)return o;let[l]=a;return l.length>=i.length?o.slice(i.length):o}).join(`
|
|
496
|
-
`)}var Tf=class{constructor(e){Rt(this,"options");Rt(this,"rules");Rt(this,"lexer");this.options=e||qa}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:Xc(n,`
|
|
497
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=jV(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=Xc(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:Xc(t[0],`
|
|
498
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Xc(t[0],`
|
|
499
|
-
`).split(`
|
|
500
|
-
`),r="",i="",o=[];for(;n.length>0;){let a=!1,l=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))l.push(n[u]),a=!0;else if(!a)l.push(n[u]);else break;n=n.slice(u);let d=l.join(`
|
|
501
|
-
`),f=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
502
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
503
|
-
${d}`:d,i=i?`${i}
|
|
504
|
-
${f}`:f;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=m,n.length===0)break;let g=o.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let v=g,y=v.raw+`
|
|
505
|
-
`+n.join(`
|
|
506
|
-
`),S=this.blockquote(y);o[o.length-1]=S,r=r.substring(0,r.length-v.raw.length)+S.raw,i=i.substring(0,i.length-v.text.length)+S.text;break}else if((g==null?void 0:g.type)==="list"){let v=g,y=v.raw+`
|
|
507
|
-
`+n.join(`
|
|
508
|
-
`),S=this.list(y);o[o.length-1]=S,r=r.substring(0,r.length-g.raw.length)+S.raw,i=i.substring(0,i.length-v.raw.length)+S.raw,n=y.substring(o.at(-1).raw.length).split(`
|
|
509
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:o,text:i}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),o=i.length>1,a={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let l=this.rules.other.listItemRegex(i),u=!1;for(;e;){let f=!1,m="",g="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;m=t[0],e=e.substring(m.length);let v=MV(t[2].split(`
|
|
510
|
-
`,1)[0],t[1].length),y=e.split(`
|
|
511
|
-
`,1)[0],S=!v.trim(),_=0;if(this.options.pedantic?(_=2,g=v.trimStart()):S?_=t[1].length+1:(_=v.search(this.rules.other.nonSpaceChar),_=_>4?1:_,g=v.slice(_),_+=t[1].length),S&&this.rules.other.blankLine.test(y)&&(m+=y+`
|
|
512
|
-
`,e=e.substring(y.length+1),f=!0),!f){let C=this.rules.other.nextBulletRegex(_),w=this.rules.other.hrRegex(_),k=this.rules.other.fencesBeginRegex(_),$=this.rules.other.headingBeginRegex(_),T=this.rules.other.htmlBeginRegex(_),R=this.rules.other.blockquoteBeginRegex(_);for(;e;){let O=e.split(`
|
|
513
|
-
`,1)[0],N;if(y=O,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),N=y):N=y.replace(this.rules.other.tabCharGlobal," "),k.test(y)||$.test(y)||T.test(y)||R.test(y)||C.test(y)||w.test(y))break;if(N.search(this.rules.other.nonSpaceChar)>=_||!y.trim())g+=`
|
|
514
|
-
`+N.slice(_);else{if(S||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(v)||$.test(v)||w.test(v))break;g+=`
|
|
515
|
-
`+y}S=!y.trim(),m+=O+`
|
|
516
|
-
`,e=e.substring(O.length+1),v=N.slice(_)}}a.loose||(u?a.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(u=!0)),a.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),a.raw+=m}let d=a.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let f of a.items){if(this.lexer.state.top=!1,f.tokens=this.lexer.blockTokens(f.text,[]),f.task){if(f.text=f.text.replace(this.rules.other.listReplaceTask,""),((n=f.tokens[0])==null?void 0:n.type)==="text"||((r=f.tokens[0])==null?void 0:r.type)==="paragraph"){f.tokens[0].raw=f.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),f.tokens[0].text=f.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let m=this.rules.other.listTaskCheckbox.exec(f.raw);if(m){let g={type:"checkbox",raw:m[0]+" ",checked:m[0]!=="[ ]"};f.checked=g.checked,a.loose?f.tokens[0]&&["paragraph","text"].includes(f.tokens[0].type)&&"tokens"in f.tokens[0]&&f.tokens[0].tokens?(f.tokens[0].raw=g.raw+f.tokens[0].raw,f.tokens[0].text=g.raw+f.tokens[0].text,f.tokens[0].tokens.unshift(g)):f.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):f.tokens.unshift(g)}}if(!a.loose){let m=f.tokens.filter(v=>v.type==="space"),g=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));a.loose=g}}if(a.loose)for(let f of a.items){f.loose=!0;for(let m of f.tokens)m.type==="text"&&(m.type="paragraph")}return a}}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"):"",i=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:i}}}table(e){var a;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=_x(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(a=t[3])!=null&&a.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
517
|
-
`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<n.length;l++)o.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:o.align[l]});for(let l of i)o.rows.push(_x(l,o.header.length).map((u,d)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:o.align[d]})));return o}}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)===`
|
|
518
|
-
`?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 o=Xc(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=NV(t[2],"()");if(o===-2)return;if(o>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],i=o[3])}else i=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)),Sx(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.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," "),i=t[r.toLowerCase()];if(!i){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return Sx(n,i,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 i=[...r[0]].length-1,o,a,l=i,u=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(a=[...o].length,r[3]||r[4]){l+=a;continue}else if((r[5]||r[6])&&i%3&&!((i+a)%3)){u+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+u);let f=[...r[0]][0].length,m=e.slice(0,i+r.index+f+a);if(Math.min(i,a)%2){let v=m.slice(1,-1);return{type:"em",raw:m,text:v,tokens:this.lexer.inlineTokens(v)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}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),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(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 i=[...r[0]].length-1,o,a,l=i,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(r=u.exec(t))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(a=[...o].length,a!==i))continue;if(r[3]||r[4]){l+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l);let d=[...r[0]][0].length,f=e.slice(0,i+r.index+d+a),m=f.slice(i,-i);return{type:"del",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}}}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,i;if(t[2]==="@")r=t[0],i="mailto:"+r;else{let o;do o=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(o!==t[0]);r=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:r,href:i,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}}}},Ro=class $0{constructor(t){Rt(this,"tokens");Rt(this,"options");Rt(this,"state");Rt(this,"inlineQueue");Rt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||qa,this.options.tokenizer=this.options.tokenizer||new Tf,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:mi,block:wh.normal,inline:Gc.normal};this.options.pedantic?(n.block=wh.pedantic,n.inline=Gc.pedantic):this.options.gfm&&(n.block=wh.gfm,this.options.breaks?n.inline=Gc.breaks:n.inline=Gc.gfm),this.tokenizer.rules=n}static get rules(){return{block:wh,inline:Gc}}static lex(t,n){return new $0(n).lex(t)}static lexInline(t,n){return new $0(n).inlineTokens(t)}lex(t){t=t.replace(mi.carriageReturn,`
|
|
519
|
-
`),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 i,o,a;for(this.options.pedantic&&(t=t.replace(mi.tabCharGlobal," ").replace(mi.spaceLine,""));t;){let l;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(d=>(l=d.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let d=n.at(-1);l.raw.length===1&&d!==void 0?d.raw+=`
|
|
520
|
-
`:n.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let d=n.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
|
|
521
|
-
`)?"":`
|
|
522
|
-
`)+l.raw,d.text+=`
|
|
523
|
-
`+l.text,this.inlineQueue.at(-1).src=d.text):n.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let d=n.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
|
|
524
|
-
`)?"":`
|
|
525
|
-
`)+l.raw,d.text+=`
|
|
526
|
-
`+l.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},n.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),n.push(l);continue}let u=t;if((a=this.options.extensions)!=null&&a.startBlock){let d=1/0,f=t.slice(1),m;this.options.extensions.startBlock.forEach(g=>{m=g.call({lexer:this},f),typeof m=="number"&&m>=0&&(d=Math.min(d,m))}),d<1/0&&d>=0&&(u=t.substring(0,d+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){let d=n.at(-1);r&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=(d.raw.endsWith(`
|
|
527
|
-
`)?"":`
|
|
528
|
-
`)+l.raw,d.text+=`
|
|
529
|
-
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):n.push(l),r=u.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
|
|
530
|
-
`)?"":`
|
|
531
|
-
`)+l.raw,d.text+=`
|
|
532
|
-
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):n.push(l);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var u,d,f,m,g;let r=t,i=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)v.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)o=i[2]?i[2].length:0,r=r.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((d=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:d.call({lexer:this},r))??r;let a=!1,l="";for(;t;){a||(l=""),a=!1;let v;if((m=(f=this.options.extensions)==null?void 0:f.inline)!=null&&m.some(S=>(v=S.call({lexer:this},t,n))?(t=t.substring(v.raw.length),n.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let S=n.at(-1);v.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=v.raw,S.text+=v.text):n.push(v);continue}if(v=this.tokenizer.emStrong(t,r,l)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.del(t,r,l)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),n.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),n.push(v);continue}let y=t;if((g=this.options.extensions)!=null&&g.startInline){let S=1/0,_=t.slice(1),C;this.options.extensions.startInline.forEach(w=>{C=w.call({lexer:this},_),typeof C=="number"&&C>=0&&(S=Math.min(S,C))}),S<1/0&&S>=0&&(y=t.substring(0,S+1))}if(v=this.tokenizer.inlineText(y)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(l=v.raw.slice(-1)),a=!0;let S=n.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=v.raw,S.text+=v.text):n.push(v);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return n}},Pf=class{constructor(e){Rt(this,"options");Rt(this,"parser");this.options=e||qa}space(e){return""}code({text:e,lang:t,escaped:n}){var o;let r=(o=(t||"").match(mi.notSpaceStart))==null?void 0:o[0],i=e.replace(mi.endingNewline,"")+`
|
|
533
|
-
`;return r?'<pre><code class="language-'+Fo(r)+'">'+(n?i:Fo(i,!0))+`</code></pre>
|
|
534
|
-
`:"<pre><code>"+(n?i:Fo(i,!0))+`</code></pre>
|
|
535
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
536
|
-
${this.parser.parse(e)}</blockquote>
|
|
537
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
538
|
-
`}hr(e){return`<hr>
|
|
539
|
-
`}list(e){let t=e.ordered,n=e.start,r="";for(let a=0;a<e.items.length;a++){let l=e.items[a];r+=this.listitem(l)}let i=t?"ol":"ul",o=t&&n!==1?' start="'+n+'"':"";return"<"+i+o+`>
|
|
540
|
-
`+r+"</"+i+`>
|
|
541
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
542
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
543
|
-
`}table(e){let t="",n="";for(let i=0;i<e.header.length;i++)n+=this.tablecell(e.header[i]);t+=this.tablerow({text:n});let r="";for(let i=0;i<e.rows.length;i++){let o=e.rows[i];n="";for(let a=0;a<o.length;a++)n+=this.tablecell(o[a]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
544
|
-
<thead>
|
|
545
|
-
`+t+`</thead>
|
|
546
|
-
`+r+`</table>
|
|
547
|
-
`}tablerow({text:e}){return`<tr>
|
|
548
|
-
${e}</tr>
|
|
549
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
550
|
-
`}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>${Fo(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),i=bx(e);if(i===null)return r;e=i;let o='<a href="'+e+'"';return t&&(o+=' title="'+Fo(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=bx(e);if(i===null)return Fo(n);e=i;let o=`<img src="${e}" alt="${Fo(n)}"`;return t&&(o+=` title="${Fo(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Fo(e.text)}},Ib=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},To=class R0{constructor(t){Rt(this,"options");Rt(this,"renderer");Rt(this,"textRenderer");this.options=t||qa,this.options.renderer=this.options.renderer||new Pf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ib}static parse(t,n){return new R0(n).parse(t)}static parseInline(t,n){return new R0(n).parseInline(t)}parse(t){var r,i;let n="";for(let o=0;o<t.length;o++){let a=t[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[a.type]){let u=a,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){n+=d||"";continue}}let l=a;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,n=this.renderer){var i,o;let r="";for(let a=0;a<t.length;a++){let l=t[a];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[l.type]){let d=this.options.extensions.renderers[l.type].call({parser:this},l);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=d||"";continue}}let u=l;switch(u.type){case"escape":{r+=n.text(u);break}case"html":{r+=n.html(u);break}case"link":{r+=n.link(u);break}case"image":{r+=n.image(u);break}case"checkbox":{r+=n.checkbox(u);break}case"strong":{r+=n.strong(u);break}case"em":{r+=n.em(u);break}case"codespan":{r+=n.codespan(u);break}case"br":{r+=n.br(u);break}case"del":{r+=n.del(u);break}case"text":{r+=n.text(u);break}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}},Ih,lu=(Ih=class{constructor(e){Rt(this,"options");Rt(this,"block");this.options=e||qa}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Ro.lex:Ro.lexInline}provideParser(){return this.block?To.parse:To.parseInline}},Rt(Ih,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Rt(Ih,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ih),zV=class{constructor(...t){Rt(this,"defaults",xb());Rt(this,"options",this.setOptions);Rt(this,"parse",this.parseMarkdown(!0));Rt(this,"parseInline",this.parseMarkdown(!1));Rt(this,"Parser",To);Rt(this,"Renderer",Pf);Rt(this,"TextRenderer",Ib);Rt(this,"Lexer",Ro);Rt(this,"Tokenizer",Tf);Rt(this,"Hooks",lu);this.use(...t)}walkTokens(t,n){var i,o;let r=[];for(let a of t)switch(r=r.concat(n.call(this,a)),a.type){case"table":{let l=a;for(let u of l.header)r=r.concat(this.walkTokens(u.tokens,n));for(let u of l.rows)for(let d of u)r=r.concat(this.walkTokens(d.tokens,n));break}case"list":{let l=a;r=r.concat(this.walkTokens(l.items,n));break}default:{let l=a;(o=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{let d=l[u].flat(1/0);r=r.concat(this.walkTokens(d,n))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=n.renderers[o.name];a?n.renderers[o.name]=function(...l){let u=o.renderer.apply(this,l);return u===!1&&(u=a.apply(this,l)),u}:n.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 a=n[o.level];a?a.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),i.extensions=n),r.renderer){let o=this.defaults.renderer||new Pf(this.defaults);for(let a in r.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,u=r.renderer[l],d=o[l];o[l]=(...f)=>{let m=u.apply(o,f);return m===!1&&(m=d.apply(o,f)),m||""}}i.renderer=o}if(r.tokenizer){let o=this.defaults.tokenizer||new Tf(this.defaults);for(let a in r.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,u=r.tokenizer[l],d=o[l];o[l]=(...f)=>{let m=u.apply(o,f);return m===!1&&(m=d.apply(o,f)),m}}i.tokenizer=o}if(r.hooks){let o=this.defaults.hooks||new lu;for(let a in r.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,u=r.hooks[l],d=o[l];lu.passThroughHooks.has(a)?o[l]=f=>{if(this.defaults.async&&lu.passThroughHooksRespectAsync.has(a))return(async()=>{let g=await u.call(o,f);return d.call(o,g)})();let m=u.call(o,f);return d.call(o,m)}:o[l]=(...f)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(o,f);return g===!1&&(g=await d.apply(o,f)),g})();let m=u.apply(o,f);return m===!1&&(m=d.apply(o,f)),m}}i.hooks=o}if(r.walkTokens){let o=this.defaults.walkTokens,a=r.walkTokens;i.walkTokens=function(l){let u=[];return u.push(a.call(this,l)),o&&(u=u.concat(o.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Ro.lex(t,n??this.defaults)}parser(t,n){return To.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let i={...r},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return a(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 n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let l=o.hooks?await o.hooks.preprocess(n):n,u=await(o.hooks?await o.hooks.provideLexer():t?Ro.lex:Ro.lexInline)(l,o),d=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(d,o.walkTokens));let f=await(o.hooks?await o.hooks.provideParser():t?To.parse:To.parseInline)(d,o);return o.hooks?await o.hooks.postprocess(f):f})().catch(a);try{o.hooks&&(n=o.hooks.preprocess(n));let l=(o.hooks?o.hooks.provideLexer():t?Ro.lex:Ro.lexInline)(n,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let u=(o.hooks?o.hooks.provideParser():t?To.parse:To.parseInline)(l,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(l){return a(l)}}}onError(t,n){return r=>{if(r.message+=`
|
|
551
|
-
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+Fo(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}},La=new zV;function On(e,t){return La.parse(e,t)}On.options=On.setOptions=function(e){return La.setOptions(e),On.defaults=La.defaults,K4(On.defaults),On};On.getDefaults=xb;On.defaults=qa;On.use=function(...e){return La.use(...e),On.defaults=La.defaults,K4(On.defaults),On};On.walkTokens=function(e,t){return La.walkTokens(e,t)};On.parseInline=La.parseInline;On.Parser=To;On.parser=To.parse;On.Renderer=Pf;On.TextRenderer=Ib;On.Lexer=Ro;On.lexer=Ro.lex;On.Tokenizer=Tf;On.Hooks=lu;On.parse=On;On.options;On.setOptions;On.use;On.walkTokens;On.parseInline;To.parse;Ro.lex;function Po(e){if(!e)return"";try{return On.parse(e,{breaks:!0})}catch{return xf(e)}}const BV="_helpBtn_cvsqb_1",LV="_modalBody_cvsqb_24",AV="_spinWrap_cvsqb_54",nv={helpBtn:BV,modalBody:LV,spinWrap:AV},DV=new Set(["Tool-Bash","Tool-Read","Tool-Edit","Tool-Write","Tool-Glob","Tool-Grep","Tool-NotebookEdit","Tool-WebFetch","Tool-WebSearch","Tool-Task","Tool-Agent","Tool-TaskOutput","Tool-TaskStop","Tool-TaskCreate","Tool-TaskGet","Tool-TaskUpdate","Tool-TaskList","Tool-EnterPlanMode","Tool-ExitPlanMode","Tool-AskUserQuestion","Tool-Skill","Tool-getDiagnostics","Tool-executeCode","MainAgent","Tools","CacheRebuild","BodyDiffJSON","TranslateContextPollution"]);function Xl({doc:e}){const[t,n]=h.useState(!1),[r,i]=h.useState(!1),[o,a]=h.useState(""),[l,u]=h.useState("");if(!e||!DV.has(e))return null;const d=h.useCallback(async()=>{n(!0),i(!0),a(""),u(e);const f=Bu();let m=null;try{const g=await fetch(`/api/concept?lang=${f}&doc=${encodeURIComponent(e)}`);g.ok&&(m=await g.text())}catch{}if(m){const g=m.match(/^#\s+(.+)/m);g&&u(g[1]),a(Po(m))}else a("<p>Document not found.</p>");i(!1)},[e]);return x.jsxs(x.Fragment,{children:[x.jsx("span",{className:nv.helpBtn,onClick:f=>{f.stopPropagation(),d()},children:"?"}),x.jsx(Mi,{title:l,open:t,onCancel:()=>n(!1),footer:null,width:640,styles:{header:{background:"#1a1a1a"},body:{background:"#111",padding:"16px 24px 24px"},content:{background:"#1a1a1a",padding:"12px 20px"}},children:r?x.jsx("div",{className:nv.spinWrap,children:x.jsx(ja,{})}):x.jsx("div",{className:nv.modalBody,dangerouslySetInnerHTML:{__html:o}})})]})}const HV="_headerBar_103ms_2",FV="_titleText_103ms_11",WV="_logoImage_103ms_17",VV="_titleArrow_103ms_25",UV="_tokenStatsTag_103ms_31",qV="_tokenStatsIcon_103ms_39",KV="_liveTag_103ms_44",GV="_liveDotWrap_103ms_48",XV="_liveSpinner_103ms_70",YV="_liveSpinnerDiag_103ms_75",JV="_inflightList_103ms_90",QV="_inflightItem_103ms_94",ZV="_inflightTag_103ms_106",eU="_inflightModel_103ms_112",tU="_inflightTime_103ms_117",nU="_liveTagHistory_103ms_123",rU="_liveTagText_103ms_129",iU="_countdownStrong_103ms_134",oU="_qrcodeSection_103ms_139",sU="_qrcodeTitle_103ms_150",aU="_qrcodeUrlInput_103ms_157",lU="_qrcodeUrlCopy_103ms_163",cU="_settingsGroupBox_103ms_174",uU="_settingsGroupTitle_103ms_182",dU="_settingsItem_103ms_191",hU="_settingsLabel_103ms_198",fU="_tokenStatsEmpty_103ms_203",mU="_tokenStatsContainer_103ms_210",pU="_tokenStatsColumn_103ms_216",gU="_toolStatsColumn_103ms_220",vU="_modelCard_103ms_225",yU="_modelCardSpaced_103ms_232 _modelCard_103ms_225",bU="_modelName_103ms_238",_U="_statsTable_103ms_248",SU="_th_103ms_253",CU="_td_103ms_263",wU="_label_103ms_272",xU="_rowBorder_103ms_282",EU="_rebuildTotalRow_103ms_294",kU="_promptExportBar_103ms_303",$U="_promptScrollArea_103ms_307",RU="_promptEmpty_103ms_312",TU="_promptTimestamp_103ms_318",PU="_textPromptCard_103ms_326",OU="_preText_103ms_335",IU="_systemCollapse_103ms_345",NU="_systemLabel_103ms_352",MU="_preSys_103ms_357",jU="_promptTextarea_103ms_367",zU="_projectStatsCenter_103ms_383",BU="_projectStatsEmpty_103ms_389",LU="_projectStatsContent_103ms_396",AU="_projectStatsUpdated_103ms_402",DU="_projectStatsSummary_103ms_408",HU="_projectStatCard_103ms_414",FU="_projectStatValue_103ms_422",WU="_projectStatLabel_103ms_430",VU="_projectStatsSection_103ms_436",UU="_projectStatsSectionTitle_103ms_442",qU="_projectStatsModelCard_103ms_450",KU="_projectStatsModelHeader_103ms_457",GU="_projectStatsModelName_103ms_466",XU="_projectStatsModelCount_103ms_472",ge={headerBar:HV,titleText:FV,logoImage:WV,titleArrow:VV,tokenStatsTag:UV,tokenStatsIcon:qV,liveTag:KV,liveDotWrap:GV,liveSpinner:XV,liveSpinnerDiag:YV,inflightList:JV,inflightItem:QV,inflightTag:ZV,inflightModel:eU,inflightTime:tU,liveTagHistory:nU,liveTagText:rU,countdownStrong:iU,qrcodeSection:oU,qrcodeTitle:sU,qrcodeUrlInput:aU,qrcodeUrlCopy:lU,settingsGroupBox:cU,settingsGroupTitle:uU,settingsItem:dU,settingsLabel:hU,tokenStatsEmpty:fU,tokenStatsContainer:mU,tokenStatsColumn:pU,toolStatsColumn:gU,modelCard:vU,modelCardSpaced:yU,modelName:bU,statsTable:_U,th:SU,td:CU,label:wU,rowBorder:xU,rebuildTotalRow:EU,promptExportBar:kU,promptScrollArea:$U,promptEmpty:RU,promptTimestamp:TU,textPromptCard:PU,preText:OU,systemCollapse:IU,systemLabel:NU,preSys:MU,promptTextarea:jU,projectStatsCenter:zU,projectStatsEmpty:BU,projectStatsContent:LU,projectStatsUpdated:AU,projectStatsSummary:DU,projectStatCard:HU,projectStatValue:FU,projectStatLabel:WU,projectStatsSection:VU,projectStatsSectionTitle:UU,projectStatsModelCard:qU,projectStatsModelHeader:KU,projectStatsModelName:GU,projectStatsModelCount:XU},YU=[{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:JU}=jo,Vl=class Vl extends Q.Component{constructor(n){super(n);Rt(this,"handleShowPrompts",()=>{this.setState({promptModalVisible:!0,promptData:this.extractUserPrompts()})});Rt(this,"handleExportPromptsTxt",()=>{const n=this.state.promptData;if(!n||n.length===0)return;const r=[];for(const l of n){const u=[],d=l.timestamp?new Date(l.timestamp).toLocaleString():"";d&&u.push(`${d}:
|
|
552
|
-
`);const f=(l.segments||[]).filter(m=>m.type==="text").map(m=>m.content);f.length>0&&u.push(f.join(`
|
|
553
|
-
`)),r.push(u.join(`
|
|
554
|
-
`))}if(r.length===0)return;const i=new Blob([r.join(`
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
`)],{type:"text/plain;charset=utf-8"}),o=URL.createObjectURL(i),a=document.createElement("a");a.href=o,a.download=`user-prompts-${new Date().toISOString().slice(0,10)}.txt`,a.click(),URL.revokeObjectURL(o)});Rt(this,"handleShowProjectStats",()=>{this.setState({projectStatsVisible:!0,projectStatsLoading:!0}),fetch("/api/project-stats").then(n=>{if(!n.ok)throw new Error("not found");return n.json()}).then(n=>this.setState({projectStats:n,projectStatsLoading:!1})).catch(()=>this.setState({projectStats:null,projectStatsLoading:!1}))});this.state={countdownText:"",promptModalVisible:!1,promptData:[],promptViewMode:"original",settingsDrawerVisible:!1,globalSettingsVisible:!1,projectStatsVisible:!1,projectStats:null,projectStatsLoading:!1,localUrl:""},this._rafId=null,this._expiredTimer=null,this.updateCountdown=this.updateCountdown.bind(this)}componentDidMount(){this.startCountdown(),fetch("/api/local-url").then(n=>n.json()).then(n=>{n.url&&this.setState({localUrl:n.url})}).catch(()=>{})}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:we("ui.cacheExpired")}),this._expiredTimer=setTimeout(()=>{this.setState({countdownText:""})},5e3);return}const i=Math.ceil(r/1e3);let o;if(i>=60){const a=Math.floor(i/60),l=i%60;o=we("ui.minuteSecond",{m:a,s:String(l).padStart(2,"0")})}else o=we("ui.second",{s:i});this.setState({countdownText:o}),this._rafId=requestAnimationFrame(this.updateCountdown)}static parseSegments(n){const r=[],i=/<([a-zA-Z_][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>/g;let o=0,a;for(;(a=i.exec(n))!==null;){const u=n.slice(o,a.index).trim();u&&r.push({type:"text",content:u});const d=a[1];if(o=a.index+a[0].length,Vl.COMMAND_TAGS.has(d))continue;const f=new RegExp(`^<${d}(?:\\s[^>]*)?>([\\s\\S]*)<\\/${d}>$`),m=a[0].match(f),g=m?m[1].trim():a[0].trim();r.push({type:"system",content:g,label:d})}const l=n.slice(o).trim();return l&&r.push({type:"text",content:l}),r}static extractUserTexts(n){const r=[],i=[];let o=null;for(const a of n)if(a.role==="user"){if(typeof a.content=="string"){const l=a.content.trim();if(!l)continue;if(!_b(l)){if(/^Implement the following plan:/i.test(l))continue;r.push(l),i.push(l)}}else if(Array.isArray(a.content)){const{commands:l,textBlocks:u}=V4(a.content);l.length>0&&(o=l[l.length-1]);const d=[];for(const m of u)/^Implement the following plan:/i.test((m.text||"").trim())||d.push(m.text.trim());const f=a.content.filter(m=>{var g;return m.type==="text"&&((g=m.text)==null?void 0:g.trim())}).map(m=>m.text.trim());d.length>0&&(r.push(d.join(`
|
|
559
|
-
`)),i.push(f.join(`
|
|
560
|
-
`)))}}return{userMsgs:r,fullTexts:i,slashCmd:o}}extractUserPrompts(){var l;const{requests:n=[]}=this.props,r=[],i=new Set;let o=null;const a=n.filter(u=>Kr(u));for(let u=0;u<a.length;u++){const d=a[u],f=((l=d.body)==null?void 0:l.messages)||[],m=d.timestamp||"",{userMsgs:g,fullTexts:v,slashCmd:y}=Vl.extractUserTexts(f);y&&y!=="/compact"&&y!==o&&r.push({type:"prompt",segments:[{type:"text",content:y}],timestamp:m}),o=y;for(let S=0;S<g.length;S++){const _=g[S];if(i.has(_))continue;i.add(_);const C=v[S]||_;r.push({type:"prompt",segments:Vl.parseSegments(C),timestamp:m})}}return r}renderTokenStats(){const{requests:n=[]}=this.props,r=MW(n),i=Object.keys(r),o=zW(n),a=BW(n);if(i.length===0&&o.length===0)return x.jsx("div",{className:ge.tokenStatsEmpty,children:"暂无 token 数据"});const l=x.jsx("div",{className:ge.tokenStatsColumn,children:i.map(m=>{const g=r[m],v=g.input+g.cacheCreation+g.cacheRead,y=v>0?(g.cacheRead/v*100).toFixed(1):"0.0";return x.jsxs("div",{className:i.length>1?ge.modelCardSpaced:ge.modelCard,children:[x.jsx("div",{className:ge.modelName,children:m}),x.jsx("table",{className:ge.statsTable,children:x.jsxs("tbody",{children:[x.jsxs("tr",{children:[x.jsx("td",{className:ge.label,children:"Token"}),x.jsx("td",{className:ge.th,children:"input"}),x.jsx("td",{className:ge.th,children:"output"})]}),x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label}),x.jsx("td",{className:ge.td,children:fr(v)}),x.jsx("td",{className:ge.td,children:fr(g.output)})]}),x.jsxs("tr",{children:[x.jsx("td",{className:ge.label,children:"Cache"}),x.jsx("td",{className:ge.th,children:"create"}),x.jsx("td",{className:ge.th,children:"read"})]}),x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label}),x.jsx("td",{className:ge.td,children:fr(g.cacheCreation)}),x.jsx("td",{className:ge.td,children:fr(g.cacheRead)})]}),x.jsxs("tr",{children:[x.jsx("td",{className:ge.label,children:we("ui.hitRate")}),x.jsxs("td",{colSpan:2,className:ge.td,children:[y,"%"]})]})]})})]},m)})}),u=this.renderCacheRebuildStats(),d=o.length>0?x.jsx("div",{className:ge.toolStatsColumn,children:x.jsxs("div",{className:ge.modelCard,children:[x.jsx("div",{className:ge.modelName,children:we("ui.toolUsageStats")}),x.jsxs("table",{className:ge.statsTable,children:[x.jsx("thead",{children:x.jsxs("tr",{children:[x.jsx("td",{className:ge.th,style:{textAlign:"left"},children:"Tool"}),x.jsx("td",{className:ge.th,children:we("ui.cacheRebuild.count")})]})}),x.jsxs("tbody",{children:[o.map(([m,g])=>x.jsxs("tr",{className:ge.rowBorder,children:[x.jsxs("td",{className:ge.label,children:[m," ",x.jsx(Xl,{doc:`Tool-${m}`})]}),x.jsx("td",{className:ge.td,children:g})]},m)),o.length>1&&x.jsxs("tr",{className:ge.rebuildTotalRow,children:[x.jsx("td",{className:ge.label,children:"Total"}),x.jsx("td",{className:ge.td,children:o.reduce((m,g)=>m+g[1],0)})]})]})]})]})}):null,f=a.length>0?x.jsx("div",{className:ge.toolStatsColumn,children:x.jsxs("div",{className:ge.modelCard,children:[x.jsx("div",{className:ge.modelName,children:we("ui.skillUsageStats")}),x.jsxs("table",{className:ge.statsTable,children:[x.jsx("thead",{children:x.jsxs("tr",{children:[x.jsx("td",{className:ge.th,style:{textAlign:"left"},children:"Skill"}),x.jsx("td",{className:ge.th,children:we("ui.cacheRebuild.count")})]})}),x.jsxs("tbody",{children:[a.map(([m,g])=>x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label,children:m}),x.jsx("td",{className:ge.td,children:g})]},m)),a.length>1&&x.jsxs("tr",{className:ge.rebuildTotalRow,children:[x.jsx("td",{className:ge.label,children:"Total"}),x.jsx("td",{className:ge.td,children:a.reduce((m,g)=>m+g[1],0)})]})]})]})]})}):null;return x.jsxs("div",{className:ge.tokenStatsContainer,children:[l,u,d,f]})}renderCacheRebuildStats(){const{requests:n=[]}=this.props,r=jW(n),i=["ttl","system_change","tools_change","model_change","msg_truncated","msg_modified","key_change"],o={ttl:"ttl",system_change:"systemChange",tools_change:"toolsChange",model_change:"modelChange",msg_truncated:"msgTruncated",msg_modified:"msgModified",key_change:"keyChange"},a=i.filter(v=>r[v].count>0),l=a.reduce((v,y)=>v+r[y].count,0),u=a.reduce((v,y)=>v+r[y].cacheCreate,0),d={};for(let v=0;v<n.length;v++){const y=Ba(n[v],n[v+1]);if(y.type==="SubAgent"){const S=y.subType||"Other";d[S]=(d[S]||0)+1}}const f=Object.entries(d).sort((v,y)=>y[1]-v[1]),m=a.length>0,g=f.length>0;return!m&&!g?null:x.jsxs("div",{className:ge.toolStatsColumn,children:[m&&x.jsxs("div",{className:g?ge.modelCardSpaced:ge.modelCard,children:[x.jsxs("div",{className:ge.modelName,children:["MainAgent",x.jsx(Xl,{doc:"MainAgent"})," ",we("ui.cacheRebuildStats"),x.jsx(Xl,{doc:"CacheRebuild"})]}),x.jsxs("table",{className:ge.statsTable,children:[x.jsx("thead",{children:x.jsxs("tr",{children:[x.jsx("td",{className:ge.th,style:{textAlign:"left"},children:we("ui.cacheRebuild.reason")}),x.jsx("td",{className:ge.th,children:we("ui.cacheRebuild.count")}),x.jsx("td",{className:ge.th,children:we("ui.cacheRebuild.cacheCreate")})]})}),x.jsxs("tbody",{children:[a.map(v=>x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label,children:we(`ui.cacheRebuild.${o[v]}`)}),x.jsx("td",{className:ge.td,children:r[v].count}),x.jsx("td",{className:ge.td,children:fr(r[v].cacheCreate)})]},v)),a.length>1&&x.jsxs("tr",{className:ge.rebuildTotalRow,children:[x.jsx("td",{className:ge.label,children:"Total"}),x.jsx("td",{className:ge.td,children:l}),x.jsx("td",{className:ge.td,children:fr(u)})]})]})]})]}),g&&x.jsxs("div",{className:ge.modelCard,children:[x.jsx("div",{className:ge.modelName,children:we("ui.subAgentStats")}),x.jsxs("table",{className:ge.statsTable,children:[x.jsx("thead",{children:x.jsxs("tr",{children:[x.jsx("td",{className:ge.th,style:{textAlign:"left"},children:"SubAgent"}),x.jsx("td",{className:ge.th,children:we("ui.cacheRebuild.count")})]})}),x.jsxs("tbody",{children:[f.map(([v,y])=>x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label,children:v}),x.jsx("td",{className:ge.td,children:y})]},v)),f.length>1&&x.jsxs("tr",{className:ge.rebuildTotalRow,children:[x.jsx("td",{className:ge.label,children:"Total"}),x.jsx("td",{className:ge.td,children:f.reduce((v,y)=>v+y[1],0)})]})]})]})]})]})}renderTextPrompt(n){return x.jsx("div",{className:ge.textPromptCard,children:n.segments.map((r,i)=>r.type==="text"?x.jsx("pre",{className:ge.preText,children:r.content},i):x.jsx(iu,{size:"small",className:ge.systemCollapse,items:[{key:`sys-${i}`,label:x.jsx("span",{className:ge.systemLabel,children:r.label}),children:x.jsx("pre",{className:ge.preSys,children:r.content})}]},i))})}renderOriginalPrompt(n){const r=n.segments.filter(i=>i.type==="text");return r.length===0?null:x.jsx("div",{className:ge.textPromptCard,children:r.map((i,o)=>x.jsx("pre",{className:ge.preText,children:i.content},o))})}buildTextModeContent(){const{promptData:n}=this.state,r=[];for(const i of n){const o=(i.segments||[]).filter(a=>a.type==="text").map(a=>a.content);o.length>0&&r.push(o.join(`
|
|
561
|
-
`))}return r.join(`
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
`)}renderProjectStatsContent(){const{projectStats:n,projectStatsLoading:r}=this.state;if(r)return x.jsx("div",{className:ge.projectStatsCenter,children:x.jsx(ja,{})});if(!n)return x.jsx("div",{className:ge.projectStatsEmpty,children:we("ui.projectStats.noData")});const{summary:i,models:o,updatedAt:a}=n;o&&Object.entries(o).sort((d,f)=>f[1]-d[1]);const l={};if(n.files){for(const d of Object.values(n.files))if(d.models)for(const[f,m]of Object.entries(d.models))l[f]||(l[f]={input:0,output:0,cacheRead:0,cacheCreation:0,count:0}),l[f].input+=m.input_tokens||0,l[f].output+=m.output_tokens||0,l[f].cacheRead+=m.cache_read_input_tokens||0,l[f].cacheCreation+=m.cache_creation_input_tokens||0,l[f].count+=m.count||0}const u=Object.entries(l).sort((d,f)=>f[1].count-d[1].count);return x.jsxs("div",{className:ge.projectStatsContent,children:[a&&x.jsx("div",{className:ge.projectStatsUpdated,children:we("ui.projectStats.updatedAt",{time:new Date(a).toLocaleString()})}),x.jsxs("div",{className:ge.projectStatsSummary,children:[x.jsxs("div",{className:ge.projectStatCard,children:[x.jsx("div",{className:ge.projectStatValue,children:(i==null?void 0:i.requestCount)??0}),x.jsx("div",{className:ge.projectStatLabel,children:we("ui.projectStats.totalRequests")})]}),x.jsxs("div",{className:ge.projectStatCard,children:[x.jsx("div",{className:ge.projectStatValue,children:(i==null?void 0:i.sessionCount)??0}),x.jsx("div",{className:ge.projectStatLabel,children:we("ui.projectStats.sessionCount")})]}),x.jsxs("div",{className:ge.projectStatCard,children:[x.jsx("div",{className:ge.projectStatValue,children:(i==null?void 0:i.fileCount)??0}),x.jsx("div",{className:ge.projectStatLabel,children:we("ui.projectStats.totalFiles")})]}),x.jsxs("div",{className:ge.projectStatCard,children:[x.jsx("div",{className:ge.projectStatValue,children:fr(i==null?void 0:i.input_tokens)}),x.jsx("div",{className:ge.projectStatLabel,children:"Input Tokens"})]}),x.jsxs("div",{className:ge.projectStatCard,children:[x.jsx("div",{className:ge.projectStatValue,children:fr(i==null?void 0:i.output_tokens)}),x.jsx("div",{className:ge.projectStatLabel,children:"Output Tokens"})]})]}),u.length>0&&x.jsxs("div",{className:ge.projectStatsSection,children:[x.jsx("div",{className:ge.projectStatsSectionTitle,children:we("ui.projectStats.modelUsage")}),u.map(([d,f])=>{const m=f.input+f.cacheRead+f.cacheCreation,g=m>0?(f.cacheRead/m*100).toFixed(1):"0.0";return x.jsxs("div",{className:ge.projectStatsModelCard,children:[x.jsxs("div",{className:ge.projectStatsModelHeader,children:[x.jsx("span",{className:ge.projectStatsModelName,children:d}),x.jsxs("span",{className:ge.projectStatsModelCount,children:[f.count," reqs"]})]}),x.jsx("table",{className:ge.statsTable,children:x.jsxs("tbody",{children:[x.jsxs("tr",{children:[x.jsx("td",{className:ge.label,children:"Token"}),x.jsx("td",{className:ge.th,children:"input"}),x.jsx("td",{className:ge.th,children:"output"})]}),x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label}),x.jsx("td",{className:ge.td,children:fr(m)}),x.jsx("td",{className:ge.td,children:fr(f.output)})]}),x.jsxs("tr",{children:[x.jsx("td",{className:ge.label,children:"Cache"}),x.jsx("td",{className:ge.th,children:"create"}),x.jsx("td",{className:ge.th,children:"read"})]}),x.jsxs("tr",{className:ge.rowBorder,children:[x.jsx("td",{className:ge.label}),x.jsx("td",{className:ge.td,children:fr(f.cacheCreation)}),x.jsx("td",{className:ge.td,children:fr(f.cacheRead)})]}),x.jsxs("tr",{children:[x.jsx("td",{className:ge.label,children:we("ui.hitRate")}),x.jsxs("td",{colSpan:2,className:ge.td,children:[g,"%"]})]})]})})]},d)})]})]})}render(){const{requestCount:n,requests:r=[],viewMode:i,cacheType:o,onToggleViewMode:a,onImportLocalLogs:l,onLangChange:u,isLocalLog:d,localLogFile:f,projectName:m,collapseToolResults:g,onCollapseToolResultsChange:v,expandThinking:y,onExpandThinkingChange:S,expandDiff:_,onExpandDiffChange:C,filterIrrelevant:w,onFilterIrrelevantChange:k,updateInfo:$,onDismissUpdate:T,cliMode:R,terminalVisible:O,onToggleTerminal:N}=this.props,{countdownText:I}=this.state,j=[{key:"import-local",icon:x.jsx(pW,{}),label:we("ui.importLocalLogs"),onClick:l},{key:"export-prompts",icon:x.jsx(cW,{}),label:we("ui.exportPrompts"),onClick:this.handleShowPrompts},{type:"divider"},{key:"project-stats",icon:x.jsx(dx,{}),label:we("ui.projectStats"),onClick:this.handleShowProjectStats},{key:"global-settings",icon:x.jsx(hx,{}),label:we("ui.globalSettings"),onClick:()=>this.setState({globalSettingsVisible:!0})},{key:"language",icon:x.jsx(hW,{}),label:we("ui.languageSettings"),children:YU.map(L=>({key:"lang-"+L.value,label:L.label,style:L.value===Bu()?{color:"#3b82f6"}:{}}))}];return x.jsxs("div",{className:ge.headerBar,children:[x.jsxs(ps,{size:"middle",children:[x.jsx(g4,{menu:{items:j,onClick:({key:L})=>{if(L.startsWith("lang-")){const M=L.slice(5);wb(M),u&&u()}}},trigger:["hover"],children:x.jsxs(JU,{strong:!0,className:ge.titleText,children:[x.jsx("img",{src:"/favicon.ico",alt:"Logo",className:ge.logoImage}),"CC-Viewer ",x.jsx(ms,{className:ge.titleArrow})]})}),x.jsx(g0,{content:this.renderTokenStats(),trigger:"hover",placement:"bottomLeft",overlayInnerStyle:{background:"#1e1e1e",border:"1px solid #3a3a3a",borderRadius:8,padding:"8px 8px"},children:x.jsxs(Ki,{className:ge.tokenStatsTag,children:[x.jsx(sW,{className:ge.tokenStatsIcon}),we("ui.tokenStats")]})}),(()=>{const M=Date.now(),B=d?[]:(r||[]).filter(X=>!X.response&&M-new Date(X.timestamp).getTime()<3e5),z=B.length>0,D=d?null:z?x.jsxs("svg",{className:ge.liveSpinner,width:"10",height:"10",viewBox:"0 0 10 10",children:[x.jsx("line",{x1:"5",y1:"1",x2:"5",y2:"9",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round"}),x.jsx("line",{x1:"1",y1:"5",x2:"9",y2:"5",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round"}),x.jsx("line",{x1:"2.2",y1:"2.2",x2:"7.8",y2:"7.8",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round",className:ge.liveSpinnerDiag}),x.jsx("line",{x1:"7.8",y1:"2.2",x2:"2.2",y2:"7.8",stroke:"#52c41a",strokeWidth:"1.5",strokeLinecap:"round",className:ge.liveSpinnerDiag})]}):x.jsx(eb,{status:"processing",color:"green"}),F=!d&&!z,V=D&&x.jsx("span",{className:ge.liveDotWrap,children:F?x.jsx(Zo,{title:we("ui.noInflightRequests"),placement:"bottom",children:D}):D}),A=x.jsxs(Ki,{color:d?void 0:"green",className:`${ge.liveTag} ${d?ge.liveTagHistory:""}`,children:[V,x.jsx("span",{className:ge.liveTagText,children:d?we("ui.historyLog",{file:f}):we("ui.liveMonitoring")+(m?`:${m}`:"")})]});if(z){const X=x.jsx("div",{className:ge.inflightList,children:B.map((q,H)=>{var de;const U=Ba(q),K=$f(U.type,U.subType),G=((de=q.body)==null?void 0:de.model)||"",J=G.includes("-")?G.split("-").slice(0,2).join("-"):G,ee=new Date(q.timestamp).toLocaleTimeString("zh-CN");return x.jsxs("div",{className:ge.inflightItem,children:[x.jsx("span",{className:ge.inflightTag,children:K}),x.jsx("span",{className:ge.inflightModel,children:J}),x.jsx("span",{className:ge.inflightTime,children:ee})]},H)})});return x.jsx(g0,{content:X,title:we("ui.inflightRequests"),placement:"bottom",children:A})}return A})(),$&&x.jsx(Ki,{color:$.type==="completed"?"green":"orange",closable:!0,onClose:()=>T&&T(),children:$.type==="completed"?we("ui.update.completed",{version:$.version}):we("ui.update.majorAvailable",{version:$.version})})]}),x.jsxs(ps,{size:"middle",children:[I&&x.jsxs(Ki,{color:I===we("ui.cacheExpired")?"red":"green",children:[we("ui.cacheCountdown",{type:o?`(${o})`:""}),x.jsx("strong",{className:ge.countdownStrong,children:I})]}),i==="chat"&&x.jsx(Gn,{icon:x.jsx(hx,{}),onClick:()=>this.setState({settingsDrawerVisible:!0}),children:we("ui.settings")}),R&&i==="chat"&&x.jsx(Gn,{type:O?"primary":"default",ghost:O,icon:x.jsx(Kh,{}),onClick:N,children:we("ui.terminal")}),x.jsx(Gn,{type:i==="raw"?"primary":"default",icon:i==="raw"?x.jsx(O4,{}):x.jsx(vu,{}),onClick:a,children:we(i==="raw"?"ui.chatMode":"ui.rawMode")})]}),x.jsxs(Mi,{title:`${we("ui.userPrompt")} (${this.state.promptData.length}${we("ui.promptCountUnit")})`,open:this.state.promptModalVisible,onCancel:()=>this.setState({promptModalVisible:!1}),footer:null,width:700,children:[x.jsx("div",{className:ge.promptExportBar,children:x.jsx(Gn,{icon:x.jsx(ZF,{}),onClick:this.handleExportPromptsTxt,children:we("ui.exportPromptsTxt")})}),x.jsx(fb,{activeKey:this.state.promptViewMode,onChange:L=>this.setState({promptViewMode:L}),size:"small",items:[{key:"original",label:we("ui.promptModeOriginal")},{key:"context",label:we("ui.promptModeContext")},{key:"text",label:we("ui.promptModeText")}]}),this.state.promptViewMode==="text"?x.jsx("textarea",{readOnly:!0,className:ge.promptTextarea,value:this.buildTextModeContent()}):x.jsxs("div",{className:ge.promptScrollArea,children:[this.state.promptData.length===0&&x.jsx("div",{className:ge.promptEmpty,children:we("ui.noPrompt")}),this.state.promptData.map((L,M)=>{const B=L.timestamp?new Date(L.timestamp).toLocaleString():we("ui.unknownTime");return x.jsxs("div",{children:[x.jsxs("div",{className:ge.promptTimestamp,children:[B,":"]}),this.state.promptViewMode==="original"?this.renderOriginalPrompt(L):this.renderTextPrompt(L)]},M)})]})]}),x.jsxs(qh,{title:we("ui.settings"),placement:"right",width:360,open:this.state.settingsDrawerVisible,onClose:()=>this.setState({settingsDrawerVisible:!1}),children:[R&&this.state.localUrl&&x.jsxs("div",{className:ge.qrcodeSection,children:[x.jsx("div",{className:ge.qrcodeTitle,children:we("ui.scanToCoding")}),x.jsx(W4,{value:this.state.localUrl,size:160,bgColor:"#141414",fgColor:"#d9d9d9",level:"M"}),x.jsx(hc,{readOnly:!0,value:this.state.localUrl,className:ge.qrcodeUrlInput,suffix:x.jsx(yu,{className:ge.qrcodeUrlCopy,onClick:()=>{navigator.clipboard.writeText(this.state.localUrl).then(()=>{Oi.success(we("ui.copied"))}).catch(()=>{})}})})]}),x.jsxs("div",{className:ge.settingsGroupBox,children:[x.jsx("div",{className:ge.settingsGroupTitle,children:we("ui.chatDisplaySwitches")}),x.jsxs("div",{className:ge.settingsItem,children:[x.jsx("span",{className:ge.settingsLabel,children:we("ui.collapseToolResults")}),x.jsx(au,{checked:!!g,onChange:L=>v&&v(L)})]}),x.jsxs("div",{className:ge.settingsItem,children:[x.jsx("span",{className:ge.settingsLabel,children:we("ui.expandThinking")}),x.jsx(au,{checked:!!y,onChange:L=>S&&S(L)})]})]})]}),x.jsxs(qh,{title:we("ui.globalSettings"),placement:"left",width:400,open:this.state.globalSettingsVisible,onClose:()=>this.setState({globalSettingsVisible:!1}),children:[x.jsxs("div",{className:ge.settingsItem,children:[x.jsx("span",{className:ge.settingsLabel,children:we("ui.filterIrrelevant")}),x.jsx(au,{checked:!!w,onChange:L=>k&&k(L)})]}),x.jsxs("div",{className:ge.settingsItem,children:[x.jsx("span",{className:ge.settingsLabel,children:we("ui.expandDiff")}),x.jsx(au,{checked:!!_,onChange:L=>C&&C(L)})]})]}),x.jsx(qh,{title:x.jsxs("span",{children:[x.jsx(dx,{style:{marginRight:8}}),we("ui.projectStats")]}),placement:"left",width:400,open:this.state.projectStatsVisible,onClose:()=>this.setState({projectStatsVisible:!1}),children:this.renderProjectStatsContent()})]})}};Rt(Vl,"COMMAND_TAGS",new Set(["command-name","command-message","command-args","local-command-caveat","local-command-stdout"]));let T0=Vl;const QU="_centerEmpty_oxhcp_1",ZU="_scrollContainer_oxhcp_8",eq="_listItem_oxhcp_15",tq="_listItemActive_oxhcp_27",nq="_itemContent_oxhcp_36",rq="_itemHeader_oxhcp_41",iq="_tagNoMargin_oxhcp_49",oq="_modelName_oxhcp_54",sq="_time_oxhcp_58",aq="_detailRow_oxhcp_64",lq="_urlText_oxhcp_71",cq="_duration_oxhcp_80",uq="_statusOk_oxhcp_85",dq="_statusErr_oxhcp_91",hq="_statusDefault_oxhcp_96",fq="_usageBox_oxhcp_101",mq="_cacheDot_oxhcp_111",pq="_cacheDotLoss_oxhcp_120",gq="_cacheDotNormal_oxhcp_125",er={centerEmpty:QU,scrollContainer:ZU,listItem:eq,listItemActive:tq,itemContent:nq,itemHeader:rq,tagNoMargin:iq,modelName:oq,time:sq,detailRow:aq,urlText:lq,duration:cq,statusOk:uq,statusErr:dq,statusDefault:hq,usageBox:fq,cacheDot:mq,cacheDotLoss:pq,cacheDotNormal:gq};class vq extends Q.Component{constructor(t){super(t),this.activeItemRef=Q.createRef()}componentDidMount(){this.scrollToSelected(!0)}componentDidUpdate(t){this.props.scrollCenter&&t.selectedIndex!==this.props.selectedIndex?this.scrollToSelected(!0):t.requests!==this.props.requests&&this.scrollToSelected(!1)}scrollToSelected(t){this.activeItemRef.current&&(this.activeItemRef.current.scrollIntoView({block:t?"center":"nearest",behavior:"instant"}),t&&this.props.onScrollDone&&this.props.onScrollDone())}render(){const{requests:t,selectedIndex:n,onSelect:r}=this.props;return t.length===0?x.jsx("div",{className:er.centerEmpty,children:x.jsx(Ii,{description:we("ui.waitingRequests")})}):x.jsx("div",{className:er.scrollContainer,children:x.jsx(Mu,{dataSource:t,size:"small",split:!1,renderItem:(i,o)=>{var $,T,R;const a=new Date(i.timestamp).toLocaleTimeString("zh-CN"),l=o===n,u=i.response&&i.response.status<400,d=i.response&&i.response.status>=400,f=DW(($=i.body)==null?void 0:$.model),m=o+1<t.length?t[o+1]:null,{type:g,subType:v}=Ba(i,m),y=(R=(T=i.response)==null?void 0:T.body)==null?void 0:R.usage,S=y?(y.input_tokens||0)+(y.cache_read_input_tokens||0)+(y.cache_creation_input_tokens||0):null,_=(y==null?void 0:y.output_tokens)||null,C=(y==null?void 0:y.cache_read_input_tokens)||0,w=(y==null?void 0:y.cache_creation_input_tokens)||0;let k=i.url;try{const O=new URL(i.url);k=O.host+O.pathname}catch{}return x.jsx(Mu.Item,{ref:l?this.activeItemRef:void 0,onClick:()=>r(o),className:`${er.listItem} ${l?er.listItemActive:""}`,children:x.jsxs("div",{className:er.itemContent,children:[x.jsxs("div",{className:er.itemHeader,children:[g==="MainAgent"?x.jsx(Ki,{color:"orange",className:er.tagNoMargin,children:"MainAgent"}):g==="Plan"?x.jsx(Ki,{className:er.tagNoMargin,style:{color:"#a33",borderColor:"#a33",backgroundColor:"#000"},children:$f(g,v)}):g==="Count"||g==="Preflight"?x.jsx(Ki,{className:er.tagNoMargin,style:{color:"#666",borderColor:"#444",backgroundColor:"#000"},children:g}):x.jsx(Ki,{className:er.tagNoMargin,children:$f(g,v)}),f&&x.jsx("span",{className:er.modelName,style:{color:g==="MainAgent"?"#d4822d":"#8c8c8c"},children:f}),x.jsx("span",{className:er.time,children:a})]}),x.jsxs("div",{className:er.detailRow,children:[x.jsx("span",{className:er.urlText,title:i.url,children:k}),i.duration&&x.jsxs("span",{className:er.duration,children:[i.duration,"ms"]}),i.response&&x.jsx("span",{className:u?er.statusOk:d?er.statusErr:er.statusDefault,children:i.response.status})]}),y&&x.jsxs("div",{className:er.usageBox,children:[x.jsxs("div",{children:["token: output:",fr(_)||0,", input: ",fr(S)||0]}),(C>0||w>0)&&x.jsx("div",{children:(()=>{const O=U4(t,o),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 I;if(O){const L=(O.reasons||[O.reason]).map(M=>we(N[M]||N.key_change)).join(`
|
|
565
|
-
`);I=x.jsx(Zo,{title:x.jsx("span",{style:{whiteSpace:"pre-line"},children:L}),children:x.jsx("span",{className:`${er.cacheDot} ${er.cacheDotLoss}`})})}else I=x.jsx("span",{className:`${er.cacheDot} ${er.cacheDotNormal}`});return x.jsxs(x.Fragment,{children:["cache",I,": ",C>0?`read:${fr(C)}`:"",C>0&&w>0?", ":"",w>0?`create:${fr(w)}`:""]})})()})]})]})})}})})}}const yq=e=>typeof e=="boolean"||e instanceof Boolean,bq=e=>typeof e=="number"||e instanceof Number,_q=e=>typeof e=="bigint"||e instanceof BigInt,o3=e=>!!e&&e instanceof Date,Sq=e=>typeof e=="string"||e instanceof String,Cq=e=>Array.isArray(e),s3=e=>typeof e=="object"&&e!==null,a3=e=>!!e&&e instanceof Object&&typeof e=="function";function Of(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function wq(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function l3(e){let{field:t,value:n,data:r,lastElement:i,openBracket:o,closeBracket:a,level:l,style:u,shouldExpandNode:d,clickToExpandNode:f,outerRef:m,beforeExpandChange:g}=e;const v=h.useRef(!1),[y,S]=h.useState(()=>d(l,n,t)),_=h.useRef(null);h.useEffect(()=>{v.current?S(d(l,n,t)):v.current=!0},[d]);const C=h.useId();if(r.length===0)return xq({field:t,openBracket:o,closeBracket:a,lastElement:i,style:u});const w=y?u.collapseIcon:u.expandIcon,k=y?u.ariaLables.collapseJson:u.ariaLables.expandJson,$=l+1,T=r.length-1,R=I=>{y!==I&&(!g||g({level:l,value:n,field:t,newExpandValue:I}))&&S(I)},O=I=>{if(I.key==="ArrowRight"||I.key==="ArrowLeft")I.preventDefault(),R(I.key==="ArrowRight");else if(I.key==="ArrowUp"||I.key==="ArrowDown"){I.preventDefault();const j=I.key==="ArrowUp"?-1:1;if(!m.current)return;const L=m.current.querySelectorAll("[role=button]");let M=-1;for(let z=0;z<L.length;z++)if(L[z].tabIndex===0){M=z;break}if(M<0)return;const B=(M+j+L.length)%L.length;L[M].tabIndex=-1,L[B].tabIndex=0,L[B].focus()}},N=()=>{var I;R(!y);const j=_.current;if(!j)return;const L=(I=m.current)===null||I===void 0?void 0:I.querySelector('[role=button][tabindex="0"]');L&&(L.tabIndex=-1),j.tabIndex=0,j.focus()};return h.createElement("div",{className:u.basicChildStyle,role:"treeitem","aria-expanded":y,"aria-selected":void 0},h.createElement("span",{className:w,onClick:N,onKeyDown:O,role:"button","aria-label":k,"aria-expanded":y,"aria-controls":y?C:void 0,ref:_,tabIndex:l===0?0:-1}),(t||t==="")&&(f?h.createElement("span",{className:u.clickableLabel,onClick:N,onKeyDown:O},Of(t,u.quotesForFieldNames),":"):h.createElement("span",{className:u.label},Of(t,u.quotesForFieldNames),":")),h.createElement("span",{className:u.punctuation},o),y?h.createElement("ul",{id:C,role:"group",className:u.childFieldsContainer},r.map((I,j)=>h.createElement(P0,{key:I[0]||j,field:I[0],value:I[1],style:u,lastElement:j===T,level:$,shouldExpandNode:d,clickToExpandNode:f,beforeExpandChange:g,outerRef:m}))):h.createElement("span",{className:u.collapsedContent,onClick:N,onKeyDown:O}),h.createElement("span",{className:u.punctuation},a),!i&&h.createElement("span",{className:u.punctuation},","))}function xq(e){let{field:t,openBracket:n,closeBracket:r,lastElement:i,style:o}=e;return h.createElement("div",{className:o.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&h.createElement("span",{className:o.label},Of(t,o.quotesForFieldNames),":"),h.createElement("span",{className:o.punctuation},n),h.createElement("span",{className:o.punctuation},r),!i&&h.createElement("span",{className:o.punctuation},","))}function Eq(e){let{field:t,value:n,style:r,lastElement:i,shouldExpandNode:o,clickToExpandNode:a,level:l,outerRef:u,beforeExpandChange:d}=e;return l3({field:t,value:n,lastElement:i||!1,level:l,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:o,clickToExpandNode:a,data:Object.keys(n).map(f=>[f,n[f]]),outerRef:u,beforeExpandChange:d})}function kq(e){let{field:t,value:n,style:r,lastElement:i,level:o,shouldExpandNode:a,clickToExpandNode:l,outerRef:u,beforeExpandChange:d}=e;return l3({field:t,value:n,lastElement:i||!1,level:o,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:a,clickToExpandNode:l,data:n.map(f=>[void 0,f]),outerRef:u,beforeExpandChange:d})}function $q(e){let{field:t,value:n,style:r,lastElement:i}=e,o,a=r.otherValue;return n===null?(o="null",a=r.nullValue):n===void 0?(o="undefined",a=r.undefinedValue):Sq(n)?(o=wq(n,!r.noQuotesForStringValues,r.stringifyStringValues),a=r.stringValue):yq(n)?(o=n?"true":"false",a=r.booleanValue):bq(n)?(o=n.toString(),a=r.numberValue):_q(n)?(o=`${n.toString()}n`,a=r.numberValue):o3(n)?o=n.toISOString():a3(n)?o="function() { }":o=n.toString(),h.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&h.createElement("span",{className:r.label},Of(t,r.quotesForFieldNames),":"),h.createElement("span",{className:a},o),!i&&h.createElement("span",{className:r.punctuation},","))}function P0(e){const t=e.value;return Cq(t)?h.createElement(kq,Object.assign({},e)):s3(t)&&!o3(t)&&!a3(t)?h.createElement(Eq,Object.assign({},e)):h.createElement($q,Object.assign({},e))}var Tn={"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 c3={collapseJson:"collapse JSON",expandJson:"expand JSON"},rv={container:Tn["container-light"],basicChildStyle:Tn["basic-element-style"],childFieldsContainer:Tn["child-fields-container"],label:Tn["label-light"],clickableLabel:Tn["clickable-label-light"],nullValue:Tn["value-null-light"],undefinedValue:Tn["value-undefined-light"],stringValue:Tn["value-string-light"],booleanValue:Tn["value-boolean-light"],numberValue:Tn["value-number-light"],otherValue:Tn["value-other-light"],punctuation:Tn["punctuation-light"],collapseIcon:Tn["collapse-icon-light"],expandIcon:Tn["expand-icon-light"],collapsedContent:Tn["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:c3,stringifyStringValues:!1},Rq={container:Tn["container-dark"],basicChildStyle:Tn["basic-element-style"],childFieldsContainer:Tn["child-fields-container"],label:Tn["label-dark"],clickableLabel:Tn["clickable-label-dark"],nullValue:Tn["value-null-dark"],undefinedValue:Tn["value-undefined-dark"],stringValue:Tn["value-string-dark"],booleanValue:Tn["value-boolean-dark"],numberValue:Tn["value-number-dark"],otherValue:Tn["value-other-dark"],punctuation:Tn["punctuation-dark"],collapseIcon:Tn["collapse-icon-dark"],expandIcon:Tn["expand-icon-dark"],collapsedContent:Tn["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:c3,stringifyStringValues:!1},Tq=()=>!0,Pq=e=>{let{data:t,style:n=rv,shouldExpandNode:r=Tq,clickToExpandNode:i=!1,beforeExpandChange:o,compactTopLevel:a,...l}=e;const u=h.useRef(null);return h.createElement("div",Object.assign({"aria-label":"JSON view"},l,{className:n.container,ref:u,role:"tree"}),a&&s3(t)?Object.entries(t).map(d=>{let[f,m]=d;return h.createElement(P0,{key:f,field:f,value:m,style:{...rv,...n},lastElement:!0,level:1,shouldExpandNode:r,clickToExpandNode:i,beforeExpandChange:o,outerRef:u})}):h.createElement(P0,{value:t,style:{...rv,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:i,outerRef:u,beforeExpandChange:o}))},Oq="_container_1h2lr_1",Iq={container:Oq},Nq={...Rq,container:"rjv-container"};class If extends Q.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 i=typeof r=="function"?r:n==="all"?()=>!0:n==="root"?o=>o<2:o=>o<1;return x.jsx("div",{className:Iq.container,children:x.jsx(Pq,{data:t,shouldExpandNode:i,style:Nq})})}}const Mq="_tag_17wfp_1",jq="_tagActive_17wfp_22",zq="_tagLoading_17wfp_27",Bq="_spinner_17wfp_32",xh={tag:Mq,tagActive:jq,tagLoading:zq,spinner:Bq};function Nb({text:e,onTranslated:t}){const[n,r]=h.useState("idle"),i=h.useRef(null),o=h.useCallback(l=>{if(l.stopPropagation(),n==="loading")return;if(n==="done"){r("idle"),t==null||t(null);return}if(i.current){r("done"),t==null||t(i.current);return}r("loading");const u=window.location.port||"7008",d=`${window.location.protocol}//${window.location.hostname}:${u}`;fetch(`${d}/api/translate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e,to:Bu()})}).then(f=>{if(!f.ok)throw new Error(`HTTP ${f.status}`);return f.json()}).then(f=>{const m=f.text||"";i.current=m,r("done"),t==null||t(m)}).catch(()=>{r("idle")})},[n,e,t]),a=we(n==="loading"?"ui.translating":"ui.translate");return x.jsxs("span",{className:`${xh.tag} ${n==="done"?xh.tagActive:""} ${n==="loading"?xh.tagLoading:""}`,onClick:o,children:[n==="loading"&&x.jsx("span",{className:xh.spinner}),a]})}const Lq="_root_1bepf_1",Aq="_sidebar_1bepf_9",Dq="_section_1bepf_18",Hq="_sectionHeader_1bepf_22",Fq="_arrow_1bepf_38",Wq="_sectionTitle_1bepf_44",Vq="_sectionCount_1bepf_52",Uq="_sectionBody_1bepf_61",qq="_historyToggle_1bepf_66",Kq="_historyToggleLabel_1bepf_82",Gq="_item_1bepf_87",Xq="_itemActive_1bepf_103",Yq="_itemContent_1bepf_113",Jq="_itemLabel_1bepf_119",Qq="_itemSublabel_1bepf_127",Zq="_itemTime_1bepf_136",eK="_content_1bepf_145",tK="_contentEmpty_1bepf_153",nK="_contentInner_1bepf_160",rK="_emptyWrap_1bepf_164",iK="_roleHeader_1bepf_172",oK="_roleBadge_1bepf_180",sK="_role_user_1bepf_189",aK="_role_assistant_1bepf_195",lK="_roleLabel_1bepf_201",cK="_contentTime_1bepf_208",uK="_turnDivider_1bepf_216",dK="_textBlock_1bepf_223",hK="_textBlockBar_1bepf_230",fK="_textBlockBody_1bepf_239",mK="_textBlockCompact_1bepf_247",pK="_textBlockCompactFloat_1bepf_254",gK="_thinkingBlock_1bepf_261",vK="_thinkingHeader_1bepf_269",yK="_thinkingPreview_1bepf_284",bK="_thinkingBody_1bepf_294",_K="_toolBlock_1bepf_300",SK="_toolBlockResult_1bepf_307",CK="_toolBlockError_1bepf_311",wK="_toolBlockHeader_1bepf_315",xK="_toolBlockBody_1bepf_326",EK="_toolName_1bepf_331",kK="_toolId_1bepf_337",$K="_errorLabel_1bepf_344",RK="_blockTag_1bepf_354",TK="_blockTagText_1bepf_367",PK="_blockTagThinking_1bepf_373",OK="_blockTagResult_1bepf_379",IK="_blockTagError_1bepf_385",NK="_jsonBlock_1bepf_392",MK="_jsonBlockLabel_1bepf_399",jK="_blockSeparator_1bepf_409",zK="_markdownBody_1bepf_416",st={root:Lq,sidebar:Aq,section:Dq,sectionHeader:Hq,arrow:Fq,sectionTitle:Wq,sectionCount:Vq,sectionBody:Uq,historyToggle:qq,historyToggleLabel:Kq,item:Gq,itemActive:Xq,itemContent:Yq,itemLabel:Jq,itemSublabel:Qq,itemTime:Zq,content:eK,contentEmpty:tK,contentInner:nK,emptyWrap:rK,roleHeader:iK,roleBadge:oK,role_user:sK,role_assistant:aK,roleLabel:lK,contentTime:cK,turnDivider:uK,textBlock:dK,textBlockBar:hK,textBlockBody:fK,textBlockCompact:mK,textBlockCompactFloat:pK,thinkingBlock:gK,thinkingHeader:vK,thinkingPreview:yK,thinkingBody:bK,toolBlock:_K,toolBlockResult:SK,toolBlockError:CK,toolBlockHeader:wK,toolBlockBody:xK,toolName:EK,toolId:kK,errorLabel:$K,blockTag:RK,blockTagText:TK,blockTagThinking:PK,blockTagResult:OK,blockTagError:IK,jsonBlock:NK,jsonBlockLabel:MK,blockSeparator:jK,markdownBody:zK},{Text:BK}=jo;function O0(e){if(e==null)return[];if(typeof e=="string"){const t=e.trim();return t?[{type:"markdown",text:t}]:[]}if(Array.isArray(e)){const t=[];for(const n of e)if(n)if(n.type==="text"){const r=(n.text||"").trim();r&&t.push({type:"markdown",text:r})}else if(n.type==="tool_use")t.push({type:"tool_use",name:n.name||"unknown",id:n.id||"",input:n.input??{}});else if(n.type==="tool_result"){const r=LK(n.content);t.push({type:"tool_result",tool_use_id:n.tool_use_id||"",is_error:n.is_error,content:r})}else if(n.type==="thinking"){const r=n.thinking||"";r.trim()&&t.push({type:"thinking",text:r})}else n.type==="image"?t.push({type:"json",label:"image",data:n}):t.push({type:"json",label:n.type||"block",data:n});return t}return[{type:"json",label:"content",data:e}]}function LK(e){if(e==null)return[];if(typeof e=="string"){const t=e.trim();return t?[{type:"markdown",text:t}]:[]}return Array.isArray(e)?e.flatMap(t=>{if(!t)return[];if(t.type==="text"){const n=(t.text||"").trim();return n?[{type:"markdown",text:n}]:[]}return[{type:"json",label:t.type||"block",data:t}]}):[{type:"json",label:"content",data:e}]}function AK(e){if(!e)return null;if(typeof e=="string")return[{type:"markdown",text:e}];if(Array.isArray(e)){const t=[];return e.forEach((n,r)=>{r>0&&t.push({type:"separator"}),n&&(typeof n=="string"?t.push({type:"markdown",text:n}):n.type==="text"?t.push({type:"markdown",text:n.text||""}):t.push({type:"json",label:n.type||"item",data:n}))}),t}return[{type:"json",label:"system",data:e}]}function DK(e){const t=[],n=(e==null?void 0:e.name)||"unknown",r=(e==null?void 0:e.description)||"";let i=`### ${n}
|
|
566
|
-
|
|
567
|
-
`;r&&(i+=`${r}
|
|
568
|
-
|
|
569
|
-
`),t.push({type:"markdown",text:i});const o=(e==null?void 0:e.input_schema)||(e==null?void 0:e.parameters)||null;return o&&t.push({type:"json",label:"Parameters",data:o}),t}function HK(e){var t;if(typeof e=="string")return e.slice(0,60).replace(/\n/g," ");if(Array.isArray(e)){for(const n of e)if((n==null?void 0:n.type)==="text"&&((t=n.text)!=null&&t.trim()))return n.text.trim().slice(0,60).replace(/\n/g," ")}return""}function FK(e){var r;const t=[];let n=0;for(;n<e.length;){const i=e[n];if((i==null?void 0:i.role)!=="user"){n++;continue}const o=((r=e[n+1])==null?void 0:r.role)==="assistant"?e[n+1]:null;t.push({id:`turn__${n}`,isTurn:!0,turnIndex:t.length,timestamp:i._timestamp||null,assistantTimestamp:(o==null?void 0:o._timestamp)||null,userBlocks:O0(i==null?void 0:i.content),assistantBlocks:o?O0(o.content):null,preview:HK(i==null?void 0:i.content)}),n+=o?2:1}return t}function I0(e){try{return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return null}}function WK({text:e,compact:t}){const[n,r]=h.useState(null),i=n||Po(e),o=x.jsx(Nb,{text:e,onTranslated:a=>r(a?Po(a):null)});return t?x.jsxs("div",{className:st.textBlockCompact,children:[x.jsx("span",{className:st.textBlockCompactFloat,children:o}),x.jsx("div",{className:`chat-md ${st.markdownBody}`,dangerouslySetInnerHTML:{__html:i}})]}):x.jsxs("div",{className:st.textBlock,children:[x.jsxs("div",{className:st.textBlockBar,children:[x.jsx("span",{className:`${st.blockTag} ${st.blockTagText}`,children:"text"}),o]}),x.jsx("div",{className:`chat-md ${st.textBlockBody}`,dangerouslySetInnerHTML:{__html:i}})]})}function VK({block:e}){const[t,n]=h.useState(!0),[r,i]=h.useState(null),o=e.text.length>60?e.text.slice(0,60).replace(/\n/g," ")+"…":e.text.replace(/\n/g," "),a=r||Po(e.text);return x.jsxs("div",{className:st.thinkingBlock,children:[x.jsxs("div",{className:st.thinkingHeader,onClick:()=>n(l=>!l),children:[t?x.jsx(ms,{className:st.arrow}):x.jsx(Ui,{className:st.arrow}),x.jsx("span",{className:`${st.blockTag} ${st.blockTagThinking}`,children:"thinking"}),!t&&x.jsx("span",{className:st.thinkingPreview,children:o}),t&&x.jsx("span",{onClick:l=>l.stopPropagation(),children:x.jsx(Nb,{text:e.text,onTranslated:l=>i(l?Po(l):null)})})]}),t&&x.jsx("div",{className:st.thinkingBody,children:x.jsx("div",{className:`chat-md ${st.markdownBody}`,dangerouslySetInnerHTML:{__html:a}})})]})}function Nf({blocks:e,compact:t}){return!e||e.length===0?null:x.jsx(x.Fragment,{children:e.map((n,r)=>x.jsx(UK,{block:n,compact:t},r))})}function UK({block:e,compact:t}){var n;return e.type==="separator"?x.jsx("hr",{className:st.blockSeparator}):e.type==="markdown"?(n=e.text)!=null&&n.trim()?x.jsx(WK,{text:e.text,compact:t}):null:e.type==="thinking"?x.jsx(VK,{block:e}):e.type==="tool_use"?x.jsxs("div",{className:st.toolBlock,children:[x.jsxs("div",{className:st.toolBlockHeader,children:[x.jsx("span",{className:st.blockTag,children:"tool_use"}),x.jsx("span",{className:st.toolName,children:e.name}),e.id&&x.jsx("span",{className:st.toolId,children:e.id})]}),x.jsx("div",{className:st.toolBlockBody,children:x.jsx(If,{data:e.input,defaultExpand:"root"})})]}):e.type==="tool_result"?x.jsxs("div",{className:`${st.toolBlock} ${e.is_error?st.toolBlockError:st.toolBlockResult}`,children:[x.jsxs("div",{className:st.toolBlockHeader,children:[x.jsx("span",{className:`${st.blockTag} ${e.is_error?st.blockTagError:st.blockTagResult}`,children:"tool_result"}),e.tool_use_id&&x.jsx("span",{className:st.toolId,children:e.tool_use_id}),e.is_error&&x.jsx("span",{className:st.errorLabel,children:"error"})]}),x.jsx("div",{className:st.toolBlockBody,children:x.jsx(Nf,{blocks:e.content,compact:!0})})]}):e.type==="json"?x.jsxs("div",{className:st.jsonBlock,children:[e.label&&x.jsx("div",{className:st.jsonBlockLabel,children:e.label}),x.jsx(If,{data:e.data,defaultExpand:"root"})]}):null}function qK({turn:e}){const t=e.timestamp?I0(e.timestamp):null,n=e.assistantTimestamp?I0(e.assistantTimestamp):null;return x.jsxs("div",{children:[x.jsxs("div",{className:st.roleHeader,children:[x.jsx("span",{className:`${st.roleBadge} ${st.role_user}`,children:"user"}),x.jsx("span",{className:st.roleLabel,children:`Turn ${e.turnIndex+1}`}),t&&x.jsx("span",{className:st.contentTime,children:t})]}),x.jsx(Nf,{blocks:e.userBlocks}),e.assistantBlocks&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:st.turnDivider}),x.jsxs("div",{className:st.roleHeader,children:[x.jsx("span",{className:`${st.roleBadge} ${st.role_assistant}`,children:"assistant"}),n&&x.jsx("span",{className:st.contentTime,children:n})]}),x.jsx(Nf,{blocks:e.assistantBlocks})]})]})}function KK({title:e,items:t,historyItems:n,onSelect:r,selectedId:i}){const[o,a]=h.useState(!0),[l,u]=h.useState(!1),d=t.length+((n==null?void 0:n.length)||0);function f(m){const g=i===m.id;return x.jsxs("div",{className:`${st.item} ${g?st.itemActive:""}`,onClick:()=>r(m),children:[x.jsxs("div",{className:st.itemContent,children:[x.jsx("span",{className:st.itemLabel,children:m.label}),m.sublabel&&!g&&x.jsx("div",{className:st.itemSublabel,children:m.sublabel})]}),m.time&&x.jsx("span",{className:st.itemTime,children:m.time})]},m.id)}return x.jsxs("div",{className:st.section,children:[x.jsxs("div",{className:st.sectionHeader,onClick:()=>a(m=>!m),children:[o?x.jsx(ms,{className:st.arrow}):x.jsx(Ui,{className:st.arrow}),x.jsx("span",{className:st.sectionTitle,children:e}),x.jsx("span",{className:st.sectionCount,children:d})]}),o&&x.jsxs("div",{className:st.sectionBody,children:[n&&n.length>0&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:st.historyToggle,onClick:()=>u(m=>!m),children:[l?x.jsx(ms,{className:st.arrow}):x.jsx(Ui,{className:st.arrow}),x.jsxs("span",{className:st.historyToggleLabel,children:[we("ui.context.history")," (",n.length,")"]})]}),l&&n.map(f)]}),t.map(f)]})]})}function GK({body:e,response:t}){const[n,r]=h.useState(null),i=h.useMemo(()=>{if(!Array.isArray(e==null?void 0:e.messages))return[];const u=FK(e.messages);if(u.length===0)return u;const d=u[u.length-1],f=t!=null&&t.content?O0(t.content):null;return[...u.slice(0,-1),{...d,assistantBlocks:f??d.assistantBlocks}]},[e,t]);if(h.useEffect(()=>{i.length>0?r(i[i.length-1]):r(null)},[e,t]),!e||typeof e!="object")return x.jsx("div",{className:st.emptyWrap,children:x.jsx(Ii,{description:we("ui.context.noData")})});const o=[],a=AK(e.system);if(a!=null&&o.push({key:"system",title:we("ui.context.systemPrompt"),items:[{id:"system__0",label:we("ui.context.systemPrompt"),blocks:a}]}),i.length>0){const u=g=>({...g,label:we("ui.context.historyTurnNoTime",{n:g.turnIndex+1}),time:g.timestamp?I0(g.timestamp):null,sublabel:g.preview||void 0}),d=g=>({...g,label:we("ui.context.currentTurn"),sublabel:g.preview||void 0}),f=i.slice(0,-1).map(u),m=d(i[i.length-1]);o.push({key:"messages",title:we("ui.context.messages"),historyItems:f.length>0?f:void 0,items:[m]})}if(Array.isArray(e.tools)&&e.tools.length>0&&o.push({key:"tools",title:we("ui.context.tools"),items:e.tools.map((u,d)=>({id:`tool__${d}`,label:(u==null?void 0:u.name)||`Tool ${d}`,blocks:DK(u)}))}),o.length===0)return x.jsx("div",{className:st.emptyWrap,children:x.jsx(Ii,{description:we("ui.context.noFields")})});const l=n!=null&&n.isTurn?i.find(u=>u.id===n.id)??null:n;return x.jsxs("div",{className:st.root,children:[x.jsx("div",{className:st.sidebar,children:o.map(u=>x.jsx(KK,{title:u.title,items:u.items,historyItems:u.historyItems,selectedId:l==null?void 0:l.id,onSelect:d=>r(d)},u.key))}),x.jsx("div",{className:st.content,children:l==null?x.jsx("div",{className:st.contentEmpty,children:x.jsx(BK,{type:"secondary",children:we("ui.context.selectPrompt")})}):x.jsx("div",{className:st.contentInner,children:l.isTurn?x.jsx(qK,{turn:l}):x.jsxs(x.Fragment,{children:[l.role&&x.jsxs("div",{className:st.roleHeader,children:[x.jsx("span",{className:`${st.roleBadge} ${st[`role_${l.role}`]||""}`,children:l.role}),x.jsx("span",{className:st.roleLabel,children:l.label})]}),x.jsx(Nf,{blocks:l.blocks})]})},l.id)})]})}const XK="_container_i6t4e_1",YK="_emptyState_i6t4e_9",JK="_urlSection_i6t4e_16",QK="_urlLeft_i6t4e_23",ZK="_tokenStatsBox_i6t4e_28",eG="_tokenGrid_i6t4e_35",tG="_tokenRows_i6t4e_45",nG="_tokenRow_i6t4e_45",rG="_tokenRowBorder_i6t4e_53",iG="_tokenLabel_i6t4e_57",oG="_tokenTd_i6t4e_64",sG="_tokenHitRate_i6t4e_73",aG="_tokenHitRateLabel_i6t4e_86",lG="_urlText_i6t4e_96",cG="_metaText_i6t4e_103",uG="_headersContainer_i6t4e_107",dG="_headerRow_i6t4e_111",hG="_headerKey_i6t4e_117",fG="_headerValue_i6t4e_122",mG="_streamingBox_i6t4e_127",pG="_rawTextPre_i6t4e_140",gG="_tabContent_i6t4e_153",vG="_bodyLabel_i6t4e_161",yG="_bodyHeader_i6t4e_165",bG="_diffSection_i6t4e_172",_G="_diffToggle_i6t4e_176",SG="_diffIcon_i6t4e_182",CG="_reminderSelect_i6t4e_208",zt={container:XK,emptyState:YK,urlSection:JK,urlLeft:QK,tokenStatsBox:ZK,tokenGrid:eG,tokenRows:tG,tokenRow:nG,tokenRowBorder:rG,tokenLabel:iG,tokenTd:oG,tokenHitRate:sG,tokenHitRateLabel:aG,urlText:lG,metaText:cG,headersContainer:uG,headerRow:dG,headerKey:hG,headerValue:fG,streamingBox:mG,rawTextPre:pG,tabContent:gG,bodyLabel:vG,bodyHeader:yG,diffSection:bG,diffToggle:_G,diffIcon:SG,reminderSelect:CG},{Text:Ri,Paragraph:wG}=jo;class xG extends Q.Component{constructor(t){super(t),this.state={bodyViewMode:{request:"json",response:"json",diff:"json"},diffExpanded:!1,requestHeadersExpanded:!1,responseHeadersExpanded:!1,diffTooltipDismissed:!1,reminderFilters:null}}componentDidMount(){fetch("/api/preferences").then(t=>t.json()).then(t=>{t.diffTooltipDismissed&&this.setState({diffTooltipDismissed:!0})}).catch(()=>{})}dismissDiffTooltip(){this.setState({diffTooltipDismissed:!0}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({diffTooltipDismissed:!0})}).catch(()=>{})}shouldComponentUpdate(t,n){if(t.request!==this.props.request){const r=Kr(t.request);this.setState({diffExpanded:r&&!!t.expandDiff,requestHeadersExpanded:!1,responseHeadersExpanded:!1,reminderFilters:null})}return t.request!==this.props.request||t.currentTab!==this.props.currentTab||t.onTabChange!==this.props.onTabChange||t.selectedIndex!==this.props.selectedIndex||t.expandDiff!==this.props.expandDiff||n.bodyViewMode!==this.state.bodyViewMode||n.diffExpanded!==this.state.diffExpanded||n.requestHeadersExpanded!==this.state.requestHeadersExpanded||n.responseHeadersExpanded!==this.state.responseHeadersExpanded||n.diffTooltipDismissed!==this.state.diffTooltipDismissed||n.reminderFilters!==this.state.reminderFilters}toggleBodyViewMode(t){this.setState(n=>({bodyViewMode:{...n.bodyViewMode,[t]:n.bodyViewMode[t]==="json"?"text":"json"}}))}copyBody(t){var a;const{request:n}=this.props;if(!n)return;let r;if(t==="diff"?r=this._lastDiffResult:r=t==="request"?n.body:(a=n.response)==null?void 0:a.body,r==null)return;const i=typeof r=="object"?Ta(r):r,o=typeof i=="string"?i:JSON.stringify(i,null,2);navigator.clipboard.writeText(o).then(()=>Oi.success(we("ui.copySuccess")))}renderHeaders(t){return!t||Object.keys(t).length===0?x.jsx(Ri,{type:"secondary",children:we("ui.noHeaders")}):x.jsx("div",{className:zt.headersContainer,children:Object.entries(t).map(([n,r])=>x.jsxs("div",{className:zt.headerRow,children:[x.jsx(Ri,{code:!0,className:zt.headerKey,children:n}),n==="authorization"&&x.jsx(Xl,{doc:"TranslateContextPollution"}),x.jsx(Ri,{type:"secondary",className:zt.headerValue,children:String(r)})]},n))})}getRequestExpandNode(t,n){if(n!=="request"||!t||typeof t!="object")return;const{request:r,requests:i,selectedIndex:o}=this.props;if(!r)return;const a=i&&o!=null?i[o+1]:null,{type:l}=Ba(r,a);let u=null;if(this.state.reminderFilters==="claudeMd"&&Array.isArray(t.messages)){u=new Set,u.add(t.messages);for(const m of t.messages){if(!m||typeof m!="object")continue;const g=m.content;if(typeof g=="string")Ef(g)&&u.add(m);else if(Array.isArray(g)){let v=!1;for(const y of g)y&&y.type==="text"&&Ef(y.text)&&(u.add(y),v=!0);v&&(u.add(m),u.add(g))}}}let d=null;if(this.state.reminderFilters==="skills"&&Array.isArray(t.messages)){d=new Set,d.add(t.messages);for(const m of t.messages){if(!m||typeof m!="object")continue;const g=m.content;if(typeof g=="string")kf(g)&&d.add(m);else if(Array.isArray(g)){let v=!1;for(const y of g)y&&y.type==="text"&&kf(y.text)&&(d.add(y),v=!0);v&&(d.add(m),d.add(g))}}}const f=u||d;if(l==="Preflight"){const m=new Set,g=v=>{v&&typeof v=="object"&&(m.add(v),Array.isArray(v)?v.forEach(g):Object.values(v).forEach(g))};return Array.isArray(t.messages)&&g(t.messages),Array.isArray(t.system)&&t.system.length>=3&&g(t.system[2]),(v,y,S)=>!!(v<2||m.has(y)||f&&f.has(y)||v===1&&S==="system")}if(l==="MainAgent"&&Array.isArray(t.messages)&&t.messages.length===1){const m=t.messages[0],g=m&&Array.isArray(m.content)?m.content:null,v=g&&g.length>0?g[g.length-1]:null,y=new Set,S=_=>{_&&typeof _=="object"&&(y.add(_),Array.isArray(_)?_.forEach(S):Object.values(_).forEach(S))};return v&&S(v),y.add(t.messages),m&&typeof m=="object"&&y.add(m),g&&y.add(g),(_,C,w)=>!!(_<2||y.has(C)||f&&f.has(C))}if(f)return(m,g,v)=>!!(m<2||f.has(g))}renderBody(t,n){const{bodyViewMode:r}=this.state;if(t==null)return x.jsx(Ri,{type:"secondary",children:we("ui.noBody")});if(typeof t=="string"&&t.includes("Streaming Response"))return x.jsx("div",{className:zt.streamingBox,children:x.jsx(Ri,{type:"secondary",children:we("ui.streamingResponse")})});const i=typeof t=="object"?Ta(t):t,o=r[n]==="json",a=this.getRequestExpandNode(i,n);return x.jsx("div",{children:o?x.jsx(If,{data:i,defaultExpand:n==="response"?"all":"root",expandNode:a}):x.jsx("pre",{className:zt.rawTextPre,children:typeof i=="string"?i:JSON.stringify(i,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(Kr(t[r]))return t[r];return null}computeDiff(t,n){if(t==null||n==null||typeof t!="object"||typeof n!="object")return null;const r={},i=new Set([...Object.keys(t),...Object.keys(n)]);for(const o of i)if(!o.startsWith("_"))if(!(o in t))r[o]=n[o];else if(o in n){const a=JSON.stringify(t[o]),l=JSON.stringify(n[o]);a!==l&&(o==="messages"&&Array.isArray(t[o])&&Array.isArray(n[o])&&n[o].length>t[o].length?r[o]=n[o].slice(t[o].length):r[o]=n[o])}else continue;return Object.keys(r).length?r:null}render(){var g,v,y;const{request:t,currentTab:n,onTabChange:r}=this.props;if(!t)return x.jsx("div",{className:zt.emptyState,children:x.jsx(Ii,{description:"选择一个请求查看详情"})});const i=new Date(t.timestamp).toLocaleString("zh-CN"),o=t.response&&t.response.status<400;let a=null;if(Kr(t)){const S=this.getPrevMainAgentRequest();if(S){const _=JSON.stringify(t.body).length,C=JSON.stringify(S.body).length;if(_<C)a=x.jsxs("div",{className:zt.diffSection,children:[x.jsxs(Zo,{title:this.state.diffTooltipDismissed?null:x.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[x.jsx("span",{style:{flex:1},children:we("ui.diffTooltip")}),x.jsx(na,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:k=>{k.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",x.jsxs(Ri,{strong:!0,className:zt.diffToggle,onClick:()=>this.setState(k=>({diffExpanded:!k.diffExpanded})),children:["Body Diff JSON ",x.jsx(Xl,{doc:"BodyDiffJSON"})," ",this.state.diffExpanded?x.jsx(ms,{className:zt.diffIcon}):x.jsx(Ui,{className:zt.diffIcon})]})]}),this.state.diffExpanded&&x.jsx(Ri,{type:"secondary",children:we("ui.diffSessionChanged")})]});else{const k=Ta(this.computeDiff(S.body,t.body));k&&(this._lastDiffResult=k,a=x.jsxs("div",{className:zt.diffSection,children:[x.jsxs(Zo,{title:this.state.diffTooltipDismissed?null:x.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8},children:[x.jsx("span",{style:{flex:1},children:we("ui.diffTooltip")}),x.jsx(na,{style:{cursor:"pointer",fontSize:10,marginTop:2,flexShrink:0},onClick:$=>{$.stopPropagation(),this.dismissDiffTooltip()}})]}),placement:"top",color:"#000",overlayStyle:{maxWidth:340},overlayInnerStyle:{fontSize:12,color:"#999"},children:[" ",x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[x.jsxs(Ri,{strong:!0,className:zt.diffToggle,onClick:()=>this.setState($=>({diffExpanded:!$.diffExpanded})),children:["Body Diff JSON ",x.jsx(Xl,{doc:"BodyDiffJSON"})," ",this.state.diffExpanded?x.jsx(ms,{className:zt.diffIcon}):x.jsx(Ui,{className:zt.diffIcon})]}),this.state.diffExpanded&&x.jsxs(ps,{size:"small",style:{marginLeft:"auto"},children:[x.jsx(Gn,{size:"small",icon:this.state.bodyViewMode.diff==="json"?x.jsx(vu,{}):x.jsx(Kh,{}),onClick:()=>this.toggleBodyViewMode("diff"),children:this.state.bodyViewMode.diff==="json"?"Text":"JSON"}),x.jsx(Gn,{size:"small",icon:x.jsx(yu,{}),onClick:()=>this.copyBody("diff"),children:we("ui.copy")})]})]})]}),this.state.diffExpanded&&x.jsx(x.Fragment,{children:this.state.bodyViewMode.diff==="json"?x.jsx(If,{data:k,defaultExpand:"all"}):x.jsx("pre",{className:zt.rawTextPre,children:JSON.stringify(k,null,2)})})]}))}}}const l=LW(t.body),u=AW(t.body),d=[{key:"request",label:"Request",children:x.jsxs("div",{className:zt.tabContent,children:[x.jsxs("div",{className:zt.diffSection,children:[x.jsxs(Ri,{strong:!0,className:zt.diffToggle,onClick:()=>this.setState(S=>({requestHeadersExpanded:!S.requestHeadersExpanded})),children:["Headers ",this.state.requestHeadersExpanded?x.jsx(ms,{className:zt.diffIcon}):x.jsx(Ui,{className:zt.diffIcon})]}),this.state.requestHeadersExpanded&&this.renderHeaders(t.headers)]}),a,x.jsxs("div",{children:[x.jsxs("div",{className:zt.bodyHeader,children:[x.jsx(Ri,{strong:!0,className:zt.bodyLabel,children:"Body"}),x.jsxs(ps,{size:"small",children:[(l||u)&&x.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[x.jsx("span",{style:{color:"#888",fontSize:12,fontFamily:"monospace"},children:"system-reminder:"}),x.jsx(Ua,{size:"small",className:zt.reminderSelect,placeholder:"filter",value:this.state.reminderFilters||void 0,onChange:S=>this.setState({reminderFilters:S||null}),options:[{label:"CLAUDE.md",value:"claudeMd",disabled:!l},{label:"Skills",value:"skills",disabled:!u}],popupMatchSelectWidth:!1,allowClear:!0})]}),x.jsx(Gn,{size:"small",icon:this.state.bodyViewMode.request==="json"?x.jsx(vu,{}):x.jsx(Kh,{}),onClick:()=>this.toggleBodyViewMode("request"),children:this.state.bodyViewMode.request==="json"?"Text":"JSON"}),x.jsx(Gn,{size:"small",icon:x.jsx(yu,{}),onClick:()=>this.copyBody("request"),children:we("ui.copy")})]})]}),this.renderBody(t.body,"request")]})]})},{key:"response",label:"Response",children:x.jsx("div",{className:zt.tabContent,children:t.response?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:zt.diffSection,children:[x.jsxs(Ri,{strong:!0,className:zt.diffToggle,onClick:()=>this.setState(S=>({responseHeadersExpanded:!S.responseHeadersExpanded})),children:["Headers ",this.state.responseHeadersExpanded?x.jsx(ms,{className:zt.diffIcon}):x.jsx(Ui,{className:zt.diffIcon})]}),this.state.responseHeadersExpanded&&this.renderHeaders(t.response.headers)]}),x.jsxs("div",{children:[x.jsxs("div",{className:zt.bodyHeader,children:[x.jsx(Ri,{strong:!0,className:zt.bodyLabel,children:"Body"}),x.jsxs(ps,{size:"small",children:[x.jsx(Gn,{size:"small",icon:this.state.bodyViewMode.response==="json"?x.jsx(vu,{}):x.jsx(Kh,{}),onClick:()=>this.toggleBodyViewMode("response"),children:this.state.bodyViewMode.response==="json"?"Text":"JSON"}),x.jsx(Gn,{size:"small",icon:x.jsx(yu,{}),onClick:()=>this.copyBody("response"),children:we("ui.copy")})]})]}),this.renderBody(t.response.body,"response")]})]}):x.jsx(Ii,{description:we("ui.responseNotCaptured")})})},{key:"context",label:"Context",children:x.jsx("div",{className:zt.tabContent,style:{height:"calc(100vh - 220px)",minHeight:400},children:x.jsx(GK,{body:t.body,response:(g=t.response)==null?void 0:g.body})})}],f=(y=(v=t.response)==null?void 0:v.body)==null?void 0:y.usage,m=f?(()=>{const S=f.input_tokens||0,_=f.output_tokens||0,C=f.cache_creation_input_tokens||0,w=f.cache_read_input_tokens||0,k=S+C+w,$=k>0?(w/k*100).toFixed(1):"0.0";return{input:S,output:_,cacheCreate:C,cacheRead:w,hitRate:$}})():null;return x.jsxs("div",{className:zt.container,children:[x.jsxs("div",{className:zt.urlSection,children:[x.jsxs("div",{className:zt.urlLeft,children:[x.jsx(wG,{className:zt.urlText,ellipsis:{rows:2,expandable:!0},children:t.url}),x.jsxs(ps,{size:"small",wrap:!0,children:[x.jsx(Ki,{color:t.method==="POST"?"blue":"green",children:t.method}),x.jsxs(Ri,{type:"secondary",className:zt.metaText,children:["🕐 ",i]}),t.duration&&x.jsxs(Ri,{type:"secondary",className:zt.metaText,children:["⏱️ ",t.duration,"ms"]}),t.response&&x.jsxs(Ki,{color:o?"success":"error",children:["HTTP ",t.response.status]})]})]}),m&&x.jsx("div",{className:zt.tokenStatsBox,children:x.jsxs("div",{className:zt.tokenGrid,children:[x.jsxs("div",{className:zt.tokenRows,children:[x.jsxs("div",{className:zt.tokenRow,children:[x.jsx("span",{className:zt.tokenLabel,children:"Token"}),x.jsxs("span",{className:zt.tokenTd,children:["input: ",fr(m.input)]}),x.jsxs("span",{className:zt.tokenTd,children:["output: ",fr(m.output)]})]}),x.jsxs("div",{className:`${zt.tokenRow} ${zt.tokenRowBorder}`,children:[x.jsx("span",{className:zt.tokenLabel,children:"Cache"}),x.jsxs("span",{className:zt.tokenTd,children:["create: ",fr(m.cacheCreate)]}),x.jsxs("span",{className:zt.tokenTd,children:["read: ",fr(m.cacheRead)]})]})]}),x.jsxs("div",{className:zt.tokenHitRate,children:[x.jsxs("div",{children:[m.hitRate,"%"]}),x.jsx("div",{className:zt.tokenHitRateLabel,children:we("ui.hitRate")})]})]})})]}),x.jsx(fb,{activeKey:n,onChange:r,items:d,size:"small"})]})}}const EG=["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 kG(e){if(!e)return{segments:[]};const t=new RegExp("<("+EG.join("|")+")\\b[^>]*>([\\s\\S]*?)</\\1>","gi"),n=[];let r=0,i;for(;(i=t.exec(e))!==null;){if(i.index>r){const o=e.slice(r,i.index).trim();o&&n.push({type:"text",content:o})}n.push({type:"system-tag",tag:i[1],content:i[2].trim()}),r=i.index+i[0].length}if(r<e.length){const o=e.slice(r).trim();o&&n.push({type:"text",content:o})}return{segments:n}}function $G(e){const{segments:t}=kG(e);return t.length===0?{segments:[]}:{segments:t}}const RG="_wrapper_1o255_1",TG="_header_1o255_5",PG="_filePath_1o255_12",OG="_toggle_1o255_18",IG="_code_1o255_25",Yc={wrapper:RG,header:TG,filePath:PG,toggle:OG,code:IG},{Text:Cx}=jo;function NG({file_path:e,old_string:t,new_string:n}){const[r,i]=h.useState(!1),o=t.split(`
|
|
570
|
-
`),a=n.split(`
|
|
571
|
-
`),l=[];return o.forEach(u=>{l.push({type:"del",text:u})}),a.forEach(u=>{l.push({type:"add",text:u})}),x.jsxs("div",{className:`diff-view ${Yc.wrapper}`,children:[x.jsxs("div",{className:Yc.header,children:[x.jsxs(Cx,{className:Yc.filePath,children:["Edit: ",e]}),x.jsx(Cx,{className:Yc.toggle,onClick:()=>i(u=>!u),children:we(r?"ui.expand":"ui.collapse")})]}),!r&&x.jsx("pre",{className:Yc.code,children:l.map((u,d)=>x.jsxs("div",{className:u.type==="del"?"diff-line-del":"diff-line-add",children:[u.type==="del"?"- ":"+ ",u.text]},d))})]})}const MG="_plainResult_1uh60_1",jG="_plainTitle_1uh60_7",zG="_plainPre_1uh60_11",BG="_codeResult_1uh60_20",LG="_codeHeader_1uh60_27",AG="_codeTitle_1uh60_36",DG="_codeToggle_1uh60_41",HG="_codePre_1uh60_48",FG="_markdownBody_1uh60_57",hi={plainResult:MG,plainTitle:jG,plainPre:zG,codeResult:BG,codeHeader:LG,codeTitle:AG,codeToggle:DG,codePre:HG,markdownBody:FG},{Text:Il}=jo,Nl={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"},WG=["Read","Grep","Glob","Bash","Write","Edit"];function VG(e,t,n){if(!t)return null;const r=t.file_path||"";if(r){const i=r.split(".").pop().toLowerCase();if(Nl[i])return Nl[i]}if(e==="Bash")return"shell-output";if(e==="Glob")return"file-list";if(e==="Grep"){const i=t.glob||"";if(i){const o=i.replace(/[{}*]/g,",").split(",").filter(Boolean);for(const a of o){const l=a.replace(/^\./,"").toLowerCase();if(Nl[l])return Nl[l]}}if(t.output_mode==="files_with_matches"||!t.output_mode)return"file-list";if(t.output_mode==="content"&&n){const o=n.match(/^[\w/.~-]+\.([\w]+):\d+/m);if(o&&Nl[o[1].toLowerCase()])return Nl[o[1].toLowerCase()]}return"shell-output"}return n?UG(n):null}function UG(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 qG={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"}]},KG=[{pattern:/(\/\/.*$|#.*$)/gm,cls:"hl-comment"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`)/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],GG=[{pattern:/^([\w/.~-]+:\d+[:-])/gm,cls:"hl-keyword"},{pattern:/('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*")/g,cls:"hl-string"},{pattern:/\b(\d+\.?\d*)\b/g,cls:"hl-number"}],XG=[{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 YG(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=GG:n==="file-list"?r=XG:r=qG[n]||KG;const i=/^(\s*\d+→)/gm,o=[];let a=e.replace(i,f=>{const m=o.length;return o.push(f),`L${m}`});const l=xf(a),u=[];let d=l;for(const f of r)f.pattern.lastIndex=0,d=d.replace(f.pattern,m=>{const g=u.length;return u.push(`<span class="${f.cls}">${m}</span>`),`P${g}`});return d=d.replace(/\x02P(\d+)\x02/g,(f,m)=>u[parseInt(m)]),d=d.replace(/\x01L(\d+)\x01/g,(f,m)=>`<span class="hl-linenum">${xf(o[parseInt(m)])}</span>`),d}function wx({toolName:e,toolInput:t,resultText:n,defaultCollapsed:r}){const[i,o]=h.useState(r??!1);h.useEffect(()=>{o(r??!1)},[r]);const a=WG.includes(e),l=a?VG(e,t,n):null,u=n.length>5e3?n.substring(0,5e3)+`
|
|
572
|
-
... (truncated)`:n;let d=e?we("ui.toolReturnNamed",{name:e}):"Result";if(t){const m=t.file_path||t.path||"";if(m){const g=m.split("/");d=`${e}: ${g[g.length-1]}`}}if(!a)return e==="Task"?x.jsxs("div",{className:hi.plainResult,children:[x.jsxs("div",{className:hi.codeHeader,children:[x.jsx(Il,{type:"secondary",className:hi.plainTitle,children:d}),x.jsx(Il,{className:hi.codeToggle,onClick:()=>o(m=>!m),children:we(i?"ui.expand":"ui.collapse")})]}),!i&&x.jsx("div",{className:`chat-md ${hi.markdownBody}`,dangerouslySetInnerHTML:{__html:Po(u)}})]}):x.jsxs("div",{className:hi.plainResult,children:[x.jsxs("div",{className:hi.codeHeader,children:[x.jsx(Il,{type:"secondary",className:hi.plainTitle,children:d}),x.jsx(Il,{className:hi.codeToggle,onClick:()=>o(m=>!m),children:we(i?"ui.expand":"ui.collapse")})]}),!i&&x.jsx("pre",{className:hi.plainPre,children:u})]});const f=YG(u,l||"fallback");return x.jsxs("div",{className:`tool-result-code ${hi.codeResult}`,children:[x.jsxs("div",{className:hi.codeHeader,children:[x.jsxs(Il,{className:hi.codeTitle,children:[d,l?` (${l})`:""]}),x.jsx(Il,{className:hi.codeToggle,onClick:()=>o(m=>!m),children:we(i?"ui.expand":"ui.collapse")})]}),!i&&x.jsx("pre",{className:`code-highlight ${hi.codePre}`,dangerouslySetInnerHTML:{__html:f}})]})}const JG="_avatar_w9l4s_3",QG="_avatarImg_w9l4s_13",ZG="_messageRow_w9l4s_32",eX="_messageRowEnd_w9l4s_38",tX="_contentCol_w9l4s_47",nX="_contentColLimited_w9l4s_52",rX="_labelRow_w9l4s_60",iX="_labelRowEnd_w9l4s_67",oX="_labelRight_w9l4s_74",sX="_labelText_w9l4s_82",aX="_timeText_w9l4s_86",lX="_timeTextNoMargin_w9l4s_92",cX="_labelTextRight_w9l4s_98",uX="_bubbleUser_w9l4s_105 _bubble_w9l4s_21",dX="_bubbleAssistant_w9l4s_111 _bubble_w9l4s_21",hX="_bubbleHighlight_w9l4s_119",fX="_bubbleHighlightFading_w9l4s_123",mX="_borderSvg_w9l4s_128",pX="_borderSvgFading_w9l4s_137",gX="_borderRect_w9l4s_142",vX="_bubblePlan_w9l4s_151 _bubble_w9l4s_21",yX="_bubbleSubAgent_w9l4s_159 _bubble_w9l4s_21",bX="_bubbleSelection_w9l4s_165 _bubble_w9l4s_21",_X="_systemTagLabel_w9l4s_173",SX="_skillLabel_w9l4s_177",CX="_systemTagPre_w9l4s_182",wX="_collapseMargin_w9l4s_190",xX="_collapseNoMargin_w9l4s_194",EX="_thinkingLabel_w9l4s_200",kX="_toolBox_w9l4s_206",$X="_toolLabel_w9l4s_215",RX="_codePre_w9l4s_221",TX="_pathTag_w9l4s_233",PX="_descSpan_w9l4s_240",OX="_secondarySpan_w9l4s_245",IX="_patternSpan_w9l4s_249",NX="_kvContainer_w9l4s_255",MX="_kvItem_w9l4s_260",jX="_kvKey_w9l4s_264",zX="_kvValue_w9l4s_268",BX="_toolResult_w9l4s_274",LX="_toolResultLabel_w9l4s_283",AX="_compactLabel_w9l4s_289",DX="_compactPre_w9l4s_294",HX="_viewRequestBtn_w9l4s_304",FX="_optionList_w9l4s_318",WX="_optionDesc_w9l4s_322",VX="_questionText_w9l4s_330",UX="_questionSpacing_w9l4s_336",qX="_option_w9l4s_318",KX="_askQuestionBox_w9l4s_349",GX="_askQuestionHeader_w9l4s_358",XX="_askQuestionText_w9l4s_369",YX="_askOptionItem_w9l4s_375",JX="_planModeBox_w9l4s_383",QX="_planModeLabel_w9l4s_392",ZX="_planModePermissions_w9l4s_397",eY="_planModePermLabel_w9l4s_403",He={avatar:JG,avatarImg:QG,messageRow:ZG,messageRowEnd:eX,contentCol:tX,contentColLimited:nX,labelRow:rX,labelRowEnd:iX,labelRight:oX,labelText:sX,timeText:aX,timeTextNoMargin:lX,labelTextRight:cX,bubbleUser:uX,bubbleAssistant:dX,bubbleHighlight:hX,bubbleHighlightFading:fX,borderSvg:mX,borderSvgFading:pX,borderRect:gX,bubblePlan:vX,bubbleSubAgent:yX,bubbleSelection:bX,systemTagLabel:_X,skillLabel:SX,systemTagPre:CX,collapseMargin:wX,collapseNoMargin:xX,thinkingLabel:EX,toolBox:kX,toolLabel:$X,codePre:RX,pathTag:TX,descSpan:PX,secondarySpan:OX,patternSpan:IX,kvContainer:NX,kvItem:MX,kvKey:jX,kvValue:zX,toolResult:BX,toolResultLabel:LX,compactLabel:AX,compactPre:DX,viewRequestBtn:HX,optionList:FX,optionDesc:WX,questionText:VX,questionSpacing:UX,option:qX,askQuestionBox:KX,askQuestionHeader:GX,askQuestionText:XX,askOptionItem:YX,planModeBox:JX,planModeLabel:QX,planModePermissions:ZX,planModePermLabel:eY},{Text:Ti}=jo;class xo extends Q.Component{constructor(n){super(n);Rt(this,"handleThinkingTranslated",(n,r)=>{this.setState(i=>({thinkingTranslated:{...i.thinkingTranslated,[n]:r?Po(r):null}}))});this.state={thinkingTranslated:{}}}formatTime(n){if(!n)return null;try{const r=new Date(n),i=o=>String(o).padStart(2,"0");return`${i(r.getMonth()+1)}-${i(r.getDate())} ${i(r.getHours())}:${i(r.getMinutes())}:${i(r.getSeconds())}`}catch{return null}}renderViewRequestBtn(){const{requestIndex:n,onViewRequest:r}=this.props;return n==null||!r?null:x.jsx("span",{className:He.viewRequestBtn,onClick:i=>{i.stopPropagation(),r(n)},children:we("ui.viewRequest")})}renderLabel(n,r){const{timestamp:i}=this.props,o=this.formatTime(i);return x.jsxs("div",{className:He.labelRow,children:[x.jsxs(Ti,{type:"secondary",className:He.labelText,children:[n,r||""]}),x.jsxs("span",{className:He.labelRight,children:[this.renderViewRequestBtn(),o&&x.jsx(Ti,{className:He.timeText,children:o})]})]})}renderUserAvatar(n){const{userProfile:r}=this.props;return r!=null&&r.avatar?x.jsx("img",{src:r.avatar,className:He.avatarImg,alt:r.name||"User"}):x.jsx("div",{className:He.avatar,style:{background:n},dangerouslySetInnerHTML:{__html:Bl("user")}})}getUserName(){const{userProfile:n}=this.props;return(n==null?void 0:n.name)||"User"}renderSegments(n){return n.map((r,i)=>r.type==="system-tag"?x.jsx(iu,{ghost:!0,size:"small",items:[{key:"1",label:x.jsx(Ti,{type:"secondary",className:He.systemTagLabel,children:r.tag}),children:x.jsx("pre",{className:He.systemTagPre,children:r.content})}],className:He.collapseMargin},i):x.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:Po(r.content)}},i))}renderToolCall(n){if(typeof n.input=="string")try{const f=n.input.replace(/^\[object Object\]/,"");n={...n,input:JSON.parse(f)}}catch{}if(n.name==="Edit"&&n.input&&n.input.old_string!=null&&n.input.new_string!=null)return x.jsx(NG,{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:{},i=(f,m)=>x.jsxs("div",{className:He.toolBox,children:[x.jsx(Ti,{strong:!0,className:He.toolLabel,children:f}),m]},n.id),o=(f,m)=>x.jsx("pre",{className:He.codePre,style:{color:m},children:f}),a=f=>x.jsx("span",{className:He.pathTag,children:f});if(n.name==="Bash"){const f=r.command||"",m=r.description||"";return i(x.jsxs(x.Fragment,{children:["Bash",m?x.jsxs("span",{className:He.descSpan,children:[" — ",m]}):""]}),o(f,"#c9d1d9"))}if(n.name==="Read"){const f=r.file_path||"",m=[];r.offset&&m.push(`offset: ${r.offset}`),r.limit&&m.push(`limit: ${r.limit}`);const g=m.length?` (${m.join(", ")})`:"";return i(x.jsxs(x.Fragment,{children:["Read: ",a(f),x.jsx("span",{className:He.secondarySpan,children:g})]}),null)}if(n.name==="Write"){const f=r.file_path||"",m=r.content||"",g=m.split(`
|
|
573
|
-
`),v=g.length>20?g.slice(0,20).join(`
|
|
574
|
-
`)+`
|
|
575
|
-
... (${g.length} lines total)`:m;return i(x.jsxs(x.Fragment,{children:["Write: ",a(f)," ",x.jsxs("span",{className:He.secondarySpan,children:["(",g.length," lines)"]})]}),o(v,"#c9d1d9"))}if(n.name==="Glob"){const f=r.pattern||"",m=r.path||"";return i(x.jsxs(x.Fragment,{children:["Glob: ",x.jsx("span",{className:He.patternSpan,children:f}),m?x.jsxs("span",{className:He.secondarySpan,children:[" in ",m]}):""]}),null)}if(n.name==="Grep"){const f=r.pattern||"",m=r.path||"",g=[];r.glob&&g.push(`glob: ${r.glob}`),r.output_mode&&g.push(`mode: ${r.output_mode}`),r.head_limit&&g.push(`limit: ${r.head_limit}`);const v=g.length?` (${g.join(", ")})`:"";return i(x.jsxs(x.Fragment,{children:["Grep: ",x.jsxs("span",{className:He.patternSpan,children:["/",f,"/"]}),m?x.jsxs("span",{className:He.secondarySpan,children:[" in ",m]}):"",x.jsx("span",{className:He.secondarySpan,children:v})]}),null)}if(n.name==="Task"){const f=r.subagent_type||"",m=r.description||"";return i(x.jsxs(x.Fragment,{children:["Task(",f,m?": "+m:"",")"]}),null)}if(n.name==="AskUserQuestion"){const f=r.questions||[];return x.jsx("div",{className:He.askQuestionBox,children:f.map((m,g)=>x.jsxs("div",{className:g<f.length-1?He.questionSpacing:void 0,children:[m.header&&x.jsx("span",{className:He.askQuestionHeader,children:m.header}),x.jsx("div",{className:He.askQuestionText,children:m.question}),x.jsx("div",{className:He.optionList,children:m.options&&m.options.map((v,y)=>x.jsxs("div",{className:He.askOptionItem,children:["○ ",v.label,v.description&&x.jsxs("span",{className:He.optionDesc,children:["— ",v.description]})]},y))})]},g))},n.id)}if(n.name==="EnterPlanMode")return x.jsx("div",{className:He.planModeBox,children:x.jsx("span",{className:He.planModeLabel,children:we("ui.enterPlanMode")})},n.id);if(n.name==="ExitPlanMode"){const f=r.allowedPrompts||[];return x.jsxs("div",{className:He.planModeBox,children:[x.jsx("span",{className:He.planModeLabel,children:we("ui.exitPlanMode")}),f.length>0&&x.jsxs("div",{className:He.planModePermissions,children:[x.jsx("div",{className:He.planModePermLabel,children:we("ui.allowedPrompts")}),f.map((m,g)=>x.jsxs("div",{className:He.askOptionItem,children:["• ",m.prompt||m.tool]},g))]})]},n.id)}let l=n.name;const u=Object.keys(r);if(u.length===0)return i(l,null);const d=u.map(f=>{const m=r[f],g=typeof m=="string"?m:JSON.stringify(m),v=g.length>200?g.substring(0,200)+"...":g;return x.jsxs("div",{className:He.kvItem,children:[x.jsxs("span",{className:He.kvKey,children:[f,": "]}),x.jsx("span",{className:He.kvValue,children:v})]},f)});return i(l,x.jsx("div",{className:He.kvContainer,children:d}))}renderHighlightBubble(n,r){const{highlight:i}=this.props,o=`${n}${i==="active"?" "+He.bubbleHighlight:""}${i==="fading"?" "+He.bubbleHighlightFading:""}`,a=n===He.bubbleUser;return x.jsxs("div",{className:o,style:{position:"relative"},children:[(i==="active"||i==="fading")&&x.jsx("svg",{className:`${He.borderSvg}${i==="fading"?" "+He.borderSvgFading:""}`,preserveAspectRatio:"none",children:x.jsx("rect",{x:"0.5",y:"0.5",width:"calc(100% - 1px)",height:"calc(100% - 1px)",rx:"8",ry:"8",fill:"none",stroke:a?"#ffffff":"#1668dc",strokeWidth:"1",strokeDasharray:"6 4",className:He.borderRect})}),r]})}renderUserMessage(){const{text:n,timestamp:r}=this.props,i=this.formatTime(r),o=this.getUserName();return n&&n.includes("This session is being continued from a previous conversation that ran out of context")?x.jsxs("div",{className:He.messageRowEnd,children:[x.jsxs("div",{className:He.contentColLimited,children:[x.jsxs("div",{className:He.labelRow,children:[i&&x.jsx(Ti,{className:He.timeTextNoMargin,children:i}),this.renderViewRequestBtn(),x.jsxs(Ti,{type:"secondary",className:He.labelTextRight,children:[o," — /compact"]})]}),this.renderHighlightBubble(He.bubbleUser,x.jsx(iu,{ghost:!0,size:"small",items:[{key:"1",label:x.jsx(Ti,{className:He.compactLabel,children:"Compact Summary"}),children:x.jsx("pre",{className:He.compactPre,children:n})}],className:He.collapseNoMargin}))]}),this.renderUserAvatar("#1e40af")]}):x.jsxs("div",{className:He.messageRowEnd,children:[x.jsxs("div",{className:He.contentColLimited,children:[x.jsxs("div",{className:He.labelRow,children:[i&&x.jsx(Ti,{className:He.timeTextNoMargin,children:i}),this.renderViewRequestBtn(),x.jsx(Ti,{type:"secondary",className:He.labelTextRight,children:o})]}),this.renderHighlightBubble(He.bubbleUser,xf(n))]}),this.renderUserAvatar("#1e40af")]})}renderToolResult(n){return n?x.jsxs("div",{className:He.toolResult,children:[x.jsx(Ti,{type:"secondary",className:He.toolResultLabel,children:n.label}),x.jsx(wx,{toolName:n.toolName,toolInput:n.toolInput,resultText:n.resultText,defaultCollapsed:this.props.collapseToolResults})]}):null}renderAssistantContent(n,r={}){const i=n.filter(u=>u.type==="thinking"),o=n.filter(u=>u.type==="text"),a=n.filter(u=>u.type==="tool_use");let l=[];return i.forEach((u,d)=>{const m=this.state.thinkingTranslated[d]||Po(u.thinking||"");l.push(x.jsx(iu,{ghost:!0,size:"small",defaultActiveKey:this.props.expandThinking?["1"]:[],items:[{key:"1",label:x.jsxs("span",{children:[x.jsx(Ti,{type:"secondary",className:He.thinkingLabel,children:we("ui.thinking")}),x.jsx(Nb,{text:u.thinking||"",onTranslated:g=>this.handleThinkingTranslated(d,g)})]}),children:x.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:m}})}],className:He.collapseMargin},`think-${d}-${this.props.expandThinking?"e":"c"}`))}),o.forEach((u,d)=>{if(u.text){const{segments:f}=$G(u.text);l.push(x.jsx("div",{children:this.renderSegments(f)},`text-${d}`))}}),a.forEach(u=>{l.push(this.renderToolCall(u));const d=r[u.id];d&&l.push(x.jsx(Q.Fragment,{children:this.renderToolResult(d)},`tr-${u.id}`))}),l}renderAssistantMessage(){const{content:n,toolResultMap:r={},modelInfo:i}=this.props,o=this.renderAssistantContent(n,r);return o.length===0?null:x.jsxs("div",{className:He.messageRow,children:[x.jsx("div",{className:He.avatar,style:{background:(i==null?void 0:i.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(i==null?void 0:i.svg)||Bl("agent")}}),x.jsxs("div",{className:He.contentCol,children:[this.renderLabel((i==null?void 0:i.name)||"MainAgent"),this.renderHighlightBubble(He.bubbleAssistant,o)]})]})}renderSubAgentChatMessage(){const{content:n,toolResultMap:r={},label:i}=this.props,o=this.renderAssistantContent(n,r);return o.length===0?null:x.jsxs("div",{className:He.messageRowEnd,children:[x.jsxs("div",{className:He.contentColLimited,children:[x.jsxs("div",{className:He.labelRowEnd,children:[this.formatTime(this.props.timestamp)&&x.jsx(Ti,{className:He.timeText,children:this.formatTime(this.props.timestamp)}),this.renderViewRequestBtn(),x.jsx(Ti,{type:"secondary",className:He.labelTextRight,children:i||"SubAgent"})]}),this.renderHighlightBubble(He.bubbleAssistant,o)]}),x.jsx("div",{className:He.avatar,style:{background:"#4a1d96"},dangerouslySetInnerHTML:{__html:Bl("sub")}})]})}renderSubAgentMessage(){const{label:n,resultText:r,toolName:i,toolInput:o}=this.props;return x.jsxs("div",{className:He.messageRow,children:[x.jsx("div",{className:He.avatar,style:{background:"#4a1d96"},dangerouslySetInnerHTML:{__html:Bl("sub")}}),x.jsxs("div",{className:He.contentCol,children:[this.renderLabel(n),x.jsx("div",{className:He.bubbleSubAgent,children:x.jsx(wx,{toolName:i,toolInput:o,resultText:r})})]})]})}renderUserSelectionMessage(){const{questions:n,answers:r}=this.props,i=this.getUserName();return x.jsxs("div",{className:He.messageRowEnd,children:[x.jsxs("div",{className:He.contentColLimited,children:[this.renderLabel(i," — 选择"),x.jsx("div",{className:He.bubbleSelection,children:n&&n.map((o,a)=>{const l=(r==null?void 0:r[o.question])||"未选择";return x.jsxs("div",{className:a<n.length-1?He.questionSpacing:void 0,children:[x.jsx("div",{className:He.questionText,children:o.question}),x.jsx("div",{className:He.optionList,children:o.options&&o.options.map((u,d)=>{const f=l===u.label;return x.jsxs("div",{className:He.option,style:{color:f?"#e5e5e5":"#666",fontWeight:f?600:"normal"},children:[f?"● ":"○ ",u.label,u.description&&x.jsxs("span",{className:He.optionDesc,children:["— ",u.description]})]},d)})})]},a)})})]}),this.renderUserAvatar("#2ea043")]})}renderPlanPromptMessage(){const{text:n,timestamp:r,modelInfo:i}=this.props;this.formatTime(r);const o=(n||"").replace(/^Implement the following plan:\s*/i,"");return x.jsxs("div",{className:He.messageRow,children:[x.jsx("div",{className:He.avatar,style:{background:(i==null?void 0:i.color)||"#6b21a8"},dangerouslySetInnerHTML:{__html:(i==null?void 0:i.svg)||Bl("agent")}}),x.jsxs("div",{className:He.contentColLimited,children:[this.renderLabel((i==null?void 0:i.name)||"MainAgent"," (Plan)"),x.jsx("div",{className:He.bubblePlan,children:x.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:Po(o)}})})]})]})}renderSkillLoadedMessage(){const{text:n,skillName:r,timestamp:i}=this.props,o=this.formatTime(i);return x.jsxs("div",{className:He.messageRow,children:[x.jsx("div",{style:{width:32,flexShrink:0}}),x.jsx("div",{className:He.contentCol,children:x.jsx(iu,{ghost:!0,size:"small",items:[{key:"1",label:x.jsxs("span",{className:He.skillLabel,children:["📦 ",we("ui.skillLoaded"),": ",r,o&&x.jsx(Ti,{className:He.timeTextNoMargin,style:{marginLeft:8},children:o})]}),children:x.jsx("div",{className:"chat-md",dangerouslySetInnerHTML:{__html:Po(n)}})}],className:He.collapseNoMargin})})]})}render(){const{role:n}=this.props;return n==="user"?this.renderUserMessage():n==="skill-loaded"?this.renderSkillLoadedMessage():n==="plan-prompt"?this.renderPlanPromptMessage():n==="user-selection"?this.renderUserSelectionMessage():n==="assistant"?this.renderAssistantMessage():n==="sub-agent-chat"?this.renderSubAgentChatMessage():n==="sub-agent"?this.renderSubAgentMessage():null}}/**
|
|
576
|
-
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
577
|
-
* @license MIT
|
|
578
|
-
*
|
|
579
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
580
|
-
* @license MIT
|
|
581
|
-
*
|
|
582
|
-
* Originally forked from (with the author's permission):
|
|
583
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
584
|
-
* http://bellard.org/jslinux/
|
|
585
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
586
|
-
*/var u3=Object.defineProperty,tY=Object.getOwnPropertyDescriptor,nY=(e,t)=>{for(var n in t)u3(e,n,{get:t[n],enumerable:!0})},ar=(e,t,n,r)=>{for(var i=r>1?void 0:r?tY(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&u3(t,n,i),i},ut=(e,t)=>(n,r)=>t(n,r,e),xx="Terminal input",N0={get:()=>xx,set:e=>xx=e},Ex="Too much output to announce, navigate to rows manually to read",M0={get:()=>Ex,set:e=>Ex=e};function rY(e){return e.replace(/\r?\n/g,"\r")}function iY(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function oY(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function sY(e,t,n,r){if(e.stopPropagation(),e.clipboardData){let i=e.clipboardData.getData("text/plain");d3(i,t,n,r)}}function d3(e,t,n,r){e=rY(e),e=iY(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=""}function h3(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,o=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${i}px`,t.style.top=`${o}px`,t.style.zIndex="1000",t.focus()}function kx(e,t,n,r,i){h3(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function qs(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function $m(e,t=0,n=e.length){let r="";for(let i=t;i<n;++i){let o=e[i];o>65535?(o-=65536,r+=String.fromCharCode((o>>10)+55296)+String.fromCharCode(o%1024+56320)):r+=String.fromCharCode(o)}return r}var aY=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let o=e.charCodeAt(i++);56320<=o&&o<=57343?t[r++]=(this._interim-55296)*1024+o-56320+65536:(t[r++]=this._interim,t[r++]=o),this._interim=0}for(let o=i;o<n;++o){let a=e.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=n)return this._interim=a,r;let l=e.charCodeAt(o);56320<=l&&l<=57343?t[r++]=(a-55296)*1024+l-56320+65536:(t[r++]=a,t[r++]=l);continue}a!==65279&&(t[r++]=a)}return r}},lY=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,o,a,l,u=0,d=0;if(this.interim[0]){let g=!1,v=this.interim[0];v&=(v&224)===192?31:(v&240)===224?15:7;let y=0,S;for(;(S=this.interim[++y]&63)&&y<4;)v<<=6,v|=S;let _=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,C=_-y;for(;d<C;){if(d>=n)return 0;if(S=e[d++],(S&192)!==128){d--,g=!0;break}else this.interim[y++]=S,v<<=6,v|=S&63}g||(_===2?v<128?d--:t[r++]=v:_===3?v<2048||v>=55296&&v<=57343||v===65279||(t[r++]=v):v<65536||v>1114111||(t[r++]=v)),this.interim.fill(0)}let f=n-4,m=d;for(;m<n;){for(;m<f&&!((i=e[m])&128)&&!((o=e[m+1])&128)&&!((a=e[m+2])&128)&&!((l=e[m+3])&128);)t[r++]=i,t[r++]=o,t[r++]=a,t[r++]=l,m+=4;if(i=e[m++],i<128)t[r++]=i;else if((i&224)===192){if(m>=n)return this.interim[0]=i,r;if(o=e[m++],(o&192)!==128){m--;continue}if(u=(i&31)<<6|o&63,u<128){m--;continue}t[r++]=u}else if((i&240)===224){if(m>=n)return this.interim[0]=i,r;if(o=e[m++],(o&192)!==128){m--;continue}if(m>=n)return this.interim[0]=i,this.interim[1]=o,r;if(a=e[m++],(a&192)!==128){m--;continue}if(u=(i&15)<<12|(o&63)<<6|a&63,u<2048||u>=55296&&u<=57343||u===65279)continue;t[r++]=u}else if((i&248)===240){if(m>=n)return this.interim[0]=i,r;if(o=e[m++],(o&192)!==128){m--;continue}if(m>=n)return this.interim[0]=i,this.interim[1]=o,r;if(a=e[m++],(a&192)!==128){m--;continue}if(m>=n)return this.interim[0]=i,this.interim[1]=o,this.interim[2]=a,r;if(l=e[m++],(l&192)!==128){m--;continue}if(u=(i&7)<<18|(o&63)<<12|(a&63)<<6|l&63,u<65536||u>1114111)continue;t[r++]=u}}return r}},f3="",Ys=" ",od=class m3{constructor(){this.fg=0,this.bg=0,this.extended=new Mf}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new m3;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Mf=class p3{constructor(t=0,n=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=n}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new p3(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},fo=class g3 extends od{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Mf,this.combinedData=""}static fromCharData(t){let n=new g3;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?qs(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let n=!1;if(t[1].length>2)n=!0;else if(t[1].length===2){let r=t[1].charCodeAt(0);if(55296<=r&&r<=56319){let i=t[1].charCodeAt(1);56320<=i&&i<=57343?this.content=(r-55296)*1024+i-56320+65536|t[2]<<22:n=!0}else n=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;n&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},$x="di$target",j0="di$dependencies",iv=new Map;function cY(e){return e[j0]||[]}function Hr(e){if(iv.has(e))return iv.get(e);let t=function(n,r,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");uY(t,n,i)};return t._id=e,iv.set(e,t),t}function uY(e,t,n){t[$x]===t?t[j0].push({id:e,index:n}):(t[j0]=[{id:e,index:n}],t[$x]=t)}var yi=Hr("BufferService"),v3=Hr("CoreMouseService"),Ka=Hr("CoreService"),dY=Hr("CharsetService"),Mb=Hr("InstantiationService"),y3=Hr("LogService"),bi=Hr("OptionsService"),b3=Hr("OscLinkService"),hY=Hr("UnicodeService"),sd=Hr("DecorationService"),z0=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){var f;let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,o=new fo,a=n.getTrimmedLength(),l=-1,u=-1,d=!1;for(let m=0;m<a;m++)if(!(u===-1&&!n.hasContent(m))){if(n.loadCell(m,o),o.hasExtendedAttrs()&&o.extended.urlId)if(u===-1){u=m,l=o.extended.urlId;continue}else d=o.extended.urlId!==l;else u!==-1&&(d=!0);if(d||u!==-1&&m===a-1){let g=(f=this._oscLinkService.getLinkData(l))==null?void 0:f.uri;if(g){let v={start:{x:u+1,y:e},end:{x:m+(!d&&m===a-1?1:0),y:e}},y=!1;if(!(i!=null&&i.allowNonHttpProtocols))try{let S=new URL(g);["http:","https:"].includes(S.protocol)||(y=!0)}catch{y=!0}y||r.push({text:g,range:v,activate:(S,_)=>i?i.activate(S,_,v):fY(S,_),hover:(S,_)=>{var C;return(C=i==null?void 0:i.hover)==null?void 0:C.call(i,S,_,v)},leave:(S,_)=>{var C;return(C=i==null?void 0:i.leave)==null?void 0:C.call(i,S,_,v)}})}d=!1,o.hasExtendedAttrs()&&o.extended.urlId?(u=m,l=o.extended.urlId):(u=-1,l=-1)}}t(r)}};z0=ar([ut(0,yi),ut(1,bi),ut(2,b3)],z0);function fY(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
587
|
-
|
|
588
|
-
WARNING: This link could potentially be dangerous`)){let n=window.open();if(n){try{n.opener=null}catch{}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var Rm=Hr("CharSizeService"),Ss=Hr("CoreBrowserService"),jb=Hr("MouseService"),Cs=Hr("RenderService"),mY=Hr("SelectionService"),_3=Hr("CharacterJoinerService"),fc=Hr("ThemeService"),S3=Hr("LinkProviderService"),pY=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Rx.isErrorNoTelemetry(e)?new Rx(e.message+`
|
|
589
|
-
|
|
590
|
-
`+e.stack):new Error(e.message+`
|
|
591
|
-
|
|
592
|
-
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},gY=new pY;function Gh(e){vY(e)||gY.onUnexpectedError(e)}var B0="Canceled";function vY(e){return e instanceof yY?!0:e instanceof Error&&e.name===B0&&e.message===B0}var yY=class extends Error{constructor(){super(B0),this.name=this.message}};function bY(e){return new Error(`Illegal argument: ${e}`)}var Rx=class L0 extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof L0)return t;let n=new L0;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},A0=class C3 extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,C3.prototype)}};function Wi(e,t=0){return e[e.length-(1+t)]}var _Y;(e=>{function t(o){return o<0}e.isLessThan=t;function n(o){return o<=0}e.isLessThanOrEqual=n;function r(o){return o>0}e.isGreaterThan=r;function i(o){return o===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(_Y||(_Y={}));function SY(e,t){let n=this,r=!1,i;return function(){return r||(r=!0,t||(i=e.apply(n,arguments))),i}}var w3;(e=>{function t($){return $&&typeof $=="object"&&typeof $[Symbol.iterator]=="function"}e.is=t;let n=Object.freeze([]);function r(){return n}e.empty=r;function*i($){yield $}e.single=i;function o($){return t($)?$:i($)}e.wrap=o;function a($){return $||n}e.from=a;function*l($){for(let T=$.length-1;T>=0;T--)yield $[T]}e.reverse=l;function u($){return!$||$[Symbol.iterator]().next().done===!0}e.isEmpty=u;function d($){return $[Symbol.iterator]().next().value}e.first=d;function f($,T){let R=0;for(let O of $)if(T(O,R++))return!0;return!1}e.some=f;function m($,T){for(let R of $)if(T(R))return R}e.find=m;function*g($,T){for(let R of $)T(R)&&(yield R)}e.filter=g;function*v($,T){let R=0;for(let O of $)yield T(O,R++)}e.map=v;function*y($,T){let R=0;for(let O of $)yield*T(O,R++)}e.flatMap=y;function*S(...$){for(let T of $)yield*T}e.concat=S;function _($,T,R){let O=R;for(let N of $)O=T(O,N);return O}e.reduce=_;function*C($,T,R=$.length){for(T<0&&(T+=$.length),R<0?R+=$.length:R>$.length&&(R=$.length);T<R;T++)yield $[T]}e.slice=C;function w($,T=Number.POSITIVE_INFINITY){let R=[];if(T===0)return[R,$];let O=$[Symbol.iterator]();for(let N=0;N<T;N++){let I=O.next();if(I.done)return[R,e.empty()];R.push(I.value)}return[R,{[Symbol.iterator](){return O}}]}e.consume=w;async function k($){let T=[];for await(let R of $)T.push(R);return Promise.resolve(T)}e.asyncToArray=k})(w3||(w3={}));function Aa(e){if(w3.is(e)){let t=[];for(let n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function CY(...e){return Yn(()=>Aa(e))}function Yn(e){return{dispose:SY(()=>{e()})}}var x3=class E3{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Aa(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?E3.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),void 0)}};x3.DISABLE_DISPOSED_WARNING=!1;var Qs=x3,tn=class{constructor(){this._store=new Qs,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};tn.None=Object.freeze({dispose(){}});var ic=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)==null||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)==null||e.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e}},gs=typeof window=="object"?window:globalThis,D0=class H0{constructor(t){this.element=t,this.next=H0.Undefined,this.prev=H0.Undefined}};D0.Undefined=new D0(void 0);var tr=D0,Tx=class{constructor(){this._first=tr.Undefined,this._last=tr.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===tr.Undefined}clear(){let e=this._first;for(;e!==tr.Undefined;){let t=e.next;e.prev=tr.Undefined,e.next=tr.Undefined,e=t}this._first=tr.Undefined,this._last=tr.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new tr(e);if(this._first===tr.Undefined)this._first=n,this._last=n;else if(t){let i=this._last;this._last=n,n.prev=i,i.next=n}else{let i=this._first;this._first=n,n.next=i,i.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==tr.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==tr.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==tr.Undefined&&e.next!==tr.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===tr.Undefined&&e.next===tr.Undefined?(this._first=tr.Undefined,this._last=tr.Undefined):e.next===tr.Undefined?(this._last=this._last.prev,this._last.next=tr.Undefined):e.prev===tr.Undefined&&(this._first=this._first.next,this._first.prev=tr.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==tr.Undefined;)yield e.element,e=e.next}},wY=globalThis.performance&&typeof globalThis.performance.now=="function",xY=class k3{static create(t){return new k3(t)}constructor(t){this._now=wY&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}},Gr;(e=>{e.None=()=>tn.None;function t(M,B){return m(M,()=>{},0,void 0,!0,void 0,B)}e.defer=t;function n(M){return(B,z=null,D)=>{let F=!1,V;return V=M(A=>{if(!F)return V?V.dispose():F=!0,B.call(z,A)},null,D),F&&V.dispose(),V}}e.once=n;function r(M,B,z){return d((D,F=null,V)=>M(A=>D.call(F,B(A)),null,V),z)}e.map=r;function i(M,B,z){return d((D,F=null,V)=>M(A=>{B(A),D.call(F,A)},null,V),z)}e.forEach=i;function o(M,B,z){return d((D,F=null,V)=>M(A=>B(A)&&D.call(F,A),null,V),z)}e.filter=o;function a(M){return M}e.signal=a;function l(...M){return(B,z=null,D)=>{let F=CY(...M.map(V=>V(A=>B.call(z,A))));return f(F,D)}}e.any=l;function u(M,B,z,D){let F=z;return r(M,V=>(F=B(F,V),F),D)}e.reduce=u;function d(M,B){let z,D={onWillAddFirstListener(){z=M(F.fire,F)},onDidRemoveLastListener(){z==null||z.dispose()}},F=new qe(D);return B==null||B.add(F),F.event}function f(M,B){return B instanceof Array?B.push(M):B&&B.add(M),M}function m(M,B,z=100,D=!1,F=!1,V,A){let X,q,H,U=0,K,G={leakWarningThreshold:V,onWillAddFirstListener(){X=M(ee=>{U++,q=B(q,ee),D&&!H&&(J.fire(q),q=void 0),K=()=>{let de=q;q=void 0,H=void 0,(!D||U>1)&&J.fire(de),U=0},typeof z=="number"?(clearTimeout(H),H=setTimeout(K,z)):H===void 0&&(H=0,queueMicrotask(K))})},onWillRemoveListener(){F&&U>0&&(K==null||K())},onDidRemoveLastListener(){K=void 0,X.dispose()}},J=new qe(G);return A==null||A.add(J),J.event}e.debounce=m;function g(M,B=0,z){return e.debounce(M,(D,F)=>D?(D.push(F),D):[F],B,void 0,!0,void 0,z)}e.accumulate=g;function v(M,B=(D,F)=>D===F,z){let D=!0,F;return o(M,V=>{let A=D||!B(V,F);return D=!1,F=V,A},z)}e.latch=v;function y(M,B,z){return[e.filter(M,B,z),e.filter(M,D=>!B(D),z)]}e.split=y;function S(M,B=!1,z=[],D){let F=z.slice(),V=M(q=>{F?F.push(q):X.fire(q)});D&&D.add(V);let A=()=>{F==null||F.forEach(q=>X.fire(q)),F=null},X=new qe({onWillAddFirstListener(){V||(V=M(q=>X.fire(q)),D&&D.add(V))},onDidAddFirstListener(){F&&(B?setTimeout(A):A())},onDidRemoveLastListener(){V&&V.dispose(),V=null}});return D&&D.add(X),X.event}e.buffer=S;function _(M,B){return(z,D,F)=>{let V=B(new w);return M(function(A){let X=V.evaluate(A);X!==C&&z.call(D,X)},void 0,F)}}e.chain=_;let C=Symbol("HaltChainable");class w{constructor(){this.steps=[]}map(B){return this.steps.push(B),this}forEach(B){return this.steps.push(z=>(B(z),z)),this}filter(B){return this.steps.push(z=>B(z)?z:C),this}reduce(B,z){let D=z;return this.steps.push(F=>(D=B(D,F),D)),this}latch(B=(z,D)=>z===D){let z=!0,D;return this.steps.push(F=>{let V=z||!B(F,D);return z=!1,D=F,V?F:C}),this}evaluate(B){for(let z of this.steps)if(B=z(B),B===C)break;return B}}function k(M,B,z=D=>D){let D=(...X)=>A.fire(z(...X)),F=()=>M.on(B,D),V=()=>M.removeListener(B,D),A=new qe({onWillAddFirstListener:F,onDidRemoveLastListener:V});return A.event}e.fromNodeEventEmitter=k;function $(M,B,z=D=>D){let D=(...X)=>A.fire(z(...X)),F=()=>M.addEventListener(B,D),V=()=>M.removeEventListener(B,D),A=new qe({onWillAddFirstListener:F,onDidRemoveLastListener:V});return A.event}e.fromDOMEventEmitter=$;function T(M){return new Promise(B=>n(M)(B))}e.toPromise=T;function R(M){let B=new qe;return M.then(z=>{B.fire(z)},()=>{B.fire(void 0)}).finally(()=>{B.dispose()}),B.event}e.fromPromise=R;function O(M,B){return M(z=>B.fire(z))}e.forward=O;function N(M,B,z){return B(z),M(D=>B(D))}e.runAndSubscribe=N;class I{constructor(B,z){this._observable=B,this._counter=0,this._hasChanged=!1;let D={onWillAddFirstListener:()=>{B.addObserver(this)},onDidRemoveLastListener:()=>{B.removeObserver(this)}};this.emitter=new qe(D),z&&z.add(this.emitter)}beginUpdate(B){this._counter++}handlePossibleChange(B){}handleChange(B,z){this._hasChanged=!0}endUpdate(B){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function j(M,B){return new I(M,B).emitter.event}e.fromObservable=j;function L(M){return(B,z,D)=>{let F=0,V=!1,A={beginUpdate(){F++},endUpdate(){F--,F===0&&(M.reportChanges(),V&&(V=!1,B.call(z)))},handlePossibleChange(){},handleChange(){V=!0}};M.addObserver(A),M.reportChanges();let X={dispose(){M.removeObserver(A)}};return D instanceof Qs?D.add(X):Array.isArray(D)&&D.push(X),X}}e.fromObservableLight=L})(Gr||(Gr={}));var F0=class W0{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${W0._idPool++}`,W0.all.add(this)}start(t){this._stopWatch=new xY,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};F0.all=new Set,F0._idPool=0;var EY=F0,kY=-1,$3=class R3{constructor(t,n,r=(R3._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)==null||t.clear()}check(t,n){let r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let[o,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(o);let u=new TY(l,o);this._errorHandler(u)}return()=>{let o=this._stacks.get(t.value)||0;this._stacks.set(t.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(let[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}};$3._idPool=1;var $Y=$3,RY=class T3{constructor(t){this.value=t}static create(){let t=new Error;return new T3(t.stack??"")}print(){console.warn(this.value.split(`
|
|
593
|
-
`).slice(2).join(`
|
|
594
|
-
`))}},TY=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},PY=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},OY=0,ov=class{constructor(e){this.value=e,this.id=OY++}},IY=2,NY,qe=class{constructor(e){var t,n,r,i;this._size=0,this._options=e,this._leakageMon=(t=this._options)!=null&&t.leakWarningThreshold?new $Y((e==null?void 0:e.onListenerError)??Gh,((n=this._options)==null?void 0:n.leakWarningThreshold)??kY):void 0,this._perfMon=(r=this._options)!=null&&r._profName?new EY(this._options._profName):void 0,this._deliveryQueue=(i=this._options)==null?void 0:i.deliveryQueue}dispose(){var e,t,n,r;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)==null?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(n=(t=this._options)==null?void 0:t.onDidRemoveLastListener)==null||n.call(t),(r=this._leakageMon)==null||r.dispose())}get event(){return this._event??(this._event=(e,t,n)=>{var a,l,u,d,f;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let m=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(m);let g=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],v=new PY(`${m}. HINT: Stack shows most frequent listener (${g[1]}-times)`,g[0]);return(((a=this._options)==null?void 0:a.onListenerError)||Gh)(v),tn.None}if(this._disposed)return tn.None;t&&(e=e.bind(t));let r=new ov(e),i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=RY.create(),i=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof ov?(this._deliveryQueue??(this._deliveryQueue=new MY),this._listeners=[this._listeners,r]):this._listeners.push(r):((u=(l=this._options)==null?void 0:l.onWillAddFirstListener)==null||u.call(l,this),this._listeners=r,(f=(d=this._options)==null?void 0:d.onDidAddFirstListener)==null||f.call(d,this)),this._size++;let o=Yn(()=>{i==null||i(),this._removeListener(r)});return n instanceof Qs?n.add(o):Array.isArray(n)&&n.push(o),o}),this._event}_removeListener(e){var i,o,a,l;if((o=(i=this._options)==null?void 0:i.onWillRemoveListener)==null||o.call(i,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(l=(a=this._options)==null?void 0:a.onDidRemoveLastListener)==null||l.call(a,this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*IY<=t.length){let u=0;for(let d=0;d<t.length;d++)t[d]?t[u++]=t[d]:r&&(this._deliveryQueue.end--,u<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=u}}_deliver(e,t){var r;if(!e)return;let n=((r=this._options)==null?void 0:r.onListenerError)||Gh;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){var t,n,r,i;if((t=this._deliveryQueue)!=null&&t.current&&(this._deliverQueue(this._deliveryQueue),(n=this._perfMon)==null||n.stop()),(r=this._perfMon)==null||r.start(this._size),this._listeners)if(this._listeners instanceof ov)this._deliver(this._listeners,e);else{let o=this._deliveryQueue;o.enqueue(this,e,this._listeners.length),this._deliverQueue(o)}(i=this._perfMon)==null||i.stop()}hasListeners(){return this._size>0}},MY=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},V0=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new qe,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new qe,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,n){if(this.getZoomLevel(n)===t)return;let r=this.getWindowId(n);this.mapWindowIdToZoomLevel.set(r,t),this._onDidChangeZoomLevel.fire(r)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,n){this.mapWindowIdToZoomFactor.set(this.getWindowId(n),t)}setFullscreen(t,n){if(this.isFullscreen(n)===t)return;let r=this.getWindowId(n);this.mapWindowIdToFullScreen.set(r,t),this._onDidChangeFullscreen.fire(r)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};V0.INSTANCE=new V0;var zb=V0;function jY(e,t,n){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",n)}zb.INSTANCE.onDidChangeZoomLevel;function zY(e){return zb.INSTANCE.getZoomFactor(e)}zb.INSTANCE.onDidChangeFullscreen;var mc=typeof navigator=="object"?navigator.userAgent:"",U0=mc.indexOf("Firefox")>=0,BY=mc.indexOf("AppleWebKit")>=0,Bb=mc.indexOf("Chrome")>=0,LY=!Bb&&mc.indexOf("Safari")>=0;mc.indexOf("Electron/")>=0;mc.indexOf("Android")>=0;var sv=!1;if(typeof gs.matchMedia=="function"){let e=gs.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=gs.matchMedia("(display-mode: fullscreen)");sv=e.matches,jY(gs,e,({matches:n})=>{sv&&t.matches||(sv=n)})}var Wl="en",q0=!1,K0=!1,Xh=!1,P3=!1,Eh,Yh=Wl,Px=Wl,AY,Eo,Pa=globalThis,qr,S2;typeof Pa.vscode<"u"&&typeof Pa.vscode.process<"u"?qr=Pa.vscode.process:typeof process<"u"&&typeof((S2=process==null?void 0:process.versions)==null?void 0:S2.node)=="string"&&(qr=process);var C2,DY=typeof((C2=qr==null?void 0:qr.versions)==null?void 0:C2.electron)=="string",HY=DY&&(qr==null?void 0:qr.type)==="renderer",w2;if(typeof qr=="object"){q0=qr.platform==="win32",K0=qr.platform==="darwin",Xh=qr.platform==="linux",Xh&&qr.env.SNAP&&qr.env.SNAP_REVISION,qr.env.CI||qr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Eh=Wl,Yh=Wl;let e=qr.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);Eh=t.userLocale,Px=t.osLocale,Yh=t.resolvedLanguage||Wl,AY=(w2=t.languagePack)==null?void 0:w2.translationsConfigFile}catch{}P3=!0}else typeof navigator=="object"&&!HY?(Eo=navigator.userAgent,q0=Eo.indexOf("Windows")>=0,K0=Eo.indexOf("Macintosh")>=0,(Eo.indexOf("Macintosh")>=0||Eo.indexOf("iPad")>=0||Eo.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Xh=Eo.indexOf("Linux")>=0,(Eo==null?void 0:Eo.indexOf("Mobi"))>=0,Yh=globalThis._VSCODE_NLS_LANGUAGE||Wl,Eh=navigator.language.toLowerCase(),Px=Eh):console.error("Unable to resolve platform.");var O3=q0,Go=K0,FY=Xh,Ox=P3,es=Eo,Hs=Yh,WY;(e=>{function t(){return Hs}e.value=t;function n(){return Hs.length===2?Hs==="en":Hs.length>=3?Hs[0]==="e"&&Hs[1]==="n"&&Hs[2]==="-":!1}e.isDefaultVariant=n;function r(){return Hs==="en"}e.isDefault=r})(WY||(WY={}));var VY=typeof Pa.postMessage=="function"&&!Pa.importScripts;(()=>{if(VY){let e=[];Pa.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){let o=e[r];if(o.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),o.callback();return}}});let t=0;return n=>{let r=++t;e.push({id:r,callback:n}),Pa.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();var UY=!!(es&&es.indexOf("Chrome")>=0);es&&es.indexOf("Firefox")>=0;!UY&&es&&es.indexOf("Safari")>=0;es&&es.indexOf("Edg/")>=0;es&&es.indexOf("Android")>=0;var Ml=typeof navigator=="object"?navigator:{};Ox||document.queryCommandSupported&&document.queryCommandSupported("copy")||Ml&&Ml.clipboard&&Ml.clipboard.writeText,Ox||Ml&&Ml.clipboard&&Ml.clipboard.readText;var Lb=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},av=new Lb,Ix=new Lb,Nx=new Lb,qY=new Array(230),I3;(e=>{function t(l){return av.keyCodeToStr(l)}e.toString=t;function n(l){return av.strToKeyCode(l)}e.fromString=n;function r(l){return Ix.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return Nx.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function o(l){return Ix.strToKeyCode(l)||Nx.strToKeyCode(l)}e.fromUserSettings=o;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return av.keyCodeToStr(l)}e.toElectronAccelerator=a})(I3||(I3={}));var KY=class N3{constructor(t,n,r,i,o){this.ctrlKey=t,this.shiftKey=n,this.altKey=r,this.metaKey=i,this.keyCode=o}equals(t){return t instanceof N3&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){let t=this.ctrlKey?"1":"0",n=this.shiftKey?"1":"0",r=this.altKey?"1":"0",i=this.metaKey?"1":"0";return`K${t}${n}${r}${i}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new GY([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},GY=class{constructor(e){if(e.length===0)throw bY("chords");this.chords=e}getHashCode(){let e="";for(let t=0,n=this.chords.length;t<n;t++)t!==0&&(e+=";"),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function XY(e){if(e.charCode){let n=String.fromCharCode(e.charCode).toUpperCase();return I3.fromString(n)}let t=e.keyCode;if(t===3)return 7;if(U0)switch(t){case 59:return 85;case 60:if(FY)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Go)return 57;break}else if(BY&&(Go&&t===93||!Go&&t===92))return 57;return qY[t]||0}var YY=Go?256:2048,JY=512,QY=1024,ZY=Go?2048:256,Mx=class{constructor(e){var n;this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=(n=t.getModifierState)==null?void 0:n.call(t,"AltGraph"),this.keyCode=XY(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=YY),this.altKey&&(t|=JY),this.shiftKey&&(t|=QY),this.metaKey&&(t|=ZY),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new KY(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},jx=new WeakMap;function eJ(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if(t.origin!=="null"&&n.origin!=="null"&&t.origin!==n.origin)return null}catch{return null}return e.parent}var tJ=class{static getSameOriginWindowChain(e){let t=jx.get(e);if(!t){t=[],jx.set(e,t);let n=e,r;do r=eJ(n),r?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=r;while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,r=0,i=this.getSameOriginWindowChain(e);for(let o of i){let a=o.window.deref();if(n+=(a==null?void 0:a.scrollY)??0,r+=(a==null?void 0:a.scrollX)??0,a===t||!o.iframeElement)break;let l=o.iframeElement.getBoundingClientRect();n+=l.top,r+=l.left}return{top:n,left:r}}},kh=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let n=tJ.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=n.left,this.posy-=n.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},zx=class{constructor(e,t=0,n=0){var i;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t;let r=!1;if(Bb){let o=navigator.userAgent.match(/Chrome\/(\d+)/);r=(o?parseInt(o[1]):123)<=122}if(e){let o=e,a=e,l=((i=e.view)==null?void 0:i.devicePixelRatio)||1;if(typeof o.wheelDeltaY<"u")r?this.deltaY=o.wheelDeltaY/(120*l):this.deltaY=o.wheelDeltaY/120;else if(typeof a.VERTICAL_AXIS<"u"&&a.axis===a.VERTICAL_AXIS)this.deltaY=-a.detail/3;else if(e.type==="wheel"){let u=e;u.deltaMode===u.DOM_DELTA_LINE?U0&&!Go?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof o.wheelDeltaX<"u")LY&&O3?this.deltaX=-(o.wheelDeltaX/120):r?this.deltaX=o.wheelDeltaX/(120*l):this.deltaX=o.wheelDeltaX/120;else if(typeof a.HORIZONTAL_AXIS<"u"&&a.axis===a.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let u=e;u.deltaMode===u.DOM_DELTA_LINE?U0&&!Go?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(r?this.deltaY=e.wheelDelta/(120*l):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)==null||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)==null||e.stopPropagation()}},M3=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}),nJ;(e=>{function t(n){return n===e.None||n===e.Cancelled||n instanceof rJ?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Gr.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:M3})})(nJ||(nJ={}));var rJ=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?M3:(this._emitter||(this._emitter=new qe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},Ab=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new A0("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new A0("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},iJ=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;(e=this.disposable)==null||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new A0("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let r=n.setInterval(()=>{e()},t);this.disposable=Yn(()=>{n.clearInterval(r),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},oJ;(e=>{async function t(r){let i,o=await Promise.all(r.map(a=>a.then(l=>l,l=>{i||(i=l)})));if(typeof i<"u")throw i;return o}e.settled=t;function n(r){return new Promise(async(i,o)=>{try{await r(i,o)}catch(a){o(a)}})}e.withAsyncBody=n})(oJ||(oJ={}));var Bx=class lo{static fromArray(t){return new lo(n=>{n.emitMany(t)})}static fromPromise(t){return new lo(async n=>{n.emitMany(await t)})}static fromPromises(t){return new lo(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new lo(async n=>{await Promise.all(t.map(async r=>{for await(let i of r)n.emitOne(i)}))})}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new qe,queueMicrotask(async()=>{let r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Gr.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>{var n;return(n=this._onReturn)==null||n.call(this),{done:!0,value:void 0}}}}static map(t,n){return new lo(async r=>{for await(let i of t)r.emitOne(n(i))})}map(t){return lo.map(this,t)}static filter(t,n){return new lo(async r=>{for await(let i of t)n(i)&&r.emitOne(i)})}filter(t){return lo.filter(this,t)}static coalesce(t){return lo.filter(t,n=>!!n)}coalesce(){return lo.coalesce(this)}static async toPromise(t){let n=[];for await(let r of t)n.push(r);return n}toPromise(){return lo.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};Bx.EMPTY=Bx.fromArray([]);var{getWindow:qo,getWindowId:sJ,onDidRegisterWindow:aJ}=(function(){let e=new Map,t={window:gs,disposables:new Qs};e.set(gs.vscodeWindowId,t);let n=new qe,r=new qe,i=new qe;function o(a,l){return(typeof a=="number"?e.get(a):void 0)??(l?t:void 0)}return{onDidRegisterWindow:n.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:r.event,registerWindow(a){if(e.has(a.vscodeWindowId))return tn.None;let l=new Qs,u={window:a,disposables:l.add(new Qs)};return e.set(a.vscodeWindowId,u),l.add(Yn(()=>{e.delete(a.vscodeWindowId),r.fire(a)})),l.add(Ut(a,jr.BEFORE_UNLOAD,()=>{i.fire(a)})),n.fire(u),l},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(a){return a.vscodeWindowId},hasWindow(a){return e.has(a)},getWindowById:o,getWindow(a){var d;let l=a;if((d=l==null?void 0:l.ownerDocument)!=null&&d.defaultView)return l.ownerDocument.defaultView.window;let u=a;return u!=null&&u.view?u.view.window:gs},getDocument(a){return qo(a).document}}})(),lJ=class{constructor(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._options=r||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function Ut(e,t,n,r){return new lJ(e,t,n,r)}var Lx=function(e,t,n,r){return Ut(e,t,n,r)},Db,cJ=class extends iJ{constructor(e){super(),this.defaultTarget=e&&qo(e)}cancelAndSet(e,t,n){return super.cancelAndSet(e,t,n??this.defaultTarget)}},Ax=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Gh(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,n=new Map,r=new Map,i=o=>{n.set(o,!1);let a=e.get(o)??[];for(t.set(o,a),e.set(o,[]),r.set(o,!0);a.length>0;)a.sort(Ax.sort),a.shift().execute();r.set(o,!1)};Db=(o,a,l=0)=>{let u=sJ(o),d=new Ax(a,l),f=e.get(u);return f||(f=[],e.set(u,f)),f.push(d),n.get(u)||(n.set(u,!0),o.requestAnimationFrame(()=>i(u))),d}})();function uJ(e){let t=e.getBoundingClientRect(),n=qo(e);return{left:t.left+n.scrollX,top:t.top+n.scrollY,width:t.width,height:t.height}}var jr={CLICK:"click",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",KEY_DOWN:"keydown",KEY_UP:"keyup",BEFORE_UNLOAD:"beforeunload",CHANGE:"change",FOCUS:"focus",BLUR:"blur",INPUT:"input"},dJ=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingTop="",this._paddingLeft="",this._paddingBottom="",this._paddingRight="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=Pi(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=Pi(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=Pi(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=Pi(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=Pi(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=Pi(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=Pi(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=Pi(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=Pi(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=Pi(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=Pi(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=Pi(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=Pi(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=Pi(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function Pi(e){return typeof e=="number"?`${e}px`:e}function bu(e){return new dJ(e)}var j3=class{constructor(){this._hooks=new Qs,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,n,r,i){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=i;let o=e;try{e.setPointerCapture(t),this._hooks.add(Yn(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{o=qo(e)}this._hooks.add(Ut(o,jr.POINTER_MOVE,a=>{if(a.buttons!==n){this.stopMonitoring(!0);return}a.preventDefault(),this._pointerMoveCallback(a)})),this._hooks.add(Ut(o,jr.POINTER_UP,a=>this.stopMonitoring(!0)))}};function hJ(e,t,n){let r=null,i=null;if(typeof n.value=="function"?(r="value",i=n.value,i.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof n.get=="function"&&(r="get",i=n.get),!i)throw new Error("not supported");let o=`$memoize$${t}`;n[r]=function(...a){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,a)}),this[o]}}var Wo;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(Wo||(Wo={}));var cu=class ii extends tn{constructor(){super(),this.dispatched=!1,this.targets=new Tx,this.ignoreTargets=new Tx,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Gr.runAndSubscribe(aJ,({window:t,disposables:n})=>{n.add(Ut(t.document,"touchstart",r=>this.onTouchStart(r),{passive:!1})),n.add(Ut(t.document,"touchend",r=>this.onTouchEnd(t,r))),n.add(Ut(t.document,"touchmove",r=>this.onTouchMove(r),{passive:!1}))},{window:gs,disposables:this._store}))}static addTarget(t){if(!ii.isTouchDevice())return tn.None;ii.INSTANCE||(ii.INSTANCE=new ii);let n=ii.INSTANCE.targets.push(t);return Yn(n)}static ignoreTarget(t){if(!ii.isTouchDevice())return tn.None;ii.INSTANCE||(ii.INSTANCE=new ii);let n=ii.INSTANCE.ignoreTargets.push(t);return Yn(n)}static isTouchDevice(){return"ontouchstart"in gs||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let n=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let r=0,i=t.targetTouches.length;r<i;r++){let o=t.targetTouches.item(r);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:n,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[n],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};let a=this.newGestureEvent(Wo.Start,o.target);a.pageX=o.pageX,a.pageY=o.pageY,this.dispatchEvent(a)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,n){let r=Date.now(),i=Object.keys(this.activeTouches).length;for(let o=0,a=n.changedTouches.length;o<a;o++){let l=n.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(l.identifier))){console.warn("move of an UNKNOWN touch",l);continue}let u=this.activeTouches[l.identifier],d=Date.now()-u.initialTimeStamp;if(d<ii.HOLD_DELAY&&Math.abs(u.initialPageX-Wi(u.rollingPageX))<30&&Math.abs(u.initialPageY-Wi(u.rollingPageY))<30){let f=this.newGestureEvent(Wo.Tap,u.initialTarget);f.pageX=Wi(u.rollingPageX),f.pageY=Wi(u.rollingPageY),this.dispatchEvent(f)}else if(d>=ii.HOLD_DELAY&&Math.abs(u.initialPageX-Wi(u.rollingPageX))<30&&Math.abs(u.initialPageY-Wi(u.rollingPageY))<30){let f=this.newGestureEvent(Wo.Contextmenu,u.initialTarget);f.pageX=Wi(u.rollingPageX),f.pageY=Wi(u.rollingPageY),this.dispatchEvent(f)}else if(i===1){let f=Wi(u.rollingPageX),m=Wi(u.rollingPageY),g=Wi(u.rollingTimestamps)-u.rollingTimestamps[0],v=f-u.rollingPageX[0],y=m-u.rollingPageY[0],S=[...this.targets].filter(_=>u.initialTarget instanceof Node&&_.contains(u.initialTarget));this.inertia(t,S,r,Math.abs(v)/g,v>0?1:-1,f,Math.abs(y)/g,y>0?1:-1,m)}this.dispatchEvent(this.newGestureEvent(Wo.End,u.initialTarget)),delete this.activeTouches[l.identifier]}this.dispatched&&(n.preventDefault(),n.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,n){let r=document.createEvent("CustomEvent");return r.initEvent(t,!1,!0),r.initialTarget=n,r.tapCount=0,r}dispatchEvent(t){if(t.type===Wo.Tap){let n=new Date().getTime(),r=0;n-this._lastSetTapCountTime>ii.CLEAR_TAP_COUNT_TIME?r=1:r=2,this._lastSetTapCountTime=n,t.tapCount=r}else(t.type===Wo.Change||t.type===Wo.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let r of this.ignoreTargets)if(r.contains(t.initialTarget))return;let n=[];for(let r of this.targets)if(r.contains(t.initialTarget)){let i=0,o=t.initialTarget;for(;o&&o!==r;)i++,o=o.parentElement;n.push([i,r])}n.sort((r,i)=>r[0]-i[0]);for(let[r,i]of n)i.dispatchEvent(t),this.dispatched=!0}}inertia(t,n,r,i,o,a,l,u,d){this.handle=Db(t,()=>{let f=Date.now(),m=f-r,g=0,v=0,y=!0;i+=ii.SCROLL_FRICTION*m,l+=ii.SCROLL_FRICTION*m,i>0&&(y=!1,g=o*i*m),l>0&&(y=!1,v=u*l*m);let S=this.newGestureEvent(Wo.Change);S.translationX=g,S.translationY=v,n.forEach(_=>_.dispatchEvent(S)),y||this.inertia(t,n,f,i,o,a+g,l,u,d+v)})}onTouchMove(t){let n=Date.now();for(let r=0,i=t.changedTouches.length;r<i;r++){let o=t.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("end of an UNKNOWN touch",o);continue}let a=this.activeTouches[o.identifier],l=this.newGestureEvent(Wo.Change,a.initialTarget);l.translationX=o.pageX-Wi(a.rollingPageX),l.translationY=o.pageY-Wi(a.rollingPageY),l.pageX=o.pageX,l.pageY=o.pageY,this.dispatchEvent(l),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(o.pageX),a.rollingPageY.push(o.pageY),a.rollingTimestamps.push(n)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};cu.SCROLL_FRICTION=-.005,cu.HOLD_DELAY=700,cu.CLEAR_TAP_COUNT_TIME=400,ar([hJ],cu,"isTouchDevice",1);var fJ=cu,Hb=class extends tn{onclick(e,t){this._register(Ut(e,jr.CLICK,n=>t(new kh(qo(e),n))))}onmousedown(e,t){this._register(Ut(e,jr.MOUSE_DOWN,n=>t(new kh(qo(e),n))))}onmouseover(e,t){this._register(Ut(e,jr.MOUSE_OVER,n=>t(new kh(qo(e),n))))}onmouseleave(e,t){this._register(Ut(e,jr.MOUSE_LEAVE,n=>t(new kh(qo(e),n))))}onkeydown(e,t){this._register(Ut(e,jr.KEY_DOWN,n=>t(new Mx(n))))}onkeyup(e,t){this._register(Ut(e,jr.KEY_UP,n=>t(new Mx(n))))}oninput(e,t){this._register(Ut(e,jr.INPUT,t))}onblur(e,t){this._register(Ut(e,jr.BLUR,t))}onfocus(e,t){this._register(Ut(e,jr.FOCUS,t))}onchange(e,t){this._register(Ut(e,jr.CHANGE,t))}ignoreGesture(e){return fJ.ignoreTarget(e)}},Dx=11,mJ=class extends Hb{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.style.position="absolute",this.domNode.style.width=Dx+"px",this.domNode.style.height=Dx+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new j3),this._register(Lx(this.bgDomNode,jr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(Lx(this.domNode,jr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new cJ),this._pointerdownScheduleRepeatTimer=this._register(new Ab)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,qo(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},pJ=class G0{constructor(t,n,r,i,o,a,l){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(n=n|0,r=r|0,i=i|0,o=o|0,a=a|0,l=l|0),this.rawScrollLeft=i,this.rawScrollTop=l,n<0&&(n=0),i+n>r&&(i=r-n),i<0&&(i=0),o<0&&(o=0),l+o>a&&(l=a-o),l<0&&(l=0),this.width=n,this.scrollWidth=r,this.scrollLeft=i,this.height=o,this.scrollHeight=a,this.scrollTop=l}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,n){return new G0(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,n?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,n?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new G0(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,n){let r=this.width!==t.width,i=this.scrollWidth!==t.scrollWidth,o=this.scrollLeft!==t.scrollLeft,a=this.height!==t.height,l=this.scrollHeight!==t.scrollHeight,u=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:n,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:r,scrollWidthChanged:i,scrollLeftChanged:o,heightChanged:a,scrollHeightChanged:l,scrollTopChanged:u}}},gJ=class extends tn{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new qe),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new pJ(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var r;let n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),(r=this._smoothScrolling)==null||r.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let r;t?r=new Fx(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):r=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=r}else{let n=this._state.withScrollPosition(e);this._smoothScrolling=Fx.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}},Hx=class{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}};function lv(e,t){let n=t-e;return function(r){return e+n*bJ(r)}}function vJ(e,t,n){return function(r){return r<n?e(r/n):t((r-n)/(1-n))}}var Fx=class X0{constructor(t,n,r,i){this.from=t,this.to=n,this.duration=i,this.startTime=r,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,n,r){if(Math.abs(t-n)>2.5*r){let i,o;return t<n?(i=t+.75*r,o=n-.75*r):(i=t-.75*r,o=n+.75*r),vJ(lv(t,i),lv(o,n),.33)}return lv(t,n)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){let n=(t-this.startTime)/this.duration;if(n<1){let r=this.scrollLeft(n),i=this.scrollTop(n);return new Hx(r,i,!1)}return new Hx(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,n,r){return X0.start(t,n,r)}static start(t,n,r){r=r+10;let i=Date.now()-10;return new X0(t,n,i,r)}};function yJ(e){return Math.pow(e,3)}function bJ(e){return 1-yJ(1-e)}var _J=class extends tn{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Ab)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var e;(e=this._domNode)==null||e.setClassName(this._visibleClassName)},0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(t=this._domNode)==null||t.setClassName(this._invisibleClassName+(e?" fade":"")))}},SJ=140,z3=class extends Hb{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new _J(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new j3),this._shouldRender=!0,this.domNode=bu(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(Ut(this.domNode.domNode,jr.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new mJ(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,r){this.slider=bu(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof n=="number"&&this.slider.setWidth(n),typeof r=="number"&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(Ut(this.slider.domNode,jr.POINTER_DOWN,i=>{i.button===0&&(i.preventDefault(),this._sliderPointerDown(i))})),this.onclick(this.slider.domNode,i=>{i.leftButton&&i.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderPointerPosition(e);n<=i&&i<=r?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,n;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,n=e.offsetY;else{let i=uJ(this.domNode.domNode);t=e.pageX-i.left,n=e.pageY-i.top}let r=this._pointerDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),n=this._sliderOrthogonalPointerPosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{let o=this._sliderOrthogonalPointerPosition(i),a=Math.abs(o-n);if(O3&&a>SJ){this._setDesiredScrollPositionNow(r.getScrollPosition());return}let l=this._sliderPointerPosition(i)-t;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(l))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},B3=class Y0{constructor(t,n,r,i,o,a){this._scrollbarSize=Math.round(n),this._oppositeScrollbarSize=Math.round(r),this._arrowSize=Math.round(t),this._visibleSize=i,this._scrollSize=o,this._scrollPosition=a,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new Y0(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let n=Math.round(t);return this._visibleSize!==n?(this._visibleSize=n,this._refreshComputedValues(),!0):!1}setScrollSize(t){let n=Math.round(t);return this._scrollSize!==n?(this._scrollSize=n,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let n=Math.round(t);return this._scrollPosition!==n?(this._scrollPosition=n,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,n,r,i,o){let a=Math.max(0,r-t),l=Math.max(0,a-2*n),u=i>0&&i>r;if(!u)return{computedAvailableSize:Math.round(a),computedIsNeeded:u,computedSliderSize:Math.round(l),computedSliderRatio:0,computedSliderPosition:0};let d=Math.round(Math.max(20,Math.floor(r*l/i))),f=(l-d)/(i-r),m=o*f;return{computedAvailableSize:Math.round(a),computedIsNeeded:u,computedSliderSize:Math.round(d),computedSliderRatio:f,computedSliderPosition:Math.round(m)}}_refreshComputedValues(){let t=Y0._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;let n=t-this._arrowSize-this._computedSliderSize/2;return Math.round(n/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let n=t-this._arrowSize,r=this._scrollPosition;return n<this._computedSliderPosition?r-=this._visibleSize:r+=this._visibleSize,r}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let n=this._computedSliderPosition+t;return Math.round(n/this._computedSliderRatio)}},CJ=class extends z3{constructor(e,t,n){let r=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new B3(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,r.width,r.scrollWidth,i.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},wJ=class extends z3{constructor(e,t,n){let r=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new B3(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,r.height,r.scrollHeight,i.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},xJ=500,Wx=50,EJ=class{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}},J0=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let t=1,n=0,r=1,i=this._rear;do{let o=i===this._front?t:Math.pow(2,-r);if(t-=o,n+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,r++}while(!0);return n<=.5}acceptStandardWheelEvent(t){if(Bb){let n=qo(t.browserEvent),r=zY(n);this.accept(Date.now(),t.deltaX*r,t.deltaY*r)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,n,r){let i=null,o=new EJ(t,n,r);this._front===-1&&this._rear===-1?(this._memory[0]=o,this._front=0,this._rear=0):(i=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=o),o.score=this._computeScore(o,i)}_computeScore(t,n){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let r=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(r+=.25),n){let i=Math.abs(t.deltaX),o=Math.abs(t.deltaY),a=Math.abs(n.deltaX),l=Math.abs(n.deltaY),u=Math.max(Math.min(i,a),1),d=Math.max(Math.min(o,l),1),f=Math.max(i,a),m=Math.max(o,l);f%u===0&&m%d===0&&(r-=.5)}return Math.min(Math.max(r,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};J0.INSTANCE=new J0;var kJ=J0,$J=class extends Hb{constructor(e,t,n){super(),this._onScroll=this._register(new qe),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new qe),this.onWillScroll=this._onWillScroll.event,this._options=TJ(t),this._scrollable=n,this._register(this._scrollable.onScroll(i=>{this._onWillScroll.fire(i),this._onDidScroll(i),this._onScroll.fire(i)}));let r={onMouseWheel:i=>this._onMouseWheel(i),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new wJ(this._scrollable,this._options,r)),this._horizontalScrollbar=this._register(new CJ(this._scrollable,this._options,r)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=bu(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=bu(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=bu(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,i=>this._onMouseOver(i)),this.onmouseleave(this._listenOnDomNode,i=>this._onMouseLeave(i)),this._hideTimeout=this._register(new Ab),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=Aa(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,Go&&(this._options.className+=" mac"),this._domNode.className="xterm-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new zx(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Aa(this._mouseWheelToDispose),e)){let t=n=>{this._onMouseWheel(new zx(n))};this._mouseWheelToDispose.push(Ut(this._listenOnDomNode,jr.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){var i;if((i=e.browserEvent)!=null&&i.defaultPrevented)return;let t=kJ.INSTANCE;t.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let o=e.deltaY*this._options.mouseWheelScrollSensitivity,a=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&a+o===0?a=o=0:Math.abs(o)>=Math.abs(a)?a=0:o=0),this._options.flipAxes&&([o,a]=[a,o]);let l=!Go&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||l)&&!a&&(a=o,o=0),e.browserEvent&&e.browserEvent.altKey&&(a=a*this._options.fastScrollSensitivity,o=o*this._options.fastScrollSensitivity);let u=this._scrollable.getFutureScrollPosition(),d={};if(o){let f=Wx*o,m=u.scrollTop-(f<0?Math.floor(f):Math.ceil(f));this._verticalScrollbar.writeScrollPosition(d,m)}if(a){let f=Wx*a,m=u.scrollLeft-(f<0?Math.floor(f):Math.ceil(f));this._horizontalScrollbar.writeScrollPosition(d,m)}d=this._scrollable.validateScrollPosition(d),(u.scrollLeft!==d.scrollLeft||u.scrollTop!==d.scrollTop)&&(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(d):this._scrollable.setScrollPositionNow(d),n=!0)}let r=n;!r&&this._options.alwaysConsumeMouseWheel&&(r=!0),!r&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(r=!0),r&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,r=n?" left":"",i=t?" top":"",o=n||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${r}`),this._topShadowDomNode.setClassName(`shadow${i}`),this._topLeftShadowDomNode.setClassName(`shadow${o}${i}${r}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),xJ)}},RJ=class extends $J{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function TJ(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,Go&&(t.className+=" mac"),t}var Q0=class extends tn{constructor(e,t,n,r,i,o,a,l){super(),this._bufferService=n,this._optionsService=a,this._renderService=l,this._onRequestScrollLines=this._register(new qe),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let u=this._register(new gJ({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:d=>Db(r.window,d)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{u.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new RJ(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},u)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(i.onProtocolChange(d=>{this._scrollableElement.updateOptions({handleMouseWheel:!(d&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(Gr.runAndSubscribe(o.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=o.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(Yn(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=r.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(Yn(()=>this._styleElement.remove())),this._register(Gr.runAndSubscribe(o.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${o.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${o.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${o.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
|
|
595
|
-
`)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(d=>this._handleScroll(d)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){var e;return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:((e=this._optionsService.rawOptions.overviewRuler)==null?void 0:e.width)||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),n=t-this._bufferService.buffer.ydisp;n!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(n)),this._isHandlingScroll=!1}};Q0=ar([ut(2,yi),ut(3,Ss),ut(4,v3),ut(5,fc),ut(6,bi),ut(7,Cs)],Q0);var Z0=class extends tn{constructor(e,t,n,r,i){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=n,this._decorationService=r,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(o=>this._removeDecoration(o))),this._register(Yn(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var r;let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",((r=e==null?void 0:e.options)==null?void 0:r.layer)==="top"),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let n=e.options.x??0;return n&&n>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let n=this._decorationElements.get(e);n||(n=this._createElement(e),e.element=n,this._decorationElements.set(e,n),this._container.appendChild(n),e.onDispose(()=>{this._decorationElements.delete(e),n.remove()})),n.style.display=this._altBufferIsActive?"none":"block",this._altBufferIsActive||(n.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,n.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,n.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,n.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(n)}}_refreshXPosition(e,t=e.element){if(!t)return;let n=e.options.x??0;(e.options.anchor||"left")==="right"?t.style.right=n?`${n*this._renderService.dimensions.css.cell.width}px`:"":t.style.left=n?`${n*this._renderService.dimensions.css.cell.width}px`:""}_removeDecoration(e){var t;(t=this._decorationElements.get(e))==null||t.remove(),this._decorationElements.delete(e),e.dispose()}};Z0=ar([ut(1,yi),ut(2,Ss),ut(3,sd),ut(4,Cs)],Z0);var PJ=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex<this._zonePool.length){this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++]);return}this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,n){return t>=e.startBufferLine-this._linePadding[n||"full"]&&t<=e.endBufferLine+this._linePadding[n||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},Do={full:0,left:0,center:0,right:0},Fs={full:0,left:0,center:0,right:0},Jc={full:0,left:0,center:0,right:0},jf=class extends tn{constructor(e,t,n,r,i,o,a,l){var d;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=n,this._decorationService=r,this._renderService=i,this._optionsService=o,this._themeService=a,this._coreBrowserService=l,this._colorZoneStore=new PJ,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(d=this._viewportElement.parentElement)==null||d.insertBefore(this._canvas,this._viewportElement),this._register(Yn(()=>{var f;return(f=this._canvas)==null?void 0:f.remove()}));let u=this._canvas.getContext("2d");if(u)this._ctx=u;else throw new Error("Ctx cannot be null");this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange("overviewRuler",()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){var e;return((e=this._optionsService.options.overviewRuler)==null?void 0:e.width)||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);Fs.full=this._canvas.width,Fs.left=e,Fs.center=t,Fs.right=e,this._refreshDrawHeightConstants(),Jc.full=1,Jc.left=1,Jc.center=1+Fs.left,Jc.right=1+Fs.left+Fs.center}_refreshDrawHeightConstants(){Do.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);Do.left=t,Do.center=t,Do.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Do.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Do.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Do.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*Do.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!=="full"&&this._renderColorZone(t);for(let t of e)t.position==="full"&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(Jc[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-Do[e.position||"full"]/2),Fs[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+Do[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};jf=ar([ut(2,yi),ut(3,sd),ut(4,Cs),ut(5,bi),ut(6,fc),ut(7,Ss)],jf);var Ie;(e=>(e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="\x07",e.BS="\b",e.HT=" ",e.LF=`
|
|
596
|
-
`,e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="\x1B",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""))(Ie||(Ie={}));var Jh;(e=>(e.PAD="",e.HOP="",e.BPH="",e.NBH="",e.IND="",e.NEL="
",e.SSA="",e.ESA="",e.HTS="",e.HTJ="",e.VTS="",e.PLD="",e.PLU="",e.RI="",e.SS2="",e.SS3="",e.DCS="",e.PU1="",e.PU2="",e.STS="",e.CCH="",e.MW="",e.SPA="",e.EPA="",e.SOS="",e.SGCI="",e.SCI="",e.CSI="",e.ST="",e.OSC="",e.PM="",e.APC=""))(Jh||(Jh={}));var L3;(e=>e.ST=`${Ie.ESC}\\`)(L3||(L3={}));var ey=class{constructor(e,t,n,r,i,o){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=r,this._coreService=i,this._renderService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode===229?(this._handleAnyTextareaChanges(),!1):!0}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){let t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let n;t.start+=this._dataAlreadySent.length,this._isComposing?n=this._textarea.value.substring(t.start,this._compositionPosition.start):n=this._textarea.value.substring(t.start),n.length>0&&this._coreService.triggerDataEvent(n,!0)}},0)}else{this._isSendingComposition=!1;let t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,n=t.replace(e,"");this._dataAlreadySent=n,t.length>e.length?this._coreService.triggerDataEvent(n,!0):t.length<e.length?this._coreService.triggerDataEvent(`${Ie.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._renderService.dimensions.css.cell.height,r=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,i=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";let o=this._compositionView.getBoundingClientRect();this._textarea.style.left=i+"px",this._textarea.style.top=r+"px",this._textarea.style.width=Math.max(o.width,1)+"px",this._textarea.style.height=Math.max(o.height,1)+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};ey=ar([ut(2,yi),ut(3,bi),ut(4,Ka),ut(5,Cs)],ey);var zr=0,Br=0,Lr=0,sr=0,Vx={css:"#00000000",rgba:0},vr;(e=>{function t(i,o,a,l){return l!==void 0?`#${ba(i)}${ba(o)}${ba(a)}${ba(l)}`:`#${ba(i)}${ba(o)}${ba(a)}`}e.toCss=t;function n(i,o,a,l=255){return(i<<24|o<<16|a<<8|l)>>>0}e.toRgba=n;function r(i,o,a,l){return{css:e.toCss(i,o,a,l),rgba:e.toRgba(i,o,a,l)}}e.toColor=r})(vr||(vr={}));var Vn;(e=>{function t(u,d){if(sr=(d.rgba&255)/255,sr===1)return{css:d.css,rgba:d.rgba};let f=d.rgba>>24&255,m=d.rgba>>16&255,g=d.rgba>>8&255,v=u.rgba>>24&255,y=u.rgba>>16&255,S=u.rgba>>8&255;zr=v+Math.round((f-v)*sr),Br=y+Math.round((m-y)*sr),Lr=S+Math.round((g-S)*sr);let _=vr.toCss(zr,Br,Lr),C=vr.toRgba(zr,Br,Lr);return{css:_,rgba:C}}e.blend=t;function n(u){return(u.rgba&255)===255}e.isOpaque=n;function r(u,d,f){let m=Qh.ensureContrastRatio(u.rgba,d.rgba,f);if(m)return vr.toColor(m>>24&255,m>>16&255,m>>8&255)}e.ensureContrastRatio=r;function i(u){let d=(u.rgba|255)>>>0;return[zr,Br,Lr]=Qh.toChannels(d),{css:vr.toCss(zr,Br,Lr),rgba:d}}e.opaque=i;function o(u,d){return sr=Math.round(d*255),[zr,Br,Lr]=Qh.toChannels(u.rgba),{css:vr.toCss(zr,Br,Lr,sr),rgba:vr.toRgba(zr,Br,Lr,sr)}}e.opacity=o;function a(u,d){return sr=u.rgba&255,o(u,sr*d/255)}e.multiplyOpacity=a;function l(u){return[u.rgba>>24&255,u.rgba>>16&255,u.rgba>>8&255]}e.toColorRGB=l})(Vn||(Vn={}));var nr;(e=>{let t,n;try{let i=document.createElement("canvas");i.width=1,i.height=1;let o=i.getContext("2d",{willReadFrequently:!0});o&&(t=o,t.globalCompositeOperation="copy",n=t.createLinearGradient(0,0,1,1))}catch{}function r(i){if(i.match(/#[\da-f]{3,8}/i))switch(i.length){case 4:return zr=parseInt(i.slice(1,2).repeat(2),16),Br=parseInt(i.slice(2,3).repeat(2),16),Lr=parseInt(i.slice(3,4).repeat(2),16),vr.toColor(zr,Br,Lr);case 5:return zr=parseInt(i.slice(1,2).repeat(2),16),Br=parseInt(i.slice(2,3).repeat(2),16),Lr=parseInt(i.slice(3,4).repeat(2),16),sr=parseInt(i.slice(4,5).repeat(2),16),vr.toColor(zr,Br,Lr,sr);case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}let o=i.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(o)return zr=parseInt(o[1]),Br=parseInt(o[2]),Lr=parseInt(o[3]),sr=Math.round((o[5]===void 0?1:parseFloat(o[5]))*255),vr.toColor(zr,Br,Lr,sr);if(!t||!n)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=n,t.fillStyle=i,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[zr,Br,Lr,sr]=t.getImageData(0,0,1,1).data,sr!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:vr.toRgba(zr,Br,Lr,sr),css:i}}e.toColor=r})(nr||(nr={}));var fi;(e=>{function t(r){return n(r>>16&255,r>>8&255,r&255)}e.relativeLuminance=t;function n(r,i,o){let a=r/255,l=i/255,u=o/255,d=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),f=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4),m=u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4);return d*.2126+f*.7152+m*.0722}e.relativeLuminance2=n})(fi||(fi={}));var Qh;(e=>{function t(a,l){if(sr=(l&255)/255,sr===1)return l;let u=l>>24&255,d=l>>16&255,f=l>>8&255,m=a>>24&255,g=a>>16&255,v=a>>8&255;return zr=m+Math.round((u-m)*sr),Br=g+Math.round((d-g)*sr),Lr=v+Math.round((f-v)*sr),vr.toRgba(zr,Br,Lr)}e.blend=t;function n(a,l,u){let d=fi.relativeLuminance(a>>8),f=fi.relativeLuminance(l>>8);if(fs(d,f)<u){if(f<d){let v=r(a,l,u),y=fs(d,fi.relativeLuminance(v>>8));if(y<u){let S=i(a,l,u),_=fs(d,fi.relativeLuminance(S>>8));return y>_?v:S}return v}let m=i(a,l,u),g=fs(d,fi.relativeLuminance(m>>8));if(g<u){let v=r(a,l,u),y=fs(d,fi.relativeLuminance(v>>8));return g>y?m:v}return m}}e.ensureContrastRatio=n;function r(a,l,u){let d=a>>24&255,f=a>>16&255,m=a>>8&255,g=l>>24&255,v=l>>16&255,y=l>>8&255,S=fs(fi.relativeLuminance2(g,v,y),fi.relativeLuminance2(d,f,m));for(;S<u&&(g>0||v>0||y>0);)g-=Math.max(0,Math.ceil(g*.1)),v-=Math.max(0,Math.ceil(v*.1)),y-=Math.max(0,Math.ceil(y*.1)),S=fs(fi.relativeLuminance2(g,v,y),fi.relativeLuminance2(d,f,m));return(g<<24|v<<16|y<<8|255)>>>0}e.reduceLuminance=r;function i(a,l,u){let d=a>>24&255,f=a>>16&255,m=a>>8&255,g=l>>24&255,v=l>>16&255,y=l>>8&255,S=fs(fi.relativeLuminance2(g,v,y),fi.relativeLuminance2(d,f,m));for(;S<u&&(g<255||v<255||y<255);)g=Math.min(255,g+Math.ceil((255-g)*.1)),v=Math.min(255,v+Math.ceil((255-v)*.1)),y=Math.min(255,y+Math.ceil((255-y)*.1)),S=fs(fi.relativeLuminance2(g,v,y),fi.relativeLuminance2(d,f,m));return(g<<24|v<<16|y<<8|255)>>>0}e.increaseLuminance=i;function o(a){return[a>>24&255,a>>16&255,a>>8&255,a&255]}e.toChannels=o})(Qh||(Qh={}));function ba(e){let t=e.toString(16);return t.length<2?"0"+t:t}function fs(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var OJ=class extends od{constructor(e,t,n){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=n}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},zf=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new fo}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(this._characterJoiners.length===0)return[];let t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];let n=[],r=t.translateToString(!0),i=0,o=0,a=0,l=t.getFg(0),u=t.getBg(0);for(let d=0;d<t.getTrimmedLength();d++)if(t.loadCell(d,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==l||this._workCell.bg!==u){if(d-i>1){let f=this._getJoinedRanges(r,a,o,t,i);for(let m=0;m<f.length;m++)n.push(f[m])}i=d,a=o,l=this._workCell.fg,u=this._workCell.bg}o+=this._workCell.getChars().length||Ys.length}if(this._bufferService.cols-i>1){let d=this._getJoinedRanges(r,a,o,t,i);for(let f=0;f<d.length;f++)n.push(d[f])}return n}_getJoinedRanges(e,t,n,r,i){let o=e.substring(t,n),a=[];try{a=this._characterJoiners[0].handler(o)}catch(l){console.error(l)}for(let l=1;l<this._characterJoiners.length;l++)try{let u=this._characterJoiners[l].handler(o);for(let d=0;d<u.length;d++)zf._mergeRanges(a,u[d])}catch(u){console.error(u)}return this._stringRangesToCellRanges(a,r,i),a}_stringRangesToCellRanges(e,t,n){let r=0,i=!1,o=0,a=e[r];if(a){for(let l=n;l<this._bufferService.cols;l++){let u=t.getWidth(l),d=t.getString(l).length||Ys.length;if(u!==0){if(!i&&a[0]<=o&&(a[0]=l,i=!0),a[1]<=o){if(a[1]=l,a=e[++r],!a)break;a[0]<=o?(a[0]=l,i=!0):i=!1}o+=d}}a&&(a[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(n){if(t[1]<=i[0])return e[r-1][1]=t[1],e;if(t[1]<=i[1])return e[r-1][1]=Math.max(t[1],i[1]),e.splice(r,1),e;e.splice(r,1),r--}else{if(t[1]<=i[0])return e.splice(r,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),n=!0);continue}}return n?e[e.length-1][1]=t[1]:e.push(t),e}};zf=ar([ut(0,yi)],zf);function IJ(e){return 57508<=e&&e<=57558}function NJ(e){return 9472<=e&&e<=9631}function MJ(e){return IJ(e)||NJ(e)}function jJ(){return{css:{canvas:$h(),cell:$h()},device:{canvas:$h(),cell:$h(),char:{width:0,height:0,left:0,top:0}}}}function $h(){return{width:0,height:0}}var ty=class{constructor(e,t,n,r,i,o,a){this._document=e,this._characterJoinerService=t,this._optionsService=n,this._coreBrowserService=r,this._coreService=i,this._decorationService=o,this._themeService=a,this._workCell=new fo,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,n){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=n}createRow(e,t,n,r,i,o,a,l,u,d,f){let m=[],g=this._characterJoinerService.getJoinedCharacters(t),v=this._themeService.colors,y=e.getNoBgTrimmedLength();n&&y<o+1&&(y=o+1);let S,_=0,C="",w=0,k=0,$=0,T=0,R=!1,O=0,N=!1,I=0,j=0,L=[],M=d!==-1&&f!==-1;for(let B=0;B<y;B++){e.loadCell(B,this._workCell);let z=this._workCell.getWidth();if(z===0)continue;let D=!1,F=B>=j,V=B,A=this._workCell;if(g.length>0&&B===g[0][0]&&F){let he=g.shift(),ve=this._isCellInSelection(he[0],t);for(w=he[0]+1;w<he[1];w++)F&&(F=ve===this._isCellInSelection(w,t));F&&(F=!n||o<he[0]||o>=he[1]),F?(D=!0,A=new OJ(this._workCell,e.translateToString(!0,he[0],he[1]),he[1]-he[0]),V=he[1]-1,z=A.getWidth()):j=he[1]}let X=this._isCellInSelection(B,t),q=n&&B===o,H=M&&B>=d&&B<=f,U=!1;this._decorationService.forEachDecorationAtCell(B,t,void 0,he=>{U=!0});let K=A.getChars()||Ys;if(K===" "&&(A.isUnderline()||A.isOverline())&&(K=" "),I=z*l-u.get(K,A.isBold(),A.isItalic()),!S)S=this._document.createElement("span");else if(_&&(X&&N||!X&&!N&&A.bg===k)&&(X&&N&&v.selectionForeground||A.fg===$)&&A.extended.ext===T&&H===R&&I===O&&!q&&!D&&!U&&F){A.isInvisible()?C+=Ys:C+=K,_++;continue}else _&&(S.textContent=C),S=this._document.createElement("span"),_=0,C="";if(k=A.bg,$=A.fg,T=A.extended.ext,R=H,O=I,N=X,D&&o>=B&&o<=V&&(o=B),!this._coreService.isCursorHidden&&q&&this._coreService.isCursorInitialized){if(L.push("xterm-cursor"),this._coreBrowserService.isFocused)a&&L.push("xterm-cursor-blink"),L.push(r==="bar"?"xterm-cursor-bar":r==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(i)switch(i){case"outline":L.push("xterm-cursor-outline");break;case"block":L.push("xterm-cursor-block");break;case"bar":L.push("xterm-cursor-bar");break;case"underline":L.push("xterm-cursor-underline");break}}if(A.isBold()&&L.push("xterm-bold"),A.isItalic()&&L.push("xterm-italic"),A.isDim()&&L.push("xterm-dim"),A.isInvisible()?C=Ys:C=A.getChars()||Ys,A.isUnderline()&&(L.push(`xterm-underline-${A.extended.underlineStyle}`),C===" "&&(C=" "),!A.isUnderlineColorDefault()))if(A.isUnderlineColorRGB())S.style.textDecorationColor=`rgb(${od.toColorRGB(A.getUnderlineColor()).join(",")})`;else{let he=A.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&A.isBold()&&he<8&&(he+=8),S.style.textDecorationColor=v.ansi[he].css}A.isOverline()&&(L.push("xterm-overline"),C===" "&&(C=" ")),A.isStrikethrough()&&L.push("xterm-strikethrough"),H&&(S.style.textDecoration="underline");let G=A.getFgColor(),J=A.getFgColorMode(),ee=A.getBgColor(),de=A.getBgColorMode(),oe=!!A.isInverse();if(oe){let he=G;G=ee,ee=he;let ve=J;J=de,de=ve}let ae,_e,se=!1;this._decorationService.forEachDecorationAtCell(B,t,void 0,he=>{he.options.layer!=="top"&&se||(he.backgroundColorRGB&&(de=50331648,ee=he.backgroundColorRGB.rgba>>8&16777215,ae=he.backgroundColorRGB),he.foregroundColorRGB&&(J=50331648,G=he.foregroundColorRGB.rgba>>8&16777215,_e=he.foregroundColorRGB),se=he.options.layer==="top")}),!se&&X&&(ae=this._coreBrowserService.isFocused?v.selectionBackgroundOpaque:v.selectionInactiveBackgroundOpaque,ee=ae.rgba>>8&16777215,de=50331648,se=!0,v.selectionForeground&&(J=50331648,G=v.selectionForeground.rgba>>8&16777215,_e=v.selectionForeground)),se&&L.push("xterm-decoration-top");let ce;switch(de){case 16777216:case 33554432:ce=v.ansi[ee],L.push(`xterm-bg-${ee}`);break;case 50331648:ce=vr.toColor(ee>>16,ee>>8&255,ee&255),this._addStyle(S,`background-color:#${Ux((ee>>>0).toString(16),"0",6)}`);break;case 0:default:oe?(ce=v.foreground,L.push("xterm-bg-257")):ce=v.background}switch(ae||A.isDim()&&(ae=Vn.multiplyOpacity(ce,.5)),J){case 16777216:case 33554432:A.isBold()&&G<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(G+=8),this._applyMinimumContrast(S,ce,v.ansi[G],A,ae,void 0)||L.push(`xterm-fg-${G}`);break;case 50331648:let he=vr.toColor(G>>16&255,G>>8&255,G&255);this._applyMinimumContrast(S,ce,he,A,ae,_e)||this._addStyle(S,`color:#${Ux(G.toString(16),"0",6)}`);break;case 0:default:this._applyMinimumContrast(S,ce,v.foreground,A,ae,_e)||oe&&L.push("xterm-fg-257")}L.length&&(S.className=L.join(" "),L.length=0),!q&&!D&&!U&&F?_++:S.textContent=C,I!==this.defaultSpacing&&(S.style.letterSpacing=`${I}px`),m.push(S),B=V}return S&&_&&(S.textContent=C),m}_applyMinimumContrast(e,t,n,r,i,o){if(this._optionsService.rawOptions.minimumContrastRatio===1||MJ(r.getCode()))return!1;let a=this._getContrastCache(r),l;if(!i&&!o&&(l=a.getColor(t.rgba,n.rgba)),l===void 0){let u=this._optionsService.rawOptions.minimumContrastRatio/(r.isDim()?2:1);l=Vn.ensureContrastRatio(i||t,o||n,u),a.setColor((i||t).rgba,(o||n).rgba,l??null)}return l?(this._addStyle(e,`color:${l.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){let n=this._selectionStart,r=this._selectionEnd;return!n||!r?!1:this._columnSelectMode?n[0]<=r[0]?e>=n[0]&&t>=n[1]&&e<r[0]&&t<=r[1]:e<n[0]&&t>=n[1]&&e>=r[0]&&t<=r[1]:t>n[1]&&t<r[1]||n[1]===r[1]&&t===n[1]&&e>=n[0]&&e<r[0]||n[1]<r[1]&&t===r[1]&&e<r[0]||n[1]<r[1]&&t===n[1]&&e>=n[0]}};ty=ar([ut(1,_3),ut(2,bi),ut(3,Ss),ut(4,Ka),ut(5,sd),ut(6,fc)],ty);function Ux(e,t,n){for(;e.length<n;)e=t+e;return e}var zJ=class{constructor(e,t){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let n=e.createElement("span");n.classList.add("xterm-char-measure-element");let r=e.createElement("span");r.classList.add("xterm-char-measure-element"),r.style.fontWeight="bold";let i=e.createElement("span");i.classList.add("xterm-char-measure-element"),i.style.fontStyle="italic";let o=e.createElement("span");o.classList.add("xterm-char-measure-element"),o.style.fontWeight="bold",o.style.fontStyle="italic",this._measureElements=[n,r,i,o],this._container.appendChild(n),this._container.appendChild(r),this._container.appendChild(i),this._container.appendChild(o),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,n,r){e===this._font&&t===this._fontSize&&n===this._weight&&r===this._weightBold||(this._font=e,this._fontSize=t,this._weight=n,this._weightBold=r,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${n}`,this._measureElements[1].style.fontWeight=`${r}`,this._measureElements[2].style.fontWeight=`${n}`,this._measureElements[3].style.fontWeight=`${r}`,this.clear())}get(e,t,n){let r=0;if(!t&&!n&&e.length===1&&(r=e.charCodeAt(0))<256){if(this._flat[r]!==-9999)return this._flat[r];let a=this._measure(e,0);return a>0&&(this._flat[r]=a),a}let i=e;t&&(i+="B"),n&&(i+="I");let o=this._holey.get(i);if(o===void 0){let a=0;t&&(a|=1),n&&(a|=2),o=this._measure(e,a),o>0&&this._holey.set(i,o)}return o}_measure(e,t){let n=this._measureElements[t];return n.textContent=e.repeat(32),n.offsetWidth/32}},BJ=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,n,r=!1){if(this.selectionStart=t,this.selectionEnd=n,!t||!n||t[0]===n[0]&&t[1]===n[1]){this.clear();return}let i=e.buffers.active.ydisp,o=t[1]-i,a=n[1]-i,l=Math.max(o,0),u=Math.min(a,e.rows-1);if(l>=e.rows||u<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=r,this.viewportStartRow=o,this.viewportEndRow=a,this.viewportCappedStartRow=l,this.viewportCappedEndRow=u,this.startCol=t[0],this.endCol=n[0]}isCellSelected(e,t,n){return this.hasSelection?(n-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&n>=this.viewportCappedStartRow&&t<this.endCol&&n<=this.viewportCappedEndRow:t<this.startCol&&n>=this.viewportCappedStartRow&&t>=this.endCol&&n<=this.viewportCappedEndRow:n>this.viewportStartRow&&n<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&n===this.viewportStartRow&&t>=this.startCol):!1}};function LJ(){return new BJ}var cv="xterm-dom-renderer-owner-",ao="xterm-rows",Rh="xterm-fg-",qx="xterm-bg-",Qc="xterm-focus",Th="xterm-selection",AJ=1,ny=class extends tn{constructor(e,t,n,r,i,o,a,l,u,d,f,m,g,v){super(),this._terminal=e,this._document=t,this._element=n,this._screenElement=r,this._viewportElement=i,this._helperContainer=o,this._linkifier2=a,this._charSizeService=u,this._optionsService=d,this._bufferService=f,this._coreService=m,this._coreBrowserService=g,this._themeService=v,this._terminalClass=AJ++,this._rowElements=[],this._selectionRenderModel=LJ(),this.onRequestRedraw=this._register(new qe).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(ao),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(Th),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=jJ(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(y=>this._injectCss(y))),this._injectCss(this._themeService.colors),this._rowFactory=l.createInstance(ty,document),this._element.classList.add(cv+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(y=>this._handleLinkHover(y))),this._register(this._linkifier2.onHideLinkUnderline(y=>this._handleLinkLeave(y))),this._register(Yn(()=>{this._element.classList.remove(cv+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new zJ(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let n of this._rowElements)n.style.width=`${this.dimensions.css.canvas.width}px`,n.style.height=`${this.dimensions.css.cell.height}px`,n.style.lineHeight=`${this.dimensions.css.cell.height}px`,n.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${ao} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${ao} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${ao} .xterm-dim { color: ${Vn.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let n=`blink_underline_${this._terminalClass}`,r=`blink_bar_${this._terminalClass}`,i=`blink_block_${this._terminalClass}`;t+=`@keyframes ${n} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${r} { 50% { box-shadow: none; }}`,t+=`@keyframes ${i} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${ao}.${Qc} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${ao}.${Qc} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${ao}.${Qc} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${ao} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${ao} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${ao} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${ao} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${ao} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${Th} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Th} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Th} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[o,a]of e.ansi.entries())t+=`${this._terminalSelector} .${Rh}${o} { color: ${a.css}; }${this._terminalSelector} .${Rh}${o}.xterm-dim { color: ${Vn.multiplyOpacity(a,.5).css}; }${this._terminalSelector} .${qx}${o} { background-color: ${a.css}; }`;t+=`${this._terminalSelector} .${Rh}257 { color: ${Vn.opaque(e.background).css}; }${this._terminalSelector} .${Rh}257.xterm-dim { color: ${Vn.multiplyOpacity(Vn.opaque(e.background),.5).css}; }${this._terminalSelector} .${qx}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let n=this._rowElements.length;n<=t;n++){let r=this._document.createElement("div");this._rowContainer.appendChild(r),this._rowElements.push(r)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(Qc),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(Qc),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,n){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,n),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,n),!this._selectionRenderModel.hasSelection))return;let r=this._selectionRenderModel.viewportStartRow,i=this._selectionRenderModel.viewportEndRow,o=this._selectionRenderModel.viewportCappedStartRow,a=this._selectionRenderModel.viewportCappedEndRow,l=this._document.createDocumentFragment();if(n){let u=e[0]>t[0];l.appendChild(this._createSelectionElement(o,u?t[0]:e[0],u?e[0]:t[0],a-o+1))}else{let u=r===o?e[0]:0,d=o===i?t[0]:this._bufferService.cols;l.appendChild(this._createSelectionElement(o,u,d));let f=a-o-1;if(l.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,f)),o!==a){let m=i===a?t[0]:this._bufferService.cols;l.appendChild(this._createSelectionElement(a,0,m))}}this._selectionContainer.appendChild(l)}_createSelectionElement(e,t,n,r=1){let i=this._document.createElement("div"),o=t*this.dimensions.css.cell.width,a=this.dimensions.css.cell.width*(n-t);return o+a>this.dimensions.css.canvas.width&&(a=this.dimensions.css.canvas.width-o),i.style.height=`${r*this.dimensions.css.cell.height}px`,i.style.top=`${e*this.dimensions.css.cell.height}px`,i.style.left=`${o}px`,i.style.width=`${a}px`,i}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let n=this._bufferService.buffer,r=n.ybase+n.y,i=Math.min(n.x,this._bufferService.cols-1),o=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,a=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,l=this._optionsService.rawOptions.cursorInactiveStyle;for(let u=e;u<=t;u++){let d=u+n.ydisp,f=this._rowElements[u],m=n.lines.get(d);if(!f||!m)break;f.replaceChildren(...this._rowFactory.createRow(m,d,d===r,a,l,i,o,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${cv}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,n,r,i,o){n<0&&(e=0),r<0&&(t=0);let a=this._bufferService.rows-1;n=Math.max(Math.min(n,a),0),r=Math.max(Math.min(r,a),0),i=Math.min(i,this._bufferService.cols);let l=this._bufferService.buffer,u=l.ybase+l.y,d=Math.min(l.x,i-1),f=this._optionsService.rawOptions.cursorBlink,m=this._optionsService.rawOptions.cursorStyle,g=this._optionsService.rawOptions.cursorInactiveStyle;for(let v=n;v<=r;++v){let y=v+l.ydisp,S=this._rowElements[v],_=l.lines.get(y);if(!S||!_)break;S.replaceChildren(...this._rowFactory.createRow(_,y,y===u,m,g,d,f,this.dimensions.css.cell.width,this._widthCache,o?v===n?e:0:-1,o?(v===r?t:i)-1:-1))}}};ny=ar([ut(7,Mb),ut(8,Rm),ut(9,bi),ut(10,yi),ut(11,Ka),ut(12,Ss),ut(13,fc)],ny);var ry=class extends tn{constructor(e,t,n){super(),this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=this._register(new qe),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new HJ(this._optionsService))}catch{this._measureStrategy=this._register(new DJ(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};ry=ar([ut(2,bi)],ry);var A3=class extends tn{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},DJ=class extends A3{constructor(e,t,n){super(),this._document=e,this._parentElement=t,this._optionsService=n,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},HJ=class extends A3{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let t=this._ctx.measureText("W");if(!("width"in t&&"fontBoundingBoxAscent"in t&&"fontBoundingBoxDescent"in t))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText("W");return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},FJ=class extends tn{constructor(e,t,n){super(),this._textarea=e,this._window=t,this.mainDocument=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new WJ(this._window)),this._onDprChange=this._register(new qe),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new qe),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(r=>this._screenDprMonitor.setWindow(r))),this._register(Gr.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(Ut(this._textarea,"focus",()=>this._isFocused=!0)),this._register(Ut(this._textarea,"blur",()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},WJ=class extends tn{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new ic),this._onDprChange=this._register(new qe),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(Yn(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=Ut(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var e;this._outerListener&&((e=this._resolutionMediaMatchList)==null||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},VJ=class extends tn{constructor(){super(),this.linkProviders=[],this._register(Yn(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function Fb(e,t,n){let r=n.getBoundingClientRect(),i=e.getComputedStyle(n),o=parseInt(i.getPropertyValue("padding-left")),a=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-r.left-o,t.clientY-r.top-a]}function UJ(e,t,n,r,i,o,a,l,u){if(!o)return;let d=Fb(e,t,n);if(d)return d[0]=Math.ceil((d[0]+(u?a/2:0))/a),d[1]=Math.ceil(d[1]/l),d[0]=Math.min(Math.max(d[0],1),r+(u?1:0)),d[1]=Math.min(Math.max(d[1],1),i),d}var iy=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,n,r,i){return UJ(window,e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,i)}getMouseReportCoords(e,t){let n=Fb(window,e,t);if(this._charSizeService.hasValidSize)return n[0]=Math.min(Math.max(n[0],0),this._renderService.dimensions.css.canvas.width-1),n[1]=Math.min(Math.max(n[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(n[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(n[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(n[0]),y:Math.floor(n[1])}}};iy=ar([ut(0,Cs),ut(1,Rm)],iy);var qJ=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,n){this._rowCount=n,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t,!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},D3={};nY(D3,{getSafariVersion:()=>GJ,isChromeOS:()=>V3,isFirefox:()=>H3,isIpad:()=>XJ,isIphone:()=>YJ,isLegacyEdge:()=>KJ,isLinux:()=>Wb,isMac:()=>Bf,isNode:()=>Tm,isSafari:()=>F3,isWindows:()=>W3});var Tm=typeof process<"u"&&"title"in process,ad=Tm?"node":navigator.userAgent,ld=Tm?"node":navigator.platform,H3=ad.includes("Firefox"),KJ=ad.includes("Edge"),F3=/^((?!chrome|android).)*safari/i.test(ad);function GJ(){if(!F3)return 0;let e=ad.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var Bf=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(ld),XJ=ld==="iPad",YJ=ld==="iPhone",W3=["Windows","Win16","Win32","WinCE"].includes(ld),Wb=ld.indexOf("Linux")>=0,V3=/\bCrOS\b/.test(ad),U3=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(e){this._idleCallback=void 0;let t=0,n=0,r=e.timeRemaining(),i=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),n=Math.max(t,n),i=e.timeRemaining(),n*1.5>i){r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),this._start();return}r=i}this.clear()}},JJ=class extends U3{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},QJ=class extends U3{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},Lf=!Tm&&"requestIdleCallback"in window?QJ:JJ,ZJ=class{constructor(){this._queue=new Lf}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},oy=class extends tn{constructor(e,t,n,r,i,o,a,l,u){super(),this._rowCount=e,this._optionsService=n,this._charSizeService=r,this._coreService=i,this._coreBrowserService=l,this._renderer=this._register(new ic),this._pausedResizeTask=new ZJ,this._observerDisposable=this._register(new ic),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new qe),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new qe),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new qe),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new qe),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new qJ((d,f)=>this._renderRows(d,f),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new eQ(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(Yn(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(a.onResize(()=>this._fullRefresh())),this._register(a.buffers.onBufferActivate(()=>{var d;return(d=this._renderer.value)==null?void 0:d.clear()})),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(o.onDecorationRegistered(()=>this._fullRefresh())),this._register(o.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],()=>{this.clear(),this.handleResize(a.cols,a.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(a.buffer.y,a.buffer.y,!0))),this._register(u.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(d=>this._registerIntersectionObserver(d,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){let n=new e.IntersectionObserver(r=>this._handleIntersectionChange(r[r.length-1]),{threshold:0});n.observe(t),this._observerDisposable.value=Yn(()=>n.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,n=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let r=this._syncOutputHandler.flush();r&&(e=Math.min(e,r.start),t=Math.max(t,r.end)),n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(t=>this.refreshRows(t.start,t.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&((t=(e=this._renderer.value).clearTextureAtlas)==null||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>{var n;return(n=this._renderer.value)==null?void 0:n.handleResize(e,t)}):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;(e=this._renderer.value)==null||e.handleCharSizeChanged()}handleBlur(){var e;(e=this._renderer.value)==null||e.handleBlur()}handleFocus(){var e;(e=this._renderer.value)==null||e.handleFocus()}handleSelectionChanged(e,t,n){var r;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,(r=this._renderer.value)==null||r.handleSelectionChanged(e,t,n)}handleCursorMove(){var e;(e=this._renderer.value)==null||e.handleCursorMove()}clear(){var e;(e=this._renderer.value)==null||e.clear()}};oy=ar([ut(2,bi),ut(3,Rm),ut(4,Ka),ut(5,sd),ut(6,yi),ut(7,Ss),ut(8,fc)],oy);var eQ=class{constructor(e,t,n){this._coreBrowserService=e,this._coreService=t,this._onTimeout=n,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function tQ(e,t,n,r){let i=n.buffer.x,o=n.buffer.y;if(!n.buffer.hasScrollback)return iQ(i,o,e,t,n,r)+Pm(o,t,n,r)+oQ(i,o,e,t,n,r);let a;if(o===t)return a=i>e?"D":"C",Au(Math.abs(i-e),Lu(a,r));a=o>t?"D":"C";let l=Math.abs(o-t),u=rQ(o>t?e:i,n)+(l-1)*n.cols+1+nQ(o>t?i:e);return Au(u,Lu(a,r))}function nQ(e,t){return e-1}function rQ(e,t){return t.cols-e}function iQ(e,t,n,r,i,o){return Pm(t,r,i,o).length===0?"":Au(K3(e,t,e,t-Da(t,i),!1,i).length,Lu("D",o))}function Pm(e,t,n,r){let i=e-Da(e,n),o=t-Da(t,n),a=Math.abs(i-o)-sQ(e,t,n);return Au(a,Lu(q3(e,t),r))}function oQ(e,t,n,r,i,o){let a;Pm(t,r,i,o).length>0?a=r-Da(r,i):a=t;let l=r,u=aQ(e,t,n,r,i,o);return Au(K3(e,a,n,l,u==="C",i).length,Lu(u,o))}function sQ(e,t,n){var a;let r=0,i=e-Da(e,n),o=t-Da(t,n);for(let l=0;l<Math.abs(i-o);l++){let u=q3(e,t)==="A"?-1:1;(a=n.buffer.lines.get(i+u*l))!=null&&a.isWrapped&&r++}return r}function Da(e,t){let n=0,r=t.buffer.lines.get(e),i=r==null?void 0:r.isWrapped;for(;i&&e>=0&&e<t.rows;)n++,r=t.buffer.lines.get(--e),i=r==null?void 0:r.isWrapped;return n}function aQ(e,t,n,r,i,o){let a;return Pm(n,r,i,o).length>0?a=r-Da(r,i):a=t,e<n&&a<=r||e>=n&&a<r?"C":"D"}function q3(e,t){return e>t?"A":"B"}function K3(e,t,n,r,i,o){let a=e,l=t,u="";for(;(a!==n||l!==r)&&l>=0&&l<o.buffer.lines.length;)a+=i?1:-1,i&&a>o.cols-1?(u+=o.buffer.translateBufferLineToString(l,!1,e,a),a=0,e=0,l++):!i&&a<0&&(u+=o.buffer.translateBufferLineToString(l,!1,0,e+1),a=o.cols-1,e=a,l--);return u+o.buffer.translateBufferLineToString(l,!1,e,a)}function Lu(e,t){let n=t?"O":"[";return Ie.ESC+n+e}function Au(e,t){e=Math.floor(e);let n="";for(let r=0;r<e;r++)n+=t;return n}var lQ=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:!this.selectionEnd||!this.selectionStart?this.selectionStart:this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function Kx(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var uv=50,cQ=15,uQ=50,dQ=500,hQ=" ",fQ=new RegExp(hQ,"g"),sy=class extends tn{constructor(e,t,n,r,i,o,a,l,u){super(),this._element=e,this._screenElement=t,this._linkifier=n,this._bufferService=r,this._coreService=i,this._mouseService=o,this._optionsService=a,this._renderService=l,this._coreBrowserService=u,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new fo,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new qe),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new qe),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new qe),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new qe),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=d=>this._handleMouseMove(d),this._mouseUpListener=d=>this._handleMouseUp(d),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(d=>this._handleTrim(d)),this._register(this._bufferService.buffers.onBufferActivate(d=>this._handleBufferActivate(d))),this.enable(),this._model=new lQ(this._bufferService),this._activeSelectionMode=0,this._register(Yn(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(d=>{d.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";let n=this._bufferService.buffer,r=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let i=e[0]<t[0]?e[0]:t[0],o=e[0]<t[0]?t[0]:e[0];for(let a=e[1];a<=t[1];a++){let l=n.translateBufferLineToString(a,!0,i,o);r.push(l)}}else{let i=e[1]===t[1]?t[0]:void 0;r.push(n.translateBufferLineToString(e[1],!0,e[0],i));for(let o=e[1]+1;o<=t[1]-1;o++){let a=n.lines.get(o),l=n.translateBufferLineToString(o,!0);a!=null&&a.isWrapped?r[r.length-1]+=l:r.push(l)}if(e[1]!==t[1]){let o=n.lines.get(t[1]),a=n.translateBufferLineToString(t[1],!0,0,t[0]);o&&o.isWrapped?r[r.length-1]+=a:r.push(a)}}return r.map(i=>i.replace(fQ," ")).join(W3?`\r
|
|
597
|
-
`:`
|
|
598
|
-
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),Wb&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r||!t?!1:this._areCoordsInSelection(t,n,r)}isCellInSelection(e,t){let n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!n||!r?!1:this._areCoordsInSelection([e,t],n,r)}_areCoordsInSelection(e,t,n){return e[1]>t[1]&&e[1]<n[1]||t[1]===n[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<n[0]||t[1]<n[1]&&e[1]===n[1]&&e[0]<n[0]||t[1]<n[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){var i,o;let n=(o=(i=this._linkifier.currentLink)==null?void 0:i.link)==null?void 0:o.range;if(n)return this._model.selectionStart=[n.start.x-1,n.start.y-1],this._model.selectionStartLength=Kx(n,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let r=this._getMouseBufferCoords(e);return r?(this._selectWordAt(r,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=Fb(this._coreBrowserService.window,e,this._screenElement)[1],n=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-uv),uv),t/=uv,t/Math.abs(t)+Math.round(t*(cQ-1)))}shouldForceSelection(e){return Bf?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),uQ)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(Bf&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let n=this._bufferService.buffer;if(this._model.selectionEnd[1]<n.lines.length){let r=n.lines.get(this._model.selectionEnd[1]);r&&r.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}(!t||t[0]!==this._model.selectionEnd[0]||t[1]!==this._model.selectionEnd[1])&&this.refresh(!0)}_dragScroll(){if(!(!this._model.selectionEnd||!this._model.selectionStart)&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<dQ&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&n[0]!==void 0&&n[1]!==void 0){let r=tQ(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(r,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,n=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);if(!n){this._oldHasSelection&&this._fireOnSelectionChange(e,t,n);return}!e||!t||(!this._oldSelectionStart||!this._oldSelectionEnd||e[0]!==this._oldSelectionStart[0]||e[1]!==this._oldSelectionStart[1]||t[0]!==this._oldSelectionEnd[0]||t[1]!==this._oldSelectionEnd[1])&&this._fireOnSelectionChange(e,t,n)}_fireOnSelectionChange(e,t,n){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=n,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(t=>this._handleTrim(t))}_convertViewportColToCharacterIndex(e,t){let n=t;for(let r=0;t>=r;r++){let i=e.loadCell(r,this._workCell).getChars().length;this._workCell.getWidth()===0?n--:i>1&&t!==r&&(n+=i-1)}return n}setSelection(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,n=!0,r=!0){if(e[0]>=this._bufferService.cols)return;let i=this._bufferService.buffer,o=i.lines.get(e[1]);if(!o)return;let a=i.translateBufferLineToString(e[1],!1),l=this._convertViewportColToCharacterIndex(o,e[0]),u=l,d=e[0]-l,f=0,m=0,g=0,v=0;if(a.charAt(l)===" "){for(;l>0&&a.charAt(l-1)===" ";)l--;for(;u<a.length&&a.charAt(u+1)===" ";)u++}else{let _=e[0],C=e[0];o.getWidth(_)===0&&(f++,_--),o.getWidth(C)===2&&(m++,C++);let w=o.getString(C).length;for(w>1&&(v+=w-1,u+=w-1);_>0&&l>0&&!this._isCharWordSeparator(o.loadCell(_-1,this._workCell));){o.loadCell(_-1,this._workCell);let k=this._workCell.getChars().length;this._workCell.getWidth()===0?(f++,_--):k>1&&(g+=k-1,l-=k-1),l--,_--}for(;C<o.length&&u+1<a.length&&!this._isCharWordSeparator(o.loadCell(C+1,this._workCell));){o.loadCell(C+1,this._workCell);let k=this._workCell.getChars().length;this._workCell.getWidth()===2?(m++,C++):k>1&&(v+=k-1,u+=k-1),u++,C++}}u++;let y=l+d-f+g,S=Math.min(this._bufferService.cols,u-l+f+m-g-v);if(!(!t&&a.slice(l,u).trim()==="")){if(n&&y===0&&o.getCodePoint(0)!==32){let _=i.lines.get(e[1]-1);if(_&&o.isWrapped&&_.getCodePoint(this._bufferService.cols-1)!==32){let C=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(C){let w=this._bufferService.cols-C.start;y-=w,S+=w}}}if(r&&y+S===this._bufferService.cols&&o.getCodePoint(this._bufferService.cols-1)!==32){let _=i.lines.get(e[1]+1);if(_!=null&&_.isWrapped&&_.getCodePoint(0)!==32){let C=this._getWordAt([0,e[1]+1],!1,!1,!0);C&&(S+=C.length)}}return{start:y,length:S}}}_selectWordAt(e,t){let n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let n=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),n={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=Kx(n,this._bufferService.cols)}};sy=ar([ut(3,yi),ut(4,Ka),ut(5,jb),ut(6,bi),ut(7,Cs),ut(8,Ss)],sy);var Gx=class{constructor(){this._data={}}set(e,t,n){this._data[e]||(this._data[e]={}),this._data[e][t]=n}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},Xx=class{constructor(){this._color=new Gx,this._css=new Gx}setCss(e,t,n){this._css.set(e,t,n)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,n){this._color.set(e,t,n)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},Er=Object.freeze((()=>{let e=[nr.toColor("#2e3436"),nr.toColor("#cc0000"),nr.toColor("#4e9a06"),nr.toColor("#c4a000"),nr.toColor("#3465a4"),nr.toColor("#75507b"),nr.toColor("#06989a"),nr.toColor("#d3d7cf"),nr.toColor("#555753"),nr.toColor("#ef2929"),nr.toColor("#8ae234"),nr.toColor("#fce94f"),nr.toColor("#729fcf"),nr.toColor("#ad7fa8"),nr.toColor("#34e2e2"),nr.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let n=0;n<216;n++){let r=t[n/36%6|0],i=t[n/6%6|0],o=t[n%6];e.push({css:vr.toCss(r,i,o),rgba:vr.toRgba(r,i,o)})}for(let n=0;n<24;n++){let r=8+n*10;e.push({css:vr.toCss(r,r,r),rgba:vr.toRgba(r,r,r)})}return e})()),_a=nr.toColor("#ffffff"),uu=nr.toColor("#000000"),Yx=nr.toColor("#ffffff"),Jx=uu,Zc={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},mQ=_a,ay=class extends tn{constructor(e){super(),this._optionsService=e,this._contrastCache=new Xx,this._halfContrastCache=new Xx,this._onChangeColors=this._register(new qe),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:_a,background:uu,cursor:Yx,cursorAccent:Jx,selectionForeground:void 0,selectionBackgroundTransparent:Zc,selectionBackgroundOpaque:Vn.blend(uu,Zc),selectionInactiveBackgroundTransparent:Zc,selectionInactiveBackgroundOpaque:Vn.blend(uu,Zc),scrollbarSliderBackground:Vn.opacity(_a,.2),scrollbarSliderHoverBackground:Vn.opacity(_a,.4),scrollbarSliderActiveBackground:Vn.opacity(_a,.5),overviewRulerBorder:_a,ansi:Er.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=jn(e.foreground,_a),t.background=jn(e.background,uu),t.cursor=Vn.blend(t.background,jn(e.cursor,Yx)),t.cursorAccent=Vn.blend(t.background,jn(e.cursorAccent,Jx)),t.selectionBackgroundTransparent=jn(e.selectionBackground,Zc),t.selectionBackgroundOpaque=Vn.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=jn(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=Vn.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?jn(e.selectionForeground,Vx):void 0,t.selectionForeground===Vx&&(t.selectionForeground=void 0),Vn.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=Vn.opacity(t.selectionBackgroundTransparent,.3)),Vn.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=Vn.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=jn(e.scrollbarSliderBackground,Vn.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=jn(e.scrollbarSliderHoverBackground,Vn.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=jn(e.scrollbarSliderActiveBackground,Vn.opacity(t.foreground,.5)),t.overviewRulerBorder=jn(e.overviewRulerBorder,mQ),t.ansi=Er.slice(),t.ansi[0]=jn(e.black,Er[0]),t.ansi[1]=jn(e.red,Er[1]),t.ansi[2]=jn(e.green,Er[2]),t.ansi[3]=jn(e.yellow,Er[3]),t.ansi[4]=jn(e.blue,Er[4]),t.ansi[5]=jn(e.magenta,Er[5]),t.ansi[6]=jn(e.cyan,Er[6]),t.ansi[7]=jn(e.white,Er[7]),t.ansi[8]=jn(e.brightBlack,Er[8]),t.ansi[9]=jn(e.brightRed,Er[9]),t.ansi[10]=jn(e.brightGreen,Er[10]),t.ansi[11]=jn(e.brightYellow,Er[11]),t.ansi[12]=jn(e.brightBlue,Er[12]),t.ansi[13]=jn(e.brightMagenta,Er[13]),t.ansi[14]=jn(e.brightCyan,Er[14]),t.ansi[15]=jn(e.brightWhite,Er[15]),e.extendedAnsi){let n=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let r=0;r<n;r++)t.ansi[r+16]=jn(e.extendedAnsi[r],Er[r+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0){for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t];return}switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};ay=ar([ut(0,bi)],ay);function jn(e,t){if(e!==void 0)try{return nr.toColor(e)}catch{}return t}var pQ=class{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){let n=this._entries.get(e);return this._entries.set(e,t),n}forEach(e){for(let[t,n]of this._entries.entries())e(t,n)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},gQ=class{constructor(){this._services=new pQ,this._services.set(Mb,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let n=cY(e).sort((o,a)=>o.index-a.index),r=[];for(let o of n){let a=this._services.get(o.id);if(!a)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${o.id._id}.`);r.push(a)}let i=n.length>0?n[0].index:t.length;if(t.length!==i)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${i+1} conflicts with ${t.length} static arguments`);return new e(...t,...r)}},vQ={trace:0,debug:1,info:2,warn:3,error:4,off:5},yQ="xterm.js: ",ly=class extends tn{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel()))}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=vQ[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]=="function"&&(e[t]=e[t]())}_log(e,t,n){this._evalLazyOptionalParams(n),e.call(console,(this._optionsService.options.logger?"":yQ)+t,...n)}trace(e,...t){var n;this._logLevel<=0&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.trace.bind(this._optionsService.options.logger))??console.log,e,t)}debug(e,...t){var n;this._logLevel<=1&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.debug.bind(this._optionsService.options.logger))??console.log,e,t)}info(e,...t){var n;this._logLevel<=2&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.info.bind(this._optionsService.options.logger))??console.info,e,t)}warn(e,...t){var n;this._logLevel<=3&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.warn.bind(this._optionsService.options.logger))??console.warn,e,t)}error(e,...t){var n;this._logLevel<=4&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.error.bind(this._optionsService.options.logger))??console.error,e,t)}};ly=ar([ut(0,bi)],ly);var Qx=class extends tn{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new qe),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new qe),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new qe),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=new Array(e);for(let n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...n){if(t){for(let r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let r=this._length-1;r>=e;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(let r=0;r<n.length;r++)this._array[this._getCyclicIndex(e+r)]=n[r];if(n.length&&this.onInsertEmitter.fire({index:e,amount:n.length}),this._length+n.length>this._maxLength){let r=this._length+n.length-this._maxLength;this._startIndex+=r,this._length=this._maxLength,this.onTrimEmitter.fire(r)}else this._length+=n.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(let i=t-1;i>=0;i--)this.set(e+i+n,this.get(e+i));let r=e+t+n-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r<t;r++)this.set(e+r+n,this.get(e+r))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},Zt=3,pr=Object.freeze(new od),Ph=0,dv=2,du=class G3{constructor(t,n,r=!1){this.isWrapped=r,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*Zt);let i=n||fo.fromCharData([0,f3,1,0]);for(let o=0;o<t;++o)this.setCell(o,i);this.length=t}get(t){let n=this._data[t*Zt+0],r=n&2097151;return[this._data[t*Zt+1],n&2097152?this._combined[t]:r?qs(r):"",n>>22,n&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):r]}set(t,n){this._data[t*Zt+1]=n[0],n[1].length>1?(this._combined[t]=n[1],this._data[t*Zt+0]=t|2097152|n[2]<<22):this._data[t*Zt+0]=n[1].charCodeAt(0)|n[2]<<22}getWidth(t){return this._data[t*Zt+0]>>22}hasWidth(t){return this._data[t*Zt+0]&12582912}getFg(t){return this._data[t*Zt+1]}getBg(t){return this._data[t*Zt+2]}hasContent(t){return this._data[t*Zt+0]&4194303}getCodePoint(t){let n=this._data[t*Zt+0];return n&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):n&2097151}isCombined(t){return this._data[t*Zt+0]&2097152}getString(t){let n=this._data[t*Zt+0];return n&2097152?this._combined[t]:n&2097151?qs(n&2097151):""}isProtected(t){return this._data[t*Zt+2]&536870912}loadCell(t,n){return Ph=t*Zt,n.content=this._data[Ph+0],n.fg=this._data[Ph+1],n.bg=this._data[Ph+2],n.content&2097152&&(n.combinedData=this._combined[t]),n.bg&268435456&&(n.extended=this._extendedAttrs[t]),n}setCell(t,n){n.content&2097152&&(this._combined[t]=n.combinedData),n.bg&268435456&&(this._extendedAttrs[t]=n.extended),this._data[t*Zt+0]=n.content,this._data[t*Zt+1]=n.fg,this._data[t*Zt+2]=n.bg}setCellFromCodepoint(t,n,r,i){i.bg&268435456&&(this._extendedAttrs[t]=i.extended),this._data[t*Zt+0]=n|r<<22,this._data[t*Zt+1]=i.fg,this._data[t*Zt+2]=i.bg}addCodepointToCell(t,n,r){let i=this._data[t*Zt+0];i&2097152?this._combined[t]+=qs(n):i&2097151?(this._combined[t]=qs(i&2097151)+qs(n),i&=-2097152,i|=2097152):i=n|1<<22,r&&(i&=-12582913,i|=r<<22),this._data[t*Zt+0]=i}insertCells(t,n,r){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),n<this.length-t){let i=new fo;for(let o=this.length-t-n-1;o>=0;--o)this.setCell(t+n+o,this.loadCell(t+o,i));for(let o=0;o<n;++o)this.setCell(t+o,r)}else for(let i=t;i<this.length;++i)this.setCell(i,r);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,r)}deleteCells(t,n,r){if(t%=this.length,n<this.length-t){let i=new fo;for(let o=0;o<this.length-t-n;++o)this.setCell(t+o,this.loadCell(t+n+o,i));for(let o=this.length-n;o<this.length;++o)this.setCell(o,r)}else for(let i=t;i<this.length;++i)this.setCell(i,r);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,r)}replaceCells(t,n,r,i=!1){if(i){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,r),n<this.length&&this.getWidth(n-1)===2&&!this.isProtected(n)&&this.setCellFromCodepoint(n,0,1,r);t<n&&t<this.length;)this.isProtected(t)||this.setCell(t,r),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,r),n<this.length&&this.getWidth(n-1)===2&&this.setCellFromCodepoint(n,0,1,r);t<n&&t<this.length;)this.setCell(t++,r)}resize(t,n){if(t===this.length)return this._data.length*4*dv<this._data.buffer.byteLength;let r=t*Zt;if(t>this.length){if(this._data.buffer.byteLength>=r*4)this._data=new Uint32Array(this._data.buffer,0,r);else{let i=new Uint32Array(r);i.set(this._data),this._data=i}for(let i=this.length;i<t;++i)this.setCell(i,n)}else{this._data=this._data.subarray(0,r);let i=Object.keys(this._combined);for(let a=0;a<i.length;a++){let l=parseInt(i[a],10);l>=t&&delete this._combined[l]}let o=Object.keys(this._extendedAttrs);for(let a=0;a<o.length;a++){let l=parseInt(o[a],10);l>=t&&delete this._extendedAttrs[l]}}return this.length=t,r*4*dv<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*dv<this._data.buffer.byteLength){let t=new Uint32Array(this._data.length);return t.set(this._data),this._data=t,1}return 0}fill(t,n=!1){if(n){for(let r=0;r<this.length;++r)this.isProtected(r)||this.setCell(r,t);return}this._combined={},this._extendedAttrs={};for(let r=0;r<this.length;++r)this.setCell(r,t)}copyFrom(t){this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={};for(let n in t._combined)this._combined[n]=t._combined[n];this._extendedAttrs={};for(let n in t._extendedAttrs)this._extendedAttrs[n]=t._extendedAttrs[n];this.isWrapped=t.isWrapped}clone(){let t=new G3(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let n in this._combined)t._combined[n]=this._combined[n];for(let n in this._extendedAttrs)t._extendedAttrs[n]=this._extendedAttrs[n];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Zt+0]&4194303)return t+(this._data[t*Zt+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Zt+0]&4194303||this._data[t*Zt+2]&50331648)return t+(this._data[t*Zt+0]>>22);return 0}copyCellsFrom(t,n,r,i,o){let a=t._data;if(o)for(let u=i-1;u>=0;u--){for(let d=0;d<Zt;d++)this._data[(r+u)*Zt+d]=a[(n+u)*Zt+d];a[(n+u)*Zt+2]&268435456&&(this._extendedAttrs[r+u]=t._extendedAttrs[n+u])}else for(let u=0;u<i;u++){for(let d=0;d<Zt;d++)this._data[(r+u)*Zt+d]=a[(n+u)*Zt+d];a[(n+u)*Zt+2]&268435456&&(this._extendedAttrs[r+u]=t._extendedAttrs[n+u])}let l=Object.keys(t._combined);for(let u=0;u<l.length;u++){let d=parseInt(l[u],10);d>=n&&(this._combined[d-n+r]=t._combined[d])}}translateToString(t,n,r,i){n=n??0,r=r??this.length,t&&(r=Math.min(r,this.getTrimmedLength())),i&&(i.length=0);let o="";for(;n<r;){let a=this._data[n*Zt+0],l=a&2097151,u=a&2097152?this._combined[n]:l?qs(l):Ys;if(o+=u,i)for(let d=0;d<u.length;++d)i.push(n);n+=a>>22||1}return i&&i.push(n),o}};function bQ(e,t,n,r,i,o){let a=[];for(let l=0;l<e.length-1;l++){let u=l,d=e.get(++u);if(!d.isWrapped)continue;let f=[e.get(l)];for(;u<e.length&&d.isWrapped;)f.push(d),d=e.get(++u);if(!o&&r>=l&&r<u){l+=f.length-1;continue}let m=0,g=Du(f,m,t),v=1,y=0;for(;v<f.length;){let _=Du(f,v,t),C=_-y,w=n-g,k=Math.min(C,w);f[m].copyCellsFrom(f[v],y,g,k,!1),g+=k,g===n&&(m++,g=0),y+=k,y===_&&(v++,y=0),g===0&&m!==0&&f[m-1].getWidth(n-1)===2&&(f[m].copyCellsFrom(f[m-1],n-1,g++,1,!1),f[m-1].setCell(n-1,i))}f[m].replaceCells(g,n,i);let S=0;for(let _=f.length-1;_>0&&(_>m||f[_].getTrimmedLength()===0);_--)S++;S>0&&(a.push(l+f.length-S),a.push(S)),l+=f.length-1}return a}function _Q(e,t){let n=[],r=0,i=t[r],o=0;for(let a=0;a<e.length;a++)if(i===a){let l=t[++r];e.onDeleteEmitter.fire({index:a-o,amount:l}),a+=l-1,o+=l,i=t[++r]}else n.push(a);return{layout:n,countRemoved:o}}function SQ(e,t){let n=[];for(let r=0;r<t.length;r++)n.push(e.get(t[r]));for(let r=0;r<n.length;r++)e.set(r,n[r]);e.length=t.length}function CQ(e,t,n){let r=[],i=e.map((u,d)=>Du(e,d,t)).reduce((u,d)=>u+d),o=0,a=0,l=0;for(;l<i;){if(i-l<n){r.push(i-l);break}o+=n;let u=Du(e,a,t);o>u&&(o-=u,a++);let d=e[a].getWidth(o-1)===2;d&&o--;let f=d?n-1:n;r.push(f),l+=f}return r}function Du(e,t,n){if(t===e.length-1)return e[t].getTrimmedLength();let r=!e[t].hasContent(n-1)&&e[t].getWidth(n-1)===1,i=e[t+1].getWidth(0)===2;return r&&i?n-1:n}var X3=class Y3{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=Y3._nextId++,this._onDispose=this.register(new qe),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),Aa(this._disposables),this._disposables.length=0)}register(t){return this._disposables.push(t),t}};X3._nextId=1;var wQ=X3,Rr={},Sa=Rr.B;Rr[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"};Rr.A={"#":"£"};Rr.B=void 0;Rr[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"};Rr.C=Rr[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};Rr.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"};Rr.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"};Rr.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"};Rr.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"};Rr.E=Rr[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"};Rr.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"};Rr.H=Rr[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"};Rr["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"};var Zx=4294967295,e2=class{constructor(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=pr.clone(),this.savedCharset=Sa,this.markers=[],this._nullCell=fo.fromCharData([0,f3,1,0]),this._whitespaceCell=fo.fromCharData([0,Ys,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new Lf,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new Qx(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new Mf),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new Mf),this._whitespaceCell}getBlankLine(e,t){return new du(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let t=e+this._optionsService.rawOptions.scrollback;return t>Zx?Zx:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=pr);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new Qx(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let n=this.getNullCell(pr),r=0,i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(let a=0;a<this.lines.length;a++)r+=+this.lines.get(a).resize(e,n);let o=0;if(this._rows<t)for(let a=this._rows;a<t;a++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new du(e,n)):this.ybase>0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(new du(e,n)));else for(let a=this._rows;a>t;a--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){let a=this.lines.length-i;a>0&&(this.lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0),this.savedY=Math.max(this.savedY-a,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let o=0;o<this.lines.length;o++)r+=+this.lines.get(o).resize(e,n);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),r>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend==="conpty"&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=bQ(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(pr),n);if(r.length>0){let i=_Q(this.lines,r);SQ(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}}_reflowLargerAdjustViewport(e,t,n){let r=this.getNullCell(pr),i=n;for(;i-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new du(e,r))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-n,0)}_reflowSmaller(e,t){let n=this._optionsService.rawOptions.reflowCursorLine,r=this.getNullCell(pr),i=[],o=0;for(let a=this.lines.length-1;a>=0;a--){let l=this.lines.get(a);if(!l||!l.isWrapped&&l.getTrimmedLength()<=e)continue;let u=[l];for(;l.isWrapped&&a>0;)l=this.lines.get(--a),u.unshift(l);if(!n){let k=this.ybase+this.y;if(k>=a&&k<a+u.length)continue}let d=u[u.length-1].getTrimmedLength(),f=CQ(u,this._cols,e),m=f.length-u.length,g;this.ybase===0&&this.y!==this.lines.length-1?g=Math.max(0,this.y-this.lines.maxLength+m):g=Math.max(0,this.lines.length-this.lines.maxLength+m);let v=[];for(let k=0;k<m;k++){let $=this.getBlankLine(pr,!0);v.push($)}v.length>0&&(i.push({start:a+u.length+o,newLines:v}),o+=v.length),u.push(...v);let y=f.length-1,S=f[y];S===0&&(y--,S=f[y]);let _=u.length-m-1,C=d;for(;_>=0;){let k=Math.min(C,S);if(u[y]===void 0)break;if(u[y].copyCellsFrom(u[_],C-k,S-k,k,!0),S-=k,S===0&&(y--,S=f[y]),C-=k,C===0){_--;let $=Math.max(_,0);C=Du(u,$,this._cols)}}for(let k=0;k<u.length;k++)f[k]<e&&u[k].setCell(f[k],r);let w=m-g;for(;w-- >0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+o)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+m,this.ybase+t-1)}if(i.length>0){let a=[],l=[];for(let S=0;S<this.lines.length;S++)l.push(this.lines.get(S));let u=this.lines.length,d=u-1,f=0,m=i[f];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+o);let g=0;for(let S=Math.min(this.lines.maxLength-1,u+o-1);S>=0;S--)if(m&&m.start>d+g){for(let _=m.newLines.length-1;_>=0;_--)this.lines.set(S--,m.newLines[_]);S++,a.push({index:d+1,amount:m.newLines.length}),g+=m.newLines.length,m=i[++f]}else this.lines.set(S,l[d--]);let v=0;for(let S=a.length-1;S>=0;S--)a[S].index+=v,this.lines.onInsertEmitter.fire(a[S]),v+=a[S].amount;let y=Math.max(0,u+o-this.lines.maxLength);y>0&&this.lines.onTrimEmitter.fire(y)}}translateBufferLineToString(e,t,n=0,r){let i=this.lines.get(e);return i?i.translateToString(t,n,r):""}getWrappedRangeForLine(e){let t=e,n=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}}setupTabStops(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose();this.markers.length=0,this._isClearing=!1}addMarker(e){let t=new wQ(e);return this.markers.push(t),t.register(this.lines.onTrim(n=>{t.line-=n,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(n=>{t.line>=n.index&&(t.line+=n.amount)})),t.register(this.lines.onDelete(n=>{t.line>=n.index&&t.line<n.index+n.amount&&t.dispose(),t.line>n.index&&(t.line-=n.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},xQ=class extends tn{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new qe),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new e2(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new e2(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},J3=2,Q3=1,cy=class extends tn{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new qe),this.onResize=this._onResize.event,this._onScroll=this._register(new qe),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,J3),this.rows=Math.max(e.rawOptions.rows||0,Q3),this.buffers=this._register(new xQ(e,this)),this._register(this.buffers.onBufferActivate(t=>{this._onScroll.fire(t.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let n=this.cols!==e,r=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:n,rowsChanged:r})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let n=this.buffer,r;r=this._cachedBlankLine,(!r||r.length!==this.cols||r.getFg(0)!==e.fg||r.getBg(0)!==e.bg)&&(r=n.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;let i=n.ybase+n.scrollTop,o=n.ybase+n.scrollBottom;if(n.scrollTop===0){let a=n.lines.isFull;o===n.lines.length-1?a?n.lines.recycle().copyFrom(r):n.lines.push(r.clone()):n.lines.splice(o+1,0,r.clone()),a?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{let a=o-i+1;n.lines.shiftElements(i+1,a-1,-1),n.lines.set(o,r.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)}scrollLines(e,t){let n=this.buffer;if(e<0){if(n.ydisp===0)return;this.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this.isUserScrolling=!1);let r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))}};cy=ar([ut(0,bi)],cy);var jl={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:Bf,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},EQ=["normal","bold","100","200","300","400","500","600","700","800","900"],kQ=class extends tn{constructor(e){super(),this._onOptionChange=this._register(new qe),this.onOptionChange=this._onOptionChange.event;let t={...jl};for(let n in e)if(n in t)try{let r=e[n];t[n]=this._sanitizeAndValidateOption(n,r)}catch(r){console.error(r)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(Yn(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(n=>{n===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(n=>{e.indexOf(n)!==-1&&t()})}_setupOptions(){let e=n=>{if(!(n in jl))throw new Error(`No option with key "${n}"`);return this.rawOptions[n]},t=(n,r)=>{if(!(n in jl))throw new Error(`No option with key "${n}"`);r=this._sanitizeAndValidateOption(n,r),this.rawOptions[n]!==r&&(this.rawOptions[n]=r,this._onOptionChange.fire(n))};for(let n in this.rawOptions){let r={get:e.bind(this,n),set:t.bind(this,n)};Object.defineProperty(this.options,n,r)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=jl[e]),!$Q(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=jl[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=EQ.includes(t)?t:jl[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(`${e} cannot be less than 1, value: ${t}`);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case"scrollback":if(t=Math.min(t,4294967295),t<0)throw new Error(`${e} cannot be less than 0, value: ${t}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case"rows":case"cols":if(!t&&t!==0)throw new Error(`${e} must be numeric, value: ${t}`);break;case"windowsPty":t=t??{};break}return t}};function $Q(e){return e==="block"||e==="underline"||e==="bar"}function hu(e,t=5){if(typeof e!="object")return e;let n=Array.isArray(e)?[]:{};for(let r in e)n[r]=t<=1?e[r]:e[r]&&hu(e[r],t-1);return n}var t2=Object.freeze({insertMode:!1}),n2=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),uy=class extends tn{constructor(e,t,n){super(),this._bufferService=e,this._logService=t,this._optionsService=n,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new qe),this.onData=this._onData.event,this._onUserInput=this._register(new qe),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new qe),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new qe),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=hu(t2),this.decPrivateModes=hu(n2)}reset(){this.modes=hu(t2),this.decPrivateModes=hu(n2)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let n=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&n.ybase!==n.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace("sending data (codes)",()=>e.split("").map(r=>r.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace("sending binary (codes)",()=>e.split("").map(t=>t.charCodeAt(0))),this._onBinary.fire(e))}};uy=ar([ut(0,yi),ut(1,y3),ut(2,bi)],uy);var r2={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>!(e.action===32&&e.button===3)},ANY:{events:31,restrict:e=>!0}};function hv(e,t){let n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(n|=64,n|=e.action):(n|=e.button&3,e.button&4&&(n|=64),e.button&8&&(n|=128),e.action===32?n|=32:e.action===0&&!t&&(n|=3)),n}var fv=String.fromCharCode,i2={DEFAULT:e=>{let t=[hv(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${fv(t[0])}${fv(t[1])}${fv(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${hv(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${hv(e,!0)};${e.x};${e.y}${t}`}},dy=class extends tn{constructor(e,t,n){super(),this._bufferService=e,this._coreService=t,this._optionsService=n,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new qe),this.onProtocolChange=this._onProtocolChange.event;for(let r of Object.keys(r2))this.addProtocol(r,r2[r]);for(let r of Object.keys(i2))this.addEncoding(r,i2[r]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,n){if(e.deltaY===0||e.shiftKey||t===void 0||n===void 0)return 0;let r=t/n,i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=r+0,Math.abs(e.deltaY)<50&&(i*=.3),this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,n){if(n){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return!(e.button!==t.button||e.action!==t.action||e.ctrl!==t.ctrl||e.alt!==t.alt||e.shift!==t.shift)}};dy=ar([ut(0,yi),ut(1,Ka),ut(2,bi)],dy);var mv=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],RQ=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],kr;function TQ(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var PQ=class{constructor(){if(this.version="6",!kr){kr=new Uint8Array(65536),kr.fill(1),kr[0]=0,kr.fill(0,1,32),kr.fill(0,127,160),kr.fill(2,4352,4448),kr[9001]=2,kr[9002]=2,kr.fill(2,11904,42192),kr[12351]=1,kr.fill(2,44032,55204),kr.fill(2,63744,64256),kr.fill(2,65040,65050),kr.fill(2,65072,65136),kr.fill(2,65280,65377),kr.fill(2,65504,65511);for(let e=0;e<mv.length;++e)kr.fill(0,mv[e][0],mv[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?kr[e]:TQ(e,RQ)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let i=$a.extractWidth(t);i===0?r=!1:i>n&&(n=i)}return $a.createPropertyValue(0,n,r)}},$a=class Zh{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new qe,this.onChange=this._onChange.event;let t=new PQ;this.register(t),this._active=t.version,this._activeProvider=t}static extractShouldJoin(t){return(t&1)!==0}static extractWidth(t){return t>>1&3}static extractCharKind(t){return t>>3}static createPropertyValue(t,n,r=!1){return(t&16777215)<<3|(n&3)<<1|(r?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(t){if(!this._providers[t])throw new Error(`unknown Unicode version "${t}"`);this._active=t,this._activeProvider=this._providers[t],this._onChange.fire(t)}register(t){this._providers[t.version]=t}wcwidth(t){return this._activeProvider.wcwidth(t)}getStringCellWidth(t){let n=0,r=0,i=t.length;for(let o=0;o<i;++o){let a=t.charCodeAt(o);if(55296<=a&&a<=56319){if(++o>=i)return n+this.wcwidth(a);let d=t.charCodeAt(o);56320<=d&&d<=57343?a=(a-55296)*1024+d-56320+65536:n+=this.wcwidth(d)}let l=this.charProperties(a,r),u=Zh.extractWidth(l);Zh.extractShouldJoin(l)&&(u-=Zh.extractWidth(r)),n+=u,r=l}return n}charProperties(t,n){return this._activeProvider.charProperties(t,n)}},OQ=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function o2(e){var r;let t=(r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1))==null?void 0:r.get(e.cols-1),n=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);n&&t&&(n.isWrapped=t[3]!==0&&t[3]!==32)}var eu=2147483647,IQ=256,Z3=class hy{constructor(t=32,n=32){if(this.maxLength=t,this.maxSubParamsLength=n,n>IQ)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(n),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let n=new hy;if(!t.length)return n;for(let r=Array.isArray(t[0])?1:0;r<t.length;++r){let i=t[r];if(Array.isArray(i))for(let o=0;o<i.length;++o)n.addSubParam(i[o]);else n.addParam(i)}return n}clone(){let t=new hy(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}toArray(){let t=[];for(let n=0;n<this.length;++n){t.push(this.params[n]);let r=this._subParamsIdx[n]>>8,i=this._subParamsIdx[n]&255;i-r>0&&t.push(Array.prototype.slice.call(this._subParams,r,i))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(t){if(this._digitIsSub=!1,this.length>=this.maxLength){this._rejectDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=t>eu?eu:t}addSubParam(t){if(this._digitIsSub=!0,!!this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=t>eu?eu:t,this._subParamsIdx[this.length-1]++}}hasSubParams(t){return(this._subParamsIdx[t]&255)-(this._subParamsIdx[t]>>8)>0}getSubParams(t){let n=this._subParamsIdx[t]>>8,r=this._subParamsIdx[t]&255;return r-n>0?this._subParams.subarray(n,r):null}getSubParamsAll(){let t={};for(let n=0;n<this.length;++n){let r=this._subParamsIdx[n]>>8,i=this._subParamsIdx[n]&255;i-r>0&&(t[n]=this._subParams.slice(r,i))}return t}addDigit(t){let n;if(this._rejectDigits||!(n=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let r=this._digitIsSub?this._subParams:this.params,i=r[n-1];r[n-1]=~i?Math.min(i*10+t,eu):t}},tu=[],NQ=class{constructor(){this._state=0,this._active=tu,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=tu}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=tu,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||tu,!this._active.length)this._handlerFb(this._id,"START");else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,n){if(!this._active.length)this._handlerFb(this._id,"PUT",$m(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}start(){this.reset(),this._state=1}put(e,t,n){if(this._state!==3){if(this._state===1)for(;t<n;){let r=e[t++];if(r===59){this._state=2,this._start();break}if(r<48||57<r){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+r-48}this._state===2&&n-t>0&&this._put(e,t,n)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,"END",e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].end(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].end(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=tu,this._id=-1,this._state=0}}},Vi=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=$m(e,t,n),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(n=>(this._data="",this._hitLimit=!1,n));return this._data="",this._hitLimit=!1,t}},nu=[],MQ=class{constructor(){this._handlers=Object.create(null),this._active=nu,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=nu}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let n=this._handlers[e];return n.push(t),{dispose:()=>{let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=nu,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||nu,!this._active.length)this._handlerFb(this._ident,"HOOK",t);else for(let n=this._active.length-1;n>=0;n--)this._active[n].hook(t)}put(e,t,n){if(!this._active.length)this._handlerFb(this._ident,"PUT",$m(e,t,n));else for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,n)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let n=!1,r=this._active.length-1,i=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,n=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&n===!1){for(;r>=0&&(n=this._active[r].unhook(e),n!==!0);r--)if(n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,n;r--}for(;r>=0;r--)if(n=this._active[r].unhook(!1),n instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,n}this._active=nu,this._ident=0}},fu=new Z3;fu.addParam(0);var s2=class{constructor(e){this._handler=e,this._data="",this._params=fu,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():fu,this._data="",this._hitLimit=!1}put(e,t,n){this._hitLimit||(this._data+=$m(e,t,n),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(n=>(this._params=fu,this._data="",this._hitLimit=!1,n));return this._params=fu,this._data="",this._hitLimit=!1,t}},jQ=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,n,r){this.table[t<<8|e]=n<<4|r}addMany(e,t,n,r){for(let i=0;i<e.length;i++)this.table[t<<8|e[i]]=n<<4|r}},uo=160,zQ=(function(){let e=new jQ(4095),t=Array.apply(null,Array(256)).map((l,u)=>u),n=(l,u)=>t.slice(l,u),r=n(32,127),i=n(0,24);i.push(25),i.push.apply(i,n(28,32));let o=n(0,14),a;e.setDefault(1,0),e.addMany(r,0,2,0);for(a in o)e.addMany([24,26,153,154],a,3,0),e.addMany(n(128,144),a,3,0),e.addMany(n(144,152),a,3,0),e.add(156,a,0,0),e.add(27,a,11,1),e.add(157,a,4,8),e.addMany([152,158,159],a,0,7),e.add(155,a,11,3),e.add(144,a,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(n(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(n(64,127),3,7,0),e.addMany(n(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(n(48,60),4,8,4),e.addMany(n(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(n(32,64),6,0,6),e.add(127,6,0,6),e.addMany(n(64,127),6,0,0),e.addMany(n(32,48),3,9,5),e.addMany(n(32,48),5,9,5),e.addMany(n(48,64),5,0,6),e.addMany(n(64,127),5,7,0),e.addMany(n(32,48),4,9,5),e.addMany(n(32,48),1,9,2),e.addMany(n(32,48),2,9,2),e.addMany(n(48,127),2,10,0),e.addMany(n(48,80),1,10,0),e.addMany(n(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(n(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(n(28,32),9,0,9),e.addMany(n(32,48),9,9,12),e.addMany(n(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(n(32,128),11,0,11),e.addMany(n(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(n(28,32),10,0,10),e.addMany(n(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(n(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(n(28,32),12,0,12),e.addMany(n(32,48),12,9,12),e.addMany(n(48,64),12,0,11),e.addMany(n(64,127),12,12,13),e.addMany(n(64,127),10,12,13),e.addMany(n(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(uo,0,2,0),e.add(uo,8,5,8),e.add(uo,6,0,6),e.add(uo,11,0,11),e.add(uo,13,13,13),e})(),BQ=class extends tn{constructor(e=zQ){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new Z3,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,n,r)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,n)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(Yn(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new NQ),this._dcsParser=this._register(new MQ),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let n=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(n=e.prefix.charCodeAt(0),n&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let i=0;i<e.intermediates.length;++i){let o=e.intermediates.charCodeAt(i);if(32>o||o>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=o}}if(e.final.length!==1)throw new Error("final must be a single byte");let r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return n<<=8,n|=r,n}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let n=this._identifier(e,[48,126]);this._escHandlers[n]===void 0&&(this._escHandlers[n]=[]);let r=this._escHandlers[n];return r.push(t),{dispose:()=>{let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let n=this._identifier(e);this._csiHandlers[n]===void 0&&(this._csiHandlers[n]=[]);let r=this._csiHandlers[n];return r.push(t),{dispose:()=>{let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,n,r,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=n,this._parseStack.transition=r,this._parseStack.chunkPos=i}parse(e,t,n){let r=0,i=0,o=0,a;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(n===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let l=this._parseStack.handlers,u=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(n===!1&&u>-1){for(;u>=0&&(a=l[u](this._params),a!==!0);u--)if(a instanceof Promise)return this._parseStack.handlerPos=u,a}this._parseStack.handlers=[];break;case 4:if(n===!1&&u>-1){for(;u>=0&&(a=l[u](),a!==!0);u--)if(a instanceof Promise)return this._parseStack.handlerPos=u,a}this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],a=this._dcsParser.unhook(r!==24&&r!==26,n),a)return a;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],a=this._oscParser.end(r!==24&&r!==26,n),a)return a;r===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let l=o;l<t;++l){switch(r=e[l],i=this._transitions.table[this.currentState<<8|(r<160?r:uo)],i>>4){case 2:for(let g=l+1;;++g){if(g>=t||(r=e[g])<32||r>126&&r<uo){this._printHandler(e,l,g),l=g-1;break}if(++g>=t||(r=e[g])<32||r>126&&r<uo){this._printHandler(e,l,g),l=g-1;break}if(++g>=t||(r=e[g])<32||r>126&&r<uo){this._printHandler(e,l,g),l=g-1;break}if(++g>=t||(r=e[g])<32||r>126&&r<uo){this._printHandler(e,l,g),l=g-1;break}}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:l,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let u=this._csiHandlers[this._collect<<8|r],d=u?u.length-1:-1;for(;d>=0&&(a=u[d](this._params),a!==!0);d--)if(a instanceof Promise)return this._preserveStack(3,u,d,i,l),a;d<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingJoinState=0;break;case 8:do switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}while(++l<t&&(r=e[l])>47&&r<60);l--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:let f=this._escHandlers[this._collect<<8|r],m=f?f.length-1:-1;for(;m>=0&&(a=f[m](),a!==!0);m--)if(a instanceof Promise)return this._preserveStack(4,f,m,i,l),a;m<0&&this._escHandlerFb(this._collect<<8|r),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let g=l+1;;++g)if(g>=t||(r=e[g])===24||r===26||r===27||r>127&&r<uo){this._dcsParser.put(e,l,g),l=g-1;break}break;case 14:if(a=this._dcsParser.unhook(r!==24&&r!==26),a)return this._preserveStack(6,[],0,i,l),a;r===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let g=l+1;;g++)if(g>=t||(r=e[g])<32||r>127&&r<uo){this._oscParser.put(e,l,g),l=g-1;break}break;case 6:if(a=this._oscParser.end(r!==24&&r!==26),a)return this._preserveStack(5,[],0,i,l),a;r===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=i&15}}},LQ=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,AQ=/^[\da-f]+$/;function a2(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let n=LQ.exec(t);if(n){let r=n[1]?15:n[4]?255:n[7]?4095:65535;return[Math.round(parseInt(n[1]||n[4]||n[7]||n[10],16)/r*255),Math.round(parseInt(n[2]||n[5]||n[8]||n[11],16)/r*255),Math.round(parseInt(n[3]||n[6]||n[9]||n[12],16)/r*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),AQ.exec(t)&&[3,6,9,12].includes(t.length))){let n=t.length/3,r=[0,0,0];for(let i=0;i<3;++i){let o=parseInt(t.slice(n*i,n*i+n),16);r[i]=n===1?o<<4:n===2?o:n===3?o>>4:o>>8}return r}}function pv(e,t){let n=e.toString(16),r=n.length<2?"0"+n:n;switch(t){case 4:return n[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}function DQ(e,t=16){let[n,r,i]=e;return`rgb:${pv(n,t)}/${pv(r,t)}/${pv(i,t)}`}var HQ={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Ws=131072,l2=10;function c2(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var u2=5e3,d2=0,FQ=class extends tn{constructor(e,t,n,r,i,o,a,l,u=new BQ){super(),this._bufferService=e,this._charsetService=t,this._coreService=n,this._logService=r,this._optionsService=i,this._oscLinkService=o,this._coreMouseService=a,this._unicodeService=l,this._parser=u,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new aY,this._utf8Decoder=new lY,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=pr.clone(),this._eraseAttrDataInternal=pr.clone(),this._onRequestBell=this._register(new qe),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new qe),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new qe),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new qe),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new qe),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new qe),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new qe),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new qe),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new qe),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new qe),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new qe),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new qe),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new qe),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new fy(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(d=>this._activeBuffer=d.activeBuffer)),this._parser.setCsiHandlerFallback((d,f)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(d),params:f.toArray()})}),this._parser.setEscHandlerFallback(d=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(d)})}),this._parser.setExecuteHandlerFallback(d=>{this._logService.debug("Unknown EXECUTE code: ",{code:d})}),this._parser.setOscHandlerFallback((d,f,m)=>{this._logService.debug("Unknown OSC code: ",{identifier:d,action:f,data:m})}),this._parser.setDcsHandlerFallback((d,f,m)=>{f==="HOOK"&&(m=m.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(d),action:f,payload:m})}),this._parser.setPrintHandler((d,f,m)=>this.print(d,f,m)),this._parser.registerCsiHandler({final:"@"},d=>this.insertChars(d)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},d=>this.scrollLeft(d)),this._parser.registerCsiHandler({final:"A"},d=>this.cursorUp(d)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},d=>this.scrollRight(d)),this._parser.registerCsiHandler({final:"B"},d=>this.cursorDown(d)),this._parser.registerCsiHandler({final:"C"},d=>this.cursorForward(d)),this._parser.registerCsiHandler({final:"D"},d=>this.cursorBackward(d)),this._parser.registerCsiHandler({final:"E"},d=>this.cursorNextLine(d)),this._parser.registerCsiHandler({final:"F"},d=>this.cursorPrecedingLine(d)),this._parser.registerCsiHandler({final:"G"},d=>this.cursorCharAbsolute(d)),this._parser.registerCsiHandler({final:"H"},d=>this.cursorPosition(d)),this._parser.registerCsiHandler({final:"I"},d=>this.cursorForwardTab(d)),this._parser.registerCsiHandler({final:"J"},d=>this.eraseInDisplay(d,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},d=>this.eraseInDisplay(d,!0)),this._parser.registerCsiHandler({final:"K"},d=>this.eraseInLine(d,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},d=>this.eraseInLine(d,!0)),this._parser.registerCsiHandler({final:"L"},d=>this.insertLines(d)),this._parser.registerCsiHandler({final:"M"},d=>this.deleteLines(d)),this._parser.registerCsiHandler({final:"P"},d=>this.deleteChars(d)),this._parser.registerCsiHandler({final:"S"},d=>this.scrollUp(d)),this._parser.registerCsiHandler({final:"T"},d=>this.scrollDown(d)),this._parser.registerCsiHandler({final:"X"},d=>this.eraseChars(d)),this._parser.registerCsiHandler({final:"Z"},d=>this.cursorBackwardTab(d)),this._parser.registerCsiHandler({final:"`"},d=>this.charPosAbsolute(d)),this._parser.registerCsiHandler({final:"a"},d=>this.hPositionRelative(d)),this._parser.registerCsiHandler({final:"b"},d=>this.repeatPrecedingCharacter(d)),this._parser.registerCsiHandler({final:"c"},d=>this.sendDeviceAttributesPrimary(d)),this._parser.registerCsiHandler({prefix:">",final:"c"},d=>this.sendDeviceAttributesSecondary(d)),this._parser.registerCsiHandler({final:"d"},d=>this.linePosAbsolute(d)),this._parser.registerCsiHandler({final:"e"},d=>this.vPositionRelative(d)),this._parser.registerCsiHandler({final:"f"},d=>this.hVPosition(d)),this._parser.registerCsiHandler({final:"g"},d=>this.tabClear(d)),this._parser.registerCsiHandler({final:"h"},d=>this.setMode(d)),this._parser.registerCsiHandler({prefix:"?",final:"h"},d=>this.setModePrivate(d)),this._parser.registerCsiHandler({final:"l"},d=>this.resetMode(d)),this._parser.registerCsiHandler({prefix:"?",final:"l"},d=>this.resetModePrivate(d)),this._parser.registerCsiHandler({final:"m"},d=>this.charAttributes(d)),this._parser.registerCsiHandler({final:"n"},d=>this.deviceStatus(d)),this._parser.registerCsiHandler({prefix:"?",final:"n"},d=>this.deviceStatusPrivate(d)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},d=>this.softReset(d)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},d=>this.setCursorStyle(d)),this._parser.registerCsiHandler({final:"r"},d=>this.setScrollRegion(d)),this._parser.registerCsiHandler({final:"s"},d=>this.saveCursor(d)),this._parser.registerCsiHandler({final:"t"},d=>this.windowOptions(d)),this._parser.registerCsiHandler({final:"u"},d=>this.restoreCursor(d)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},d=>this.insertColumns(d)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},d=>this.deleteColumns(d)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},d=>this.selectProtected(d)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},d=>this.requestMode(d,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},d=>this.requestMode(d,!1)),this._parser.setExecuteHandler(Ie.BEL,()=>this.bell()),this._parser.setExecuteHandler(Ie.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(Ie.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(Ie.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(Ie.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(Ie.BS,()=>this.backspace()),this._parser.setExecuteHandler(Ie.HT,()=>this.tab()),this._parser.setExecuteHandler(Ie.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(Ie.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Jh.IND,()=>this.index()),this._parser.setExecuteHandler(Jh.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Jh.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new Vi(d=>(this.setTitle(d),this.setIconName(d),!0))),this._parser.registerOscHandler(1,new Vi(d=>this.setIconName(d))),this._parser.registerOscHandler(2,new Vi(d=>this.setTitle(d))),this._parser.registerOscHandler(4,new Vi(d=>this.setOrReportIndexedColor(d))),this._parser.registerOscHandler(8,new Vi(d=>this.setHyperlink(d))),this._parser.registerOscHandler(10,new Vi(d=>this.setOrReportFgColor(d))),this._parser.registerOscHandler(11,new Vi(d=>this.setOrReportBgColor(d))),this._parser.registerOscHandler(12,new Vi(d=>this.setOrReportCursorColor(d))),this._parser.registerOscHandler(104,new Vi(d=>this.restoreIndexedColor(d))),this._parser.registerOscHandler(110,new Vi(d=>this.restoreFgColor(d))),this._parser.registerOscHandler(111,new Vi(d=>this.restoreBgColor(d))),this._parser.registerOscHandler(112,new Vi(d=>this.restoreCursorColor(d))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let d in Rr)this._parser.registerEscHandler({intermediates:"(",final:d},()=>this.selectCharset("("+d)),this._parser.registerEscHandler({intermediates:")",final:d},()=>this.selectCharset(")"+d)),this._parser.registerEscHandler({intermediates:"*",final:d},()=>this.selectCharset("*"+d)),this._parser.registerEscHandler({intermediates:"+",final:d},()=>this.selectCharset("+"+d)),this._parser.registerEscHandler({intermediates:"-",final:d},()=>this.selectCharset("-"+d)),this._parser.registerEscHandler({intermediates:".",final:d},()=>this.selectCharset("."+d)),this._parser.registerEscHandler({intermediates:"/",final:d},()=>this.selectCharset("/"+d));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(d=>(this._logService.error("Parsing error: ",d),d)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new s2((d,f)=>this.requestStatusString(d,f)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,n,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=n,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,n)=>setTimeout(()=>n("#SLOW_TIMEOUT"),u2))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${u2} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let n,r=this._activeBuffer.x,i=this._activeBuffer.y,o=0,a=this._parseStack.paused;if(a){if(n=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(n),n;r=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>Ws&&(o=this._parseStack.position+Ws)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e=="string"?` "${e}"`:` "${Array.prototype.map.call(e,d=>String.fromCharCode(d)).join("")}"`}`),this._logService.logLevel===0&&this._logService.trace("parsing data (codes)",typeof e=="string"?e.split("").map(d=>d.charCodeAt(0)):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<Ws&&(this._parseBuffer=new Uint32Array(Math.min(e.length,Ws))),a||this._dirtyRowTracker.clearRange(),e.length>Ws)for(let d=o;d<e.length;d+=Ws){let f=d+Ws<e.length?d+Ws:e.length,m=typeof e=="string"?this._stringDecoder.decode(e.substring(d,f),this._parseBuffer):this._utf8Decoder.decode(e.subarray(d,f),this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,m))return this._preserveStack(r,i,m,d),this._logSlowResolvingAsync(n),n}else if(!a){let d=typeof e=="string"?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(n=this._parser.parse(this._parseBuffer,d))return this._preserveStack(r,i,d,0),this._logSlowResolvingAsync(n),n}(this._activeBuffer.x!==r||this._activeBuffer.y!==i)&&this._onCursorMove.fire();let l=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),u=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);u<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(u,this._bufferService.rows-1),end:Math.min(l,this._bufferService.rows-1)})}print(e,t,n){let r,i,o=this._charsetService.charset,a=this._optionsService.rawOptions.screenReaderMode,l=this._bufferService.cols,u=this._coreService.decPrivateModes.wraparound,d=this._coreService.modes.insertMode,f=this._curAttrData,m=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&n-t>0&&m.getWidth(this._activeBuffer.x-1)===2&&m.setCellFromCodepoint(this._activeBuffer.x-1,0,1,f);let g=this._parser.precedingJoinState;for(let v=t;v<n;++v){if(r=e[v],r<127&&o){let C=o[String.fromCharCode(r)];C&&(r=C.charCodeAt(0))}let y=this._unicodeService.charProperties(r,g);i=$a.extractWidth(y);let S=$a.extractShouldJoin(y),_=S?$a.extractWidth(g):0;if(g=y,a&&this._onA11yChar.fire(qs(r)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+i-_>l){if(u){let C=m,w=this._activeBuffer.x-_;for(this._activeBuffer.x=_,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),m=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),_>0&&m instanceof du&&m.copyCellsFrom(C,w,0,_,!1);w<l;)C.setCellFromCodepoint(w++,0,1,f)}else if(this._activeBuffer.x=l-1,i===2)continue}if(S&&this._activeBuffer.x){let C=m.getWidth(this._activeBuffer.x-1)?1:2;m.addCodepointToCell(this._activeBuffer.x-C,r,i);for(let w=i-_;--w>=0;)m.setCellFromCodepoint(this._activeBuffer.x++,0,0,f);continue}if(d&&(m.insertCells(this._activeBuffer.x,i-_,this._activeBuffer.getNullCell(f)),m.getWidth(l-1)===2&&m.setCellFromCodepoint(l-1,0,1,f)),m.setCellFromCodepoint(this._activeBuffer.x++,r,i,f),i>0)for(;--i;)m.setCellFromCodepoint(this._activeBuffer.x++,0,0,f)}this._parser.precedingJoinState=g,this._activeBuffer.x<l&&n-t>0&&m.getWidth(this._activeBuffer.x)===0&&!m.hasContent(this._activeBuffer.x)&&m.setCellFromCodepoint(this._activeBuffer.x,0,1,f),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final==="t"&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,n=>c2(n.params[0],this._optionsService.rawOptions.windowOptions)?t(n):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new s2(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new Vi(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);t.hasWidth(this._activeBuffer.x)&&!t.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,n,r=!1,i=!1){let o=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);o.replaceCells(t,n,this._activeBuffer.getNullCell(this._eraseAttrData()),i),r&&(o.isWrapped=!1)}_resetBufferLine(e,t=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n&&(n.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),n.isWrapped=!1)}eraseInDisplay(e,t=!1){var r;this._restrictCursor(this._bufferService.cols);let n;switch(e.params[0]){case 0:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);n<this._bufferService.rows;n++)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(n);break;case 1:for(n=this._activeBuffer.y,this._dirtyRowTracker.markDirty(n),this._eraseInBufferLine(n,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(n+1).isWrapped=!1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(n=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,n-1);n--&&!((r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n))!=null&&r.getTrimmedLength()););for(;n>=0;n--)this._bufferService.scroll(this._eraseAttrData())}else{for(n=this._bufferService.rows,this._dirtyRowTracker.markDirty(n-1);n--;)this._resetBufferLine(n,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let i=this._activeBuffer.lines.length-this._bufferService.rows;i>0&&(this._activeBuffer.lines.trimStart(i),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-i,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-i,0),this._onScroll.fire(0));break}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t);break}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let n=this._activeBuffer.ybase+this._activeBuffer.y,r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-r+1;for(;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(n,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let n=this._activeBuffer.ybase+this._activeBuffer.y,r;for(r=this._bufferService.rows-1-this._activeBuffer.scrollBottom,r=this._bufferService.rows-1+this._activeBuffer.ybase-r;t--;)this._activeBuffer.lines.splice(n,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(pr));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let n=this._activeBuffer.scrollTop;n<=this._activeBuffer.scrollBottom;++n){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+n);r.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),r.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let n=e.params[0]||1,r=$a.extractWidth(t),i=this._activeBuffer.x-r,o=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(i),a=new Uint32Array(o.length*n),l=0;for(let d=0;d<o.length;){let f=o.codePointAt(d)||0;a[l++]=f,d+=f>65535?2:1}let u=l;for(let d=1;d<n;++d)a.copyWithin(u,0,l),u+=l;return this.print(a,0,u),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(Ie.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(Ie.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(Ie.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(Ie.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(Ie.ESC+"[>83;40003;0c")),!0}_is(e){return(this._optionsService.rawOptions.termName+"").indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0;break}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,Sa),this._charsetService.setgCharset(1,Sa),this._charsetService.setgCharset(2,Sa),this._charsetService.setgCharset(3,Sa);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!0;break}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1;break}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!1,this._onRequestRefreshRows.fire(void 0);break}return!0}requestMode(e,t){(S=>(S[S.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",S[S.SET=1]="SET",S[S.RESET=2]="RESET",S[S.PERMANENTLY_SET=3]="PERMANENTLY_SET",S[S.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(void 0||(n={}));let r=this._coreService.decPrivateModes,{activeProtocol:i,activeEncoding:o}=this._coreMouseService,a=this._coreService,{buffers:l,cols:u}=this._bufferService,{active:d,alt:f}=l,m=this._optionsService.rawOptions,g=(S,_)=>(a.triggerDataEvent(`${Ie.ESC}[${t?"":"?"}${S};${_}$y`),!0),v=S=>S?1:2,y=e.params[0];return t?y===2?g(y,4):y===4?g(y,v(a.modes.insertMode)):y===12?g(y,3):y===20?g(y,v(m.convertEol)):g(y,0):y===1?g(y,v(r.applicationCursorKeys)):y===3?g(y,m.windowOptions.setWinLines?u===80?2:u===132?1:0:0):y===6?g(y,v(r.origin)):y===7?g(y,v(r.wraparound)):y===8?g(y,3):y===9?g(y,v(i==="X10")):y===12?g(y,v(m.cursorBlink)):y===25?g(y,v(!a.isCursorHidden)):y===45?g(y,v(r.reverseWraparound)):y===66?g(y,v(r.applicationKeypad)):y===67?g(y,4):y===1e3?g(y,v(i==="VT200")):y===1002?g(y,v(i==="DRAG")):y===1003?g(y,v(i==="ANY")):y===1004?g(y,v(r.sendFocus)):y===1005?g(y,4):y===1006?g(y,v(o==="SGR")):y===1015?g(y,4):y===1016?g(y,v(o==="SGR_PIXELS")):y===1048?g(y,1):y===47||y===1047||y===1049?g(y,v(d===f)):y===2004?g(y,v(r.bracketedPasteMode)):y===2026?g(y,v(r.synchronizedOutput)):g(y,0)}_updateAttrColor(e,t,n,r,i){return t===2?(e|=50331648,e&=-16777216,e|=od.fromColorRGB([n,r,i])):t===5&&(e&=-50331904,e|=33554432|n&255),e}_extractColor(e,t,n){let r=[0,0,-1,0,0,0],i=0,o=0;do{if(r[o+i]=e.params[t+o],e.hasSubParams(t+o)){let a=e.getSubParams(t+o),l=0;do r[1]===5&&(i=1),r[o+l+1+i]=a[l];while(++l<a.length&&l+o+1+i<r.length);break}if(r[1]===5&&o+i>=2||r[1]===2&&o+i>=5)break;r[1]&&(i=1)}while(++o+t<e.length&&o+i<r.length);for(let a=2;a<r.length;++a)r[a]===-1&&(r[a]=0);switch(r[0]){case 38:n.fg=this._updateAttrColor(n.fg,r[1],r[3],r[4],r[5]);break;case 48:n.bg=this._updateAttrColor(n.bg,r[1],r[3],r[4],r[5]);break;case 58:n.extended=n.extended.clone(),n.extended.underlineColor=this._updateAttrColor(n.extended.underlineColor,r[1],r[3],r[4],r[5])}return o}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=pr.fg,e.bg=pr.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,n,r=this._curAttrData;for(let i=0;i<t;i++)n=e.params[i],n>=30&&n<=37?(r.fg&=-50331904,r.fg|=16777216|n-30):n>=40&&n<=47?(r.bg&=-50331904,r.bg|=16777216|n-40):n>=90&&n<=97?(r.fg&=-50331904,r.fg|=16777216|n-90|8):n>=100&&n<=107?(r.bg&=-50331904,r.bg|=16777216|n-100|8):n===0?this._processSGR0(r):n===1?r.fg|=134217728:n===3?r.bg|=67108864:n===4?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):n===5?r.fg|=536870912:n===7?r.fg|=67108864:n===8?r.fg|=1073741824:n===9?r.fg|=2147483648:n===2?r.bg|=134217728:n===21?this._processUnderline(2,r):n===22?(r.fg&=-134217729,r.bg&=-134217729):n===23?r.bg&=-67108865:n===24?(r.fg&=-268435457,this._processUnderline(0,r)):n===25?r.fg&=-536870913:n===27?r.fg&=-67108865:n===28?r.fg&=-1073741825:n===29?r.fg&=2147483647:n===39?(r.fg&=-67108864,r.fg|=pr.fg&16777215):n===49?(r.bg&=-67108864,r.bg|=pr.bg&16777215):n===38||n===48||n===58?i+=this._extractColor(e,i,r):n===53?r.bg|=1073741824:n===55?r.bg&=-1073741825:n===59?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):n===100?(r.fg&=-67108864,r.fg|=pr.fg&16777215,r.bg&=-67108864,r.bg|=pr.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",n);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${Ie.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${Ie.ESC}[${t};${n}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let t=this._activeBuffer.y+1,n=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${Ie.ESC}[?${t};${n}R`);break}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=pr.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle="block";break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle="underline";break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle="bar";break}let n=t%2===1;this._coreService.decPrivateModes.cursorBlink=n}return!0}setScrollRegion(e){let t=e.params[0]||1,n;return(e.length<2||(n=e.params[1])>this._bufferService.rows||n===0)&&(n=this._bufferService.rows),n>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=n-1,this._setCursor(0,0)),!0}windowOptions(e){if(!c2(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${Ie.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>l2&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>l2&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop());break}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],n=e.split(";");for(;n.length>1;){let r=n.shift(),i=n.shift();if(/^\d+$/.exec(r)){let o=parseInt(r);if(h2(o))if(i==="?")t.push({type:0,index:o});else{let a=a2(i);a&&t.push({type:1,index:o,color:a})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(";");if(t===-1)return!0;let n=e.slice(0,t).trim(),r=e.slice(t+1);return r?this._createHyperlink(n,r):n.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let n=e.split(":"),r,i=n.findIndex(o=>o.startsWith("id="));return i!==-1&&(r=n[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let n=e.split(";");for(let r=0;r<n.length&&!(t>=this._specialColors.length);++r,++t)if(n[r]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let i=a2(n[r]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],n=e.split(";");for(let r=0;r<n.length;++r)if(/^\d+$/.exec(n[r])){let i=parseInt(n[r]);h2(i)&&t.push({type:2,index:i})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,Sa),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset(HQ[e[0]],Rr[e[1]]||Sa),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=pr.clone(),this._eraseAttrDataInternal=pr.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new fo;e.content=1<<22|69,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let n=this._activeBuffer.ybase+this._activeBuffer.y+t,r=this._activeBuffer.lines.get(n);r&&(r.fill(e),r.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let n=a=>(this._coreService.triggerDataEvent(`${Ie.ESC}${a}${Ie.ESC}\\`),!0),r=this._bufferService.buffer,i=this._optionsService.rawOptions;return n(e==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:e==='"p'?'P1$r61;1"p':e==="r"?`P1$r${r.scrollTop+1};${r.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[i.cursorStyle]-(i.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},fy=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(d2=e,e=t,t=d2),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};fy=ar([ut(0,yi)],fy);function h2(e){return 0<=e&&e<256}var WQ=5e7,f2=12,VQ=50,UQ=class extends tn{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new qe),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let n;for(;n=this._writeBuffer.shift();){this._action(n);let r=this._callbacks.shift();r&&r()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>WQ)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let n=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let r=this._writeBuffer[this._bufferOffset],i=this._action(r,t);if(i){let a=l=>performance.now()-n>=f2?setTimeout(()=>this._innerWrite(0,l)):this._innerWrite(n,l);i.catch(l=>(queueMicrotask(()=>{throw l}),Promise.resolve(!1))).then(a);return}let o=this._callbacks[this._bufferOffset];if(o&&o(),this._bufferOffset++,this._pendingData-=r.length,performance.now()-n>=f2)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>VQ&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},my=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let l=t.addMarker(t.ybase+t.y),u={data:e,id:this._nextId++,lines:[l]};return l.onDispose(()=>this._removeMarkerFromLink(u,l)),this._dataByLinkId.set(u.id,u),u.id}let n=e,r=this._getEntryIdKey(n),i=this._entriesWithId.get(r);if(i)return this.addLineToLink(i.id,t.ybase+t.y),i.id;let o=t.addMarker(t.ybase+t.y),a={id:this._nextId++,key:this._getEntryIdKey(n),data:n,lines:[o]};return o.onDispose(()=>this._removeMarkerFromLink(a,o)),this._entriesWithId.set(a.key,a),this._dataByLinkId.set(a.id,a),a.id}addLineToLink(e,t){let n=this._dataByLinkId.get(e);if(n&&n.lines.every(r=>r.line!==t)){let r=this._bufferService.buffer.addMarker(t);n.lines.push(r),r.onDispose(()=>this._removeMarkerFromLink(n,r))}}getLinkData(e){var t;return(t=this._dataByLinkId.get(e))==null?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let n=e.lines.indexOf(t);n!==-1&&(e.lines.splice(n,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};my=ar([ut(0,yi)],my);var m2=!1,qQ=class extends tn{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new ic),this._onBinary=this._register(new qe),this.onBinary=this._onBinary.event,this._onData=this._register(new qe),this.onData=this._onData.event,this._onLineFeed=this._register(new qe),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new qe),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new qe),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new qe),this._instantiationService=new gQ,this.optionsService=this._register(new kQ(e)),this._instantiationService.setService(bi,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(cy)),this._instantiationService.setService(yi,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(ly)),this._instantiationService.setService(y3,this._logService),this.coreService=this._register(this._instantiationService.createInstance(uy)),this._instantiationService.setService(Ka,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(dy)),this._instantiationService.setService(v3,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance($a)),this._instantiationService.setService(hY,this.unicodeService),this._charsetService=this._instantiationService.createInstance(OQ),this._instantiationService.setService(dY,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(my),this._instantiationService.setService(b3,this._oscLinkService),this._inputHandler=this._register(new FQ(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(Gr.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(Gr.forward(this._bufferService.onResize,this._onResize)),this._register(Gr.forward(this.coreService.onData,this._onData)),this._register(Gr.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new UQ((t,n)=>this._inputHandler.parse(t,n))),this._register(Gr.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new qe),this._onScroll.event(e=>{var t;(t=this._onScrollApi)==null||t.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!m2&&(this._logService.warn("writeSync is unreliable and will be removed soon."),m2=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,J3),t=Math.max(t,Q3),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend==="conpty"&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(o2.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(o2(this._bufferService),!1))),this._windowsWrappingHeuristics.value=Yn(()=>{for(let t of e)t.dispose()})}}},KQ={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};function GQ(e,t,n,r){var a;let i={type:0,cancel:!1,key:void 0},o=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key==="UIKeyInputUpArrow"?t?i.key=Ie.ESC+"OA":i.key=Ie.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?i.key=Ie.ESC+"OD":i.key=Ie.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?i.key=Ie.ESC+"OC":i.key=Ie.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?i.key=Ie.ESC+"OB":i.key=Ie.ESC+"[B");break;case 8:i.key=e.ctrlKey?"\b":Ie.DEL,e.altKey&&(i.key=Ie.ESC+i.key);break;case 9:if(e.shiftKey){i.key=Ie.ESC+"[Z";break}i.key=Ie.HT,i.cancel=!0;break;case 13:i.key=e.altKey?Ie.ESC+Ie.CR:Ie.CR,i.cancel=!0;break;case 27:i.key=Ie.ESC,e.altKey&&(i.key=Ie.ESC+Ie.ESC),i.cancel=!0;break;case 37:if(e.metaKey)break;o?i.key=Ie.ESC+"[1;"+(o+1)+"D":t?i.key=Ie.ESC+"OD":i.key=Ie.ESC+"[D";break;case 39:if(e.metaKey)break;o?i.key=Ie.ESC+"[1;"+(o+1)+"C":t?i.key=Ie.ESC+"OC":i.key=Ie.ESC+"[C";break;case 38:if(e.metaKey)break;o?i.key=Ie.ESC+"[1;"+(o+1)+"A":t?i.key=Ie.ESC+"OA":i.key=Ie.ESC+"[A";break;case 40:if(e.metaKey)break;o?i.key=Ie.ESC+"[1;"+(o+1)+"B":t?i.key=Ie.ESC+"OB":i.key=Ie.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(i.key=Ie.ESC+"[2~");break;case 46:o?i.key=Ie.ESC+"[3;"+(o+1)+"~":i.key=Ie.ESC+"[3~";break;case 36:o?i.key=Ie.ESC+"[1;"+(o+1)+"H":t?i.key=Ie.ESC+"OH":i.key=Ie.ESC+"[H";break;case 35:o?i.key=Ie.ESC+"[1;"+(o+1)+"F":t?i.key=Ie.ESC+"OF":i.key=Ie.ESC+"[F";break;case 33:e.shiftKey?i.type=2:e.ctrlKey?i.key=Ie.ESC+"[5;"+(o+1)+"~":i.key=Ie.ESC+"[5~";break;case 34:e.shiftKey?i.type=3:e.ctrlKey?i.key=Ie.ESC+"[6;"+(o+1)+"~":i.key=Ie.ESC+"[6~";break;case 112:o?i.key=Ie.ESC+"[1;"+(o+1)+"P":i.key=Ie.ESC+"OP";break;case 113:o?i.key=Ie.ESC+"[1;"+(o+1)+"Q":i.key=Ie.ESC+"OQ";break;case 114:o?i.key=Ie.ESC+"[1;"+(o+1)+"R":i.key=Ie.ESC+"OR";break;case 115:o?i.key=Ie.ESC+"[1;"+(o+1)+"S":i.key=Ie.ESC+"OS";break;case 116:o?i.key=Ie.ESC+"[15;"+(o+1)+"~":i.key=Ie.ESC+"[15~";break;case 117:o?i.key=Ie.ESC+"[17;"+(o+1)+"~":i.key=Ie.ESC+"[17~";break;case 118:o?i.key=Ie.ESC+"[18;"+(o+1)+"~":i.key=Ie.ESC+"[18~";break;case 119:o?i.key=Ie.ESC+"[19;"+(o+1)+"~":i.key=Ie.ESC+"[19~";break;case 120:o?i.key=Ie.ESC+"[20;"+(o+1)+"~":i.key=Ie.ESC+"[20~";break;case 121:o?i.key=Ie.ESC+"[21;"+(o+1)+"~":i.key=Ie.ESC+"[21~";break;case 122:o?i.key=Ie.ESC+"[23;"+(o+1)+"~":i.key=Ie.ESC+"[23~";break;case 123:o?i.key=Ie.ESC+"[24;"+(o+1)+"~":i.key=Ie.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?i.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?i.key=Ie.NUL:e.keyCode>=51&&e.keyCode<=55?i.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?i.key=Ie.DEL:e.keyCode===219?i.key=Ie.ESC:e.keyCode===220?i.key=Ie.FS:e.keyCode===221&&(i.key=Ie.GS);else if((!n||r)&&e.altKey&&!e.metaKey){let l=(a=KQ[e.keyCode])==null?void 0:a[e.shiftKey?1:0];if(l)i.key=Ie.ESC+l;else if(e.keyCode>=65&&e.keyCode<=90){let u=e.ctrlKey?e.keyCode-64:e.keyCode+32,d=String.fromCharCode(u);e.shiftKey&&(d=d.toUpperCase()),i.key=Ie.ESC+d}else if(e.keyCode===32)i.key=Ie.ESC+(e.ctrlKey?Ie.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let u=e.code.slice(3,4);e.shiftKey||(u=u.toLowerCase()),i.key=Ie.ESC+u,i.cancel=!0}}else n&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(i.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?i.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(i.key=Ie.US),e.key==="@"&&(i.key=Ie.NUL));break}return i}var dr=0,XQ=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new Lf,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new Lf,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((i,o)=>this._getKey(i)-this._getKey(o)),t=0,n=0,r=new Array(this._array.length+this._insertedValues.length);for(let i=0;i<r.length;i++)n>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[n])?(r[i]=e[t],t++):r[i]=this._array[n++];this._array=r,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(dr=this._search(t),dr===-1)||this._getKey(this._array[dr])!==t)return!1;do if(this._array[dr]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(dr),!0;while(++dr<this._array.length&&this._getKey(this._array[dr])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((i,o)=>i-o),t=0,n=new Array(this._array.length-e.length),r=0;for(let i=0;i<this._array.length;i++)e[t]===i?t++:n[r++]=this._array[i];this._array=n,this._deletedIndices.length=0,this._isFlushingDeleted=!1}_flushCleanupDeleted(){!this._isFlushingDeleted&&this._deletedIndices.length>0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(dr=this._search(e),!(dr<0||dr>=this._array.length)&&this._getKey(this._array[dr])===e))do yield this._array[dr];while(++dr<this._array.length&&this._getKey(this._array[dr])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(dr=this._search(e),!(dr<0||dr>=this._array.length)&&this._getKey(this._array[dr])===e))do t(this._array[dr]);while(++dr<this._array.length&&this._getKey(this._array[dr])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,n=this._array.length-1;for(;n>=t;){let r=t+n>>1,i=this._getKey(this._array[r]);if(i>e)n=r-1;else if(i<e)t=r+1;else{for(;r>0&&this._getKey(this._array[r-1])===e;)r--;return r}}return t}},gv=0,p2=0,YQ=class extends tn{constructor(){super(),this._decorations=new XQ(e=>e==null?void 0:e.marker.line),this._onDecorationRegistered=this._register(new qe),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new qe),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(Yn(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new JQ(e);if(t){let n=t.marker.onDispose(()=>t.dispose()),r=t.onDispose(()=>{r.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),n.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,n){let r=0,i=0;for(let o of this._decorations.getKeyIterator(t))r=o.options.x??0,i=r+(o.options.width??1),e>=r&&e<i&&(!n||(o.options.layer??"bottom")===n)&&(yield o)}forEachDecorationAtCell(e,t,n,r){this._decorations.forEachByKey(t,i=>{gv=i.options.x??0,p2=gv+(i.options.width??1),e>=gv&&e<p2&&(!n||(i.options.layer??"bottom")===n)&&r(i)})}},JQ=class extends Qs{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new qe),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new qe),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=nr.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=nr.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},QQ=1e3,ZQ=class{constructor(e,t=QQ){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,n){this._rowCount=n,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t;let r=performance.now();if(r-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){let i=r-this._lastRefreshMs,o=this._debounceThresholdMS-i;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},o)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},g2=20,Af=class extends tn{constructor(e,t,n,r){super(),this._terminal=e,this._coreBrowserService=n,this._renderService=r,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let i=this._coreBrowserService.mainDocument;this._accessibilityContainer=i.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=i.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let o=0;o<this._terminal.rows;o++)this._rowElements[o]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[o]);if(this._topBoundaryFocusListener=o=>this._handleBoundaryFocus(o,0),this._bottomBoundaryFocusListener=o=>this._handleBoundaryFocus(o,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=i.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new ZQ(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this._register(this._terminal.onResize(o=>this._handleResize(o.rows))),this._register(this._terminal.onRender(o=>this._refreshRows(o.start,o.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(o=>this._handleChar(o))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
599
|
-
`))),this._register(this._terminal.onA11yTab(o=>this._handleTab(o))),this._register(this._terminal.onKey(o=>this._handleKey(o.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(Ut(i,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(Yn(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<g2+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
600
|
-
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===g2+1&&(this._liveRegion.textContent+=M0.get())))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let n=this._terminal.buffer,r=n.lines.length.toString();for(let i=e;i<=t;i++){let o=n.lines.get(n.ydisp+i),a=[],l=(o==null?void 0:o.translateToString(!0,void 0,void 0,a))||"",u=(n.ydisp+i+1).toString(),d=this._rowElements[i];d&&(l.length===0?(d.textContent=" ",this._rowColumns.set(d,[0,1])):(d.textContent=l,this._rowColumns.set(d,a)),d.setAttribute("aria-posinset",u),d.setAttribute("aria-setsize",r),this._alignRowWidth(d))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let n=e.target,r=this._rowElements[t===0?1:this._rowElements.length-2],i=n.getAttribute("aria-posinset"),o=t===0?"1":`${this._terminal.buffer.lines.length}`;if(i===o||e.relatedTarget!==r)return;let a,l;if(t===0?(a=n,l=this._rowElements.pop(),this._rowContainer.removeChild(l)):(a=this._rowElements.shift(),l=n,this._rowContainer.removeChild(a)),a.removeEventListener("focus",this._topBoundaryFocusListener),l.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let u=this._createAccessibilityTreeNode();this._rowElements.unshift(u),this._rowContainer.insertAdjacentElement("afterbegin",u)}else{let u=this._createAccessibilityTreeNode();this._rowElements.push(u),this._rowContainer.appendChild(u)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){var l;if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error("anchorNode and/or focusNode are null");return}let t={node:e.anchorNode,offset:e.anchorOffset},n={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(n.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===n.node&&t.offset>n.offset)&&([t,n]=[n,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let r=this._rowElements.slice(-1)[0];if(n.node.compareDocumentPosition(r)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(n={node:r,offset:((l=r.textContent)==null?void 0:l.length)??0}),!this._rowContainer.contains(n.node))return;let i=({node:u,offset:d})=>{let f=u instanceof Text?u.parentNode:u,m=parseInt(f==null?void 0:f.getAttribute("aria-posinset"),10)-1;if(isNaN(m))return console.warn("row is invalid. Race condition?"),null;let g=this._rowColumns.get(f);if(!g)return console.warn("columns is null. Race condition?"),null;let v=d<g.length?g[d]:g.slice(-1)[0]+1;return v>=this._terminal.cols&&(++m,v=0),{row:m,column:v}},o=i(t),a=i(n);if(!(!o||!a)){if(o.row>a.row||o.row===a.row&&o.column>=a.column)throw new Error("invalid range");this._terminal.select(o.column,o.row,(a.row-o.row)*this._terminal.cols-o.column+a.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){var i,o;e.style.transform="";let t=e.getBoundingClientRect().width,n=(o=(i=this._rowColumns.get(e))==null?void 0:i.slice(-1))==null?void 0:o[0];if(!n)return;let r=n*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${r/t})`}};Af=ar([ut(1,Mb),ut(2,Ss),ut(3,Cs)],Af);var py=class extends tn{constructor(e,t,n,r,i){super(),this._element=e,this._mouseService=t,this._renderService=n,this._bufferService=r,this._linkProviderService=i,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new qe),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new qe),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(Yn(()=>{var o;Aa(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,(o=this._activeProviderReplies)==null||o.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(Ut(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(Ut(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(Ut(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(Ut(this._element,"mouseup",this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let n=e.composedPath();for(let r=0;r<n.length;r++){let i=n[r];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}(!this._lastBufferCell||t.x!==this._lastBufferCell.x||t.y!==this._lastBufferCell.y)&&(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized){this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1;return}this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){var r,i;(!this._activeProviderReplies||!t)&&((r=this._activeProviderReplies)==null||r.forEach(o=>{o==null||o.forEach(a=>{a.link.dispose&&a.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(let[o,a]of this._linkProviderService.linkProviders.entries())t?(i=this._activeProviderReplies)!=null&&i.get(o)&&(n=this._checkLinkProviderResult(o,e,n)):a.provideLinks(e.y,l=>{var d,f;if(this._isMouseOut)return;let u=l==null?void 0:l.map(m=>({link:m}));(d=this._activeProviderReplies)==null||d.set(o,u),n=this._checkLinkProviderResult(o,e,n),((f=this._activeProviderReplies)==null?void 0:f.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let n=new Set;for(let r=0;r<t.size;r++){let i=t.get(r);if(i)for(let o=0;o<i.length;o++){let a=i[o],l=a.link.range.start.y<e?0:a.link.range.start.x,u=a.link.range.end.y>e?this._bufferService.cols:a.link.range.end.x;for(let d=l;d<=u;d++){if(n.has(d)){i.splice(o--,1);break}n.add(d)}}}}_checkLinkProviderResult(e,t,n){var o;if(!this._activeProviderReplies)return n;let r=this._activeProviderReplies.get(e),i=!1;for(let a=0;a<e;a++)(!this._activeProviderReplies.has(a)||this._activeProviderReplies.get(a))&&(i=!0);if(!i&&r){let a=r.find(l=>this._linkAtPosition(l.link,t));a&&(n=!0,this._handleNewLink(a))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!n)for(let a=0;a<this._activeProviderReplies.size;a++){let l=(o=this._activeProviderReplies.get(a))==null?void 0:o.find(u=>this._linkAtPosition(u.link,t));if(l){n=!0,this._handleNewLink(l);break}}return n}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&eZ(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,Aa(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var n,r;return(r=(n=this._currentLink)==null?void 0:n.state)==null?void 0:r.decorations.pointerCursor},set:n=>{var r;(r=this._currentLink)!=null&&r.state&&this._currentLink.state.decorations.pointerCursor!==n&&(this._currentLink.state.decorations.pointerCursor=n,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",n))}},underline:{get:()=>{var n,r;return(r=(n=this._currentLink)==null?void 0:n.state)==null?void 0:r.decorations.underline},set:n=>{var r,i,o;(r=this._currentLink)!=null&&r.state&&((o=(i=this._currentLink)==null?void 0:i.state)==null?void 0:o.decorations.underline)!==n&&(this._currentLink.state.decorations.underline=n,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,n))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(n=>{if(!this._currentLink)return;let r=n.start===0?0:n.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+n.end;if(this._currentLink.link.range.start.y>=r&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(r,i),this._lastMouseEvent)){let o=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);o&&this._askForLink(o,!1)}})))}_linkHover(e,t,n){var r;(r=this._currentLink)!=null&&r.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)}_fireUnderlineEvent(e,t){let n=e.range,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)}_linkLeave(e,t,n){var r;(r=this._currentLink)!=null&&r.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)}_linkAtPosition(e,t){let n=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,i=t.y*this._bufferService.cols+t.x;return n<=i&&i<=r}_positionFromMouseEvent(e,t,n){let r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}}};py=ar([ut(1,jb),ut(2,Cs),ut(3,yi),ut(4,S3)],py);function eZ(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var tZ=class extends qQ{constructor(e={}){super(e),this._linkifier=this._register(new ic),this.browser=D3,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new ic),this._onCursorMove=this._register(new qe),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new qe),this.onKey=this._onKey.event,this._onRender=this._register(new qe),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new qe),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new qe),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new qe),this.onBell=this._onBell.event,this._onFocus=this._register(new qe),this._onBlur=this._register(new qe),this._onA11yCharEmitter=this._register(new qe),this._onA11yTabEmitter=this._register(new qe),this._onWillOpen=this._register(new qe),this._setup(),this._decorationService=this._instantiationService.createInstance(YQ),this._instantiationService.setService(sd,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(VJ),this._instantiationService.setService(S3,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(z0)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh((t==null?void 0:t.start)??0,(t==null?void 0:t.end)??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(t=>this._reportWindowsOptions(t))),this._register(this._inputHandler.onColor(t=>this._handleColorEvent(t))),this._register(Gr.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(Gr.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(Gr.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(Gr.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(Yn(()=>{var t,n;this._customKeyEventHandler=void 0,(n=(t=this.element)==null?void 0:t.parentNode)==null||n.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let n,r="";switch(t.index){case 256:n="foreground",r="10";break;case 257:n="background",r="11";break;case 258:n="cursor",r="12";break;default:n="ansi",r="4;"+t.index}switch(t.type){case 0:let i=Vn.toColorRGB(n==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[n]);this.coreService.triggerDataEvent(`${Ie.ESC}]${r};${DQ(i)}${L3.ST}`);break;case 1:if(n==="ansi")this._themeService.modifyColors(o=>o.ansi[t.index]=vr.toColor(...t.color));else{let o=n;this._themeService.modifyColors(a=>a[o]=vr.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(Af,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Ie.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return(e=this.textarea)==null?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Ie.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let n=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,i=t.getWidth(n),o=this._renderService.dimensions.css.cell.width*i,a=this.buffer.y*this._renderService.dimensions.css.cell.height,l=n*this._renderService.dimensions.css.cell.width;this.textarea.style.left=l+"px",this.textarea.style.top=a+"px",this.textarea.style.width=o+"px",this.textarea.style.height=r+"px",this.textarea.style.lineHeight=r+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(Ut(this.element,"copy",t=>{this.hasSelection()&&oY(t,this._selectionService)}));let e=t=>sY(t,this.textarea,this.coreService,this.optionsService);this._register(Ut(this.textarea,"paste",e)),this._register(Ut(this.element,"paste",e)),H3?this._register(Ut(this.element,"mousedown",t=>{t.button===2&&kx(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(Ut(this.element,"contextmenu",t=>{kx(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),Wb&&this._register(Ut(this.element,"auxclick",t=>{t.button===1&&h3(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(Ut(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(Ut(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(Ut(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(Ut(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(Ut(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(Ut(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(Ut(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){var i;if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((i=this.element)==null?void 0:i.ownerDocument.defaultView)&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._register(Ut(this.screenElement,"mousemove",o=>this.updateCursorStyle(o))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let n=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",N0.get()),V3||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange("disableStdin",()=>n.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(FJ,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(Ss,this._coreBrowserService),this._register(Ut(this.textarea,"focus",o=>this._handleTextAreaFocus(o))),this._register(Ut(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(ry,this._document,this._helperContainer),this._instantiationService.setService(Rm,this._charSizeService),this._themeService=this._instantiationService.createInstance(ay),this._instantiationService.setService(fc,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(zf),this._instantiationService.setService(_3,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(oy,this.rows,this.screenElement)),this._instantiationService.setService(Cs,this._renderService),this._register(this._renderService.onRenderedViewportChange(o=>this._onRender.fire(o))),this.onResize(o=>this._renderService.resize(o.cols,o.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(ey,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(iy),this._instantiationService.setService(jb,this._mouseService);let r=this._linkifier.value=this._register(this._instantiationService.createInstance(py,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(Q0,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(o=>{super.scrollLines(o,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(sy,this.element,this.screenElement,r)),this._instantiationService.setService(mY,this._selectionService),this._register(this._selectionService.onRequestScrollLines(o=>this.scrollLines(o.amount,o.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(o=>this._renderService.handleSelectionChanged(o.start,o.end,o.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(o=>{this.textarea.value=o,this.textarea.focus(),this.textarea.select()})),this._register(Gr.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{var o;this._selectionService.refresh(),(o=this._viewport)==null||o.queueSync()})),this._register(this._instantiationService.createInstance(Z0,this.screenElement)),this._register(Ut(this.element,"mousedown",o=>this._selectionService.handleMouseDown(o))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(Af,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",o=>this._handleScreenReaderModeOptionChange(o))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(jf,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",o=>{!this._overviewRulerRenderer&&o&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(jf,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(ny,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function n(o){var d,f,m,g,v;let a=e._mouseService.getMouseReportCoords(o,e.screenElement);if(!a)return!1;let l,u;switch(o.overrideType||o.type){case"mousemove":u=32,o.buttons===void 0?(l=3,o.button!==void 0&&(l=o.button<3?o.button:3)):l=o.buttons&1?0:o.buttons&4?1:o.buttons&2?2:3;break;case"mouseup":u=0,l=o.button<3?o.button:3;break;case"mousedown":u=1,l=o.button<3?o.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(o)===!1)return!1;let y=o.deltaY;if(y===0||e.coreMouseService.consumeWheelEvent(o,(g=(m=(f=(d=e._renderService)==null?void 0:d.dimensions)==null?void 0:f.device)==null?void 0:m.cell)==null?void 0:g.height,(v=e._coreBrowserService)==null?void 0:v.dpr)===0)return!1;u=y<0?0:1,l=4;break;default:return!1}return u===void 0||l===void 0||l>4?!1:e.coreMouseService.triggerMouseEvent({col:a.col,row:a.row,x:a.x,y:a.y,button:l,action:u,ctrl:o.ctrlKey,alt:o.altKey,shift:o.shiftKey})}let r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},i={mouseup:o=>(n(o),o.buttons||(this._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.removeEventListener("mousemove",r.mousedrag)),this.cancel(o)),wheel:o=>(n(o),this.cancel(o,!0)),mousedrag:o=>{o.buttons&&n(o)},mousemove:o=>{o.buttons||n(o)}};this._register(this.coreMouseService.onProtocolChange(o=>{o?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(o)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),o&8?r.mousemove||(t.addEventListener("mousemove",i.mousemove),r.mousemove=i.mousemove):(t.removeEventListener("mousemove",r.mousemove),r.mousemove=null),o&16?r.wheel||(t.addEventListener("wheel",i.wheel,{passive:!1}),r.wheel=i.wheel):(t.removeEventListener("wheel",r.wheel),r.wheel=null),o&2?r.mouseup||(r.mouseup=i.mouseup):(this._document.removeEventListener("mouseup",r.mouseup),r.mouseup=null),o&4?r.mousedrag||(r.mousedrag=i.mousedrag):(this._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(Ut(t,"mousedown",o=>{if(o.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(o)))return n(o),r.mouseup&&this._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.addEventListener("mousemove",r.mousedrag),this.cancel(o)})),this._register(Ut(t,"wheel",o=>{var a,l,u,d,f;if(!r.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(o)===!1)return!1;if(!this.buffer.hasScrollback){if(o.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(o,(d=(u=(l=(a=e._renderService)==null?void 0:a.dimensions)==null?void 0:l.device)==null?void 0:u.cell)==null?void 0:d.height,(f=e._coreBrowserService)==null?void 0:f.dpr)===0)return this.cancel(o,!0);let m=Ie.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(o.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(m,!0),this.cancel(o,!0)}}},{passive:!1}))}refresh(e,t){var n;(n=this._renderService)==null||n.refreshRows(e,t)}updateCursorStyle(e){var t;(t=this._selectionService)!=null&&t.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){d3(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,n){this._selectionService.setSelection(e,t,n)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;(e=this._selectionService)==null||e.clearSelection()}selectAll(){var e;(e=this._selectionService)==null||e.selectAll()}selectLines(e,t){var n;(n=this._selectionService)==null||n.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key==="Dead"||e.key==="AltGraph")&&(this._unprocessedDeadKey=!0);let n=GQ(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),n.type===3||n.type===2){let r=this.rows-1;return this.scrollLines(n.type===2?-r:r),this.cancel(e,!0)}if(n.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(n.cancel&&this.cancel(e,!0),!n.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((n.key===Ie.ETX||n.key===Ie.CR)&&(this.textarea.value=""),this._onKey.fire({key:n.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(n.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return t.type==="keypress"?n:n&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(nZ(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType==="insertText"&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){var n;(n=this._charSizeService)==null||n.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(pr));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){var t;this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),(t=this._selectionService)==null||t.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){var e;(e=this._renderService)==null||e.clearTextureAtlas()}_reportFocus(){var e;(e=this.element)!=null&&e.classList.contains("focus")?this.coreService.triggerDataEvent(Ie.ESC+"[I"):this.coreService.triggerDataEvent(Ie.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),n=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${Ie.ESC}[4;${n};${t}t`);break;case 1:let r=this._renderService.dimensions.css.cell.width.toFixed(0),i=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${Ie.ESC}[6;${i};${r}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function nZ(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var rZ=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let n={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(n),t.dispose=()=>this._wrappedAddonDispose(n),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let n=0;n<this._addons.length;n++)if(this._addons[n]===e){t=n;break}if(t===-1)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},iZ=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new fo)}translateToString(e,t,n){return this._line.translateToString(e,t,n)}},v2=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new iZ(t)}getNullCell(){return new fo}},oZ=class extends tn{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new qe),this.onBufferChange=this._onBufferChange.event,this._normal=new v2(this._core.buffers.normal,"normal"),this._alternate=new v2(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},sZ=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,n=>t(n.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(n,r)=>t(n,r.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},aZ=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},lZ=["cols","rows"],Ho=0,cZ=class extends tn{constructor(e){super(),this._core=this._register(new tZ(e)),this._addonManager=this._register(new rZ),this._publicOptions={...this._core.options};let t=r=>this._core.options[r],n=(r,i)=>{this._checkReadonlyOptions(r),this._core.options[r]=i};for(let r in this._core.options){let i={get:t.bind(this,r),set:n.bind(this,r)};Object.defineProperty(this._publicOptions,r,i)}}_checkReadonlyOptions(e){if(lZ.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new sZ(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new aZ(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this._register(new oZ(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any";break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,n){this._verifyIntegers(e,t,n),this._core.select(e,t,n)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
|
|
601
|
-
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return N0.get()},set promptLabel(e){N0.set(e)},get tooMuchOutput(){return M0.get()},set tooMuchOutput(e){M0.set(e)}}}_verifyIntegers(...e){for(Ho of e)if(Ho===1/0||isNaN(Ho)||Ho%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(Ho of e)if(Ho&&(Ho===1/0||isNaN(Ho)||Ho%1!==0||Ho<0))throw new Error("This API only accepts positive integers")}};/**
|
|
602
|
-
* Copyright (c) 2014-2024 The xterm.js authors. All rights reserved.
|
|
603
|
-
* @license MIT
|
|
604
|
-
*
|
|
605
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
606
|
-
* @license MIT
|
|
607
|
-
*
|
|
608
|
-
* Originally forked from (with the author's permission):
|
|
609
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
610
|
-
* http://bellard.org/jslinux/
|
|
611
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
612
|
-
*/var uZ=2,dZ=1,hZ=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){var m;if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:((m=this._terminal.options.overviewRuler)==null?void 0:m.width)||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue("height")),i=Math.max(0,parseInt(n.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),a={top:parseInt(o.getPropertyValue("padding-top")),bottom:parseInt(o.getPropertyValue("padding-bottom")),right:parseInt(o.getPropertyValue("padding-right")),left:parseInt(o.getPropertyValue("padding-left"))},l=a.top+a.bottom,u=a.right+a.left,d=r-l,f=i-u-t;return{cols:Math.max(uZ,Math.floor(f/e.css.cell.width)),rows:Math.max(dZ,Math.floor(d/e.css.cell.height))}}};const fZ="_terminalPanel_1slw1_1",mZ="_terminalContainer_1slw1_8",pZ="_virtualKeybar_1slw1_16",gZ="_virtualKey_1slw1_16",Oh={terminalPanel:fZ,terminalContainer:mZ,virtualKeybar:pZ,virtualKey:gZ},zl=/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent),vZ=[{label:"↑",seq:"\x1B[A"},{label:"↓",seq:"\x1B[B"},{label:"←",seq:"\x1B[D"},{label:"→",seq:"\x1B[C"},{label:"Enter",seq:"\r"},{label:"Tab",seq:" "},{label:"Esc",seq:"\x1B"},{label:"Ctrl+C",seq:""}];class eR extends Q.Component{constructor(n){super(n);Rt(this,"handleVirtualKey",n=>{var r;this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"input",data:n})),zl||(r=this.terminal)==null||r.focus()});this.containerRef=Q.createRef(),this.terminal=null,this.fitAddon=null,this.ws=null,this.resizeObserver=null}componentDidMount(){this.initTerminal(),this.connectWebSocket(),this.setupResizeObserver()}componentWillUnmount(){this._stopMobileMomentum&&this._stopMobileMomentum(),this.ws&&(this.ws.close(),this.ws=null),this.resizeObserver&&this.resizeObserver.disconnect(),this.terminal&&this.terminal.dispose()}initTerminal(){this.terminal=new cZ({cursorBlink:!zl,fontSize:zl?11:13,fontFamily:'Menlo, Monaco, "Courier New", monospace',theme:{background:"#0a0a0a",foreground:"#d4d4d4",cursor:"#d4d4d4",selectionBackground:"#264f78"},allowProposedApi:!0,scrollback:zl?500:1e3}),this.fitAddon=new hZ,this.terminal.loadAddon(this.fitAddon),this.terminal.open(this.containerRef.current),requestAnimationFrame(()=>{this.fitAddon.fit()}),this.terminal.onData(n=>{this.ws&&this.ws.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"input",data:n}))}),zl&&this._setupMobileTouchScroll()}_setupMobileTouchScroll(){var y;const n=(y=this.containerRef.current)==null?void 0:y.querySelector(".xterm-screen");if(!n)return;const r=this.terminal,i=()=>{var _,C,w,k;const S=(k=(w=(C=(_=r._core)==null?void 0:_._renderService)==null?void 0:C.dimensions)==null?void 0:w.css)==null?void 0:k.cell;return(S==null?void 0:S.height)||15};let o=0,a=0,l=null,u=0,d=0,f=null,m=[];const g=()=>{l&&(cancelAnimationFrame(l),l=null),f&&(cancelAnimationFrame(f),f=null),d=0,u=0},v=()=>{if(f=null,d===0)return;u+=d,d=0;const S=i(),_=Math.trunc(u/S);_!==0&&(r.scrollLines(_),u-=_*S)};n.addEventListener("touchstart",S=>{g(),S.touches.length===1&&(o=S.touches[0].clientY,a=performance.now(),m=[])},{passive:!0}),n.addEventListener("touchmove",S=>{if(S.touches.length!==1)return;const _=S.touches[0].clientY,C=performance.now(),w=C-a,k=o-_;if(w>0){const $=k/w*16;for(m.push({v:$,t:C});m.length>0&&C-m[0].t>100;)m.shift()}d+=k,f||(f=requestAnimationFrame(v)),o=_,a=C},{passive:!0}),n.addEventListener("touchend",()=>{if(f&&(cancelAnimationFrame(f),f=null),d!==0){u+=d,d=0;const k=i(),$=Math.trunc(u/k);$!==0&&r.scrollLines($),u=0}let S=0;if(m.length>=2){let k=0,$=0;const T=m[m.length-1].t;for(const R of m){const O=Math.max(0,1-(T-R.t)/100);$+=R.v*O,k+=O}S=k>0?$/k:0}if(m=[],Math.abs(S)<.5)return;const _=.95;let C=0;const w=()=>{if(Math.abs(S)<.3){const T=i(),R=Math.round(C/T);R!==0&&r.scrollLines(R),l=null;return}C+=S;const k=i(),$=Math.trunc(C/k);$!==0&&(r.scrollLines($),C-=$*k),S*=_,l=requestAnimationFrame(w)};l=requestAnimationFrame(w)},{passive:!0}),this._stopMobileMomentum=g}connectWebSocket(){const r=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/terminal`;this.ws=new WebSocket(r),this.ws.onmessage=i=>{try{const o=JSON.parse(i.data);o.type==="data"?this.terminal.write(o.data):o.type==="exit"?this.terminal.write(`\r
|
|
613
|
-
\x1B[33m${we("ui.terminal.exited",{code:o.exitCode??"?"})}\x1B[0m\r
|
|
614
|
-
`):o.type==="state"&&!o.running&&o.exitCode!==null&&this.terminal.write(`\x1B[33m${we("ui.terminal.exited",{code:o.exitCode})}\x1B[0m\r
|
|
615
|
-
`)}catch{}},this.ws.onclose=()=>{setTimeout(()=>{this.containerRef.current&&this.connectWebSocket()},2e3)},this.ws.onopen=()=>{this.sendResize()}}sendResize(){this.ws&&this.ws.readyState===WebSocket.OPEN&&this.terminal&&this.ws.send(JSON.stringify({type:"resize",cols:this.terminal.cols,rows:this.terminal.rows}))}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{if(this.fitAddon&&this.containerRef.current)try{this.fitAddon.fit(),this.sendResize()}catch{}}),this.containerRef.current&&this.resizeObserver.observe(this.containerRef.current)}render(){return x.jsxs("div",{className:Oh.terminalPanel,children:[x.jsx("div",{ref:this.containerRef,className:Oh.terminalContainer}),zl&&x.jsx("div",{className:Oh.virtualKeybar,children:vZ.map(n=>x.jsx("button",{className:Oh.virtualKey,onTouchStart:r=>{r.preventDefault(),this.handleVirtualKey(n.seq)},children:n.label},n.label))})]})}}const yZ="_centerEmpty_1o094_1",bZ="_container_1o094_8",_Z="_sessionDividerText_1o094_18",SZ="_lastResponseLabel_1o094_23",CZ="_splitContainer_1o094_27",wZ="_chatSection_1o094_34",xZ="_vResizer_1o094_41",EZ="_chatInputBar_1o094_55",kZ="_chatInputWrapper_1o094_65",$Z="_chatTextareaWrap_1o094_80",RZ="_chatTextarea_1o094_80",TZ="_chatInputHint_1o094_104",PZ="_chatSendBtn_1o094_111",OZ="_messageListWrap_1o094_140",IZ="_stickyBottomBtn_1o094_148",NZ="_ptyPromptBubble_1o094_181",MZ="_ptyPromptResolved_1o094_190",jZ="_ptyPromptQuestion_1o094_199",zZ="_ptyPromptOptions_1o094_206",BZ="_ptyPromptOption_1o094_206",LZ="_ptyPromptOptionPrimary_1o094_230",AZ="_ptyPromptOptionChosen_1o094_248",DZ="_ptyPromptOptionDimmed_1o094_259",HZ="_ghostText_1o094_270",FZ="_suggestionChip_1o094_286",WZ="_suggestionChipText_1o094_302",VZ="_suggestionChipAction_1o094_311",En={centerEmpty:yZ,container:bZ,sessionDividerText:_Z,lastResponseLabel:SZ,splitContainer:CZ,chatSection:wZ,vResizer:xZ,chatInputBar:EZ,chatInputWrapper:kZ,chatTextareaWrap:$Z,chatTextarea:RZ,chatInputHint:TZ,chatSendBtn:PZ,messageListWrap:OZ,stickyBottomBtn:IZ,ptyPromptBubble:NZ,ptyPromptResolved:MZ,ptyPromptQuestion:jZ,ptyPromptOptions:zZ,ptyPromptOption:BZ,ptyPromptOptionPrimary:LZ,ptyPromptOptionChosen:AZ,ptyPromptOptionDimmed:DZ,ghostText:HZ,suggestionChip:FZ,suggestionChipText:WZ,suggestionChipAction:VZ},{Text:y2}=jo,UZ=20;function qZ(){return 100+Math.random()*50}function b2(e){const t={};for(const r of e)if(r.role==="assistant"&&Array.isArray(r.content))for(const i of r.content)i.type==="tool_use"&&(t[i.id]=i);const n={};for(const r of e)if(r.role==="user"&&Array.isArray(r.content)){for(const i of r.content)if(i.type==="tool_result"){const o=t[i.tool_use_id];let a=we("ui.toolReturn"),l=null,u=null;if(o)if(l=o.name,u=o.input,o.name==="Task"&&o.input){const d=o.input.subagent_type||"",f=o.input.description||"";a=`SubAgent: ${d}${f?" — "+f:""}`}else a=we("ui.toolReturnNamed",{name:o.name});n[i.tool_use_id]={label:a,toolName:l,toolInput:u,resultText:q4(i)}}}return{toolUseMap:t,toolResultMap:n}}class _2 extends Q.Component{constructor(n){super(n);Rt(this,"handleStickToBottom",()=>{this.setState({stickyBottom:!0},()=>{const n=this.containerRef.current;n&&(n.scrollTop=n.scrollHeight)})});Rt(this,"handlePromptOptionClick",n=>{const r=this._inputWs;if(!r||r.readyState!==WebSocket.OPEN)return;const i=this.state.ptyPrompt;if(!i)return;const o=i.options,a=o.findIndex(g=>g.number===n);let l=o.findIndex(g=>g.selected);l<0&&(l=0);const u=a-l,d=u>0?"\x1B[B":"\x1B[A",f=Math.abs(u),m=g=>{g<f?(r.send(JSON.stringify({type:"input",data:d})),setTimeout(()=>m(g+1),30)):setTimeout(()=>{r.readyState===WebSocket.OPEN&&r.send(JSON.stringify({type:"input",data:"\r"}))},50)};m(0),this.setState(g=>{const v=g.ptyPromptHistory.slice(),y=v[v.length-1];return y&&y.status==="active"&&(v[v.length-1]={...y,status:"answered",selectedNumber:n}),{ptyPrompt:null,ptyPromptHistory:v}}),this._ptyBuffer="",this._ptyDebounceTimer&&clearTimeout(this._ptyDebounceTimer)});Rt(this,"handleInputSend",()=>{const n=this._inputRef.current;if(!n)return;const r=n.value.trim();r&&this._inputWs&&this._inputWs.readyState===WebSocket.OPEN&&(this._inputWs.send(JSON.stringify({type:"input",data:r})),setTimeout(()=>{this._inputWs&&this._inputWs.readyState===WebSocket.OPEN&&this._inputWs.send(JSON.stringify({type:"input",data:"\r"}))},50),n.value="",n.style.height="auto",this.setState({inputEmpty:!0,pendingInput:r,inputSuggestion:null},()=>this.scrollToBottom()))});Rt(this,"handleInputKeyDown",n=>{if(n.key==="Tab"&&this.state.inputSuggestion){n.preventDefault();const r=this._inputRef.current;r&&(r.value=this.state.inputSuggestion,r.style.height="auto",r.style.height=Math.min(r.scrollHeight,120)+"px"),this.setState({inputSuggestion:null,inputEmpty:!1});return}n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.handleInputSend())});Rt(this,"handleInputChange",n=>{const r=n.target;r.style.height="auto",r.style.height=Math.min(r.scrollHeight,120)+"px";const i=!r.value.trim();this.setState({inputEmpty:i}),this.state.inputSuggestion&&!i&&this.setState({inputSuggestion:null})});Rt(this,"handleSuggestionToTerminal",()=>{const n=this.state.inputSuggestion;!n||!this._inputWs||this._inputWs.readyState!==WebSocket.OPEN||(this._inputWs.send(JSON.stringify({type:"input",data:n})),setTimeout(()=>{this._inputWs&&this._inputWs.readyState===WebSocket.OPEN&&this._inputWs.send(JSON.stringify({type:"input",data:"\r"}))},50),this.setState({inputSuggestion:null,pendingInput:n},()=>this.scrollToBottom()))});Rt(this,"handleSplitMouseDown",n=>{n.preventDefault(),this._resizing=!0;const r=o=>{if(!this._resizing)return;const a=this.splitContainerRef.current;if(!a)return;const l=a.getBoundingClientRect(),u=(o.clientX-l.left)/l.width,d=Math.min(.85,Math.max(.25,u));this.setState({splitRatio:d})},i=()=>{this._resizing=!1,document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.body.style.cursor="col-resize",document.body.style.userSelect="none"});this.containerRef=Q.createRef(),this.splitContainerRef=Q.createRef(),this.state={visibleCount:0,loading:!1,allItems:[],highlightTs:null,highlightFading:!1,splitRatio:.6,inputEmpty:!0,pendingInput:null,stickyBottom:!0,ptyPrompt:null,ptyPromptHistory:[],inputSuggestion:null},this._queueTimer=null,this._prevItemsLen=0,this._scrollTargetIdx=null,this._scrollTargetRef=Q.createRef(),this._scrollFadeTimer=null,this._resizing=!1,this._inputWs=null,this._inputRef=Q.createRef(),this._ptyBuffer="",this._ptyDebounceTimer=null}componentDidMount(){this.startRender(),this.props.cliMode&&this.connectInputWs(),this._bindStickyScroll()}componentDidUpdate(n){if(n.mainAgentSessions!==this.props.mainAgentSessions)this.startRender(),this.state.pendingInput&&this.setState({pendingInput:null}),this._updateSuggestion();else if(n.collapseToolResults!==this.props.collapseToolResults||n.expandThinking!==this.props.expandThinking){const r=this.buildAllItems();this.setState({allItems:r,visibleCount:r.length})}if(!n.scrollToTimestamp&&this.props.scrollToTimestamp){const r=this.buildAllItems();this.setState({allItems:r,visibleCount:r.length},()=>this.scrollToBottom())}!n.cliMode&&this.props.cliMode&&this.connectInputWs(),this._rebindStickyEl()}componentWillUnmount(){this._queueTimer&&clearTimeout(this._queueTimer),this._fadeClearTimer&&clearTimeout(this._fadeClearTimer),this._ptyDebounceTimer&&clearTimeout(this._ptyDebounceTimer),this._unbindScrollFade(),this._unbindStickyScroll(),this._inputWs&&(this._inputWs.close(),this._inputWs=null)}startRender(){this._queueTimer&&clearTimeout(this._queueTimer);const n=this.buildAllItems(),r=this._prevItemsLen;this._prevItemsLen=n.length;const i=n.length-r;if(i<=0||r>0&&i<=3){this.setState({allItems:n,visibleCount:n.length,loading:!1},()=>this.scrollToBottom());return}if(n.length>UZ)this.setState({allItems:n,visibleCount:0,loading:!0}),this._queueTimer=setTimeout(()=>{this.setState({visibleCount:n.length,loading:!1},()=>this.scrollToBottom())},300);else{const o=Math.max(0,r);this.setState({allItems:n,visibleCount:o,loading:!1}),this.queueNext(o,n.length)}}queueNext(n,r){n>=r||(this._queueTimer=setTimeout(()=>{this.setState({visibleCount:n+1},()=>{this.scrollToBottom(),this.queueNext(n+1,r)})},qZ()))}_isNearBottom(){const n=this.containerRef.current;return n?n.scrollHeight-n.scrollTop-n.clientHeight<=30:!0}scrollToBottom(){if(this._scrollTargetRef.current){const n=this._scrollTargetRef.current,r=this.containerRef.current;r&&n.offsetHeight>r.clientHeight?n.scrollIntoView({block:"start",behavior:"instant"}):n.scrollIntoView({block:"center",behavior:"instant"});const i=this.props.scrollToTimestamp;this._scrollTargetRef=Q.createRef(),i&&(this.setState({highlightTs:i,highlightFading:!1}),this._bindScrollFade()),this.props.onScrollTsDone&&this.props.onScrollTsDone();return}if(this.state.stickyBottom){const n=this.containerRef.current;n&&(n.scrollTop=n.scrollHeight)}}_bindStickyScroll(){this._stickyScrollRafId=null,this._onStickyScroll=()=>{this._stickyScrollLock||this._stickyScrollRafId||(this._stickyScrollRafId=requestAnimationFrame(()=>{this._stickyScrollRafId=null;const n=this.containerRef.current;if(!n)return;const r=n.scrollHeight-n.scrollTop-n.clientHeight;this.state.stickyBottom&&r>30?this.setState({stickyBottom:!1}):!this.state.stickyBottom&&r<=5&&this.setState({stickyBottom:!0})}))},this._rebindStickyEl()}_rebindStickyEl(){const n=this.containerRef.current;n!==this._stickyBoundEl&&(this._stickyBoundEl&&this._stickyBoundEl.removeEventListener("scroll",this._onStickyScroll),this._stickyBoundEl=n,n&&n.addEventListener("scroll",this._onStickyScroll,{passive:!0}))}_unbindStickyScroll(){this._stickyBoundEl&&this._onStickyScroll&&(this._stickyBoundEl.removeEventListener("scroll",this._onStickyScroll),this._stickyBoundEl=null),this._stickyScrollRafId&&(cancelAnimationFrame(this._stickyScrollRafId),this._stickyScrollRafId=null)}_bindScrollFade(){this._unbindScrollFade();const n=this.containerRef.current;n&&(this._scrollFadeIgnoreFirst=!0,this._onScrollFade=()=>{if(this._scrollFadeIgnoreFirst){this._scrollFadeIgnoreFirst=!1;return}this.setState({highlightFading:!0}),this._fadeClearTimer=setTimeout(()=>{this.setState({highlightTs:null,highlightFading:!1})},2e3),this._unbindScrollFade()},n.addEventListener("scroll",this._onScrollFade,{passive:!0}))}_unbindScrollFade(){this._onScrollFade&&this.containerRef.current&&(this.containerRef.current.removeEventListener("scroll",this._onScrollFade),this._onScrollFade=null)}renderSessionMessages(n,r,i,o){var v;const{userProfile:a,collapseToolResults:l,expandThinking:u,onViewRequest:d}=this.props,{toolUseMap:f,toolResultMap:m}=b2(n),g=[];for(let y=0;y<n.length;y++){const S=n[y],_=S.content,C=S._timestamp||null,w=C?o[C]:void 0,k=w!=null&&d?{requestIndex:w,onViewRequest:d}:{};if(S.role==="user"){if(Array.isArray(_)){const $=_.find(R=>R.type==="text"&&/^\[SUGGESTION MODE:/i.test((R.text||"").trim())),T=_.filter(R=>R.type==="tool_result");if($&&T.length>0){let R=null,O={};for(const N of T){const I=f[N.tool_use_id];if(I&&I.name==="AskUserQuestion"&&((v=I.input)!=null&&v.questions)){R=I.input.questions;const j=q4(N);try{O=JSON.parse(j).answers||{}}catch{}break}}R&&g.push(x.jsx(xo,{role:"user-selection",questions:R,answers:O,timestamp:C,userProfile:a,...k},`${r}-selection-${y}`))}else{const{commands:R,textBlocks:O,skillBlocks:N}=V4(_);for(let I=0;I<R.length;I++)g.push(x.jsx(xo,{role:"user",text:R[I],timestamp:C,userProfile:a,modelInfo:i,...k},`${r}-cmd-${y}-${I}`));for(const I of N){const j=I.text.match(/^#\s+(.+)$/m),L=j?j[1]:"Skill";g.push(x.jsx(xo,{role:"skill-loaded",text:I.text,skillName:L,timestamp:C,...k},`${r}-skill-${y}`))}for(let I=0;I<O.length;I++){const j=/^Implement the following plan:/i.test((O[I].text||"").trim());g.push(x.jsx(xo,{role:j?"plan-prompt":"user",text:O[I].text,timestamp:C,userProfile:a,modelInfo:i,...k},`${r}-user-${y}-${I}`))}}}else if(typeof _=="string"&&!_b(_)){const $=/^Implement the following plan:/i.test(_.trim());g.push(x.jsx(xo,{role:$?"plan-prompt":"user",text:_,timestamp:C,userProfile:a,modelInfo:i,...k},`${r}-user-${y}`))}}else S.role==="assistant"&&(Array.isArray(_)?g.push(x.jsx(xo,{role:"assistant",content:_,toolResultMap:m,timestamp:C,modelInfo:i,collapseToolResults:l,expandThinking:u,...k},`${r}-asst-${y}`)):typeof _=="string"&&g.push(x.jsx(xo,{role:"assistant",content:[{type:"text",text:_}],toolResultMap:m,timestamp:C,modelInfo:i,collapseToolResults:l,expandThinking:u,...k},`${r}-asst-${y}`)))}return g}buildAllItems(){var S,_,C,w;const{mainAgentSessions:n,requests:r,collapseToolResults:i,expandThinking:o,onViewRequest:a}=this.props;if(!n||n.length===0)return[];const l={};if(r)for(let k=0;k<r.length;k++)Kr(r[k])&&r[k].timestamp&&(l[r[k].timestamp]=k);let u=null;if(r){for(let k=r.length-1;k>=0;k--)if(Kr(r[k])&&((S=r[k].body)!=null&&S.model)){u=r[k].body.model;break}}const d=NW(u),f=[],m={},g=[];if(r)for(let k=0;k<r.length;k++){const $=r[k];if(!$.timestamp)continue;const T=Ba($,r[k+1]);if(T.type==="SubAgent"){const R=(C=(_=$.response)==null?void 0:_.body)==null?void 0:C.content;if(Array.isArray(R)&&R.length>0){const O=b2(((w=$.body)==null?void 0:w.messages)||[]).toolResultMap;g.push({timestamp:$.timestamp,content:R,toolResultMap:O,label:$f(T.type,T.subType),requestIndex:k})}}}let v=0;n.forEach((k,$)=>{var R,O,N,I;$>0&&f.push(x.jsx(Fw,{style:{borderColor:"#333",margin:"16px 0"},children:x.jsx(y2,{className:En.sessionDividerText,children:"Session"})},`session-div-${$}`));const T=this.renderSessionMessages(k.messages,`s${$}`,d,l);for(const j of T){const L=j.props.timestamp;for(;v<g.length&&L&&g[v].timestamp<=L;){const M=g[v];M.timestamp&&(m[M.timestamp]=f.length),f.push(x.jsx(xo,{role:"sub-agent-chat",content:M.content,toolResultMap:M.toolResultMap,label:M.label,timestamp:M.timestamp,collapseToolResults:i,expandThinking:o,requestIndex:M.requestIndex,onViewRequest:a},`sub-chat-${v}`)),v++}L&&(m[L]=f.length),f.push(j)}for(;v<g.length;){const j=g[v],L=$<n.length-1&&((O=(R=n[$+1].messages)==null?void 0:R[0])==null?void 0:O._timestamp);if(L&&j.timestamp>L)break;j.timestamp&&(m[j.timestamp]=f.length),f.push(x.jsx(xo,{role:"sub-agent-chat",content:j.content,toolResultMap:j.toolResultMap,label:j.label,timestamp:j.timestamp,collapseToolResults:i,expandThinking:o,requestIndex:j.requestIndex,onViewRequest:a},`sub-chat-${v}`)),v++}if($===n.length-1&&((I=(N=k.response)==null?void 0:N.body)!=null&&I.content)){const j=k.response.body.content;Array.isArray(j)&&(f.push(x.jsx(Q.Fragment,{children:x.jsx(Fw,{style:{borderColor:"#2a2a2a",margin:"8px 0"},children:x.jsx(y2,{type:"secondary",className:En.lastResponseLabel,children:we("ui.lastResponse")})})},"resp-divider")),k.entryTimestamp&&(m[k.entryTimestamp]=f.length),f.push(x.jsx(xo,{role:"assistant",content:j,timestamp:k.entryTimestamp,modelInfo:d,collapseToolResults:i,expandThinking:o,toolResultMap:{}},"resp-asst")))}});const{scrollToTimestamp:y}=this.props;return this._scrollTargetIdx=y&&m[y]!=null?m[y]:null,this._tsItemMap=m,f}_extractSuggestion(){var u;const{mainAgentSessions:n}=this.props;if(!(n!=null&&n.length))return null;const r=n[n.length-1],i=r==null?void 0:r.response;if(!i)return null;const o=i.body;if(!o)return null;const a=o.stop_reason;if(a!=="end_turn"&&a!=="max_tokens")return null;const l=o.content;if(!Array.isArray(l))return null;for(let d=l.length-1;d>=0;d--)if(l[d].type==="text"&&((u=l[d].text)!=null&&u.trim()))return l[d].text.trim();return null}_updateSuggestion(){const n=this._extractSuggestion();this.setState({inputSuggestion:n||null})}connectInputWs(){const r=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/terminal`;this._inputWs=new WebSocket(r),this._inputWs.onmessage=i=>{try{const o=JSON.parse(i.data);o.type==="data"?this._appendPtyData(o.data):o.type==="exit"&&this._clearPtyPrompt()}catch{}},this._inputWs.onclose=()=>{setTimeout(()=>{this.splitContainerRef.current&&this.props.cliMode&&this.connectInputWs()},2e3)}}_stripAnsi(n){return n.replace(/\x1b\[[0-9;]*[A-Za-z]/g,"").replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)/g,"").replace(/\x1b[^[\]](.|$)/g,"").replace(/[\x00-\x08\x0b\x0c\x0e-\x1f]/g,"")}_appendPtyData(n){const r=this._stripAnsi(n);this._ptyBuffer+=r,this._ptyBuffer.length>4096&&(this._ptyBuffer=this._ptyBuffer.slice(-4096)),this._ptyDebounceTimer&&clearTimeout(this._ptyDebounceTimer),this._ptyDebounceTimer=setTimeout(()=>this._detectPrompt(),200)}_detectPrompt(){const r=this._ptyBuffer.match(/([^\n]*\?)\s*\n((?:\s*[❯>]?\s*\d+\.\s+[^\n]+\n?){2,})$/);if(r){const i=r[1].trim(),a=r[2].match(/\s*([❯>])?\s*(\d+)\.\s+([^\n]+)/g);if(a){const l=a.map(f=>{const m=f.match(/\s*([❯>])?\s*(\d+)\.\s+(.+)/);return{number:parseInt(m[2],10),text:m[3].trim(),selected:!!m[1]}}),u=this.state.ptyPrompt,d={question:i,options:l};u&&u.question===i?this.setState({ptyPrompt:d}):(this.setState(f=>{const m=f.ptyPromptHistory.slice();if(f.ptyPrompt){const g=m[m.length-1];g&&g.status==="active"&&(m[m.length-1]={...g,status:"dismissed"})}return m.push({...d,status:"active",selectedNumber:null,timestamp:new Date().toISOString()}),{ptyPrompt:d,ptyPromptHistory:m}}),this.scrollToBottom());return}}this.state.ptyPrompt&&this.setState(i=>{const o=i.ptyPromptHistory.slice(),a=o[o.length-1];return a&&a.status==="active"&&(o[o.length-1]={...a,status:"dismissed"}),{ptyPrompt:null,ptyPromptHistory:o}})}_clearPtyPrompt(){this._ptyBuffer="",this._ptyDebounceTimer&&clearTimeout(this._ptyDebounceTimer),this.state.ptyPrompt&&this.setState({ptyPrompt:null})}render(){const{mainAgentSessions:n,cliMode:r,terminalVisible:i}=this.props,{allItems:o,visibleCount:a,loading:l,splitRatio:u}=this.state,d=!n||n.length===0;if(d&&!r)return x.jsx("div",{className:En.centerEmpty,children:x.jsx(Ii,{description:we("ui.noChat")})});if(l&&!r)return x.jsx("div",{className:En.centerEmpty,children:x.jsx(ja,{size:"large"})});const f=this._scrollTargetIdx,{highlightTs:m,highlightFading:g}=this.state,v=m&&this._tsItemMap&&this._tsItemMap[m]!=null?this._tsItemMap[m]:null,y=o.slice(0,a),{pendingInput:S,stickyBottom:_,ptyPromptHistory:C}=this.state,w=r&&S?x.jsx(xo,{role:"user",text:S,timestamp:new Date().toISOString(),userProfile:this.props.userProfile},"pending-input"):null,k=_?null:x.jsxs("button",{className:En.stickyBottomBtn,onClick:this.handleStickToBottom,children:[x.jsx("span",{children:we("ui.stickyBottom")}),x.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:x.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),$=r&&C.length>0?C.map((R,O)=>{const N=R.status==="active",I=R.status==="answered";return x.jsxs("div",{className:`${En.ptyPromptBubble}${N?"":" "+En.ptyPromptResolved}`,children:[x.jsx("div",{className:En.ptyPromptQuestion,children:R.question}),x.jsx("div",{className:En.ptyPromptOptions,children:R.options.map(j=>{const L=I&&R.selectedNumber===j.number;let M=En.ptyPromptOption;return N&&j.selected&&(M=En.ptyPromptOptionPrimary),L&&(M=En.ptyPromptOptionChosen),!N&&!L&&(M=En.ptyPromptOptionDimmed),x.jsxs("button",{className:M,disabled:!N,onClick:N?()=>this.handlePromptOptionClick(j.number):void 0,children:[j.number,". ",j.text]},j.number)})})]},`pty-prompt-${O}`)}):null,T=d||l?x.jsxs("div",{className:En.messageListWrap,children:[x.jsxs("div",{ref:this.containerRef,className:En.container,children:[!r||l?x.jsx("div",{className:En.centerEmpty,children:l?x.jsx(ja,{size:"large"}):x.jsx(Ii,{description:we("ui.noChat")})}):null,w,$]}),k]}):x.jsxs("div",{className:En.messageListWrap,children:[x.jsxs("div",{ref:this.containerRef,className:En.container,children:[y.map((R,O)=>{const N=O===f,I=O===v;let j=R;return I&&(j=Q.cloneElement(j,{highlight:g?"fading":"active"})),N?x.jsx("div",{ref:this._scrollTargetRef,children:j},R.key+"-anchor"):j}),w,$]}),k]});return r?x.jsxs("div",{ref:this.splitContainerRef,className:En.splitContainer,children:[x.jsxs("div",{className:En.chatSection,style:i?{flex:u,minWidth:0}:{flex:1,minWidth:0},children:[T,!i&&x.jsxs("div",{className:En.chatInputBar,children:[x.jsxs("div",{className:En.chatInputWrapper,children:[x.jsxs("div",{className:En.chatTextareaWrap,children:[x.jsx("textarea",{ref:this._inputRef,className:En.chatTextarea,placeholder:this.state.inputSuggestion?"":we("ui.chatInput.placeholder"),rows:1,onKeyDown:this.handleInputKeyDown,onInput:this.handleInputChange}),this.state.inputSuggestion&&this.state.inputEmpty&&x.jsx("div",{className:En.ghostText,children:this.state.inputSuggestion})]}),x.jsx("div",{className:En.chatInputHint,children:this.state.inputSuggestion&&this.state.inputEmpty?we("ui.chatInput.hintTab"):we("ui.chatInput.hintEnter")})]}),x.jsx("button",{className:En.chatSendBtn,onClick:this.handleInputSend,disabled:this.state.inputEmpty,title:we("ui.chatInput.send"),children:x.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),x.jsx("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]}),i&&this.state.inputSuggestion&&x.jsxs("div",{className:En.suggestionChip,onClick:this.handleSuggestionToTerminal,children:[x.jsx("span",{className:En.suggestionChipText,children:this.state.inputSuggestion}),x.jsx("span",{className:En.suggestionChipAction,children:"↵"})]})]}),i&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:En.vResizer,onMouseDown:this.handleSplitMouseDown}),x.jsx("div",{style:{flex:1-u,minWidth:200,display:"flex",flexDirection:"column"},children:x.jsx(eR,{})})]})]}):T}}const KZ="_resizer_yamj2_1",GZ={resizer:KZ};class XZ extends Q.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 x.jsx("div",{onMouseDown:this.handleMouseDown,className:GZ.resizer})}}const YZ="_layout_5lki3_1",JZ="_header_5lki3_6",QZ="_content_5lki3_14",ZZ="_mainContainer_5lki3_19",eee="_leftPanel_5lki3_24",tee="_leftPanelHeader_5lki3_32",nee="_leftPanelCount_5lki3_43",ree="_leftPanelBody_5lki3_49",iee="_rightPanel_5lki3_54",oee="_modalActions_5lki3_60",see="_spinCenter_5lki3_64",aee="_emptyCenter_5lki3_69",lee="_logCheckbox_5lki3_75",cee="_logListContainer_5lki3_79",uee="_logListItem_5lki3_85",dee="_logItemRow_5lki3_91",hee="_logFileName_5lki3_108",fee="_logFileIcon_5lki3_121",mee="_loadingOverlay_5lki3_127",pee="_loadingText_5lki3_140",gee="_footer_5lki3_146",vee="_footerRight_5lki3_156",yee="_footerText_5lki3_164",bee="_footerLink_5lki3_169",_ee="_footerIcon_5lki3_181",See="_footerDivider_5lki3_186",Cee="_guideContainer_5lki3_194",wee="_guideContent_5lki3_202",xee="_guideTitle_5lki3_207",Eee="_guideStep_5lki3_214",kee="_guideStepNum_5lki3_220",$ee="_guideStepBody_5lki3_235",Ree="_guideText_5lki3_240",Tee="_guideCode_5lki3_247",Pee="_mobileChatOverlay_5lki3_260",Oee="_mobileChatOverlayVisible_5lki3_272",Iee="_mobileChatInner_5lki3_276",Ft={layout:YZ,header:JZ,content:QZ,mainContainer:ZZ,leftPanel:eee,leftPanelHeader:tee,leftPanelCount:nee,leftPanelBody:ree,rightPanel:iee,modalActions:oee,spinCenter:see,emptyCenter:aee,logCheckbox:lee,logListContainer:cee,logListItem:uee,logItemRow:dee,logFileName:hee,logFileIcon:fee,loadingOverlay:mee,loadingText:pee,footer:gee,footerRight:vee,footerText:yee,footerLink:bee,footerIcon:_ee,footerDivider:See,guideContainer:Cee,guideContent:wee,guideTitle:xee,guideStep:Eee,guideStepNum:kee,guideStepBody:$ee,guideText:Ree,guideCode:Tee,mobileChatOverlay:Pee,mobileChatOverlayVisible:Oee,mobileChatInner:Iee};class Nee extends Q.Component{constructor(n){super(n);Rt(this,"handleSelectRequest",n=>{this.setState({selectedIndex:n,scrollCenter:!1})});Rt(this,"handleViewRequest",n=>{this.setState({viewMode:"raw",selectedIndex:n,scrollCenter:!0})});Rt(this,"handleViewInChat",()=>{this.setState(n=>{const i=(n.showAll?n.requests:hs(n.requests))[n.selectedIndex];if(!i)return null;let o=null;if(Kr(i)&&i.timestamp)o=i.timestamp;else{if(Ba(i).type==="SubAgent"&&i.timestamp)o=i.timestamp;else{const l=n.requests.indexOf(i);l>=0&&(o=px(n.requests,l))}o||Oi.info(we("ui.cannotMap"))}return{viewMode:"chat",chatScrollToTs:o}})});Rt(this,"handleToggleViewMode",()=>{this.setState(n=>{const r=n.viewMode==="raw"?"chat":"raw";if(r==="raw"){if(n.selectedIndex===null){const a=n.showAll?n.requests:hs(n.requests);return{viewMode:r,selectedIndex:a.length>0?a.length-1:null,scrollCenter:!0}}return{viewMode:r,scrollCenter:!0}}const i=n.showAll?n.requests:hs(n.requests),o=n.selectedIndex!=null?i[n.selectedIndex]:null;if(o){let a=null;if(Kr(o)&&o.timestamp)a=o.timestamp;else if(Ba(o).type==="SubAgent"&&o.timestamp)a=o.timestamp;else{const u=n.requests.indexOf(o);u>=0&&(a=px(n.requests,u)),a||Oi.info(we("ui.cannotMap"))}return{viewMode:r,chatScrollToTs:a}}return{viewMode:r,chatScrollToTs:null}})});Rt(this,"handleLangChange",()=>{const n=Bu();this.setState({lang:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:n})}).catch(()=>{})});Rt(this,"handleCollapseToolResultsChange",n=>{this.setState({collapseToolResults:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collapseToolResults:n})}).catch(()=>{})});Rt(this,"handleExpandThinkingChange",n=>{this.setState({expandThinking:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expandThinking:n})}).catch(()=>{})});Rt(this,"handleExpandDiffChange",n=>{this.setState({expandDiff:n}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expandDiff:n})}).catch(()=>{})});Rt(this,"handleFilterIrrelevantChange",n=>{this.setState(r=>{const i=!n,o=i?r.requests:hs(r.requests);return{showAll:i,selectedIndex:o.length>0?o.length-1:null}}),fetch("/api/preferences",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filterIrrelevant:n})}).catch(()=>{})});Rt(this,"handleTabChange",n=>{this.setState({currentTab:n})});Rt(this,"handleResize",n=>{const r=this.mainContainerRef.current;if(!r)return;const i=r.getBoundingClientRect(),o=n-i.left;o>=250&&o<=800&&this.setState({leftPanelWidth:o})});Rt(this,"handleImportLocalLogs",()=>{this.setState({importModalVisible:!0,localLogsLoading:!0}),fetch("/api/local-logs").then(n=>n.json()).then(n=>{const{_currentProject:r,...i}=n;this.setState({localLogs:i,currentProject:r||"",localLogsLoading:!1})}).catch(()=>{this.setState({localLogs:{},localLogsLoading:!1})})});Rt(this,"handleCloseImportModal",()=>{this.setState({importModalVisible:!1,selectedLogs:new Set})});Rt(this,"handleToggleLogSelect",(n,r)=>{this.setState(i=>{const o=new Set(i.selectedLogs);return r?o.add(n):o.delete(n),{selectedLogs:o}})});Rt(this,"handleMergeLogs",()=>{const{selectedLogs:n,localLogs:r,currentProject:i}=this.state;if(n.size<2)return;const o=r[i];if(!o)return;const a=[];if(o.forEach((d,f)=>{n.has(d.file)&&a.push(f)}),a.sort((d,f)=>d-f),n.has(o[0].file)){Oi.warning(we("ui.mergeLatestNotAllowed"));return}for(let d=1;d<a.length;d++)if(a[d]-a[d-1]!==1){Oi.warning(we("ui.mergeNotConsecutive"));return}if(a.reduce((d,f)=>d+o[f].size,0)>500*1024*1024){Oi.warning(we("ui.mergeTooLarge"));return}const u=a.map(d=>o[d].file).reverse();fetch("/api/merge-logs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:u})}).then(d=>d.json()).then(d=>{d.ok?(Oi.success(we("ui.mergeSuccess")),this.setState({selectedLogs:new Set}),this.handleImportLocalLogs()):Oi.error(d.error||"Merge failed")}).catch(()=>Oi.error("Merge failed"))});Rt(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})});Rt(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))});Rt(this,"handleLoadLocalJsonlFile",()=>{const n=document.createElement("input");n.type="file",n.accept=".jsonl",n.onchange=r=>{const i=r.target.files[0];if(!i)return;if(i.size>500*1024*1024){Oi.error(we("ui.fileTooLarge"));return}this.setState({fileLoading:!0,fileLoadingCount:0});const o=new FileReader;o.onload=a=>{try{const u=a.target.result.split(`
|
|
616
|
-
---
|
|
617
|
-
`).filter(d=>d.trim()).map(d=>{try{return JSON.parse(d)}catch{return null}}).filter(Boolean);if(u.length===0){Oi.error(we("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0});return}this.animateLoadingCount(u.length,()=>{let d=[];for(const m of u)Kr(m)&&m.body&&Array.isArray(m.body.messages)&&(d=this.mergeMainAgentSessions(d,m));const f=hs(u);this._isLocalLog=!0,this._localLogFile=i.name,this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.setState({requests:u,selectedIndex:f.length>0?f.length-1:null,mainAgentSessions:d,importModalVisible:!1,fileLoading:!1,fileLoadingCount:0})})}catch{Oi.error(we("ui.noLogs")),this.setState({fileLoading:!1,fileLoadingCount:0})}},o.readAsText(i)},n.click()});const r=parseInt(localStorage.getItem("ccv_cacheExpireAt"),10)||null,i=localStorage.getItem("ccv_cacheType")||null,o=Date.now(),a=r&&r>o?r:null,l=a?i:null;this.state={requests:[],selectedIndex:null,viewMode:"raw",currentTab:"request",cacheExpireAt:a,cacheType:l,leftPanelWidth:380,mainAgentSessions:[],importModalVisible:!1,localLogs:{},localLogsLoading:!1,showAll:!1,lang:Bu(),userProfile:null,projectName:"",resumeModalVisible:!1,resumeFileName:"",collapseToolResults:!0,expandThinking:!0,expandDiff:!1,fileLoading:!1,fileLoadingCount:0,selectedLogs:new Set,githubStars:null,cliMode:!1,terminalVisible:!0},this.eventSource=null,this._autoSelectTimer=null,this.mainContainerRef=Q.createRef()}componentDidMount(){fetch("/api/preferences").then(i=>i.json()).then(i=>{i.lang&&(wb(i.lang),this.setState({lang:i.lang})),i.collapseToolResults!==void 0&&this.setState({collapseToolResults:!!i.collapseToolResults}),i.expandThinking!==void 0&&this.setState({expandThinking:!!i.expandThinking}),i.expandDiff!==void 0&&this.setState({expandDiff:!!i.expandDiff});const o=i.filterIrrelevant!==void 0?!!i.filterIrrelevant:!0;this.setState({showAll:!o})}).catch(()=>{}),fetch("/api/user-profile").then(i=>i.json()).then(i=>this.setState({userProfile:i})).catch(()=>{}),fetch("/api/project-name").then(i=>i.json()).then(i=>this.setState({projectName:i.projectName||""})).catch(()=>{}),fetch("https://api.github.com/repos/weiesky/cc-viewer").then(i=>i.json()).then(i=>{i.stargazers_count!=null&&this.setState({githubStars:i.stargazers_count})}).catch(()=>{}),fetch("/api/cli-mode").then(i=>i.json()).then(i=>{i.cliMode&&this.setState({cliMode:!0,viewMode:"chat"})}).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 i=Math.min(800,Math.max(300,n*.5)),o=performance.now(),a=l=>{const u=Math.min((l-o)/i,1),d=Math.round(u*n);this.setState({fileLoadingCount:d}),u<1?this._loadingCountTimer=requestAnimationFrame(a):(this._loadingCountTimer=null,r())};this._loadingCountTimer=requestAnimationFrame(a)}initSSE(){this.setState({fileLoading:!0,fileLoadingCount:0});try{this.eventSource=new EventSource("/events"),this.eventSource.onmessage=n=>this.handleEventMessage(n),this.eventSource.addEventListener("resume_prompt",n=>{try{const r=JSON.parse(n.data);this.setState({resumeModalVisible:!0,resumeFileName:r.recentFileName||""})}catch{}}),this.eventSource.addEventListener("resume_resolved",()=>{this.setState({resumeModalVisible:!1,resumeFileName:""})}),this.eventSource.addEventListener("update_completed",n=>{try{const r=JSON.parse(n.data);this.setState({updateInfo:{type:"completed",version:r.version}})}catch{}}),this.eventSource.addEventListener("update_major_available",n=>{try{const r=JSON.parse(n.data);this.setState({updateInfo:{type:"major",version:r.version}})}catch{}}),this.eventSource.addEventListener("full_reload",n=>{try{const r=JSON.parse(n.data);if(Array.isArray(r)){this.assignMessageTimestamps(r);const i=this.buildSessionsFromEntries(r),o=hs(r);r.length>0?this.animateLoadingCount(r.length,()=>{this.setState({requests:r,selectedIndex:o.length>0?o.length-1:null,mainAgentSessions:i,fileLoading:!1,fileLoadingCount:0})}):this.setState({requests:r,selectedIndex:null,mainAgentSessions:i,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 i=this.buildSessionsFromEntries(r),o=hs(r);this.setState({requests:r,selectedIndex:o.length>0?o.length-1:null,mainAgentSessions:i,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(i=>{var m,g;const o=[...i.requests],a=o.findIndex(v=>v.timestamp===r.timestamp&&v.url===r.url);a>=0?o[a]=r:o.push(r);let l=i.cacheExpireAt,u=i.cacheType;if(Kr(r)){const v=(g=(m=r.response)==null?void 0:m.body)==null?void 0:g.usage;if(v!=null&&v.cache_creation){const y=v.cache_creation,S=r.timestamp?new Date(r.timestamp).getTime():Date.now();let _=null,C=null;if(y.ephemeral_1h_input_tokens>0?(_=S+3600*1e3,C="1h"):y.ephemeral_5m_input_tokens>0&&(_=S+300*1e3,C="5m"),_&&_>Date.now()){l=_;const w=(v.cache_read_input_tokens||0)+(v.cache_creation_input_tokens||0);u=w>0?fr(w):C,localStorage.setItem("ccv_cacheExpireAt",String(l)),localStorage.setItem("ccv_cacheType",u)}}}let d=i.mainAgentSessions;if(Kr(r)&&r.body&&Array.isArray(r.body.messages)){const v=r.timestamp||new Date().toISOString(),y=d.length>0?d[d.length-1]:null,S=(y==null?void 0:y.messages)||[],_=r.body.messages,C=S.length,w=C>0&&_.length<C*.5&&C-_.length>4;for(let k=0;k<_.length;k++)!w&&k<C&&S[k]._timestamp?_[k]._timestamp=S[k]._timestamp:_[k]._timestamp||(_[k]._timestamp=v);d=this.mergeMainAgentSessions(i.mainAgentSessions,r)}return i.selectedIndex===null&&o.length>0&&(this._autoSelectTimer&&clearTimeout(this._autoSelectTimer),this._autoSelectTimer=setTimeout(()=>{this.setState(v=>{if(v.selectedIndex===null&&v.requests.length>0){const y=v.showAll?v.requests:hs(v.requests);return y.length>0?{selectedIndex:y.length-1}:null}return null})},200)),{requests:o,cacheExpireAt:l,cacheType:u,mainAgentSessions:d}})}catch(r){console.error("处理事件消息失败:",r)}}assignMessageTimestamps(n){var o;let r=[],i=null;for(const a of n){if(!Kr(a)||!a.body||!Array.isArray(a.body.messages))continue;const l=a.body.messages,u=l.length,d=((o=a.body.metadata)==null?void 0:o.user_id)||null,f=a.timestamp||new Date().toISOString(),m=r.length;m>0&&(u<m*.5&&m-u>4||i&&d&&d!==i)&&(r=[]);for(let v=r.length;v<u;v++)r.push(f);for(let v=0;v<u;v++)l[v]._timestamp=r[v];i=d}}buildSessionsFromEntries(n){let r=[];for(const i of n)Kr(i)&&i.body&&Array.isArray(i.body.messages)&&(r=this.mergeMainAgentSessions(r,i));return r}mergeMainAgentSessions(n,r){var m;const i=r.body.messages,o=r.response,a=((m=r.body.metadata)==null?void 0:m.user_id)||null,l=r.timestamp||null;if(n.length===0)return[{userId:a,messages:i,response:o,entryTimestamp:l}];const u=n[n.length-1],d=u.messages?u.messages.length:0,f=d>0&&i.length<d*.5&&d-i.length>4;if(a&&a===u.userId&&!f){const g=[...n];return g[g.length-1]={userId:a,messages:i,response:o,entryTimestamp:l},g}else return[...n,{userId:a,messages:i,response:o,entryTimestamp: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:i,currentTab:o,cacheExpireAt:a,cacheType:l,leftPanelWidth:u,mainAgentSessions:d,showAll:f,fileLoading:m,fileLoadingCount:g}=this.state,v=f?n:hs(n),y=r!==null?v[r]:null,S=/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent);return this.state.cliMode&&S?x.jsxs("div",{style:{width:"100vw",height:"100vh",display:"flex",flexDirection:"column",background:"#000"},children:[x.jsxs("div",{style:{padding:"10px 12px",background:"#111",borderBottom:"1px solid #222",display:"flex",alignItems:"center",justifyContent:"space-between",flexShrink:0},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x.jsx(eb,{status:"processing",color:"green"}),x.jsxs("span",{style:{fontSize:12,color:"#aaa"},children:[we("ui.liveMonitoring"),this.state.projectName?`: ${this.state.projectName}`:""]})]}),x.jsx(Gn,{type:"text",size:"small",icon:x.jsx(O4,{}),onClick:()=>this.setState(_=>({mobileChatVisible:!_.mobileChatVisible})),style:{color:this.state.mobileChatVisible?"#fff":"#888",fontSize:12},children:this.state.mobileChatVisible?we("ui.mobileChatExit"):we("ui.mobileChatBrowse")})]}),x.jsxs("div",{style:{flex:1,position:"relative",overflow:"hidden"},children:[x.jsx(eR,{}),x.jsx("div",{className:`${Ft.mobileChatOverlay} ${this.state.mobileChatVisible?Ft.mobileChatOverlayVisible:""}`,children:x.jsx(No,{theme:{algorithm:ix.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:x.jsx("div",{className:Ft.mobileChatInner,children:x.jsx(_2,{requests:v,mainAgentSessions:d,userProfile:this.state.userProfile,collapseToolResults:this.state.collapseToolResults,expandThinking:this.state.expandThinking,onViewRequest:null,scrollToTimestamp:null,onScrollTsDone:()=>{},cliMode:!1,terminalVisible:!1})})})})]})]}):x.jsxs(No,{theme:{algorithm:ix.darkAlgorithm,token:{colorBgContainer:"#111",colorBgLayout:"#0a0a0a",colorBgElevated:"#1a1a1a",colorBorder:"#2a2a2a"}},children:[m&&x.jsx("div",{className:Ft.loadingOverlay,children:x.jsxs("div",{className:Ft.loadingText,children:["Loading...(",g,")"]})}),x.jsxs(Js,{className:Ft.layout,children:[x.jsx(Js.Header,{className:Ft.header,children:x.jsx(T0,{requestCount:v.length,requests:v,viewMode:i,cacheExpireAt:a,cacheType:l,onToggleViewMode:this.handleToggleViewMode,onLangChange:this.handleLangChange,onImportLocalLogs:this.handleImportLocalLogs,isLocalLog:!!this._isLocalLog,localLogFile:this._localLogFile,projectName:this.state.projectName,collapseToolResults:this.state.collapseToolResults,onCollapseToolResultsChange:this.handleCollapseToolResultsChange,expandThinking:this.state.expandThinking,onExpandThinkingChange:this.handleExpandThinkingChange,expandDiff:this.state.expandDiff,onExpandDiffChange:this.handleExpandDiffChange,filterIrrelevant:!this.state.showAll,onFilterIrrelevantChange:this.handleFilterIrrelevantChange,updateInfo:this.state.updateInfo,onDismissUpdate:()=>this.setState({updateInfo:null}),cliMode:this.state.cliMode,terminalVisible:this.state.terminalVisible,onToggleTerminal:()=>this.setState(_=>({terminalVisible:!_.terminalVisible}))})}),x.jsxs(Js.Content,{className:Ft.content,children:[i==="raw"&&(v.length===0?x.jsx("div",{className:Ft.guideContainer,children:x.jsxs("div",{className:Ft.guideContent,children:[x.jsx("h2",{className:Ft.guideTitle,children:we("ui.guide.title")}),x.jsxs("div",{className:Ft.guideStep,children:[x.jsx("div",{className:Ft.guideStepNum,children:"1"}),x.jsxs("div",{className:Ft.guideStepBody,children:[x.jsx("p",{className:Ft.guideText,children:we("ui.guide.step1")}),x.jsx("code",{className:Ft.guideCode,children:we("ui.guide.exampleQuestion")})]})]}),x.jsxs("div",{className:Ft.guideStep,children:[x.jsx("div",{className:Ft.guideStepNum,children:"2"}),x.jsxs("div",{className:Ft.guideStepBody,children:[x.jsx("p",{className:Ft.guideText,children:we("ui.guide.step2")}),x.jsx("code",{className:Ft.guideCode,children:we("ui.guide.troubleshootCmd")})]})]}),x.jsxs("div",{className:Ft.guideStep,children:[x.jsx("div",{className:Ft.guideStepNum,children:"3"}),x.jsxs("div",{className:Ft.guideStepBody,children:[x.jsx("p",{className:Ft.guideText,children:we("ui.guide.step3")}),x.jsx("code",{className:Ft.guideCode,children:"npm install -g @anthropic-ai/claude-code"})]})]})]})}):x.jsxs("div",{ref:this.mainContainerRef,className:Ft.mainContainer,children:[x.jsxs("div",{className:Ft.leftPanel,style:{width:u},children:[x.jsxs("div",{className:Ft.leftPanelHeader,children:[x.jsx("span",{children:we("ui.requestList")}),x.jsx("span",{className:Ft.leftPanelCount,children:we("ui.totalRequests",{count:v.length})})]}),x.jsx("div",{className:Ft.leftPanelBody,children:x.jsx(vq,{requests:v,selectedIndex:r,scrollCenter:this.state.scrollCenter,onSelect:this.handleSelectRequest,onScrollDone:()=>this.setState({scrollCenter:!1})})})]}),x.jsx(XZ,{onResize:this.handleResize}),x.jsx("div",{className:Ft.rightPanel,children:x.jsx(xG,{request:y,requests:v,selectedIndex:r,currentTab:o,onTabChange:this.handleTabChange,onViewInChat:this.handleViewInChat,expandDiff:this.state.expandDiff})})]})),x.jsx("div",{style:{display:i==="chat"?"flex":"none",height:"100%",flexDirection:"column"},children:x.jsx(_2,{requests:v,mainAgentSessions:d,userProfile:this.state.userProfile,collapseToolResults:this.state.collapseToolResults,expandThinking:this.state.expandThinking,onViewRequest:this.handleViewRequest,scrollToTimestamp:this.state.chatScrollToTs,onScrollTsDone:()=>this.setState({chatScrollToTs:null}),cliMode:this.state.cliMode,terminalVisible:this.state.terminalVisible})})]}),x.jsx("div",{className:Ft.footer,children:x.jsxs("div",{className:Ft.footerRight,children:[x.jsx("span",{className:Ft.footerText,children:we("ui.footer.starRequest")}),x.jsxs("a",{href:"https://github.com/weiesky/cc-viewer",target:"_blank",rel:"noopener noreferrer",className:Ft.footerLink,children:[x.jsx("svg",{className:Ft.footerIcon,viewBox:"0 0 16 16",fill:"currentColor",children:x.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),"GitHub",this.state.githubStars!=null?` ★ ${this.state.githubStars}`:""]}),x.jsx("span",{className:Ft.footerDivider,children:"|"}),x.jsx("a",{href:"dingtalk://dingtalkclient/action/sendmsg?dingtalk_id=sthk5es",className:Ft.footerLink,children:we("ui.footer.contact")})]})})]}),x.jsx(Mi,{title:we("ui.resume.title"),open:this.state.resumeModalVisible,closable:!1,maskClosable:!1,keyboard:!1,footer:[x.jsx(Gn,{type:"primary",onClick:()=>this.handleResumeChoice("continue"),children:we("ui.resume.continue")},"continue"),x.jsx(Gn,{onClick:()=>this.handleResumeChoice("new"),children:we("ui.resume.new")},"new")],children:x.jsx("p",{children:we("ui.resume.message",{file:this.state.resumeFileName})})}),x.jsxs(Mi,{title:we("ui.importLocalLogs"),open:this.state.importModalVisible,onCancel:this.handleCloseImportModal,footer:null,width:1e3,styles:{body:{maxHeight:"60vh",overflow:"auto"}},children:[x.jsxs("div",{className:Ft.modalActions,children:[x.jsx(Gn,{icon:x.jsx(CW,{}),onClick:this.handleLoadLocalJsonlFile,children:we("ui.loadLocalJsonl")}),x.jsx(Gn,{size:"small",type:this.state.selectedLogs.size>1?"primary":"default",disabled:this.state.selectedLogs.size<2,onClick:this.handleMergeLogs,style:{marginLeft:8},children:we("ui.mergeLogs")})]}),this.state.localLogsLoading?x.jsx("div",{className:Ft.spinCenter,children:x.jsx(ja,{})}):(()=>{const _=this.state.localLogs[this.state.currentProject];return!_||_.length===0?x.jsx("div",{className:Ft.emptyCenter,children:we("ui.noLogs")}):x.jsx("div",{className:Ft.logListContainer,children:x.jsx(Mu,{size:"small",dataSource:_,renderItem:C=>x.jsx(Mu.Item,{className:Ft.logListItem,onClick:()=>{const w=!this.state.selectedLogs.has(C.file);this.handleToggleLogSelect(C.file,w)},children:x.jsxs("div",{className:Ft.logItemRow,children:[x.jsxs("span",{children:[x.jsx(mb,{className:Ft.logCheckbox,checked:this.state.selectedLogs.has(C.file)||!1,onClick:w=>w.stopPropagation(),onChange:w=>{w.stopPropagation(),this.handleToggleLogSelect(C.file,w.target.checked)}}),x.jsx(vu,{className:Ft.logFileIcon}),x.jsx("span",{className:Ft.logFileName,children:this.formatTimestamp(C.timestamp)})]}),x.jsxs("span",{children:[x.jsxs(Ki,{style:{background:"#0a0a0a",border:"1px solid #444",color:"#999"},children:[C.turns||0," ",we("ui.turns")]}),x.jsx(Ki,{style:{background:"#0a0a0a",border:"1px solid #444",color:"#999"},children:this.formatSize(C.size)}),x.jsx(Gn,{size:"small",type:"primary",onClick:w=>{w.stopPropagation(),this.handleOpenLogFile(C.file)},children:we("ui.openLog")})]})]})})})})})()]})]})}}const Mee=D5.createRoot(document.getElementById("root"));Mee.render(x.jsx(Nee,{}));
|