doctor-mail/web-app/assets/index-CFmL7L68.js

1489 lines
5.5 MiB
JavaScript
Raw Normal View History

2025-04-17 15:35:46 +08:00
var Qft=Object.defineProperty;var _ve=e=>{throw TypeError(e)};var Zft=(e,t,n)=>t in e?Qft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bt=(e,t,n)=>Zft(e,typeof t!="symbol"?t+"":t,n),GX=(e,t,n)=>t.has(e)||_ve("Cannot "+n);var qe=(e,t,n)=>(GX(e,t,"read from private field"),n?n.call(e):t.get(e)),Bn=(e,t,n)=>t.has(e)?_ve("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fn=(e,t,n,r)=>(GX(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ar=(e,t,n)=>(GX(e,t,"access private method"),n);var mT=(e,t,n,r)=>({set _(i){fn(e,t,i,n)},get _(){return qe(e,t,r)}});function wIe(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)}})();var to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var xIe={exports:{}},bz={},$Ie={exports:{}},ii={};/**
2025-02-18 08:35:18 +08:00
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-04-17 15:35:46 +08:00
*/var CO=Symbol.for("react.element"),Jft=Symbol.for("react.portal"),eht=Symbol.for("react.fragment"),tht=Symbol.for("react.strict_mode"),nht=Symbol.for("react.profiler"),rht=Symbol.for("react.provider"),iht=Symbol.for("react.context"),oht=Symbol.for("react.forward_ref"),aht=Symbol.for("react.suspense"),sht=Symbol.for("react.memo"),lht=Symbol.for("react.lazy"),Fve=Symbol.iterator;function cht(e){return e===null||typeof e!="object"?null:(e=Fve&&e[Fve]||e["@@iterator"],typeof e=="function"?e:null)}var EIe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RIe=Object.assign,OIe={};function PS(e,t,n){this.props=e,this.context=t,this.refs=OIe,this.updater=n||EIe}PS.prototype.isReactComponent={};PS.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};PS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function MIe(){}MIe.prototype=PS.prototype;function lle(e,t,n){this.props=e,this.context=t,this.refs=OIe,this.updater=n||EIe}var cle=lle.prototype=new MIe;cle.constructor=lle;RIe(cle,PS.prototype);cle.isPureReactComponent=!0;var Ave=Array.isArray,PIe=Object.prototype.hasOwnProperty,ule={current:null},IIe={key:!0,ref:!0,__self:!0,__source:!0};function TIe(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)PIe.call(t,r)&&!IIe.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:CO,type:e,key:o,ref:a,props:i,_owner:ule.current}}function uht(e,t){return{$$typeof:CO,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dle(e){return typeof e=="object"&&e!==null&&e.$$typeof===CO}function dht(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Dve=/\/+/g;function WX(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dht(""+e.key):t.toString(36)}function qF(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case CO:case Jft:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+WX(a,0):r,Ave(i)?(n="",e!=null&&(n=e.replace(Dve,"$&/")+"/"),qF(i,t,n,"",function(c){return c})):i!=null&&(dle(i)&&(i=uht(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Dve,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Ave(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+WX(o,s);a+=qF(o,t,n,l,i)}else if(l=cht(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+WX(o,s++),a+=qF(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function vT(e,t,n){if(e==null)return e;var r=[],i=0;return qF(e,r,"","",function(o){return t.call(n,o,i++)}),r}function fht(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var kl={current:null},KF={transition:null},hht={ReactCurrentDispatcher:kl,ReactCurrentBatchConfig:KF,ReactCurrentOwner:ule};ii.Children={map:vT,forEach:function(e,t,n){vT(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vT(e,function(){t++}),t},toArray:function(e){return vT(e,function(t){return t})||[]},only:function(e){if(!dle(e))throw Error("React.Children.only expected to receive a single React element child.");re
2025-02-18 08:35:18 +08:00
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-04-17 15:35:46 +08:00
*/var pht=u,ght=Symbol.for("react.element"),mht=Symbol.for("react.fragment"),vht=Object.prototype.hasOwnProperty,Cht=pht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yht={key:!0,ref:!0,__self:!0,__source:!0};function _Ie(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)vht.call(t,r)&&!yht.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ght,type:e,key:o,ref:a,props:i,_owner:Cht.current}}bz.Fragment=mht;bz.jsx=_Ie;bz.jsxs=_Ie;xIe.exports=bz;var H=xIe.exports;AbortSignal.prototype.throwIfAborted||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw new DOMException("The operation was aborted.","AbortError")});var Ete={},FIe={exports:{}},Lu={},AIe={exports:{}},DIe={};/**
2025-02-18 08:35:18 +08:00
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-04-17 15:35:46 +08:00
*/(function(e){function t(_,L){var B=_.length;_.push(L);e:for(;0<B;){var z=B-1>>>1,j=_[z];if(0<i(j,L))_[z]=L,_[B]=j,B=z;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var L=_[0],B=_.pop();if(B!==L){_[0]=B;e:for(var z=0,j=_.length,U=j>>>1;z<U;){var G=2*(z+1)-1,X=_[G],q=G+1,Y=_[q];if(0>i(X,B))q<j&&0>i(Y,X)?(_[z]=Y,_[q]=B,z=q):(_[z]=X,_[G]=B,z=G);else if(q<j&&0>i(Y,B))_[z]=Y,_[q]=B,z=q;else break e}}return L}function i(_,L){var B=_.sortIndex-L.sortIndex;return B!==0?B:_.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(_){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=_)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function S(_){if(m=!1,b(_),!g)if(n(l)!==null)g=!0,T(w);else{var L=n(c);L!==null&&P(S,L.startTime-_)}}function w(_,L){g=!1,m&&(m=!1,C(R),R=-1),p=!0;var B=h;try{for(b(L),f=n(l);f!==null&&(!(f.expirationTime>L)||_&&!F());){var z=f.callback;if(typeof z=="function"){f.callback=null,h=f.priorityLevel;var j=z(f.expirationTime<=L);L=e.unstable_now(),typeof j=="function"?f.callback=j:f===n(l)&&r(l),b(L)}else r(l);f=n(l)}if(f!==null)var U=!0;else{var G=n(c);G!==null&&P(S,G.startTime-L),U=!1}return U}finally{f=null,h=B,p=!1}}var x=!1,$=null,R=-1,O=5,M=-1;function F(){return!(e.unstable_now()-M<O)}function A(){if($!==null){var _=e.unstable_now();M=_;var L=!0;try{L=$(!0,_)}finally{L?N():(x=!1,$=null)}}else x=!1}var N;if(typeof y=="function")N=function(){y(A)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,k=D.port2;D.port1.onmessage=A,N=function(){k.postMessage(null)}}else N=function(){v(A,0)};function T(_){$=_,x||(x=!0,N())}function P(_,L){R=v(function(){_(e.unstable_now())},L)}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(_){_.callback=null},e.unstable_continueExecution=function(){g||p||(g=!0,T(w))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var B=h;h=L;try{return _()}finally{h=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var B=h;h=_;try{return L()}finally{h=B}},e.unstable_scheduleCallback=function(_,L,B){var z=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?z+B:z):B=z,_){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=B+j,_={id:d++,callback:L,priorityLevel:_,startTime:B,expirationTime:j,sortIndex:-1},B>z?(_.sortIndex=B,t(c,_),n(l)===null&&_===n(c)&&(m?(C(R),R=-1):m=!0,P(S,B-z))):(_.sortIndex=j,t(l,_),g||p||(g=!0,T(w))),_},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(_){var L=h;return function(){var B=h;h=L;try{return _.apply(this,arguments)}finally{h=B}}}})(DIe);AIe.exports=DIe;var bht=AIe.exports;/**
2025-02-18 08:35:18 +08:00
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-04-17 15:35:46 +08:00
*/var LIe=u,Pu=bht;function an(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NIe=new Set,bE={};function N8(e,t){Nb(e,t),Nb(e+"Capture",t)}function Nb(e,t){for(bE[e]=t,e=0;e<t.length;e++)NIe.add(t[e])}var rm=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rte=Object.prototype.hasOwnProperty,Sht=/^[: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]*$/,Lve={},Nve={};function wht(e){return Rte.call(Nve,e)?!0:Rte.call(Lve,e)?!1:Sht.test(e)?Nve[e]=!0:(Lve[e]=!0,!1)}function xht(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $ht(e,t,n,r){if(t===null||typeof t>"u"||xht(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Bl(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Fs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fs[e]=new Bl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fs[t]=new Bl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fs[e]=new Bl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fs[e]=new Bl(e,2,!1,e,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(e){Fs[e]=new Bl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fs[e]=new Bl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fs[e]=new Bl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fs[e]=new Bl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fs[e]=new Bl(e,5,!1,e.toLowerCase(),null,!1,!1)});var fle=/[\-:]([a-z])/g;function hle(e){return e[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 v
2025-04-17 10:18:46 +08:00
`+UX+e}var qX=!1;function KX(e,t){if(!e||qX)return"";qX=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
2025-02-18 08:35:18 +08:00
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
2025-04-17 15:35:46 +08:00
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{qX=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Xx(e):""}function Eht(e){switch(e.tag){case 5:return Xx(e.type);case 16:return Xx("Lazy");case 13:return Xx("Suspense");case 19:return Xx("SuspenseList");case 0:case 2:case 15:return e=KX(e.type,!1),e;case 11:return e=KX(e.type.render,!1),e;case 1:return e=KX(e.type,!0),e;default:return""}}function Ite(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vy:return"Fragment";case my:return"Portal";case Ote:return"Profiler";case gle:return"StrictMode";case Mte:return"Suspense";case Pte:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kIe:return(e.displayName||"Context")+".Consumer";case zIe:return(e._context.displayName||"Context")+".Provider";case mle:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vle:return t=e.displayName||null,t!==null?t:Ite(e.type)||"Memo";case Y0:t=e._payload,e=e._init;try{return Ite(e(t))}catch{}}return null}function Rht(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ite(t);case 8:return t===gle?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function av(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function HIe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Oht(e){var t=HIe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yT(e){e._valueTracker||(e._valueTracker=Oht(e))}function jIe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=HIe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bD(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Tte(e,t){var n=t.checked;return ko({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kve(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=av(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function VIe(e,t){t=t.checked,t!=null&&ple(e,"checked",t,!1)}function _te(e,t){VIe(e,t);var n=av(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fte(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fte(e,t.type,av(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bve(e
`).replace(N1t,"")}function OT(e,t,n){if(t=c4e(t),c4e(e)!==t&&n)throw Error(an(425))}function MD(){}var qte=null,Kte=null;function Xte(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yte=typeof setTimeout=="function"?setTimeout:void 0,z1t=typeof clearTimeout=="function"?clearTimeout:void 0,u4e=typeof Promise=="function"?Promise:void 0,k1t=typeof queueMicrotask=="function"?queueMicrotask:typeof u4e<"u"?function(e){return u4e.resolve(null).then(e).catch(B1t)}:Yte;function B1t(e){setTimeout(function(){throw e})}function sY(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),EE(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);EE(t)}function D2(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function d4e(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var _S=Math.random().toString(36).slice(2),N1="__reactFiber$"+_S,IE="__reactProps$"+_S,im="__reactContainer$"+_S,Qte="__reactEvents$"+_S,H1t="__reactListeners$"+_S,j1t="__reactHandles$"+_S;function V3(e){var t=e[N1];if(t)return t;for(var n=e.parentNode;n;){if(t=n[im]||n[N1]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=d4e(e);e!==null;){if(n=e[N1])return n;e=d4e(e)}return t}e=n,n=e.parentNode}return null}function SO(e){return e=e[N1]||e[im],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Sy(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(an(33))}function Ez(e){return e[IE]||null}var Zte=[],wy=-1;function zv(e){return{current:e}}function mo(e){0>wy||(e.current=Zte[wy],Zte[wy]=null,wy--)}function so(e,t){wy++,Zte[wy]=e.current,e.current=t}var sv={},pl=zv(sv),Rc=zv(!1),D6=sv;function zb(e,t){var n=e.type.contextTypes;if(!n)return sv;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oc(e){return e=e.childContextTypes,e!=null}function PD(){mo(Rc),mo(pl)}function f4e(e,t,n){if(pl.current!==sv)throw Error(an(168));so(pl,t),so(Rc,n)}function TTe(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(an(108,Rht(e)||"Unknown",i));return ko({},n,r)}function ID(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sv,D6=pl.current,so(pl,e),so(Rc,Rc.current),!0}function h4e(e,t,n){var r=e.stateNode;if(!r)throw Error(an(169));n?(e=TTe(e,t,D6),r.__reactInternalMemoizedMergedChildContext=e,mo(Rc),mo(pl),so(pl,e)):mo(Rc),so(Rc,n)}var Ig=null,Rz=!1,lY=!1;function _Te(e){Ig===null?Ig=[e]:Ig.push(e)}function V1t(e){Rz=!0,_Te(e)}function kv(){if(!lY&&Ig!==null){lY=!0;var e=0,t=ji;try{var n=Ig;for(ji=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ig=null,Rz=!1}catch(i){throw Ig!==null&&(Ig=Ig.slice(e+1)),rTe(yle,kv),i}finally{ji=t,lY=!1}}return null}var xy=[],$y=0,TD=null,_D=0,Id=[],Td=0,L6=null,zg=1,kg="";function m3(e,t){xy[$y++]=_D,xy[$y++]=TD,TD=e,_D=t}function FTe(e,t,n){Id[Td++]=zg,Id[Td++]=kg,Id[Td++]=L6,L6=e;var r=zg;e=kg;var i=32-Ch(r)-1;r&=~(1<<i),n+=1;var o=32-Ch(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,zg=1<<32-Ch(t)+i|n<<i|r,kg=o+e}else zg=1<<o|n<<i|r,kg=e}function Mle(e){e.return!==null&&(m3(e,1),FTe(e,1,0))}function Ple(e){for(;e===TD;)TD=xy[--$y],xy[$y]=null,_D=xy[--$y],xy[$y]=null;for(;e===L6;)L6=Id[--Td],Id[Td]=null,kg=Id[--Td],Id[Td]=null,zg=Id[--Td],Id[Td]=null}var yu=null,hu=null,Eo=!1,th=null;function ATe(e,t){var n=Bd(5,null,null,0);n.elementType="
2025-02-18 08:35:18 +08:00
Error generating stack: `+o.message+`
2025-04-17 15:35:46 +08:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function hY(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ine(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Z1t=typeof WeakMap=="function"?WeakMap:Map;function l_e(e,t,n){n=Vg(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){BD||(BD=!0,pne=r),ine(e,t)},n}function c_e(e,t,n){n=Vg(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ine(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ine(e,t),typeof r!="function"&&(N2===null?N2=new Set([this]):N2.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function x4e(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Z1t;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=fpt.bind(null,e,t,n),t.then(e,e))}function $4e(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function E4e(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Vg(-1,1),t.tag=2,L2(n,t,1))),n.lanes|=1),e)}var J1t=Pm.ReactCurrentOwner,Sc=!1;function _l(e,t,n,r){t.child=e===null?HTe(t,null,n,r):Bb(t,e.child,n,r)}function R4e(e,t,n,r,i){n=n.render;var o=t.ref;return Ky(t,i),r=Ble(e,t,n,r,o,i),n=Hle(),e!==null&&!Sc?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,am(e,t,i)):(Eo&&n&&Mle(t),t.flags|=1,_l(e,t,r,i),t.child)}function O4e(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Qle(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,u_e(e,t,o,r,i)):(e=iA(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:OE,n(a,r)&&e.ref===t.ref)return am(e,t,i)}return t.flags|=1,e=k2(o,r),e.ref=t.ref,e.return=t,t.child=e}function u_e(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(OE(o,r)&&e.ref===t.ref)if(Sc=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Sc=!0);else return t.lanes=e.lanes,am(e,t,i)}return one(e,t,n,r,i)}function d_e(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},so(Oy,au),au|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,so(Oy,au),au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,so(Oy,au),au|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,so(Oy,au),au|=r;return _l(e,t,i,n),t.child}function f_e(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function one(e,t,n,r,i){var o=Oc(n)?D6:pl.current;return o=zb(t,o),Ky(t,i),n=Ble(e,t,n,r,o,i),r=Hle(),e!==null&&!Sc?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,am(e,t,i)):(Eo&&r&&Mle(t),t.flags|=1,_l(e,t,n,i),t.child)}function M4e(e,t,n,r,i){if(Oc(n)){var o=!0;ID(t)}else o=!1;if(Ky(t,i),t.stateNode===null)tA(e,t),kTe(t,n,r),rne(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Zd(c):(c=Oc(n)?D6:pl.current,c=zb(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&y4e(t,a,r,c),Q0=!1;var h=t.memoizedState;a.state=h,DD(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Rc.current||Q0?(typeof d=="function"&&(nne(t,n,d,r),l=t.memoizedState),(s=Q0||C4e(t,n,s,r,h,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.compon
2025-02-18 08:35:18 +08:00
* @remix-run/router v1.21.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2025-04-17 15:35:46 +08:00
*/function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(this,arguments)}var ha;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ha||(ha={}));const j4e="popstate";function wpt(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return NE("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:B6(i)}return $pt(t,n,null,e)}function Ur(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xpt(){return Math.random().toString(36).substr(2,8)}function V4e(e,t){return{usr:e.state,key:e.key,idx:t}}function NE(e,t,n,r){return n===void 0&&(n=null),wo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bv(t):t,{state:n,key:t&&t.key||r||xpt()})}function B6(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bv(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $pt(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ha.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(wo({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function f(){s=ha.Pop;let v=d(),C=v==null?null:v-c;c=v,l&&l({action:s,location:m.location,delta:C})}function h(v,C){s=ha.Push;let y=NE(m.location,v,C);c=d()+1;let b=V4e(y,c),S=m.createHref(y);try{a.pushState(b,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}o&&l&&l({action:s,location:m.location,delta:1})}function p(v,C){s=ha.Replace;let y=NE(m.location,v,C);c=d();let b=V4e(y,c),S=m.createHref(y);a.replaceState(b,"",S),o&&l&&l({action:s,location:m.location,delta:0})}function g(v){let C=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof v=="string"?v:B6(v);return y=y.replace(/ $/,"%20"),Ur(C,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,C)}let m={get action(){return s},get location(){return e(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(j4e,f),l=v,()=>{i.removeEventListener(j4e,f),l=null}},createHref(v){return t(i,v)},createURL:g,encodeLocation(v){let C=g(v);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:h,replace:p,go(v){return a.go(v)}};return m}var Ki;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ki||(Ki={}));const Ept=new Set(["lazy","caseSensitive","path","id","index","children"]);function Rpt(e){return e.index===!0}function GD(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(Ur(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ur(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Rpt(i)){let l=wo({},i,t(i),{id:s});return r[s]=l,l}else{let l=wo({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=GD(i.children,t,a,r)),l}})}function I3(e,t,n){return n===void 0&&(n="/"),oA(e,t,n,!1)}function oA(e,t,n,r){let i=typeof t=="string"?Bv(t):t,o=sm(i.pathname||"/",n);if(o==null)return null;let a=z_e(e);Opt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=zpt(o);s=Lpt(a[l],c,r)}return s}function N_e(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function z_e(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.star
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Yf(a))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}Ur(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=bne(r.formData),c=r.formData;else if(r.body instanceof FormData)l=bne(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Q4e(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Q4e(l)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Yf(d.formMethod))return{path:n,submission:d};let f=Bv(n);return t&&f.search&&ice(f.search)&&l.append("index",""),f.search="?"+l,{path:B6(f),submission:d}}function U4e(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function q4e(e,t,n,r,i,o,a,s,l,c,d,f,h,p,g,m){let v=m?lu(m[1])?m[1].error:m[1].data:void 0,C=e.createURL(t.location),y=e.createURL(i),b=n;o&&t.errors?b=U4e(n,Object.keys(t.errors)[0],!0):m&&lu(m[1])&&(b=U4e(n,m[0]));let S=m?m[1].statusCode:void 0,w=a&&S&&S>=400,x=b.filter((R,O)=>{let{route:M}=R;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return yne(M,t.loaderData,t.errors);if(Jpt(t.loaderData,t.matches[O],R)||l.some(N=>N===R.route.id))return!0;let F=t.matches[O],A=R;return K4e(R,wo({currentUrl:C,currentParams:F.params,nextUrl:y,nextParams:A.params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:w?!1:s||C.pathname+C.search===y.pathname+y.search||C.search!==y.search||V_e(F,A)}))}),$=[];return f.forEach((R,O)=>{if(o||!n.some(D=>D.route.id===R.routeId)||d.has(O))return;let M=I3(p,R.path,g);if(!M){$.push({key:O,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(O),A=Jx(M,R.path),N=!1;h.has(O)?N=!1:c.has(O)?(c.delete(O),N=!0):F&&F.state!=="idle"&&F.data===void 0?N=s:N=K4e(A,wo({currentUrl:C,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:w?!1:s})),N&&$.push({key:O,routeId:R.routeId,path:R.path,matches:M,match:A,controller:new AbortController})}),[x,$]}function yne(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function Jpt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function V_e(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function K4e(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function X4e(e,t,n,r,i){var o;let a;if(e){let c=r[e];Ur(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(d=>G_e(c,d))),l=GD(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function G_e(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>G_e(n,o))}):!1}async function egt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Ur(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";Wb(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Ept.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign
2025-02-18 08:35:18 +08:00
* React Router v6.28.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2025-04-17 15:35:46 +08:00
*/function qD(){return qD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qD.apply(this,arguments)}const xO=u.createContext(null),oce=u.createContext(null),Im=u.createContext(null),ace=u.createContext(null),$p=u.createContext({outlet:null,matches:[],isDataRoute:!1}),q_e=u.createContext(null);function vgt(e,t){let{relative:n}=t===void 0?{}:t;FS()||Ur(!1);let{basename:r,navigator:i}=u.useContext(Im),{hash:o,pathname:a,search:s}=kz(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Gg([r,a])),i.createHref({pathname:l,search:s,hash:o})}function FS(){return u.useContext(ace)!=null}function Vh(){return FS()||Ur(!1),u.useContext(ace).location}function K_e(e){u.useContext(Im).static||u.useLayoutEffect(e)}function Tm(){let{isDataRoute:e}=u.useContext($p);return e?Igt():Cgt()}function Cgt(){FS()||Ur(!1);let e=u.useContext(xO),{basename:t,future:n,navigator:r}=u.useContext(Im),{matches:i}=u.useContext($p),{pathname:o}=Vh(),a=JSON.stringify(Lz(i,n.v7_relativeSplatPath)),s=u.useRef(!1);return K_e(()=>{s.current=!0}),u.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=Nz(c,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Gg([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const ygt=u.createContext(null);function bgt(e){let t=u.useContext($p).outlet;return t&&u.createElement(ygt.Provider,{value:e},t)}function Sgt(){let{matches:e}=u.useContext($p),t=e[e.length-1];return t?t.params:{}}function kz(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(Im),{matches:i}=u.useContext($p),{pathname:o}=Vh(),a=JSON.stringify(Lz(i,r.v7_relativeSplatPath));return u.useMemo(()=>Nz(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function wgt(e,t,n,r){FS()||Ur(!1);let{navigator:i}=u.useContext(Im),{matches:o}=u.useContext($p),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Vh(),d;d=c;let f=d.pathname||"/",h=f;if(l!=="/"){let m=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let p=I3(e,{pathname:h});return Ogt(p&&p.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Gg([l,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:Gg([l,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n,r)}function xgt(){let e=J_e(),t=zz(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:i},n):null,null)}const $gt=u.createElement(xgt,null);class Egt extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement($p.Provider,{value:this.props.routeContext},u.createElement(q_e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Rgt(e){let{routeContext:t,match:n,children:r}=e,i=u.useContext(xO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement($p.Provider,{value:t},r)}function Ogt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),
2025-02-18 08:35:18 +08:00
* React Router DOM v6.28.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
2025-04-17 15:35:46 +08:00
*/function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ub.apply(this,arguments)}function tFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Lgt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ngt(e,t){return e.button===0&&(!t||t==="_self")&&!Lgt(e)}function Sne(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function zgt(e,t){let n=Sne(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const kgt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Bgt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Hgt="6";try{window.__reactRouterVersion=Hgt}catch{}function jgt(e,t){return Qpt({basename:void 0,future:Ub({},void 0,{v7_prependBasename:!0}),history:wpt({window:void 0}),hydrationData:Vgt(),routes:e,mapRouteProperties:Dgt,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Vgt(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ub({},t,{errors:Ggt(t.errors)})),t}function Ggt(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new UD(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const nFe=u.createContext({isTransitioning:!1}),Wgt=u.createContext(new Map),Ugt="startTransition",o3e=IS[Ugt],qgt="flushSync",a3e=L_e[qgt];function Kgt(e){o3e?o3e(e):e()}function G9(e){a3e?a3e(e):e()}class Xgt{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Ygt(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=u.useState(n.state),[a,s]=u.useState(),[l,c]=u.useState({isTransitioning:!1}),[d,f]=u.useState(),[h,p]=u.useState(),[g,m]=u.useState(),v=u.useRef(new Map),{v7_startTransition:C}=r||{},y=u.useCallback(R=>{C?Kgt(R):R()},[C]),b=u.useCallback((R,O)=>{let{deletedFetchers:M,flushSync:F,viewTransitionOpts:A}=O;M.forEach(D=>v.current.delete(D)),R.fetchers.forEach((D,k)=>{D.data!==void 0&&v.current.set(k,D.data)});let N=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!A||N){F?G9(()=>o(R)):y(()=>o(R));return}if(F){G9(()=>{h&&(d&&d.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:A.currentLocation,nextLocation:A.nextLocation})});let D=n.window.document.startViewTransition(()=>{G9(()=>o(R))});D.finished.finally(()=>{G9(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),G9(()=>p(D));return}h?(d&&d.resolve(),h.skipTransition(),m({state:R,currentLocation:A.currentLocation,nextLocation:A.nextLocation})):(s(R),c({isTransitioning:!0,flushSync:!1,currentLocation:A.currentLocation,nextLocation:A.nextLocation}))},[n.window,h,d,v,y]);u.useLayoutEffect(()=>n.subscribe(b),[n,b]),u.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new Xgt)},[l]),u.useEffect(()=>{if(d&&a&&n.window){let R=a,O=d.promise,M=n.window.document.startViewTransition(async()=>{y(()=>o(R)),await O});M.finished.finally(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(M)}},[y,a,d,n.window]),u.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,h,i.location,a]),u.useEffect(()=>{!l.isTransitioning&&g&&(s(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,
2025-02-18 08:35:18 +08:00
background-color: #${t==="up"?c:d};
color: ${t==="up"?"black":"white"};
padding: 2px;
2025-04-17 15:35:46 +08:00
`;s.push("%c",t==="up"?">>":"<<",n,`#${o}`,`%c${i}%c`,"%O"),l.push(f,`${f}; font-weight: bold;`,`${f}; font-weight: normal;`)}return t==="up"?l.push(r?{input:a,context:e.context}:{input:a}):l.push({input:a,result:e.result,elapsedMs:e.elapsedMs,...r&&{context:e.context}}),{parts:s,args:l}}const a0t=({c:e=console,colorMode:t="css",withContext:n})=>r=>{const i=r.input,o=i0t(i)?Object.fromEntries(i):i,{parts:a,args:s}=o0t({...r,colorMode:t,input:o,withContext:n}),l=r.direction==="down"&&r.result&&(r.result instanceof Error||"error"in r.result.result)?"error":"log";e[l].apply(null,[a.join(" ")].concat(s))};function s0t(e={}){const{enabled:t=()=>!0}=e,n=e.colorMode??(typeof window>"u"?"ansi":"css"),r=e.withContext??n==="css",{logger:i=a0t({c:e.console,colorMode:n,withContext:r})}=e;return()=>({op:o,next:a})=>B8(s=>{t({...o,direction:"up"})&&i({...o,direction:"up"});const l=Date.now();function c(d){const f=Date.now()-l;t({...o,direction:"down",result:d})&&i({...o,direction:"down",elapsedMs:f,result:d})}return a(o).pipe(Nmt({next(d){c(d)},error(d){c(d)}})).subscribe(s)})}function w3e(e){return Array.isArray(e)?e:[e]}function l0t(e){return t=>{const n=w3e(e.true).map(i=>i(t)),r=w3e(e.false).map(i=>i(t));return i=>B8(o=>{const a=e.condition(i.op)?n:r;return RFe({op:i.op,links:a}).subscribe(o)})}}const x3e=e=>typeof e=="function"?e():e,$3e=e=>e(),c0t=e=>e===0?0:Math.min(1e3*2**e,3e4),u0t={enabled:!1,closeMs:0};function d0t(e){const{WebSocket:t=WebSocket,retryDelayMs:n=c0t,onOpen:r,onClose:i}=e,o={...u0t,...e.lazy};/* istanbul ignore next -- @preserve */if(!t)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");let a=[];const s=Object.create(null);let l=0,c,d=0,f,h=o.enabled?null:w();function p(){if(!h){h=w();return}setTimeout(()=>{if((h==null?void 0:h.state)==="open"){for(const $ of Object.values(s))$.connection||($.connection=h);a.length===1?h.ws.send(JSON.stringify(a.pop())):h.ws.send(JSON.stringify(a)),a=[],S()}})}function g($){if(c)return;$.state="connecting";const R=n(l++);C(R)}function m($){const R=Object.values(s);return $?R.some(O=>O.connection===$):R.length>0}function v(){if(o.enabled&&!m())return;const $=h;h=w(),$&&y($)}function C($){c||(c=setTimeout(v,$))}function y($){var R;m($)||(R=$.ws)==null||R.close()}function b($){a.some(R=>R.id===$.op.id)||x($.op,$.callbacks)}const S=()=>{o.enabled&&(clearTimeout(f),f=setTimeout(()=>{var $;h&&(m(h)||(($=h.ws)==null||$.close(),h=null))},o.closeMs))};function w(){const $={id:++d,state:"connecting"};clearTimeout(f);const R=()=>{$.state="closed",$===h&&g($)};return $3e(async()=>{let O=await x3e(e.url);if(e.connectionParams){const N=O.includes("?")?"&":"?";O+=N+"connectionParams=1"}const M=new t(O);$.ws=M,clearTimeout(c),c=void 0,M.addEventListener("open",()=>{$3e(async()=>{/* istanbul ignore next -- @preserve */if((h==null?void 0:h.ws)===M){if(e.connectionParams){const N={method:"connectionParams",data:await x3e(e.connectionParams)};M.send(JSON.stringify(N))}l=0,$.state="open",r==null||r(),p()}}).catch(N=>{M.close(3e3,N),R()})}),M.addEventListener("error",R);const F=N=>{if($===h&&N.method==="reconnect"){v();for(const D of Object.values(s))D.type==="subscription"&&b(D)}},A=N=>{var k,T;const D=N.id!==null&&s[N.id];if(D){if((T=(k=D.callbacks).next)==null||T.call(k,N),$===h&&D.connection!==h){const P=D.connection;D.connection=$,P&&y(P)}"result"in N&&N.result.type==="stopped"&&h===$&&D.callbacks.complete()}};M.addEventListener("message",({data:N})=>{S();const D=JSON.parse(N);"method"in D?F(D):A(D),$!==h&&y($)}),M.addEventListener("close",({code:N})=>{var D,k,T,P;$.state==="open"&&(i==null||i({code:N})),$.state="closed",h===$&&g($);for(const[_,L]of Object.entries(s))if(L.connection===$){if($.state==="closed"){delete s[_],(k=(D=L.callbacks).complete)==null||k.call(D);continue}L.type==="subscription"?b(L):(delete s[_],(P=(T=L.callbacks).error)==null||P.call(T,bh.from(new hce("WebSocket closed prematurely"))))}})}).catch(R),$}function x($,R){const{type:O,input:M,path:F,id:A}=$,N={id:A,
`;n.right=new sl(hi(a,rs(o.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new hp(l)),n.right.integrate(e,0),n.forward()}kAe(e,t,n,s)},jAe=(e,t,n,r,i)=>{let o=t;const a=Pc();for(;o&&(!o.countable||o.deleted);){if(!o.deleted&&o.content.constructor===Na){const c=o.content;a.set(c.key,c)}o=o.right}let s=0,l=!1;for(;t!==o;){if(n===t&&(l=!0),!t.deleted){const c=t.content;switch(c.constructor){case Na:{const{key:d,value:f}=c,h=r.get(d)??null;(a.get(d)!==c||h===f)&&(t.delete(e),s++,!l&&(i.get(d)??null)===f&&h!==f&&(h===null?i.delete(d):i.set(d,h))),!l&&!t.deleted&&LS(i,c);break}}}t=t.right}return s},G4t=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Na){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},W4t=e=>{let t=0;return ao(e.doc,n=>{let r=e._start,i=e._start,o=Pc();const a=Xne(o);for(;i;){if(i.deleted===!1)switch(i.content.constructor){case Na:LS(a,i.content);break;default:t+=jAe(n,r,i,o,a),o=Xne(a),r=i;break}i=i.right}}),t},U4t=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&EAe(e,n.store.clients.get(r),o,i,a=>{!a.deleted&&a.content.constructor===Na&&a.constructor!==Ad&&t.add(a.parent)})}ao(n,r=>{fAe(e,e.deleteSet,i=>{if(i instanceof Ad||!i.parent._hasFormatting||t.has(i.parent))return;const o=i.parent;i.content.constructor===Na?t.add(o):G4t(r,i)});for(const i of t)W4t(i)})},Y3e=(e,t,n)=>{const r=n,i=Xne(t.currentAttributes),o=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case Fm:case j8:case hp:n<t.right.length&&vv(e,hi(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e);break}t.forward()}o&&jAe(e,o,t.right,i,t.currentAttributes);const a=(t.left||t.right).parent;return a._searchMarker&&rR(a._searchMarker,t.index,-r+n),t};class q4t extends Kz{constructor(t,n,r){super(t,n),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(i=>{i===null?this.childListChanged=!0:this.keysChanged.add(i)})}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc,n=[];ao(t,r=>{const i=new Map,o=new Map;let a=this.target._start,s=null;const l={};let c="",d=0,f=0;const h=()=>{if(s!==null){let p=null;switch(s){case"delete":f>0&&(p={delete:f}),f=0;break;case"insert":(typeof c=="object"||c.length>0)&&(p={insert:c},i.size>0&&(p.attributes={},i.forEach((g,m)=>{g!==null&&(p.attributes[m]=g)}))),c="";break;case"retain":d>0&&(p={retain:d},pvt(l)||(p.attributes=dvt({},l))),d=0;break}p&&n.push(p),s=null}};for(;a!==null;){switch(a.content.constructor){case Fm:case j8:this.adds(a)?this.deletes(a)||(h(),s="insert",c=a.content.getContent()[0],h()):this.deletes(a)?(s!=="delete"&&(h(),s="delete"),f+=1):a.deleted||(s!=="retain"&&(h(),s="retain"),d+=1);break;case hp:this.adds(a)?this.deletes(a)||(s!=="insert"&&(h(),s="insert"),c+=a.content.str):this.deletes(a)?(s!=="delete"&&(h(),s="delete"),f+=a.length):a.deleted||(s!=="retain"&&(h(),s="retain"),d+=a.length);break;case Na:{const{key:p,value:g}=a.content;if(this.adds(a)){if(!this.deletes(a)){const m=i.get(p)??null;$2(m,g)?g!==null&&a.delete(r):(s==="retain"&&h(),$2(g,o.get(p)??null)?delete l[p]:l[p]=g)}}else if(this.deletes(a)){o.set(p,g);const m=i.get(p)??null;$2(m,g)||(s==="retain"&&h(),l[p]=m)}else if(!a.deleted){o.set(p,g);const m=l[p];m!==void 0&&($2(m,g)?m!==null&&a.delete(r):(s==="retain"&&h(),g===null?delete l[p]:l[p]=g))}a.deleted||(s==="insert"&&h(),LS(i,a.content));break}}a=a.right}for(h();n.length>0;){const p=n[n.length-1];if(p.retain!==void 0&&p.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class e7 extends Is{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??dl(),this._length}_integrate(t,n){super._integrate(t,n);try{this._pending.fo
`?a.insert.slice(0,-1):a.insert;(typeof s!="string"||s.length>0)&&TY(r,this,i,s,a.attributes||{})}else a.retain!==void 0?X3e(r,this,i,a.retain,a.attributes||{}):a.delete!==void 0&&Y3e(r,i,a.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,n,r){this.doc??dl();const i=[],o=new Map,a=this.doc;let s="",l=this._start;function c(){if(s.length>0){const f={};let h=!1;o.forEach((g,m)=>{h=!0,f[m]=g});const p={insert:s};h&&(p.attributes=f),i.push(p),s=""}}const d=()=>{for(;l!==null;){if(ny(l,t)||n!==void 0&&ny(l,n))switch(l.content.constructor){case hp:{const f=o.get("ychange");t!==void 0&&!ny(l,t)?(f===void 0||f.user!==l.id.client||f.type!=="removed")&&(c(),o.set("ychange",r?r("removed",l.id):{type:"removed"})):n!==void 0&&!ny(l,n)?(f===void 0||f.user!==l.id.client||f.type!=="added")&&(c(),o.set("ychange",r?r("added",l.id):{type:"added"})):f!==void 0&&(c(),o.delete("ychange")),s+=l.content.str;break}case Fm:case j8:{c();const f={insert:l.content.getContent()[0]};if(o.size>0){const h={};f.attributes=h,o.forEach((p,g)=>{h[g]=p})}i.push(f);break}case Na:ny(l,t)&&(c(),LS(o,l.content));break}l=l.right}c()};return t||n?ao(a,f=>{t&&Qne(f,t),n&&Qne(f,n),d()},"cleanup"):d(),i}insert(t,n,r){if(n.length<=0)return;const i=this.doc;i!==null?ao(i,o=>{const a=zT(o,this,t,!r);r||(r={},a.currentAttributes.forEach((s,l)=>{r[l]=s})),TY(o,this,a,n,r)}):this._pending.push(()=>this.insert(t,n,r))}insertEmbed(t,n,r){const i=this.doc;i!==null?ao(i,o=>{const a=zT(o,this,t,!r);TY(o,this,a,n,r||{})}):this._pending.push(()=>this.insertEmbed(t,n,r||{}))}delete(t,n){if(n===0)return;const r=this.doc;r!==null?ao(r,i=>{Y3e(i,zT(i,this,t,!0),n)}):this._pending.push(()=>this.delete(t,n))}format(t,n,r){if(n===0)return;const i=this.doc;i!==null?ao(i,o=>{const a=zT(o,this,t,!1);a.right!==null&&X3e(o,this,a,n,r)}):this._pending.push(()=>this.format(t,n,r))}removeAttribute(t){this.doc!==null?ao(this.doc,n=>{uL(n,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,n){this.doc!==null?ao(this.doc,r=>{Fce(r,this,t,n)}):this._pending.push(()=>this.setAttribute(t,n))}getAttribute(t){return Ace(this,t)}getAttributes(){return NAe(this)}_write(t){t.writeTypeRef(h3t)}}const K4t=e=>new e7;class _Y{constructor(t,n=()=>!0){this._filter=n,this._root=t,this._currentNode=t._start,this._firstCall=!0,t.doc??dl()}[Symbol.iterator](){return this}next(){let t=this._currentNode,n=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(n)))do if(n=t.content.type,!t.deleted&&(n.constructor===t7||n.constructor===q6)&&n._start!==null)t=n._start;else for(;t!==null;)if(t.right!==null){t=t.right;break}else t.parent===this._root?t=null:t=t.parent._item;while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class q6 extends Is{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new q6}clone(){const t=new q6;return t.insert(0,this.toArray().map(n=>n instanceof Is?n.clone():n)),t}get length(){return this.doc??dl(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new _Y(this,t)}querySelector(t){t=t.toUpperCase();const r=new _Y(this,i=>i.nodeName&&i.nodeName.toUpperCase()===t).next();return r.done?null:r.value}querySelectorAll(t){return t=t.toUpperCase(),cm(new _Y(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t))}_callObserver(t,n){Yz(this,t,new Q4t(this,n,t))}toString(){return _Ae(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,n={},r){const i=t.createDocumentFragment();return r!==void 0&&r._createAssociation(i,this),iR(this,o=>{i.insertBefore(o.toDOM(t,n,r),null)}),i}insert(t,n){this.doc!==null?ao(this.doc,r=>{DAe(r,this,t,n)}):this._prelimContent.splice(t,0,...n)}insertAfter(t,n){if(this.doc!==null)ao(this.doc,r=>{const i=t&&t instanceof Is?t._item:t;cL(r,this,i,n)
${t}`),fA=()=>typeof navigator<"u"&&navigator.product==="ReactNative",eDe=(e,t,n)=>{const r=Hv(t),i=Qs(),o=$r(r),a=e.messageHandlers[o];return a?a(i,r,e,n,o):console.error("Unable to compute message"),i},tDe=e=>{if(e.shouldConnect&&e.socket===null){const t=e.url.replace(/^http/,"ws"),n=new WebSocket(t);n.binaryType="arraybuffer",e.socket=n,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,n.onmessage=r=>{e.wsLastMessageReceived=Qb();const i=eDe(e,new Uint8Array(r.data),!0);mce(i)>1&&n.send(xo(i))},n.onerror=r=>{console.log("WebSocket connection error:",r),e.emit("connection-error",[r,e])},n.onclose=r=>{console.log("WebSocket closed",r),e.emit("connection-close",[r.reason,e]),e.socket=null,e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,zce(e.awareness,Array.from(e.awareness.getStates().keys()).filter(i=>i!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(()=>tDe(e),gce(T2t(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime))},n.onopen=()=>{console.log("\x1B[32m%s\x1B[0m","WebSocket connected"),e.wsLastMessageReceived=Qb(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const r=Qs();if(Zn(r,0),tre(r,e.doc),n.send(xo(r)),e.awareness.getLocalState()!==null){const i=Qs();Zn(i,1),ra(i,z$(e.awareness,[e.doc.clientID])),n.send(xo(i))}},e.emit("status",[{status:"connecting"}])}},DY=(e,t)=>{e.wsconnected&&e.socket&&e.socket.send(t),!fA()&&e.bcconnected&&ty(e.bcChannel,t,e)},nDe=class extends KFe{constructor(t,n,r,{connect:i=!0,awareness:o=new _3t(r),params:a={},protocols:s=[],resyncInterval:l=-1,maxBackoffTime:c=2500,disableBc:d=!1}={}){super();Bt(this,"serverUrl");Bt(this,"bcChannel");Bt(this,"maxBackoffTime");Bt(this,"params");Bt(this,"protocols");Bt(this,"doc");Bt(this,"roomId");Bt(this,"socket");Bt(this,"awareness");Bt(this,"wsconnected");Bt(this,"wsconnecting");Bt(this,"bcconnected");Bt(this,"disableBc");Bt(this,"wsUnsuccessfulReconnects");Bt(this,"messageHandlers");Bt(this,"_synced");Bt(this,"wsLastMessageReceived");Bt(this,"shouldConnect");Bt(this,"_resyncInterval");Bt(this,"_bcSubscriber");Bt(this,"_updateHandler");Bt(this,"_awarenessUpdateHandler");Bt(this,"_exitHandler");for(;t[t.length-1]==="/";)t=t.slice(0,t.length-1);this.serverUrl=t,this.params={...a,roomId:n},this.bcChannel=t+"/"+n,this.maxBackoffTime=c,this.protocols=s,this.doc=r,this.socket=null,this.awareness=o,this.roomId=n,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=fA()?!0:d,this.wsUnsuccessfulReconnects=0,this.messageHandlers=TO.slice(),this._synced=!1,this.wsLastMessageReceived=0,this.shouldConnect=i,this._resyncInterval=0,l>0&&(this._resyncInterval=setInterval(()=>{if(this.socket&&this.socket.OPEN){const f=Qs();Zn(f,0),tre(f,r),console.log(`Resyncing data on interval: ${xo(f)}`),this.socket.send(xo(f))}},l)),this._bcSubscriber=(f,h)=>{if(h!==this){const p=eDe(this,new Uint8Array(f),!1);mce(p)>1&&ty(this.bcChannel,xo(p),this)}},this._updateHandler=(f,h)=>{if(h!==this){const p=Qs();Zn(p,0),R3t(p,f),DY(this,xo(p))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:f,updated:h,removed:p},g)=>{const m=f.concat(h).concat(p);console.log(`update awareness from ${g}`,m);const v=Qs();Zn(v,1),ra(v,z$(o,m)),DY(this,xo(v))},this._exitHandler=()=>{zce(this.awareness,[r.clientID],"app closed"),console.log("App closed, removing awareness states.")},mv&&typeof process<"u"&&process.on("exit",this._exitHandler),o.on("update",this._awarenessUpdateHandler),i&&this.connect()}get url(){const t=S3t(this.params);return this.serverUrl+(t.length===0?"":"?"+t)}get synced(){return this._synced}set synced(t){this._synced!==t&&(this._synced=t,this.emit("synced",[t]),this.emit("sync",[t]))}destroy(){this._resyncInterval&&clearInterval(this._resyncInterval),this.disconnect(),mv&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),console.log("Destroying provider and clearing intervals/subscriptions."),
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Z8t[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},g6e=Symbol("internals");function U9(e){return e&&String(e).trim().toLowerCase()}function gA(e){return e===!1||e==null?e:Ft.isArray(e)?e.map(gA):String(e)}function eCt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const tCt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function BY(e,t,n,r,i){if(Ft.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Ft.isString(t)){if(Ft.isString(r))return t.indexOf(r)!==-1;if(Ft.isRegExp(r))return r.test(t)}}function nCt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rCt(e,t){const n=Ft.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Tc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const d=U9(l);if(!d)throw new Error("header name must be a non-empty string");const f=Ft.findKey(i,d);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=gA(s))}const a=(s,l)=>Ft.forEach(s,(c,d)=>o(c,d,l));if(Ft.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ft.isString(t)&&(t=t.trim())&&!tCt(t))a(J8t(t),n);else if(Ft.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=U9(t),t){const r=Ft.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return eCt(i);if(Ft.isFunction(n))return n.call(this,i,r);if(Ft.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=U9(t),t){const r=Ft.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||BY(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=U9(a),a){const s=Ft.findKey(r,a);s&&(!n||BY(r,r[s],s,n))&&(delete r[s],i=!0)}}return Ft.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||BY(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return Ft.forEach(this,(i,o)=>{const a=Ft.findKey(r,o);if(a){n[a]=gA(i),delete n[o];return}const s=t?nCt(o):String(o).trim();s!==o&&delete n[o],n[s]=gA(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ft.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Ft.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[g6e]=this[g6e]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=U9(a);r[s]||(rCt(i,a),r[s]=!0)}return Ft.isArray(t)?t.forEach(o):o(t),this}}Tc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ft.reduceDescriptors(Tc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ft.freezeMethods(Tc);function HY(e,t){const n=this||FO,r=t||n,i=Tc.from(r.headers);let o=r.data;return Ft.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function BDe(e){return!!(e&&e.__CANCEL__)}function kS(e,t,n){_r.call(this,e??"canceled",_r.ERR_CANCELED,t,n),this.name="CanceledError"}Ft.inherits(kS,_r,{__CANCEL__:!0});function HDe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _r("Request failed with status code "+n.status,[_r.ERR_BAD_REQUEST,_r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function iCt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oCt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[o];a||(a=c),n[i]=l,r[i]=c;let f=o,h=0;for(;f!==i;)h+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const p=d&&c-d;return p?Math.round(h*1e3/p):void 0}}function aCt(e,t){let n=0,r=1e3/t,i,o;const a=(c,d=Date.now())=>{n=d,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?a(c,d):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const mL=(e,t,n=3)=>{let r=0;const i=oCt(50,250);return aCt(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),d=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},m6e=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},v6e=e=>(...t)=>Ft.asap(()=>e(...t)),sCt=rl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,rl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(rl.origin),rl.navigator&&/(msie|trident)/i.test(rl.navigator.userAgent)):()=>!0,lCt=rl.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];Ft.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ft.isString(r)&&a.push("path="+r),Ft.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cCt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uCt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jDe(e,t){return e&&!cCt(t)?uCt(e,t):t}const C6e=e=>e instanceof Tc?{...e}:e;function Y6(e,t){t=t||{};const n={};function r(c,d,f,h){return Ft.isPlainObject(c)&&Ft.isPlainObject(d)?Ft.merge.call({caseless:h},c,d):Ft.isPlainObject(d)?Ft.merge({},d):Ft.isArray(d)?d.slice():d}function i(c,d,f,h){if(Ft.isUndefined(d)){if(!Ft.isUndefined(c))return r(void 0,c,f,h)}else return r(c,d,f,h)}function o(c,d){if(!Ft.isUndefined(d))return r(void 0,d)}function a(c,d){if(Ft.isUndefined(d)){if(!Ft.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function s(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEn
2025-04-17 10:18:46 +08:00
`+o.map(S6e).join(`
2025-04-17 15:35:46 +08:00
`):" "+S6e(o[0]):"as no adapter specified";throw new _r("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:fre};function jY(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kS(null,e)}function w6e(e){return jY(e),e.headers=Tc.from(e.headers),e.data=HY.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),UDe.getAdapter(e.adapter||FO.adapter)(e).then(function(r){return jY(e),r.data=HY.call(e,e.transformResponse,r),r.headers=Tc.from(r.headers),r},function(r){return BDe(r)||(jY(e),r&&r.response&&(r.response.data=HY.call(e,e.transformResponse,r.response),r.response.headers=Tc.from(r.response.headers))),Promise.reject(r)})}const qDe="1.7.9",dk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const x6e={};dk.transitional=function(t,n,r){function i(o,a){return"[Axios v"+qDe+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new _r(i(a," has been removed"+(n?" in "+n:"")),_r.ERR_DEPRECATED);return n&&!x6e[a]&&(x6e[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};dk.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xCt(e,t,n){if(typeof e!="object")throw new _r("options must be an object",_r.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new _r("option "+o+" must be "+l,_r.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _r("Unknown option "+o,_r.ERR_BAD_OPTION)}}const mA={assertOptions:xCt,validators:dk},m1=mA.validators;class y6{constructor(t){this.defaults=t,this.interceptors={request:new p6e,response:new p6e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Y6(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&mA.assertOptions(r,{silentJSONParsing:m1.transitional(m1.boolean),forcedJSONParsing:m1.transitional(m1.boolean),clarifyTimeoutError:m1.transitional(m1.boolean)},!1),i!=null&&(Ft.isFunction(i)?n.paramsSerializer={serialize:i}:mA.assertOptions(i,{encode:m1.function,serialize:m1.function},!0)),mA.assertOptions(n,{baseUrl:m1.spelling("baseURL"),withXsrfToken:m1.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&Ft.merge(o.common,o[n.method]);o&&Ft.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Tc.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,f=0,h;if(!l){const g=[w6e.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,c),h=g.length,d=Promise.resolve(n);f<h;)d=d.then(g[f++],g[f++]);return d}h=s.length;let p=n;for(f=0;f<h;){const g=s[f++],m=s[f++];try{p=g(p)}catch(v){m.call(this,v);break}}try{d=w6e.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,h=c.length;f<h;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=Y6(this.defaults,t);const n=jDe(t.baseURL,t.url);return NDe(n,t.params,t.paramsSerializer)}}Ft.forEach(["delete","get","head","options"],function(t){y6.prototype[t]=function(n,r){return this.request(Y6(r||{},{method:t,url:n,data:(r||{}).data}))}});Ft.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Y6(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}y6.prototype[t]=n(),y6.prototype[t+"Form"]=n(!0)});class qce{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new kS(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qce(function(i){t=i}),cancel:t}}}function $Ct(e){return function(n){return e.apply(null,n)}}function ECt(e){return Ft.isObject(e)&&e.isAxiosError===!0}const hre={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupport
2025-02-18 08:35:18 +08:00
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${a}px !important;
height: ${s}px !important;
top: ${l}px !important;
left: ${c}px !important;
}
2025-04-17 15:35:46 +08:00
`),()=>{document.head.removeChild(d)}},[t]),H.jsx(Z7t,{isPresent:t,childRef:r,sizeRef:i,children:u.cloneElement(e,{ref:r})})}const eSt=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=xue(tSt),l=u.useId(),c=u.useCallback(f=>{s.set(f,!0);for(const h of s.values())if(!h)return;r&&r()},[s,r]),d=u.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:f=>(s.set(f,!1),()=>s.delete(f))}),o?[Math.random(),c]:[n,c]);return u.useMemo(()=>{s.forEach((f,h)=>s.set(h,!1))},[n]),u.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=H.jsx(J7t,{isPresent:n,children:e})),H.jsx(gk.Provider,{value:d,children:e})};function tSt(){return new Map}const jT=e=>e.key||"";function k8e(e){const t=[];return u.Children.forEach(e,n=>{u.isValidElement(n)&&t.push(n)}),t}const Ck=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{const s=u.useMemo(()=>k8e(e),[e]),l=s.map(jT),c=u.useRef(!0),d=u.useRef(s),f=xue(()=>new Map),[h,p]=u.useState(s),[g,m]=u.useState(s);sNe(()=>{c.current=!1,d.current=s;for(let y=0;y<g.length;y++){const b=jT(g[y]);l.includes(b)?f.delete(b):f.get(b)!==!0&&f.set(b,!1)}},[g,l.length,l.join("-")]);const v=[];if(s!==h){let y=[...s];for(let b=0;b<g.length;b++){const S=g[b],w=jT(S);l.includes(w)||(y.splice(b,0,S),v.push(S))}a==="wait"&&v.length&&(y=v),m(k8e(y)),p(s);return}const{forceRender:C}=u.useContext(vue);return H.jsx(H.Fragment,{children:g.map(y=>{const b=jT(y),S=s===g||l.includes(b),w=()=>{if(f.has(b))f.set(b,!0);else return;let x=!0;f.forEach($=>{$||(x=!1)}),x&&(C==null||C(),m(d.current),i&&i())};return H.jsx(eSt,{isPresent:S,initial:!c.current||r?void 0:!1,custom:S?void 0:n,presenceAffectsLayout:o,mode:a,onExitComplete:S?void 0:w,children:y},b)})})};var kO=u.createContext({});function V(){return V=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},V.apply(null,arguments)}var nSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 018.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z"}}]},name:"account-book",theme:"filled"};function xNe(e){if(Array.isArray(e))return e}function rSt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Tre(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 yk(e,t){if(e){if(typeof e=="string")return Tre(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)?Tre(e,t):void 0}}function $Ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,t){return xNe(e)||rSt(e,t)||yk(e,t)||$Ne()}function Qt(e){"@babel/helpers - typeof";return Qt=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},Qt(e)}function iSt(e,t){if(Qt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ENe(e){var t=iSt(e,"string");return Qt(t)=="symbol"?t:t+""}function re(e,t,n){return(t=ENe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oSt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Jt(e,t){if(e==null)return{};var n,r,i=oSt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var RNe={exports:{}};/*!
2025-02-18 08:35:18 +08:00
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
2025-04-17 15:35:46 +08:00
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}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 s in o)t.call(o,s)&&o[s]&&(a=i(a,s));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})()})(RNe);var Ct=RNe.exports;const xe=sf(Ct),Ka=Math.round;function tQ(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 B8e=(e,t,n)=>n===0?e:e/100;function K9(e,t){const n=t||255;return e>n?n:e<0?0:e}class Pr{constructor(t){re(this,"isValid",!0),re(this,"r",0),re(this,"g",0),re(this,"b",0),re(this,"a",1),re(this,"_h",void 0),re(this,"_s",void 0),re(this,"_l",void 0),re(this,"_v",void 0),re(this,"_max",void 0),re(this,"_min",void 0),re(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof Pr)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=K9(t.r),this.g=K9(t.g),this.b=K9(t.b),this.a=typeof t.a=="number"?K9(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=Ka(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=s=>(r[s]-this[s])*i+this[s],a={r:Ka(o("r")),g:Ka(o("g")),b:Ka(o("b")),a:Ka(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=>Ka((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=Ka(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:
2025-02-18 08:35:18 +08:00
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2025-04-17 15:35:46 +08:00
`,LNe=function(t){var n=u.useContext(kO),r=n.csp,i=n.prefixCls,o=ESt;i&&(o=o.replace(/anticon/g,i)),u.useEffect(function(){var a=t.current,s=KL(a);J1(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},RSt=["icon","className","onClick","style","primaryColor","secondaryColor"],G$={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function OSt(e){var t=e.primaryColor,n=e.secondaryColor;G$.primaryColor=t,G$.secondaryColor=n||ANe(t),G$.calculated=!!n}function MSt(){return ae({},G$)}var HS=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=Jt(t,RSt),c=u.useRef(),d=G$;if(a&&(d={primaryColor:a,secondaryColor:s||ANe(a)}),LNe(c),Dre(K8e(n),"icon should be icon definiton, but got ".concat(n)),!K8e(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=ae(ae({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Lre(f.icon,"svg-".concat(f.name),ae(ae({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};HS.displayName="IconReact";HS.getTwoToneColors=MSt;HS.setTwoToneColors=OSt;function Pue(e){var t=DNe(e),n=ve(t,2),r=n[0],i=n[1];return HS.setTwoToneColors({primaryColor:r,secondaryColor:i})}function NNe(){var e=HS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var PSt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Pue(Q6.primary);var K=u.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Jt(e,PSt),d=u.useContext(kO),f=d.prefixCls,h=f===void 0?"anticon":f,p=d.rootClassName,g=xe(p,h,re(re({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),m=a;m===void 0&&s&&(m=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=DNe(l),y=ve(C,2),b=y[0],S=y[1];return u.createElement("span",V({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:g}),u.createElement(HS,{icon:r,primaryColor:b,secondaryColor:S,style:v}))});K.displayName="AntdIcon";K.getTwoToneColor=NNe;K.setTwoToneColor=Pue;var ISt=function(t,n){return u.createElement(K,V({},t,{ref:n,icon:nSt}))},TSt=u.forwardRef(ISt),_St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 00-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z"}}]},name:"account-book",theme:"outlined"},FSt=function(t,n){return u.createElement(K,V({},t,{ref:n,icon:_St}))},ASt=u.forwardRef(FSt),DSt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-65.6 121.8l-89.3 164.1h49.1c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4v33.7h65.4c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4V752c0 4.4-3.6 8-8 8h-41.3c-4.4 0-8-3.6-8-8v-53.8h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8h65.1v-33.7h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8H467l-89.3-164c-2.1-3.9-.7-8.8 3.2-10.9 1.1-.7 2.5-1 3.8-1h46a8 8 0 017.1 4.4l73.4 145.4h2.8l73.4-145.4c1.3-2.7 4.1-4.4 7.1-4.4h45c4.5 0 8 3.6 7.9 8 0 1.3-.4 2.6-1 3.8z",fill:n}},{tag:"path",attrs:{d:"M639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 00-7.1-4.4h-46c-1.3 0-2.7.3-3
2025-02-18 08:35:18 +08:00
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-04-17 15:35:46 +08:00
*/var Hue=Symbol.for("react.element"),jue=Symbol.for("react.portal"),Ok=Symbol.for("react.fragment"),Mk=Symbol.for("react.strict_mode"),Pk=Symbol.for("react.profiler"),Ik=Symbol.for("react.provider"),Tk=Symbol.for("react.context"),pdn=Symbol.for("react.server_context"),_k=Symbol.for("react.forward_ref"),Fk=Symbol.for("react.suspense"),Ak=Symbol.for("react.suspense_list"),Dk=Symbol.for("react.memo"),Lk=Symbol.for("react.lazy"),gdn=Symbol.for("react.offscreen"),Rze;Rze=Symbol.for("react.module.reference");function cf(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hue:switch(e=e.type,e){case Ok:case Pk:case Mk:case Fk:case Ak:return e;default:switch(e=e&&e.$$typeof,e){case pdn:case Tk:case _k:case Lk:case Dk:case Ik:return e;default:return t}}case jue:return t}}}Vi.ContextConsumer=Tk;Vi.ContextProvider=Ik;Vi.Element=Hue;Vi.ForwardRef=_k;Vi.Fragment=Ok;Vi.Lazy=Lk;Vi.Memo=Dk;Vi.Portal=jue;Vi.Profiler=Pk;Vi.StrictMode=Mk;Vi.Suspense=Fk;Vi.SuspenseList=Ak;Vi.isAsyncMode=function(){return!1};Vi.isConcurrentMode=function(){return!1};Vi.isContextConsumer=function(e){return cf(e)===Tk};Vi.isContextProvider=function(e){return cf(e)===Ik};Vi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hue};Vi.isForwardRef=function(e){return cf(e)===_k};Vi.isFragment=function(e){return cf(e)===Ok};Vi.isLazy=function(e){return cf(e)===Lk};Vi.isMemo=function(e){return cf(e)===Dk};Vi.isPortal=function(e){return cf(e)===jue};Vi.isProfiler=function(e){return cf(e)===Pk};Vi.isStrictMode=function(e){return cf(e)===Mk};Vi.isSuspense=function(e){return cf(e)===Fk};Vi.isSuspenseList=function(e){return cf(e)===Ak};Vi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ok||e===Pk||e===Mk||e===Fk||e===Ak||e===gdn||typeof e=="object"&&e!==null&&(e.$$typeof===Lk||e.$$typeof===Dk||e.$$typeof===Ik||e.$$typeof===Tk||e.$$typeof===_k||e.$$typeof===Rze||e.getModuleId!==void 0)};Vi.typeOf=cf;Eze.exports=Vi;var SA=Eze.exports;function gp(e,t,n){var r=u.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var mdn=Symbol.for("react.element"),vdn=Symbol.for("react.transitional.element"),Cdn=Symbol.for("react.fragment");function Oze(e){return e&&Qt(e)==="object"&&(e.$$typeof===mdn||e.$$typeof===vdn)&&e.type===Cdn}var CR=function(t,n){typeof t=="function"?t(n):Qt(t)==="object"&&t&&"current"in t&&(t.current=n)},ka=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){CR(a,o)})}},zu=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gp(function(){return ka.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Tu=function(t){var n,r;if(!t)return!1;if(Vue(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=SA.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==SA.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==SA.ForwardRef)};function Vue(e){return u.isValidElement(e)&&!Oze(e)}var Mze=function(t){return Vue(t)&&Tu(t)},Vv=function(t){if(t&&Vue(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},ydn=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Gue=u.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,d=Jt(e,ydn),f=u.useRef(),h=zu(f,t);Dre(!!(r||c),"Should have `component` prop or `children`."),LNe(f);var p=u.useContext(kO),g=p.prefixCls,m=g===void 0?"anticon":g,v=p.rootClassName,C=xe(v,m,re({},"".concat(m,"-spin"),!!o&&!!r),n),y=xe(re({},"".concat(m,"-spin"),!!o)),b=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,S=ae(ae({},$St),{},{className:y,style:b,viewBox:i});i||delete S.viewBox;var w=function(){return r?u.createElement(r,S,c)
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function st(e){return efn(e)||Nze(e)||yk(e)||tfn()}var zze=function(t){return+setTimeout(t,16)},kze=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(zze=function(t){return window.requestAnimationFrame(t)},kze=function(t){return window.cancelAnimationFrame(t)});var J8e=0,Uue=new Map;function Bze(e){Uue.delete(e)}var pr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;J8e+=1;var r=J8e;function i(o){if(o===0)Bze(r),t();else{var a=zze(function(){i(o-1)});Uue.set(r,a)}}return i(n),r};pr.cancel=function(e){var t=Uue.get(e);return Bze(e),kze(t)};function SR(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 tf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Jr(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],a[d],c))return!1;return!0}if(o&&a&&Qt(o)==="object"&&Qt(a)==="object"){var f=Object.keys(o);return f.length!==Object.keys(a).length?!1:f.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}var nfn="%";function jre(e){return e.join(nfn)}var rfn=function(){function e(t){zr(this,e),re(this,"instanceId",void 0),re(this,"cache",new Map),this.instanceId=t}return kr(e,[{key:"get",value:function(n){return this.opGet(jre(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(jre(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}(),ifn=["children"],c7="data-token-hash",wh="data-css-hash",O2="__cssinjs_instance__";function que(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(wh,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[O2]=i[O2]||e,i[O2]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(wh,"]"))).forEach(function(i){var o=i.getAttribute(wh);if(r[o]){if(i[O2]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new rfn(e)}var u7=u.createContext({hashPriority:"low",cache:que(),defaultCache:!0}),ofn=function(t){var n=t.children,r=Jt(t,ifn),i=u.useContext(u7),o=gp(function(){var a=ae({},i);Object.keys(r).forEach(function(l){var c=r[l];r[l]!==void 0&&(a[l]=c)});var s=r.cache;return a.cache=a.cache||que(),a.defaultCache=!s&&i.defaultCache,a},[i,r],function(a,s){return!tf(a[0],s[0],!0)||!tf(a[1],s[1],!0)});return u.createElement(u7.Provider,{value:o},n)},Hze=kr(function e(){zr(this,e)}),jze="CALC_UNIT",afn=new RegExp(jze,"g");function nQ(e){return typeof e=="number"?"".concat(e).concat(jze):e}var sfn=function(e){Ko(n,e);var t=Hl(n);function n(r,i){var o;zr(this,n),o=t.call(this),re(on(o),"result",""),re(on(o),"unitlessCssVar",void 0),re(on(o),"lowPriority",void 0);var a=Qt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=nQ(r):a==="string"&&(o.result=r),o}return kr(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(nQ(i))),this.
`);else if(y._keyframe)g(y);else{var b=f.reduce(function(S,w){var x;return(w==null||(x=w.visit)===null||x===void 0?void 0:x.call(w,S))||S},y);Object.keys(b).forEach(function(S){var w=b[S];if(Qt(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!ihn(w)){var x=!1,$=S.trim(),R=!1;(i||o)&&s?$.startsWith("@")?x=!0:$==="&"?$=sCe("",s,c):$=sCe(S,s,c):i&&!s&&($==="&"||$==="")&&($="",R=!0);var O=e(w,n,{root:R,injectHash:x,parentSelectors:[].concat(st(a),[$])}),M=ve(O,2),F=M[0],A=M[1];p=ae(ae({},p),A),h+="".concat($).concat(F)}else{let k=function(T,P){var _=T.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),L=P;!Kze[T]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),T==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(g(P),L=P.getName(s)),h+="".concat(_,":").concat(L,";")};var N,D=(N=w==null?void 0:w.value)!==null&&N!==void 0?N:w;Qt(w)==="object"&&w!==null&&w!==void 0&&w[rke]&&Array.isArray(D)?D.forEach(function(T){k(S,T)}):k(S,D)}})}}),i?l&&(h&&(h="@layer ".concat(l.name," {").concat(h,"}")),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
`))):h="{".concat(h,"}"),[h,p]};function ike(e,t){return SR("".concat(e.join("%")).concat(t))}function ahn(){return null}var oke="style";function ZL(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,d=u.useContext(u7),f=d.autoClear;d.mock;var h=d.defaultCache,p=d.hashPriority,g=d.container,m=d.ssrInline,v=d.transformers,C=d.linters,y=d.cache,b=d.layer,S=n._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,st(r));var x=Vre,$=Yue(oke,w,function(){var A=w.join("|");if(thn(A)){var N=nhn(A),D=ve(N,2),k=D[0],T=D[1];if(k)return[k,S,T,{},s,c]}var P=t(),_=ohn(P,{hashId:i,hashPriority:p,layer:b?o:void 0,path:r.join("-"),transformers:v,linters:C}),L=ve(_,2),B=L[0],z=L[1],j=EA(B),U=ike(w,j);return[j,S,U,z,s,c]},function(A,N){var D=ve(A,3),k=D[2];(N||f)&&Vre&&s7(k,{mark:wh})},function(A){var N=ve(A,4),D=N[0];N[1];var k=N[2],T=N[3];if(x&&D!==tke){var P={mark:wh,prepend:b?!1:"queue",attachTo:g,priority:c},_=typeof a=="function"?a():a;_&&(P.csp={nonce:_});var L=[],B=[];Object.keys(T).forEach(function(j){j.startsWith("@layer")?L.push(j):B.push(j)}),L.forEach(function(j){J1(EA(T[j]),"_layer-".concat(j),ae(ae({},P),{},{prepend:!0}))});var z=J1(D,k,P);z[O2]=y.instanceId,z.setAttribute(c7,S),B.forEach(function(j){J1(EA(T[j]),"_effect-".concat(j),P)})}}),R=ve($,3),O=R[0],M=R[1],F=R[2];return function(A){var N;if(!m||x||!h)N=u.createElement(ahn,null);else{var D;N=u.createElement("style",V({},(D={},re(D,c7,M),re(D,wh,F),D),{dangerouslySetInnerHTML:{__html:O}}))}return u.createElement(u.Fragment,null,N,A)}}var shn=function(t,n,r){var i=ve(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],d=i[5],f=r||{},h=f.plain;if(c)return null;var p=o,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=wR(o,a,s,g,h),l&&Object.keys(l).forEach(function(m){if(!n[m]){n[m]=!0;var v=EA(l[m]),C=wR(v,a,"_effect-".concat(m),g,h);m.startsWith("@layer")?p=C+p:p+=C}}),[d,s,p]},ake="cssVar",ske=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,d=u.useContext(u7),f=d.cache.instanceId,h=d.container,p=s._tokenKey,g=[].concat(st(t.path),[r,c,p]),m=Yue(ake,g,function(){var v=n(),C=Wze(v,r,{prefix:i,unitless:o,ignore:a,scope:c}),y=ve(C,2),b=y[0],S=y[1],w=ike(g,S);return[b,S,w,r]},function(v){var C=ve(v,3),y=C[2];Vre&&s7(y,{mark:wh})},function(v){var C=ve(v,3),y=C[1],b=C[2];if(y){var S=J1(y,b,{mark:wh,prepend:"queue",attachTo:h,priority:-999});S[O2]=f,S.setAttribute(c7,r)}});return m},lhn=function(t,n,r){var i=ve(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},h=wR(o,s,a,f,c);return[d,a,h]},X9,chn=(X9={},re(X9,oke,shn),re(X9,Uze,Ifn),re(X9,ake,lhn),X9);function uhn(e){return e!==null}function dhn(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,o=n.types,a=o===void 0?["style","token","cssVar"]:o,s=new RegExp("^(".concat((typeof a=="string"?[a]:a).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(h){return s.test(h)}),c={},d={},f="";return l.map(function(h){var p=h.replace(s,"").replace(/%/g,"|"),g=h.split("%"),m=ve(g,1),v=m[0],C=chn[v],y=C(e.cache.get(h)[1],c,{plain:i});if(!y)return null;var b=ve(y,3),S=b[0],w=b[1],x=b[2];return h.startsWith("style")&&(d[p]=w),[S,x]}).filter(uhn).sort(function(h,p){var g=ve(h,1),m=g[0],v=ve(p,1),C=v[0];return m-C}).forEach(function(h){var p=ve(h,2),g=p[1];f+=g}),f+=wR(".".concat(q$,'{content:"').concat(Jfn(d),'";}'),void 0,void 0,re({},q$,q$),i),f}var Sr=function(){function e(t,n){zr(this,e),re(this,"name",void 0),re(this,"style",void 0),re(this,"_keyframe",!0),this.name=t,this.style=n}return kr(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 fhn(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],o=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")")
2025-02-18 08:35:18 +08:00
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
2025-04-17 15:35:46 +08:00
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function pke(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=n(l),h=n(i),p=n(o),g=n(a),m=n(s),v=r(c,d),C=e.colorLink||e.colorInfo,y=n(C),b=new Pr(g[1]).mix(new Pr(g[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Pr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Mhn=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 Phn(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},Mhn(r))}const gke=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function MA(e){return(e+8)/e}function Ihn(e){const t=new Array(10).fill(null).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:MA(n)}))}const mke=e=>{const t=Ihn(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=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:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Thn(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 nd=(e,
2025-02-18 08:35:18 +08:00
:root {
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
2025-04-17 15:35:46 +08:00
`.trim()}function zhn(e,t){const n=Nhn(e,t);Sa()&&J1(n,`${Lhn}-dynamic-theme`)}const Dc=u.createContext(!1),rde=e=>{let{children:t,disabled:n}=e;const r=u.useContext(Dc);return u.createElement(Dc.Provider,{value:n??r},t)},Z6=u.createContext(void 0),khn=e=>{let{children:t,size:n}=e;const r=u.useContext(Z6);return u.createElement(Z6.Provider,{value:n||r},t)};function Bhn(){const e=u.useContext(Dc),t=u.useContext(Z6);return{componentDisabled:e,componentSize:t}}var Cke=kr(function e(){zr(this,e)}),yke="CALC_UNIT",Hhn=new RegExp(yke,"g");function cQ(e){return typeof e=="number"?"".concat(e).concat(yke):e}var jhn=function(e){Ko(n,e);var t=Hl(n);function n(r,i){var o;zr(this,n),o=t.call(this),re(on(o),"result",""),re(on(o),"unitlessCssVar",void 0),re(on(o),"lowPriority",void 0);var a=Qt(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=cQ(r):a==="string"&&(o.result=r),o}return kr(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(cQ(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(cQ(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||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(Hhn,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Cke),Vhn=function(e){Ko(n,e);var t=Hl(n);function n(r){var i;return zr(this,n),i=t.call(this),re(on(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return kr(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}(Cke),bke=function(t,n){var r=t==="css"?jhn:Vhn;return function(i){return new r(i,n)}},dCe=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Dn(e){var t=u.useRef();t.current=e;var n=u.useCallback(function(){for(var r,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 J6(e){var t=u.useRef(!1),n=u.useState(e),r=ve(n,2),i=r[0],o=r[1];u.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function uQ(e){return e!==void 0}function Jn(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=J6(function(){return uQ(i)?i:uQ(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=ve(s,2),c=l[0],d=l[1],f=i!==void 0?i:c,h=a?a(f):f,p=Dn(o),g=J6([f]),m=v
2025-02-18 08:35:18 +08:00
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
2025-04-17 10:18:46 +08:00
0 1px 2px -2px ${new Pr("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new Pr("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new Pr("rgba(0, 0, 0, 0.09)").toRgbString()}
2025-02-18 08:35:18 +08:00
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
2025-04-17 15:35:46 +08:00
`,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 gCe=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 $ke={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},e1n={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},t1n={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},Eke=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=gCe(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=ide(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:d}=c,f=gCe(c,["theme"]);let h=f;d&&(h=Eke(Object.assign(Object.assign({},a),f),{override:f},d)),a[l]=h}),a};function us(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=ce.useContext(nde),o=`${Zhn}-${t||""}`,a=n||vke,[s,l,c]=qze(a,[g7,e],{salt:o,override:r,getComputedToken:Eke,formatToken:ide,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:$ke,ignore:e1n,preserve:t1n}});return[a,c,t?l:"",s,i]}const Ah={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},X8=()=>({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"}}),m7=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n1n=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"}}}),r1n=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},fm=(e,t)=>({outline:`${ze(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Dh=(e,t)=>({"&:focus-visible":Object.assign({},fm(e,t))}),Rke=e=>({[`.${e}`]:Object.assign(Object.assign({},X8()),{[`.${e} .${e}-icon`]:{display:"block"}})}),ode=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"},Dh(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Yr,genComponentStyleHook:i1n,genSubStyleComponent:KS}=xke({usePrefix:(
2025-02-18 08:35:18 +08:00
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
2025-04-17 15:35:46 +08:00
summary tabIndex target title type useMap value width wmode wrap`,B1n=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
2025-02-18 08:35:18 +08:00
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
2025-04-17 15:35:46 +08:00
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,H1n="".concat(k1n," ").concat(B1n).split(/[\s\n]+/),j1n="aria-",V1n="data-";function wCe(e,t){return e.indexOf(t)===0}function yo(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=ae({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||wCe(i,j1n))||n.data&&wCe(i,V1n)||n.attr&&H1n.includes(i))&&(r[i]=e[i])}),r}function Vke(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const sde=(e,t,n)=>ce.isValidElement(e)?ce.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function cs(e,t){return sde(e,e,t)}const QT=(e,t,n,r,i)=>({background:e,border:`${ze(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),G1n=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:f,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},vi(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
2025-02-18 08:35:18 +08:00
padding-top ${n} ${c}, padding-bottom ${n} ${c},
2025-04-17 15:35:46 +08:00
margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},W1n=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:d,colorInfo:f,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":QT(i,r,n,e,t),"&-info":QT(p,h,f,e,t),"&-warning":QT(s,a,o,e,t),"&-error":Object.assign(Object.assign({},QT(d,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},U1n=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:ze(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},q1n=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),K1n=Yr("Alert",e=>[G1n(e),W1n(e),U1n(e)],q1n);var xCe=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 X1n={success:G8,info:BO,error:Am,warning:VS},Y1n=e=>{const{icon:t,prefixCls:n,type:r}=e,i=X1n[r]||null;return t?sde(t,u.createElement("span",{className:`${n}-icon`},t),()=>({className:xe(`${n}-icon`,t.props.className)})):u.createElement(i,{className:`${n}-icon`})},Q1n=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?u.createElement(lf,null):r;return t?u.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},Gke=u.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:d,onClick:f,afterClose:h,showIcon:p,closable:g,closeText:m,closeIcon:v,action:C,id:y}=e,b=xCe(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,w]=u.useState(!1),x=u.useRef(null);u.useImperativeHandle(t,()=>({nativeElement:x.current}));const{getPrefixCls:$,direction:R,alert:O}=u.useContext(Cn),M=$("alert",r),[F,A,N]=K1n(M),D=j=>{var U;w(!0),(U=e.onClose)===null||U===void 0||U.call(e,j)},k=u.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),T=u.useMemo(()=>typeof g=="object"&&g.closeIcon||m?!0:typeof g=="boolean"?g:v!==!1&&v!==null&&v!==void 0?!0:!!(O!=null&&O.closable),[m,v,g,O==null?void 0:O.closable]),P=o&&p===void 0?!0:p,_=xe(M,`${M}-${k}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!P,[`${M}-banner`]:!!o,[`${M}-rtl`]:R==="rtl"},O==null?void 0:O.className,a,s,N,A),L=yo(b,{aria:!0,data:!0}),B=u.useMemo(()=>{var j,U;return typeof g=="object"&&g.closeIcon?g.closeIcon:m||(v!==void 0?v:typeof(O==null?void 0:O.closable)=="object"&&(!((j=O==null?void 0:O.closable)===null||j===void 0)&&j.closeIcon)?(U=O==null?void 0:O.closable)===null||U===void 0?void 0:U.closeIcon:O==null?void 0:O.closeIcon)},[v,g,m,O==null?void 0:O.closeIcon]),z=u.useMemo(()=>{const j=g??(O==null?void 0:O.closable);return typeof j=="object"?xCe(j,["closeIcon"]):{}},[g,O==null?void 0:O.closable]);return F(u.createElement(wa,{visible:!S,motionName:`${
2025-04-17 10:18:46 +08:00
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},vi(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
2025-02-18 08:35:18 +08:00
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
2025-04-17 15:35:46 +08:00
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},gpn=e=>({zIndexPopup:e.zIndexPopupBase+fde+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Kke=Yr("Message",e=>{const t=vr(e,{height:150});return[ppn(t)]},gpn);var mpn=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 vpn={info:u.createElement(BO,null),success:u.createElement(G8,null),error:u.createElement(Am,null),warning:u.createElement(VS,null),loading:u.createElement(pp,null)},Xke=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return u.createElement("div",{className:xe(`${t}-custom-content`,`${t}-${n}`)},r||vpn[n],u.createElement("span",null,i))},Cpn=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=mpn(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=u.useContext(Cn),l=t||s("message"),c=Oo(l),[d,f,h]=Kke(l,c);return d(u.createElement(cde,Object.assign({},a,{prefixCls:l,className:xe(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:u.createElement(Xke,{prefixCls:l,type:r,icon:i},o)})))};function ypn(e,t){return{motionName:t??`${e}-move-up`}}function hde(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 bpn=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 Spn=8,wpn=3,xpn=e=>{let{children:t,prefixCls:n}=e;const r=Oo(n),[i,o,a]=Kke(n,r);return i(u.createElement(ude,{classNames:{list:xe(o,a,r)}},t))},$pn=(e,t)=>{let{prefixCls:n,key:r}=t;return u.createElement(xpn,{prefixCls:n,key:r},e)},Epn=u.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=wpn,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:h,direction:p}=u.useContext(Cn),g=r||d("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??Spn}),v=()=>xe({[`${g}-rtl`]:s??p==="rtl"}),C=()=>ypn(g,l),y=u.createElement("span",{className:`${g}-close-x`},u.createElement(lf,{className:`${g}-close-icon`})),[b,S]=dde({prefixCls:g,style:m,className:v,motion:C,closable:!1,closeIcon:y,duration:a,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:$pn});return u.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:g,message:h})),S});let TCe=0;function Yke(e){const t=u.useRef(null);return K8(),[u.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:c,prefixCls:d,message:f}=t.current,h=`${d}-notice`,{content:p,icon:g,type:m,key:v,className:C,style:y,onClose:b}=l,S=bpn(l,["content","icon","type","key","className","style","onClose"]);let w=v;return w==null&&(TCe+=1,w=`antd-message-${TCe}`),hde(x=>(c(Object.assign(Object.assign({},S),{key:w,content:u.createElement(Xke,{prefixCls:d,type:m,icon:g},p),placement:"top",className:xe(m&&`${h}-${m}`,C,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{b==null||b(),x()}})),()=>{r(w)}))},a={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.des
2025-02-18 08:35:18 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
2025-04-17 15:35:46 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Pgn=e=>({animationDuration:e,animationFillMode:"both"}),Ign=e=>({animationDuration:e,animationFillMode:"both"}),qk=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
2025-02-18 08:35:18 +08:00
${o}${e}-enter,
${o}${e}-appear
2025-04-17 15:35:46 +08:00
`]:Object.assign(Object.assign({},Pgn(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ign(r)),{animationPlayState:"paused"}),[`
2025-02-18 08:35:18 +08:00
${o}${e}-enter${e}-enter-active,
${o}${e}-appear${e}-appear-active
2025-04-17 15:35:46 +08:00
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Tgn=new Sr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_gn=new Sr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),mde=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[qk(r,Tgn,_gn,e.motionDurationMid,t),{[`
2025-02-18 08:35:18 +08:00
${i}${r}-enter,
${i}${r}-appear
2025-04-17 15:35:46 +08:00
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},Fgn=new Sr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Agn=new Sr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Dgn=new Sr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lgn=new Sr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ngn=new Sr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zgn=new Sr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kgn=new Sr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bgn=new Sr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Hgn={"move-up":{inKeyframes:kgn,outKeyframes:Bgn},"move-down":{inKeyframes:Fgn,outKeyframes:Agn},"move-left":{inKeyframes:Dgn,outKeyframes:Lgn},"move-right":{inKeyframes:Ngn,outKeyframes:zgn}},nN=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Hgn[t];return[qk(r,i,o,e.motionDurationMid),{[`
2025-02-18 08:35:18 +08:00
${r}-enter,
${r}-appear
2025-04-17 15:35:46 +08:00
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},vde=new Sr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Cde=new Sr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),yde=new Sr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),bde=new Sr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),jgn=new Sr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vgn=new Sr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ggn=new Sr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Wgn=new Sr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ugn={"slide-up":{inKeyframes:vde,outKeyframes:Cde},"slide-down":{inKeyframes:yde,outKeyframes:bde},"slide-left":{inKeyframes:jgn,outKeyframes:Vgn},"slide-right":{inKeyframes:Ggn,outKeyframes:Wgn}},wv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Ugn[t];return[qk(r,i,o,e.motionDurationMid),{[`
2025-02-18 08:35:18 +08:00
${r}-enter,
${r}-appear
2025-04-17 15:35:46 +08:00
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Sde=new Sr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qgn=new Sr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),kCe=new Sr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),BCe=new Sr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Kgn=new Sr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Xgn=new Sr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Ygn=new Sr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Qgn=new Sr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Zgn=new Sr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Jgn=new Sr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),emn=new Sr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),tmn=new Sr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nmn={zoom:{inKeyframes:Sde,outKeyframes:qgn},"zoom-big":{inKeyframes:kCe,outKeyframes:BCe},"zoom-big-fast":{inKeyframes:kCe,outKeyframes:BCe},"zoom-left":{inKeyframes:Ygn,outKeyframes:Qgn},"zoom-right":{inKeyframes:Zgn,outKeyframes:Jgn},"zoom-up":{inKeyframes:Kgn,outKeyframes:Xgn},"zoom-down":{inKeyframes:emn,outKeyframes:tmn}},YS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=nmn[t];return[qk(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
2025-02-18 08:35:18 +08:00
${r}-enter,
${r}-appear
2025-04-17 15:35:46 +08:00
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},rmn=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new mp(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},fBe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return vr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},hBe=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(i=e.contentLineHeight)!==null&&i!==void 0?i:MA(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:MA(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:MA(c),p=rmn(new ygn(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},imn=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ze(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`]:X8(),"> a":{color:"currentColor"},"&:not(:disabled)":Dh(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},pBe=(e,t,n)=>({
2025-02-18 08:35:18 +08:00
#`.concat(t,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
2025-04-17 15:35:46 +08:00
}`),t)}catch(g){console.error(g),i=l,o=c}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),s7(t),{width:h,height:p}}function GCe(e){return typeof document>"u"?0:($Q===void 0&&($Q=CBe()),$Q.width)}function nie(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:CBe(e)}function Fmn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Amn="rc-util-locker-".concat(Date.now()),WCe=0;function Dmn(e){var t=!!e,n=u.useState(function(){return WCe+=1,"".concat(Amn,"_").concat(WCe)}),r=ve(n,1),i=r[0];Un(function(){if(t){var o=nie(document.body).width,a=Fmn();J1(`
2025-02-18 08:35:18 +08:00
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
2025-04-17 15:35:46 +08:00
}`),i)}else s7(i);return function(){s7(i)}},[t,i])}var Lmn=!1;function Nmn(e){return Lmn}var UCe=function(t){return t===!1?!1:!Sa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Q8=u.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,s=e.children,l=u.useState(n),c=ve(l,2),d=c[0],f=c[1],h=d||n;u.useEffect(function(){(a||n)&&f(n)},[n,a]);var p=u.useState(function(){return UCe(i)}),g=ve(p,2),m=g[0],v=g[1];u.useEffect(function(){var F=UCe(i);v(F??null)});var C=_mn(h&&!m),y=ve(C,2),b=y[0],S=y[1],w=m??b;Dmn(r&&n&&Sa()&&(w===b||w===document.body));var x=null;if(s&&Tu(s)&&t){var $=s;x=$.ref}var R=zu(x,t);if(!h||!Sa()||m===void 0)return null;var O=w===!1||Nmn(),M=s;return t&&(M=u.cloneElement(s,{ref:R})),u.createElement(vBe.Provider,{value:S},O?M:aa.createPortal(M,w))}),yBe=u.createContext({});function zmn(){var e=ae({},IS);return e.useId}var qCe=0,KCe=zmn();const $de=KCe?function(t){var n=KCe();return t||n}:function(t){var n=u.useState("ssr-id"),r=ve(n,2),i=r[0],o=r[1];return u.useEffect(function(){var a=qCe;qCe+=1,o("rc_unique_".concat(a))},[]),t||i};function XCe(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function YCe(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 kmn(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=YCe(i),n.top+=YCe(i,!0),n}const Bmn=u.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Hmn={width:0,height:0,overflow:"hidden",outline:"none"},jmn={outline:"none"},Ede=ce.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,d=e.onClose,f=e.children,h=e.bodyStyle,p=e.bodyProps,g=e.modalRender,m=e.onMouseDown,v=e.onMouseUp,C=e.holderRef,y=e.visible,b=e.forceRender,S=e.width,w=e.height,x=e.classNames,$=e.styles,R=ce.useContext(yBe),O=R.panel,M=zu(C,O),F=u.useRef(),A=u.useRef();ce.useImperativeHandle(t,function(){return{focus:function(){var j;(j=F.current)===null||j===void 0||j.focus({preventScroll:!0})},changeActive:function(j){var U=document,G=U.activeElement;j&&G===A.current?F.current.focus({preventScroll:!0}):!j&&G===F.current&&A.current.focus({preventScroll:!0})}}});var N={};S!==void 0&&(N.width=S),w!==void 0&&(N.height=w);var D=s?ce.createElement("div",{className:xe("".concat(n,"-footer"),x==null?void 0:x.footer),style:ae({},$==null?void 0:$.footer)},s):null,k=o?ce.createElement("div",{className:xe("".concat(n,"-header"),x==null?void 0:x.header),style:ae({},$==null?void 0:$.header)},ce.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,T=u.useMemo(function(){return Qt(l)==="object"&&l!==null?l:l?{closeIcon:c??ce.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),P=yo(T,!0),_=Qt(l)==="object"&&l.disabled,L=l?ce.createElement("button",V({type:"button",onClick:d,"aria-label":"Close"},P,{className:"".concat(n,"-close"),disabled:_}),T.closeIcon):null,B=ce.createElement("div",{className:xe("".concat(n,"-content"),x==null?void 0:x.content),style:$==null?void 0:$.content},L,k,ce.createElement("div",V({className:xe("".concat(n,"-body"),x==null?void 0:x.body),style:ae(ae({},h),$==null?void 0:$.body)},p),f),D);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:M,style:ae(ae({},i),N),className:xe(n,r),onMouseDown:m,onMouseUp:v},ce.createElement("div",{ref:F,tabIndex:0,style:jmn},ce.createElement(Bmn,{shouldUpdate:y||b},g?g(B):B)),ce.createElement("div",{tabIndex:0,ref:A,style:Hmn}))}),bBe=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,p=u.useRef(),g=u.useState(),m=ve(g,2),v=m[0],C=m[1],y={};v&&(y.transformOrigin=v);function b(){
2025-02-18 08:35:18 +08:00
${r},
${i} > li,
${n},
${o},
${a},
${s}
2025-04-17 15:35:46 +08:00
`]:Object.assign({},V0n(e))}}},X0n=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}},QS=Yr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=vr(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[K0n(r)]},X0n,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Y0n=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=u.useContext(Cn),l=s("skeleton",t),[c,d,f]=QS(l),h=Oi(e,["prefixCls","className"]),p=xe(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,f);return c(u.createElement("div",{className:p},u.createElement(rB,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))},Q0n=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=u.useContext(Cn),l=s("skeleton",t),[c,d,f]=QS(l),h=Oi(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,d,f);return c(u.createElement("div",{className:p},u.createElement(rB,Object.assign({prefixCls:`${l}-button`,size:a},h))))},Z0n="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",J0n=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=u.useContext(Cn),s=a("skeleton",t),[l,c,d]=QS(s),f=xe(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,d);return l(u.createElement("div",{className:f},u.createElement("div",{className:xe(`${s}-image`,n),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},u.createElement("title",null,"Image placeholder"),u.createElement("path",{d:Z0n,className:`${s}-image-path`})))))},e2n=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=u.useContext(Cn),l=s("skeleton",t),[c,d,f]=QS(l),h=Oi(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,d,f);return c(u.createElement("div",{className:p},u.createElement(rB,Object.assign({prefixCls:`${l}-input`,size:a},h))))},t2n=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=u.useContext(Cn),l=s("skeleton",t),[c,d,f]=QS(l),h=xe(l,`${l}-element`,{[`${l}-active`]:o},d,n,r,f);return c(u.createElement("div",{className:h},u.createElement("div",{className:xe(`${l}-image`,n),style:i},a)))},n2n=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},r2n=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=st(new Array(i)).map((a,s)=>u.createElement("li",{key:s,style:{width:n2n(s,e)}}));return u.createElement("ul",{className:xe(t,n),style:r},o)},i2n=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return u.cre
2025-02-18 08:35:18 +08:00
${t}-body,
2025-04-17 15:35:46 +08:00
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},y2n=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},b2n=e=>{const{componentCls:t}=e,n=_Be(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${ze(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(st(r))}}},ABe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return vr(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()})},DBe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${ze(e.paddingMD)} ${ze(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${ze(e.padding)} ${ze(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${ze(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${ze(e.paddingXS)} ${ze(e.padding)}`:0,footerBorderTop:e.wireframe?`${ze(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${ze(e.borderRadiusLG)} ${ze(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${ze(e.padding*2)} ${ze(e.padding*2)} ${ze(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),LBe=Yr("Modal",e=>{const t=ABe(e);return[C2n(t),y2n(t),FBe(t),YS(t,"zoom"),b2n(t)]},DBe,{unitless:{titleLineHeight:!0}});var S2n=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 gie;const w2n=e=>{gie={x:e.pageX,y:e.pageY},setTimeout(()=>{gie=null},100)};H0n()&&document.documentElement.addEventListener("click",w2n,!0);const NBe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=u.useContext(Cn),a=q=>{const{onCancel:Y}=e;Y==null||Y(q)},s=q=>{const{onOk:Y}=e;Y==null||Y(q)},{prefixCls:l,className:c,rootClassName:d,open:f,wrapClassName:h,centered:p,getContainer:g,focusTriggerAfterClose:m=!0,style:v,visible:C,width:y=520,footer:b,classNames:S,styles:w,children:x,loading:$}=e,R=S2n(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",l),M=r(),F=Oo(O),[A,N,D]=LBe(O,F),k=xe(h,{[`${O}-centered`]:!!p,[`${O}-wrap-rtl`]:i==="rtl"}),T=b!==null&&!$?u.createElement(TBe,Object.assign({},e,{onOk:s,onCancel:a})):null,[P,_,L]=MBe(rN(e),rN(o),{closable:!0,closeIcon:u.createElement(lf,{className:`${O}-close-icon`}),closeIconRender:q=>IBe(O,q)}),B=c2n(`.${O}-content`),[z,j]=Gv("Modal",R.zIndex),[U,G]=u.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),X=u.useMemo(()=>{const q={};return G&&Object.keys(G).forEach(Y=>{const Q=G[Y];Q!==void 0&&(q[`--${O}-${Y}-width`]=typeof Q=="number"?`${Q}px`:Q)}),q},[G]);return A(u.createElement(t8,{form:!0,space:!0},u.createElement(jk.Provider,{value:j},u.createElement(eB,Object.assign({width:U},R,{zIndex:z,getContainer:g===void 0?n:g,prefixCls:O,rootClassName:xe(N,d,D,F),footer:T,visible:f??C,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:gie,o
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},$2n=KS(["Modal","confirm"],e=>{const t=ABe(e);return[x2n(t)]},DBe,{order:-1e3});var E2n=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 zBe(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,d=E2n(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(a){case"info":f=u.createElement(BO,null);break;case"success":f=u.createElement(G8,null);break;case"error":f=u.createElement(Am,null);break;default:f=u.createElement(VS,null)}const h=s??a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=uf("Modal"),m=c||g,v=r||(h?m==null?void 0:m.okText:m==null?void 0:m.justOkText),C=i||(m==null?void 0:m.cancelText),y=Object.assign({autoFocusButton:p,cancelTextLocale:C,okTextLocale:v,mergedOkCancel:h},d),b=u.useMemo(()=>y,st(Object.values(y))),S=u.createElement(u.Fragment,null,u.createElement(HCe,null),u.createElement(jCe,null)),w=e.title!==void 0&&e.title!==null,x=`${o}-body`;return u.createElement("div",{className:`${o}-body-wrapper`},u.createElement("div",{className:xe(x,{[`${x}-has-title`]:w})},f,u.createElement("div",{className:`${o}-paragraph`},w&&u.createElement("span",{className:`${o}-title`},e.title),u.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?u.createElement(mBe,{value:b},u.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(S,{OkBtn:jCe,CancelBtn:HCe}):S)):l,u.createElement($2n,{prefixCls:t}))}const R2n=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:d,styles:f}=e,h=`${o}-confirm`,p=e.width||416,g=e.style||{},m=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,C=xe(h,`${h}-${e.type}`,{[`${h}-rtl`]:i==="rtl"},e.className),[,y]=us(),b=u.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+fde,[n,y]);return u.createElement(NBe,Object.assign({},e,{className:C,wrapClassName:xe({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:Lc(s||"","zoom",e.transitionName),maskTransitionName:Lc(s||"","fade",e.maskTransitionName),mask:m,maskClosable:v,style:g,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:b,closable:c}),u.createElement(zBe,Object.assign({},e,{confirmPrefixCls:h})))},kBe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return u.createElement(Wh,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},u.createElement(R2n,Object.assign({},e)))},Q3=[];let BBe="";function HBe(){return BBe}const O2n=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=hke(),s=u.useContext(Cn),l=HBe()||s.getPrefixCls(),c=r||`${l}-modal`;let d=i;return d===!1&&(d=void 0),ce.createElement(kBe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:d}))};function UO(e){const t=jke(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(){for(var d,f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];if(h.some(v=>v==null?void 0:v.triggerCancel)){var m;(d=e.onCancel)===null||d===void 0||(m=d).call.apply(m,[e,()=>{}].concat(st(h.slice(1))))}for(let v=0;v<Q3.length;v++)if(Q3[v]===l){Q3.splice(v,1);break}o()}function s(d){clearTimeout(i),i=setTimeout(()=>{const f=t.getPrefixCls(void 0,HBe()),h=t.getIconPrefixCls(),p=t.getTheme(),g=ce.createElement(O2n,Ob
2025-02-18 08:35:18 +08:00
`,`\r
2025-04-17 15:35:46 +08:00
`].includes(pn)})},[k]),nt=u.useContext(_de)||{},ut=nt.maxCount,gt=nt.rawValues,mt=function(Ut,kn,gr){if(!(de&&Cie(ut)&&(gt==null?void 0:gt.size)>=ut)){var Wt=!0,Kt=Ut;O==null||O(null);var er=Qvn(Ut,k,Cie(ut)?ut-gt.size:void 0),ur=gr?null:er;return v!=="combobox"&&ur&&(Kt="",D==null||D(ur),Ee(!1),Wt=!1),N&&ye!==Kt&&N(Kt,{source:kn?"typing":"effect"}),Wt}},rt=function(Ut){!Ut||!Ut.trim()||N(Ut,{source:"submit"})};u.useEffect(function(){!tt&&!de&&v!=="combobox"&&mt("",!1,!1)},[tt]),u.useEffect(function(){yt&&C&&ct(!1),C&&!ke.current&&Ae(!1)},[C]);var Qe=JBe(),lt=ve(Qe,2),Pt=lt[0],At=lt[1],un=u.useRef(!1),tn=function(Ut){var kn=Pt(),gr=Ut.key,Wt=gr==="Enter";if(Wt&&(v!=="combobox"&&Ut.preventDefault(),tt||Ee(!0)),At(!!ye),gr==="Backspace"&&!kn&&de&&!ye&&d.length){for(var Kt=st(d),er=null,ur=Kt.length-1;ur>=0;ur-=1){var Vr=Kt[ur];if(!Vr.disabled){Kt.splice(ur,1),er=Vr;break}}er&&f(Kt,{type:"remove",values:[er]})}for(var qr=arguments.length,Tr=new Array(qr>1?qr-1:0),Ci=1;Ci<qr;Ci++)Tr[Ci-1]=arguments[Ci];if(tt&&(!Wt||!un.current)){var An;(An=De.current)===null||An===void 0||An.onKeyDown.apply(An,[Ut].concat(Tr))}Wt&&(un.current=!0),pe==null||pe.apply(void 0,[Ut].concat(Tr))},Tt=function(Ut){for(var kn=arguments.length,gr=new Array(kn>1?kn-1:0),Wt=1;Wt<kn;Wt++)gr[Wt-1]=arguments[Wt];if(tt){var Kt;(Kt=De.current)===null||Kt===void 0||Kt.onKeyUp.apply(Kt,[Ut].concat(gr))}Ut.key==="Enter"&&(un.current=!1),le==null||le.apply(void 0,[Ut].concat(gr))},bt=function(Ut){var kn=d.filter(function(gr){return gr!==Ut});f(kn,{type:"remove",values:[Ut]})},St=u.useRef(!1),_t=function(){Ae(!0),C||(J&&!St.current&&J.apply(void 0,arguments),ee.includes("focus")&&Ee(!0)),St.current=!0},ln=function(){ke.current=!0,Ae(!1,function(){St.current=!1,ke.current=!1,Ee(!1)}),!C&&(ye&&(v==="tags"?N(ye,{source:"submit"}):v==="multiple"&&N("",{source:"blur"})),oe&&oe.apply(void 0,arguments))},Et=[];u.useEffect(function(){return function(){Et.forEach(function(pn){return clearTimeout(pn)}),Et.splice(0,Et.length)}},[]);var ht=function(Ut){var kn,gr=Ut.target,Wt=(kn=Ge.current)===null||kn===void 0?void 0:kn.getPopupElement();if(Wt&&Wt.contains(gr)){var Kt=setTimeout(function(){var qr=Et.indexOf(Kt);if(qr!==-1&&Et.splice(qr,1),Ie(),!Fe&&!Wt.contains(document.activeElement)){var Tr;(Tr=je.current)===null||Tr===void 0||Tr.focus()}});Et.push(Kt)}for(var er=arguments.length,ur=new Array(er>1?er-1:0),Vr=1;Vr<er;Vr++)ur[Vr-1]=arguments[Vr];fe==null||fe.apply(void 0,[Ut].concat(ur))},zt=u.useState({}),Yt=ve(zt,2),dn=Yt[1];function In(){dn({})}var nn;Xe&&(nn=function(Ut){Ee(Ut)}),cvn(function(){var pn;return[He.current,(pn=Ge.current)===null||pn===void 0?void 0:pn.getPopupElement()]},Oe,Ee,!!Xe);var It=u.useMemo(function(){return ae(ae({},e),{},{notFoundContent:g,open:tt,triggerOpen:Oe,id:r,showSearch:Ce,multiple:de,toggleOpen:Ee})},[e,g,Oe,tt,r,Ce,de,Ee]),en=!!_||y,mn;en&&(mn=u.createElement(aB,{className:xe("".concat(i,"-arrow"),re({},"".concat(i,"-arrow-loading"),y)),customizeIcon:_,customizeIconProps:{loading:y,searchValue:ye,open:tt,focused:$e,showSearch:Ce}}));var xn=function(){var Ut;m==null||m(),(Ut=je.current)===null||Ut===void 0||Ut.focus(),f([],{type:"clear",values:d}),mt("",!1,!1)},qn=svn(i,xn,d,T,L,C,ye,v),wr=qn.allowClear,Ar=qn.clearIcon,Fi=u.createElement(B,{ref:De}),Mi=xe(i,o,re(re(re(re(re(re(re(re(re(re({},"".concat(i,"-focused"),$e),"".concat(i,"-multiple"),de),"".concat(i,"-single"),!de),"".concat(i,"-allow-clear"),T),"".concat(i,"-show-arrow"),en),"".concat(i,"-disabled"),C),"".concat(i,"-loading"),y),"".concat(i,"-open"),tt),"".concat(i,"-customize-input"),Be),"".concat(i,"-show-search"),Ce)),Dr=u.createElement(Xvn,{ref:Ge,disabled:C,prefixCls:i,visible:Oe,popupElement:Fi,animation:z,transitionName:j,dropdownStyle:U,dropdownClassName:G,direction:l,dropdownMatchSelectWidth:X,dropdownRender:q,dropdownAlign:Y,placement:Q,builtinPlacements:te,getPopupContainer:ie,empty:h,getTriggerDOMNode:function(Ut){return We.current||Ut},onPopupVisibleChange:nn,onPopupMouseEnter:In},Xe?u.cloneElement(Xe,{ref:ft}):u.createElement(_vn,V({},e,{domRef:We,prefixCls:i,inp
2025-02-18 08:35:18 +08:00
${i}${s}bottomLeft,
${o}${s}bottomLeft
2025-04-17 10:18:46 +08:00
`]:{animationName:vde},[`
2025-02-18 08:35:18 +08:00
${i}${s}topLeft,
${o}${s}topLeft,
${i}${s}topRight,
${o}${s}topRight
2025-04-17 10:18:46 +08:00
`]:{animationName:yde},[`${a}${s}bottomLeft`]:{animationName:Cde},[`
2025-02-18 08:35:18 +08:00
${a}${s}topLeft,
${a}${s}topRight
2025-04-17 15:35:46 +08:00
`]:{animationName:bde},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},D5e(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"},Ah),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-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({},D5e(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},wv(e,"slide-up"),wv(e,"slide-down"),nN(e,"move-up"),nN(e,"move-down")]},j4n=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:ze(t),itemLineHeight:ze(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},V4n=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},G4n=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,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({},X8()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},W4n=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=V4n(e),s=t?`${n}-${t}`:"",l=j4n(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},G4n(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ze(r)} 0`,lineHeight:ze(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:ze(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ze(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
2025-02-18 08:35:18 +08:00
${n}-prefix + ${n}-selection-wrap
2025-04-17 10:18:46 +08:00
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.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:ze(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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function FQ(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
2025-02-18 08:35:18 +08:00
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[W4n(e,t),i]}const U4n=e=>{const{componentCls:t}=e,n=vr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=vr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[FQ(e),FQ(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},FQ(r,"lg")]};function AQ(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({},vi(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
2025-02-18 08:35:18 +08:00
${n}-selection-item,
${n}-selection-placeholder
2025-04-17 10:18:46 +08:00
`]:{display:"block",padding:0,lineHeight:ze(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"'}}),[`
2025-02-18 08:35:18 +08:00
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
2025-04-17 15:35:46 +08:00
`]:{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 ${ze(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:ze(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 ${ze(r)}`,"&:after":{display:"none"}}}}}}}function q4n(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[AQ(e),AQ(vr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ze(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
2025-02-18 08:35:18 +08:00
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},AQ(vr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const K4n=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:g,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:C,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,w=s*2,x=r*2,$=Math.min(i-w,i-x),R=Math.min(o-w,o-x),O=Math.min(a-w,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:R,multipleItemHeightLG:O,multipleSelectorBgDisabled:v,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}},hHe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ze(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 ${ze(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},L5e=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hHe(e,t))}),X4n=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},hHe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),L5e(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),L5e(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:`${ze(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),pHe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ze(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}}}},N5e=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},pHe(e,t))}),Y4n=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pHe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),N5e(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),N5e(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:`${ze(e.lineWi
2025-02-18 08:35:18 +08:00
> ${t}-item-active,
2025-04-17 15:35:46 +08:00
> ${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"}}}},k6n=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
2025-04-17 10:18:46 +08:00
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ze(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ze(n)})`}}}}},q5e=e=>Object.assign({},fm(e)),K5e=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:C,itemHoverColor:y,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:R,dangerItemActiveBg:O,dangerItemSelectedBg:M,popupBg:F,itemHoverBg:A,itemActiveBg:N,menuSubMenuBg:D,horizontalItemSelectedColor:k,horizontalItemSelectedBg:T,horizontalItemBorderRadius:P,horizontalItemHoverBg:_}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},q5e(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({},q5e(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:F},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:F},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${ze(d)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:d,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:d,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ze(h)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ze(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${m}`,`opacity ${C} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${g}`,`opacity ${C} ${g}`].join(",")}}}}}},X5e=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,d=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ze(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ze(n)},[`${t}-item-group-list ${t}-submenu-title,
2025-04-17 15:35:46 +08:00
${t}-submenu-title`]:{paddingInlineEnd:d}}},B6n=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:g,collapsedWidth:m,collapsedIconSize:v}=e,C={height:r,lineHeight:ze(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},X5e(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},X5e(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ze(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 ${h}`,`background ${h}`,`padding ${f} ${s}`].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:l}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
2025-02-18 08:35:18 +08:00
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
2025-04-17 10:18:46 +08:00
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ze(e.calc(v).div(2).equal())} - ${ze(c)})`,textOverflow:"clip",[`
2025-02-18 08:35:18 +08:00
${t}-submenu-arrow,
${t}-submenu-expand-icon
2025-04-17 15:35:46 +08:00
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:ze(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({},Ah),{paddingInline:p})}}]},Y5e=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},X8()),[`&${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Q5e=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(${ze(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ze(a)})`}}}}},H6n=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:m,lineType:v,groupTitleLineHeight:C,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},m7()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vi(e)),m7()),{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:`${ze(s)} ${ze(l)}`,fontSize:y,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:c,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Y5e(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-s
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ze(m)})`},"&::after":{transform:`rotate(45deg) translateX(${ze(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ze(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ze(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ze(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},j6n=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:h,lineWidth:p,lineWidthBold:g,controlItemBgActive:m,colorBgTextHover:v,controlHeightLG:C,lineHeight:y,colorBgElevated:b,marginXXS:S,padding:w,fontSize:x,controlHeightSM:$,fontSizeLG:R,colorTextLightSolid:O,colorErrorHover:M}=e,F=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,A=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,N=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Pr(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:F,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:A,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:y,collapsedWidth:C*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${C*1.15}px`,iconSize:x,iconMarginInlineEnd:$-x,collapsedIconSize:R,groupTitleFontSize:x,darkItemDisabledColor:new Pr(O).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:O,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:F?`calc(100% + ${A}px)`:`calc(100% - ${N*2}px)`}},V6n=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Yr("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:g,darkItemHoverBg:m,darkGroupTitleColor:v,darkItemHoverColor:C,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:x,darkPopupBg:$}=i,R=i.calc(s).div(7).mul(5).equal(),O=vr(i,{menuArrowSize:R,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(R).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:x}),M=vr(O,{itemColor:l,itemHoverColor:C,groupTitleColor:v,itemSelectedColor:h,itemBg:d,popupBg:$,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:
2025-02-18 08:35:18 +08:00
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
2025-04-17 10:18:46 +08:00
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:vde},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
2025-02-18 08:35:18 +08:00
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
2025-04-17 10:18:46 +08:00
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:yde},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
2025-02-18 08:35:18 +08:00
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
2025-04-17 10:18:46 +08:00
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Cde},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
2025-02-18 08:35:18 +08:00
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
2025-04-17 15:35:46 +08:00
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:bde}}},Nde(e,m,{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({},vi(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Dh(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ze(c)} ${ze(g)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,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 ${l}`,"&: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:`${ze(c)} ${ze(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Dh(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ze(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.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ze(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[wv(e,"slide-up"),wv(e,"slide-down"),nN(e,"move-up"),nN(e,"move-down"),YS(e,"zoom-big")]]},X6n=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},pB({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Lde(e)),Y6n=Yr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=vr(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[K6n(o),q6n(o)]},X6n,{resetStyle:!1}),CB=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:d,rootClassName:f,overlayStyle:h,open:p,onOpenChange:g,visible:m,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:S="",overlay:w,transitionName:x}=e,{getPopupContainer:$,getPrefixCls:R,direction:O,dropdown:M}=u.useContext(Cn);K8();const F=u.useMemo(()=>{const J=R();return x!==void 0?x:S.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[R,S,x]),A=u.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:O==="rtl"?"bottomRight":"bottomLeft",[S,O]),N=R("dropdown",i),D=Oo(N),[k,T,P]=Y6n(N,D),[,_]=us(),L=u.Children.only(U3n(o)?u.createElement("span",null,o):o),B=cs(L,{className:xe(`${N}-trigger`,{[`${N}-rtl`]:O==="rtl"},L.props.className),disabled:(t=L.props.disabled)!==null&&t!==void 0?t:s}),z=s?[]:a,j=!!(z!=null&&z.includes("contextMenu")),
2025-02-18 08:35:18 +08:00
& > ${t}-affix-wrapper,
& > ${t}-number-affix-wrapper,
& > ${n}-picker-range
`]:{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,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${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,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
2025-04-17 15:35:46 +08:00
& > ${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}}}})}},sCn=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({},vi(e)),QO(e)),Aje(e)),zje(e)),Lje(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':{"-webkit-appearance":"none"}})}},lCn=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ze(e.inputAffixPadding)}`}}}},cCn=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},QO(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},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),lCn(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},uCn=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},vi(e)),jje(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}}},Dje(e)),kje(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}}})})}},dCn=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4)
2025-02-18 08:35:18 +08:00
> ${t},
2025-04-17 15:35:46 +08:00
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},fCn=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
2025-02-18 08:35:18 +08:00
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${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-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},hCn=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Zde=Yr("Input",e=>{const t=vr(e,EB(e));return[sCn(t),fCn(t),cCn(t),uCn(t),dCn(t),hCn(t),Jk(t)]},RB,{resetFont:!1}),MB=u.createContext(null);var pCn=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,d=u.useState(),f=ve(d,2),h=f[0],p=f[1],g=u.useRef(),m=ce.useCallback(function(C){return typeof s=="function"?s(C):typeof s=="number"?s:C},[s]);function v(){pr.cancel(g.current)}return u.useEffect(function(){var C={};if(n)if(r){C.width=m(n.width);var y=i?"right":"left";c==="start"&&(C[y]=n[y]),c==="center"&&(C[y]=n[y]+n.width/2,C.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(C[y]=n[y]+n.width,C.transform="translateX(-100%)")}else C.height=m(n.height),c==="start"&&(C.top=n.top),c==="center"&&(C.top=n.top+n.height/2,C.transform="translateY(-50%)"),c==="end"&&(C.top=n.top+n.height,C.transform="translateY(-100%)");return v(),g.current=pr(function(){p(C)}),v},[n,r,i,c,m]),{style:h}},sye={width:0,height:0,left:0,top:0};function gCn(e,t,n){return u.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||sye,a=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var d;c=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||sye}var f=i.get(l)||ae({},c);f.right=a-f.left-f.width,i.set(l,f)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function lye(e,t){var n=u.useRef(e),r=u.useState({}),i=ve(r,2),o=i[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,o({})}return[n.current,a]}var mCn=.1,cye=.01,FA=20,uye=Math.pow(.995,FA);function vCn(e,t){var n=u.useState(),r=ve(n,2),i=r[0],o=r[1],a=u.useState(0),s=ve(a,2),l=s[0],c=s[1],d=u.useState(0),f=ve(d,2),h=f[0],p=f[1],g=u.useState(),m=ve(g,2),v=m[0],C=m[1],y=u.useRef();function b(O){var M=O.touches[0],F=M.screenX,A=M.screenY;o({x:F,y:A}),window.clearInterval(y.current)}function S(O){if(i){var M=O.touches[0],F=M.screenX,A=M.screenY;o({x:F,y:A});var N=F-i.x,D=A-i.y;t(N,D);var k=Date.now();c(k),p(k-l),C({x:N,y:D})}}function w(){if(i&&(o(null),C(null),v)){var O=v.x/h,M=v.y/h,F=Math.abs(O),A=Math.abs(M);if(Math.max(F,A)<mCn)return;var N=O,D=M;y.current=window.setInterval(function(){if(Math.abs(N)<cye&&Math.abs(D)<cye){window.clearInterval(y.current);return}N*=uye,D*=uye,t(N*FA,D*FA)},FA)}}var x=u.useRef();function $(O){var M=O.deltaX,F=O.deltaY,A=0,N=Math.abs(M),D=Math.abs(F);N===D?A=x.current==="x"?M:F:N>D?(A=M,x.current="x"):(A=F,x.current="y"),t(-A,-A)&&O.preventDefault()}var R=u.useRef(null);R.current={onTouchStart:b,onTouchMove:S,onTouchEnd:w,onWheel:$},u.useEffect(function(){function O(N){R.current.onTouchStart(N)}function M(N){R.current.onTouchMove(N)}function F(N){R.current.onTouchEnd(N)}function A(N){R.current.onWheel(N)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",F,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",A,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",F)}},[])}function Vje(e){var t=u.useState(0),n=ve(t,2),r=n[0],i=n[1],o=u.useRef(0),a=u.useRef();return a.current=e,x6(function(){var s;(s=a.current
2025-02-18 08:35:18 +08:00
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,
2025-04-17 15:35:46 +08:00
> 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:s(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:ze(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ze(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ze(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},jCn=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${ze(e.borderRadius)} ${ze(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ze(e.borderRadius)} ${ze(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ze(e.borderRadius)} ${ze(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ze(e.borderRadius)} 0 0 ${ze(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},VCn=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{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:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Dh(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},fm(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remo
2025-02-18 08:35:18 +08:00
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&: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}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
2025-04-17 15:35:46 +08:00
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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 ofe(e,t){const n=vr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[fyn(n)]}const mVe=Yr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[ofe(n,e)]}),vVe=ce.createContext(null);var hyn=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 pyn=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:d,skipGroup:f=!1,disabled:h}=e,p=hyn(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:m,checkbox:v}=u.useContext(Cn),C=u.useContext(vVe),{isFormItemInput:y}=u.useContext(Ds),b=u.useContext(Dc),S=(n=(C==null?void 0:C.disabled)||h)!==null&&n!==void 0?n:b,w=u.useRef(p.value),x=u.useRef(null),$=ka(t,x);u.useEffect(()=>{C==null||C.registerValue(p.value)},[]),u.useEffect(()=>{if(!f)return p.value!==w.current&&(C==null||C.cancelValue(w.current),C==null||C.registerValue(p.value),w.current=p.value),()=>C==null?void 0:C.cancelValue(p.value)},[p.value]),u.useEffect(()=>{var _;!((_=x.current)===null||_===void 0)&&_.input&&(x.current.input.indeterminate=s)},[s]);const R=g("checkbox",r),O=Oo(R),[M,F,A]=mVe(R,O),N=Object.assign({},p);C&&!f&&(N.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),C.toggleOption&&C.toggleOption({label:a,value:p.value})},N.name=C.name,N.checked=C.value.includes(p.value));const D=xe(`${R}-wrapper`,{[`${R}-rtl`]:m==="rtl",[`${R}-wrapper-checked`]:N.checked,[`${R}-wrapper-disabled`]:S,[`${R}-wrapper-in-form-item`]:y},v==null?void 0:v.className,i,o,A,O,F),k=xe({[`${R}-indeterminate`]:s},gde,F),[T,P]=oCn(N.onClick);return M(u.createElement(Gk,{component:"Checkbox",disabled:S},u.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:d,onClick:T},u.createElement(_ie,Object.assign({},N,{onClick:P,prefixCls:R,className:k,disabled:S,ref:$})),a!==void 0&&u.createElement("span",null,a))))},CVe=u.forwardRef(pyn);var gyn=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 myn=u.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,d=gyn(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=u.useContext(Cn),[p,g]=u.useState(d.value||n||[]),[m,v]=u.useState([]);u.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const C=u.useMemo(()=>i.map(k=>typeof k=="string"||typeof k=="num
2025-02-18 08:35:18 +08:00
${t}-handler-up-inner,
${t}-handler-down-inner
2025-04-17 10:18:46 +08:00
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ze(n)} ${r} ${M}`,transition:`all ${m} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
2025-02-18 08:35:18 +08:00
${t}-handler-up-inner,
${t}-handler-down-inner
2025-04-17 10:18:46 +08:00
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},X8()),{color:g,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},Pye(e,"lg")),Pye(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
2025-02-18 08:35:18 +08:00
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
2025-04-17 15:35:46 +08:00
`]:{color:x}})}]},Kyn=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ze(n)} 0`}},QO(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ze(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ze(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},Xyn=Yr("InputNumber",e=>{const t=vr(e,EB(e));return[qyn(t),Kyn(t),Jk(t)]},Uyn,{unitless:{handleOpacity:!0}});var Yyn=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 EVe=u.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=u.useContext(Cn),i=u.useRef(null);u.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:d,addonAfter:f,prefix:h,suffix:p,bordered:g,readOnly:m,status:v,controls:C,variant:y}=e,b=Yyn(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=Oo(S),[x,$,R]=Xyn(S,w),{compactSize:O,compactItemClassnames:M}=Y8(S,r);let F=u.createElement(Sze,{className:`${S}-handler-up-inner`}),A=u.createElement(xk,{className:`${S}-handler-down-inner`});const N=typeof C=="boolean"?C:void 0;typeof C=="object"&&(F=typeof C.upIcon>"u"?F:u.createElement("span",{className:`${S}-handler-up-inner`},C.upIcon),A=typeof C.downIcon>"u"?A:u.createElement("span",{className:`${S}-handler-down-inner`},C.downIcon));const{hasFeedback:D,status:k,isFormItemInput:T,feedbackIcon:P}=u.useContext(Ds),_=eC(k,v),L=jl(Q=>{var te;return(te=s??O)!==null&&te!==void 0?te:Q}),B=u.useContext(Dc),z=l??B,[j,U]=KO("inputNumber",y,g),G=D&&u.createElement(u.Fragment,null,P),X=xe({[`${S}-lg`]:L==="large",[`${S}-sm`]:L==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:T},$),q=`${S}-group`,Y=u.createElement($Ve,Object.assign({ref:i,disabled:z,className:xe(R,w,o,a,M),upHandler:F,downHandler:A,prefixCls:S,readOnly:m,controls:N,prefix:h,suffix:G||p,addonBefore:d&&u.createElement(t8,{form:!0,space:!0},d),addonAfter:f&&u.createElement(t8,{form:!0,space:!0},f),classNames:{input:X,variant:xe({[`${S}-${j}`]:U},Ev(S,_,D)),affixWrapper:xe({[`${S}-affix-wrapper-sm`]:L==="small",[`${S}-affix-wrapper-lg`]:L==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:C===!1},$),wrapper:xe({[`${q}-rtl`]:r==="rtl"},$),groupWrapper:xe({[`${S}-group-wrapper-sm`]:L==="small",[`${S}-group-wrapper-lg`]:L==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${j}`]:U},Ev(`${S}-group-wrapper`,_,D),$)}},b));return x(Y)}),RVe=EVe,Qyn=e=>u.createElement(Wh,{theme:{components:{InputNumber:{handleVisible:!0}}}},u.creat
2025-02-18 08:35:18 +08:00
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
2025-04-17 15:35:46 +08:00
`,pbn=["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"],GQ={},Xc;function gbn(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&&GQ[n])return GQ[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")),s=pbn.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(GQ[n]=l),l}function mbn(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;Xc||(Xc=document.createElement("textarea"),Xc.setAttribute("tab-index","-1"),Xc.setAttribute("aria-hidden","true"),Xc.setAttribute("name","hiddenTextarea"),document.body.appendChild(Xc)),e.getAttribute("wrap")?Xc.setAttribute("wrap",e.getAttribute("wrap")):Xc.removeAttribute("wrap");var i=gbn(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;Xc.setAttribute("style","".concat(l,";").concat(hbn)),Xc.value=e.value||e.placeholder||"";var c=void 0,d=void 0,f,h=Xc.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=o),n!==null||r!==null){Xc.value=" ";var p=Xc.scrollHeight-o;n!==null&&(c=p*n,s==="border-box"&&(c=c+o+a),h=Math.max(c,h)),r!==null&&(d=p*r,s==="border-box"&&(d=d+o+a),f=h>d?"":"hidden",h=Math.min(d,h))}var g={height:h,overflowY:f,resize:"none"};return c&&(g.minHeight=c),d&&(g.maxHeight=d),g}var vbn=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],WQ=0,UQ=1,qQ=2,PVe=u.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var h=Jt(n,vbn),p=Jn(i,{value:o,postState:function(G){return G??""}}),g=ve(p,2),m=g[0],v=g[1],C=function(G){v(G.target.value),f==null||f(G)},y=u.useRef();u.useImperativeHandle(t,function(){return{textArea:y.current}});var b=u.useMemo(function(){return a&&Qt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=ve(b,2),w=S[0],x=S[1],$=!!a,R=function(){try{if(document.activeElement===y.current){var G=y.current,X=G.selectionStart,q=G.selectionEnd,Y=G.scrollTop;y.current.setSelectionRange(X,q),y.current.scrollTop=Y}}catch{}},O=u.useState(qQ),M=ve(O,2),F=M[0],A=M[1],N=u.useState(),D=ve(N,2),k=D[0],T=D[1],P=function(){A(WQ)};Un(function(){$&&P()},[o,w,x,$]),Un(function(){if(F===WQ)A(UQ);else if(F===UQ){var U=mbn(y.current,!1,w,x);A(qQ),T(U)}else R()},[F]);var _=u.useRef(),L=function(){pr.cancel(_.current)},B=function(G){F===qQ&&(s==null||s(G),a&&(L(),_.current=pr(function(){P()})))};u.useEffect(function(){return L},[]);var z=$?k:null,j=ae(ae({},c),z);return(F===WQ||F===UQ)&&(j.overflowY="hidden",j.overflowX="hidden"),u.createElement(La,{onResize:B,disabled:!(a||s)},u.createElement("textarea",V({},h,{ref:y,style:j,className:xe(r,l,re({},"".concat(r,"-disabled"),d)),disabled:d,value:m,onChange:C})))}),Cbn=["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"],ufe=ce.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,p=e.prefixCls,g=p===void 0?"rc-textarea":p,m=e.showCount,v=e.count,
2025-02-18 08:35:18 +08:00
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
2025-04-17 15:35:46 +08:00
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},qbn=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ze(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ze(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),zye=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Kbn=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},vi(e)),qbn(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},zye(e,e.controlHeightSM)),"&-large":Object.assign({},zye(e,e.controlHeightLG))})}},Xbn=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},vi(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Sde,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},kye=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Ybn=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},oh=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),LVe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:oh(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qbn=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
2025-02-18 08:35:18 +08:00
${r}-col-24${n}-label,
2025-04-17 15:35:46 +08:00
${r}-col-xl-24${n}-label`]:oh(e)}},[`@media (max-width: ${ze(e.screenXSMax)})`]:[LVe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:oh(e)}}}],[`@media (max-width: ${ze(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:oh(e)}}},[`@media (max-width: ${ze(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:oh(e)}}},[`@media (max-width: ${ze(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:oh(e)}}}}},Zbn=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
2025-02-18 08:35:18 +08:00
${n}-col-24${t}-label,
2025-04-17 15:35:46 +08:00
${n}-col-xl-24${t}-label`]:oh(e),[`@media (max-width: ${ze(e.screenXSMax)})`]:[LVe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:oh(e)}}],[`@media (max-width: ${ze(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:oh(e)}},[`@media (max-width: ${ze(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:oh(e)}},[`@media (max-width: ${ze(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:oh(e)}}}},Jbn=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),NVe=(e,t)=>vr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ffe=Yr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=NVe(e,n);return[Kbn(r),Xbn(r),Ubn(r),kye(r,r.componentCls),kye(r,r.formItemCls),Ybn(r),Qbn(r),Zbn(r),Uk(r),Sde]},Jbn,{order:-1e3}),Bye=[];function KQ(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const zVe=e=>{let{help:t,helpStatus:n,errors:r=Bye,warnings:i=Bye,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=u.useContext(Ide),c=`${l}-item-explain`,d=Oo(l),[f,h,p]=ffe(l,d),g=u.useMemo(()=>tN(l),[l]),m=pN(r),v=pN(i),C=u.useMemo(()=>t!=null?[KQ(t,"help",n)]:[].concat(st(m.map((S,w)=>KQ(S,"error","error",w))),st(v.map((S,w)=>KQ(S,"warning","warning",w)))),[t,n,m,v]),y=u.useMemo(()=>{const S={};return C.forEach(w=>{let{key:x}=w;S[x]=(S[x]||0)+1}),C.map((w,x)=>Object.assign(Object.assign({},w),{key:S[w.key]>1?`${w.key}-fallback-${x}`:w.key}))},[C]),b={};return a&&(b.id=`${a}_help`),f(u.createElement(wa,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},S=>{const{className:w,style:x}=S;return u.createElement("div",Object.assign({},b,{className:xe(c,w,p,d,o,h),style:x,role:"alert"}),u.createElement(Hk,Object.assign({keys:y},tN(l),{motionName:`${l}-show-help-item`,component:!1}),$=>{const{key:R,error:O,errorStatus:M,className:F,style:A}=$;return u.createElement("div",{key:R,className:xe(F,{[`${c}-${M}`]:M}),style:A},O)}))}))},e7n=["parentNode"],t7n="form_item";function Z$(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function kVe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:e7n.includes(n)?`${t7n}_${n}`:n}function BVe(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function Hye(e){return Z$(e).join("_")}function jye(e,t){const n=t.getFieldInstance(e),r=Wue(n);if(r)return r;const i=kVe(Z$(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function gm(e){const[t]=nB(),n=u.useRef({}),r=u.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=Hye(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=jye(i,r);a&&Wke(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=jye(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=Hye(i);return n.current[o]}}),[e,t]);return[r]}var n7n=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 r7n=(e,t)=>{const n=u.useContext(Dc),{getPrefixCls:r,direction:i,form:o}=u.useContext(Cn),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:d=n,form:f,colon:h,labelAlign:p,labelWrap:g,labelCol:m,wrapperCol:v,hideRequiredMark:C,layout:y="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:w,name:x,style:$,feedbackIcons:R,variant:O}=e,M=n7n(e,["prefixCls","className","rootClassName","size","disabl
2025-02-18 08:35:18 +08:00
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
2025-04-17 15:35:46 +08:00
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ze(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ze(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ze(e.itemSizeSM),input:Object.assign(Object.assign({},Qde(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},fSn=e=>{const{componentCls:t}=e;return{[`
2025-02-18 08:35:18 +08:00
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
2025-04-17 15:35:46 +08:00
`]:{height:e.itemSizeSM,lineHeight:ze(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ze(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ze(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ze(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:`${ze(e.inputOutlineOffset)} 0 ${ze(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},hSn=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}}},[`
2025-02-18 08:35:18 +08:00
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
2025-04-17 15:35:46 +08:00
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ze(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:`${ze(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:ze(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},QO(e)),Yde(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},OB(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},pSn=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ze(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ze(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ze(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},gSn=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vi(e)),{display:"flex","&-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:ze(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),pSn(e)),hSn(e)),fSn(e)),dSn(e)),uSn(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"}}},mSn=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Dh(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},fm(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},fm(e))}}}},ZVe=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.contro
L `).concat(s==="round"?y:100,",").concat(C),S="0 0 100 ".concat(l),w=0;return u.createElement("svg",V({className:xe("".concat(o,"-line"),r),viewBox:S,preserveAspectRatio:"none",style:c},p),u.createElement("path",{className:"".concat(o,"-line-trail"),d:b,strokeLinecap:s,stroke:d,strokeWidth:f||l,fillOpacity:"0"}),g.map(function(x,$){var R=1;switch(s){case"round":R=1-l/100;break;case"square":R=1-l/2/100;break;default:R=1;break}var O={strokeDasharray:"".concat(x*R,"px, 100px"),strokeDashoffset:"-".concat(w,"px"),transition:h||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},M=m[$]||m[m.length-1];return w+=x,u.createElement("path",{key:$,className:"".concat(o,"-line-path"),d:b,strokeLinecap:s,stroke:M,strokeWidth:l,fillOpacity:"0",ref:function(A){v[$]=A},style:O})}))},tbe=0,lwn=Sa();function cwn(){var e;return lwn?(e=tbe,tbe+=1):e="TEST_OR_SSR",e}const uwn=function(e){var t=u.useState(),n=ve(t,2),r=n[0],i=n[1];return u.useEffect(function(){i("rc_progress_".concat(cwn()))},[]),e||r};var nbe=function(t){var n=t.bg,r=t.children;return u.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function rbe(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),i="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(i)})}var dwn=u.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,d=e.size,f=e.gapDegree,h=r&&Qt(r)==="object",p=h?"#FFF":void 0,g=d/2,m=u.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:g,cy:g,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!h)return m;var v="".concat(i,"-conic"),C=f?"".concat(180+f/2,"deg"):"0deg",y=rbe(r,(360-f)/360),b=rbe(r,1),S="conic-gradient(from ".concat(C,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return u.createElement(u.Fragment,null,u.createElement("mask",{id:v},m),u.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},u.createElement(nbe,{bg:w},u.createElement(nbe,{bg:S}))))}),f$=100,YQ=function(t,n,r,i,o,a,s,l,c,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],g=(100-i)/100*n;c==="round"&&i!==100&&(g+=d/2,g>=n&&(g=n-.01));var m=f$/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:g+f,transform:"rotate(".concat(o+h+p,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},fwn=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ibe(e){var t=e??[];return Array.isArray(t)?t:[t]}var pfe=function(t){var n=ae(ae({},aGe),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,d=n.gapPosition,f=n.trailColor,h=n.strokeLinecap,p=n.style,g=n.className,m=n.strokeColor,v=n.percent,C=Jt(n,fwn),y=f$/2,b=uwn(r),S="".concat(b,"-gradient"),w=y-a/2,x=Math.PI*2*w,$=c>0?90+c/2:-90,R=x*((360-c)/360),O=Qt(o)==="object"?o:{count:o,gap:2},M=O.count,F=O.gap,A=ibe(v),N=ibe(m),D=N.find(function(z){return z&&Qt(z)==="object"}),k=D&&Qt(D)==="object",T=k?"butt":h,P=YQ(x,R,0,100,$,c,d,f,T,a),_=sGe(),L=function(){var j=0;return A.map(function(U,G){var X=N[G]||N[N.length-1],q=YQ(x,R,j,U,$,c,d,X,T,a);return j+=U,u.createElement(dwn,{key:G,color:X,ptg:U,radius:w,prefixCls:i,gradientId:S,style:q,strokeLinecap:T,strokeWidth:a,gapDegree:c,ref:function(Q){_[G]=Q},size:f$})}).reverse()},B=function(){var j=Math.round(M*(A[0]/100)),U=100/M,G=0;return new Array(M).fill(null).map(function(X,q){var Y=q<=j-1?N[0]:f,Q=Y&&Qt(Y)==="object"?"url(#".concat(S,")"):void 0,te=YQ(x,R,G,U,$,c,d,Y,"butt",a,F);return G+=(R-te.strokeDashoffset+F)*100/R,u.createElement("circle",{key:q,className:"".con
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}var nw,nM;function gc(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function ng(e,t){return(e>>>t&1)!=0}function Yc(e){if(!e)throw new Error("Assertion error")}var V1=function(){function e(t,n){zr(this,e),re(this,"modeBits",void 0),re(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return kr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();nw=V1;re(V1,"NUMERIC",new nw(1,[10,12,14]));re(V1,"ALPHANUMERIC",new nw(2,[9,11,13]));re(V1,"BYTE",new nw(4,[8,16,16]));re(V1,"KANJI",new nw(8,[8,10,12]));re(V1,"ECI",new nw(7,[0,0,0]));var Hd=kr(function e(t,n){zr(this,e),re(this,"ordinal",void 0),re(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});nM=Hd;re(Hd,"LOW",new nM(0,1));re(Hd,"MEDIUM",new nM(1,0));re(Hd,"QUARTILE",new nM(2,3));re(Hd,"HIGH",new nM(3,2));var R6=function(){function e(t,n,r){if(zr(this,e),re(this,"mode",void 0),re(this,"numChars",void 0),re(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return kr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=e6(n),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;gc(a,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(V1.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<n.length;){var o=Math.min(n.length-i,3);gc(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(V1.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],i;for(i=0;i+2<=n.length;i+=2){var o=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i))*45;o+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i+1)),gc(o,11,r)}return i<n.length&&gc(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(V1.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)gc(n,8,r);else if(n<16384)gc(2,2,r),gc(n,14,r);else if(n<1e6)gc(6,3,r),gc(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(V1.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var i=0,o=e6(n),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l=s.mode.numCharCountBits(r);if(s.numChars>=1<<l)return 1/0;i+=4+l+s.bitData.length}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),i=[],o=0;o<r.length;o++)r.charAt(o)!="%"?i.push(r.charCodeAt(o)):(i.push(parseInt(r.substring(o+1,o+3),16)),o+=2);return i}}]),e}();re(R6,"NUMERIC_REGEX",/^[0-9]*$/);re(R6,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);re(R6,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Nm=function(){function e(t,n,r,i){zr(this,e),re(this,"size",void 0),re(this,"mask",void 0),re(this,"modules",[]),re(this,"isFunction",[]),re(this,"version",void 0),re(this,"errorCorrectionLevel",void 0);var o=i;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s<this.size;s++)a.push(!1);for(var l=0;l<this.size;l++)this.modules.push(a.slice()),this.isFunction.push(a.s
2025-02-18 08:35:18 +08:00
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
2025-04-17 15:35:46 +08:00
`]=REn(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},MEn=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},ode(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},PEn=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:mR[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),IEn=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ze(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},TEn=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),_En=()=>({"\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"}}),FEn=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.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},OEn(e)),{[`
2025-02-18 08:35:18 +08:00
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
2025-04-17 15:35:46 +08:00
`]:{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}}}),PEn(e)),MEn(e)),{[`
2025-02-18 08:35:18 +08:00
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
2025-04-17 15:35:46 +08:00
`]:Object.assign(Object.assign({},ode(e)),{marginInlineStart:e.marginXXS})}),IEn(e)),TEn(e)),_En()),{"&-rtl":{direction:"rtl"}})}},AEn=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),JGe=Yr("Typography",e=>[FEn(e)],AEn),DEn=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:d,onEnd:f,component:h,enterIcon:p=u.createElement(KNe,null)}=e,g=u.useRef(null),m=u.useRef(!1),v=u.useRef(null),[C,y]=u.useState(l);u.useEffect(()=>{y(l)},[l]),u.useEffect(()=>{var D;if(!((D=g.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:k}=g.current.resizableTextArea;k.focus();const{length:T}=k.value;k.setSelectionRange(T,T)}},[]);const b=D=>{let{target:k}=D;y(k.value.replace(/[\n\r]/g,""))},S=()=>{m.current=!0},w=()=>{m.current=!1},x=D=>{let{keyCode:k}=D;m.current||(v.current=k)},$=()=>{c(C.trim())},R=D=>{let{keyCode:k,ctrlKey:T,altKey:P,metaKey:_,shiftKey:L}=D;v.current!==k||m.current||T||P||_||L||(k===it.ENTER?($(),f==null||f()):k===it.ESC&&d())},O=()=>{$()},[M,F,A]=JGe(t),N=xe(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},r,F,A);return M(u.createElement("div",{className:N,style:i},u.createElement(IVe,{ref:g,maxLength:a,value:C,onChange:b,onKeyDown:x,onKeyUp:R,onCompositionStart:S,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:s}),p!==null?cs(p,{className:`${t}-edit-content-confirm`}):null))};var LEn=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()}},NEn=LEn,Fbe={"text/plain":"Text","text/html":"Url",default:"Text"},zEn="Copy to clipboard: #{key}, Enter";function kEn(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function BEn(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=NEn(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Fbe[t.format]||Fbe.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=kEn("message"in t?t.message:zEn),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var eWe=BEn;const HEn=sf(eWe);var jEn=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 s(d){try{c(r.next(d))}catch(f){a(f)}}function l(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const VEn=e=>{let{copyConfig:t,children:n}=e;const[r,i]=u.useState(!1),[o,a]=u.useState(!1),s=u.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(
2025-02-18 08:35:18 +08:00
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
2025-04-17 10:18:46 +08:00
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ze(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
2025-02-18 08:35:18 +08:00
p${t}-text,
p${t}-hint
2025-04-17 15:35:46 +08:00
`]:{color:e.colorTextDisabled}}}}}},yRn=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},m7()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Ah),{padding:`0 ${ze(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
2025-02-18 08:35:18 +08:00
${l}:focus-visible,
&.picture ${l}
2025-04-17 15:35:46 +08:00
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},bRn=e=>{const{componentCls:t}=e,n=new Sr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Sr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:mde(e)},n,r]},SRn=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
2025-02-18 08:35:18 +08:00
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
2025-04-17 15:35:46 +08:00
`]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ze(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Ah),{width:r,height:r,lineHeight:ze(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${ze(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Q6[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Q6.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},wRn=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
2025-02-18 08:35:18 +08:00
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
2025-04-17 10:18:46 +08:00
`]:Object.assign(Object.assign({},m7()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ze(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ze(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ze(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
2025-02-18 08:35:18 +08:00
${n}-eye,
${n}-download,
${n}-delete
2025-04-17 15:35:46 +08:00
`]:{zIndex:10,width:r,margin:`0 ${ze(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ze(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ze(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},xRn=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},$Rn=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},vi(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ERn=e=>({actionsColor:e.colorTextDescription}),RRn=Yr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=vr(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[$Rn(a),CRn(a),SRn(a),wRn(a),yRn(a),bRn(a),xRn(a),Uk(a)]},ERn);function v_(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function C_(e,t){const n=st(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function sZ(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function ORn(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(i=>i[n]!==e[n]);return r.length===t.length?null:r}const MRn=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},nWe=e=>e.indexOf("image/")===0,PRn=e=>{if(e.type&&!e.thumbUrl)return nWe(e.type);const t=e.thumbUrl||e.url||"",n=MRn(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},m0=200;function IRn(e){return new Promise(t=>{if(!e.type||!nWe(e.type)){t("");return}const n=document.createElement("canvas");n.width=m0,n.height=m0,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${m0}px; height: ${m0}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let s=m0,l=m0,c=0,d=0;o>a?(l=a*(m0/o),d=-(l-s)/2):(s=o*(m0/a),c=-(s-l)/2),r.drawImage(i,c,d,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(f)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const TRn=u.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:a,file:s,items:l,progress:c,iconRender:d,actionIconRender:f,itemRender:h,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:v,previewIcon:C,removeIcon:y,downloadIcon:b,extra:S,onPreview:w,onDownload:x,onClose:$}=e;var R,O;const{status:M}=s,[F,A]=u.useState(M);u.useEffect(()=>{M!=="removed"&&A(M)},[M]);const[N,D]=u.useState(!1);u.useEffect(()=>{const J=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(J)}},[]);const k=d(s);let T=u.createElement("div",{className:`${n}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(F==="uploading"||!s.thumbUrl&&!s.url){const J=xe(`${n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IOn(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function TOn(e){if(Array.isArray(e))return e}function i8(e){"@babel/helpers - typeof";return i8=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},i8(e)}function _On(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=$We(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function $We(e,t){if(e){if(typeof e=="string")return qbe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qbe(e,t)}}function qbe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kbe(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 O5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kbe(Object(n),!0).forEach(function(r){FOn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kbe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FOn(e,t,n){return t=EWe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AOn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xbe(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,EWe(r.key),r)}}function DOn(e,t,n){return Xbe(e.prototype,t),Xbe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EWe(e){var t=LOn(e,"string");return i8(t)=="symbol"?t:t+""}function LOn(e,t){if(i8(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(i8(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eoe="tus-v1",NA="ietf-draft-03",NOn={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:RWe,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:eoe},wN=function(){function e(t,n){AOn(this,e),"resume"in n&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=n,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return DOn(e,[{key:"findPreviousUploads",value:function(){var n=this;return this.options.fingerprint(this.file,this.options).then(function(r){return n._urlStorage.findUploadsByFingerprint(r)})}},{key:"resumeFromPreviousUpload",value:function(n){this.url=n.uploadUrl||null,this._parallelUploadUrls=n.parallelUploadUrls||null,this._urlStorageKey=n.urlStorageKey}},{key:"start",value:function(){var n=this,r=this.file;if(!r){this._emitError(new Error("tus: no file or stream to upload provided"));return}if(![eoe,NA].includes(this.options.protocol)){this._emitError(new Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));return}var i=this.options.retryDelays;if(i!=n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(BWe);var NMn=BWe.exports;(function(e){var t=LMn,n=zWe,r=Vfe,i=NMn;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(FWe);var Ir=FWe.exports,kc={};Object.defineProperty(kc,"__esModule",{value:!0});kc.default=void 0;var HWe=function(t){return+setTimeout(t,16)},jWe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(HWe=function(t){return window.requestAnimationFrame(t)},jWe=function(t){return window.cancelAnimationFrame(t)});var s7e=0,Gfe=new Map;function VWe(e){Gfe.delete(e)}var GWe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;s7e+=1;var r=s7e;function i(o){if(o===0)VWe(r),t();else{var a=HWe(function(){i(o-1)});Gfe.set(r,a)}}return i(n),r};GWe.cancel=function(e){var t=Gfe.get(e);return VWe(e),jWe(t)};kc.default=GWe;var WWe=ge.default;Object.defineProperty(sw,"__esModule",{value:!0});sw.default=void 0;var zMn=WWe(Ir),l7e=WWe(kc);function kMn(e){let t;const n=i=>()=>{t=null,e.apply(void 0,(0,zMn.default)(i))},r=function(){if(t==null){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];t=(0,l7e.default)(n(o))}};return r.cancel=()=>{l7e.default.cancel(t),t=null},r}sw.default=kMn;var Lt={},UWe={exports:{}},qWe={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(qWe);var Ba=qWe.exports;(function(e){var t=Ba.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&{}.hasOwnProperty.call(i,c)){var d=l?Object.getOwnPropertyDescriptor(i,c):null;d&&(d.get||d.set)?Object.defineProperty(s,c,d):s[c]=i[c]}return s.default=i,a&&a.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(UWe);var Te=UWe.exports;const Gt=Rr(Chn);var lw={};Object.defineProperty(lw,"__esModule",{value:!0});lw.default=void 0;var BMn=u,HMn=(0,BMn.createContext)({});lw.default=HMn;var aM={},jMn=Te.default;Object.defineProperty(aM,"__esModule",{value:!0});aM.default=GMn;var VMn=jMn(u);function GMn(e,t,n){var r=VMn.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var JB={},KWe={exports:{}},XWe={exports:{}},YWe={exports:{}},QWe={exports:{}};(function(e){var t=Ba.default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(QWe);var WMn=QWe.exports;(function(e){var t=Ba.default,n=WMn;function r(i){var o=n(i,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(YWe);var ZWe=YWe.exports;(function(e){var t=ZWe;function n(r,i,o){return(i=t(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(XWe);var sM=XWe.exports;(function(e){var t=sM;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),a.push.apply(a,s)}return a}function r(i){for
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(nUe);var rUe=nUe.exports;(function(e){var t=tUe,n=zWe,r=Vfe,i=rUe;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(JWe);var UMn=JWe.exports,Wfe={};Object.defineProperty(Wfe,"__esModule",{value:!0});Wfe.default=qMn;function qMn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var lM=ge.default;Object.defineProperty(JB,"__esModule",{value:!0});JB.default=zA;JB.merge=ZMn;var iUe=lM(Ba),KMn=lM(Bc),oUe=lM(Ir),XMn=lM(UMn),ooe=lM(Wfe);function aUe(e,t,n,r){if(!t.length)return n;var i=(0,XMn.default)(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=(0,oUe.default)(e):s=(0,KMn.default)({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=aUe(s[o],a,n,r),s}function zA(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,ooe.default)(e,t.slice(0,-1))?e:aUe(e,t,n,r)}function YMn(e){return(0,iUe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function c7e(e){return Array.isArray(e)?[]:{}}var QMn=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ZMn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=c7e(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=(0,ooe.default)(i,a),d=Array.isArray(c);if(d||YMn(c)){if(!l.has(c)){l.add(c);var f=(0,ooe.default)(r,a);d?r=zA(r,a,[]):(!f||(0,iUe.default)(f)!=="object")&&(r=zA(r,a,c7e(c))),QMn(c).forEach(function(h){o([].concat((0,oUe.default)(a),[h]),l)})}}else r=zA(r,a,c)}o([])}),r}var Co={},Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.call=Ufe;Ha.default=void 0;Ha.note=lUe;Ha.noteOnce=uUe;Ha.preMessage=void 0;Ha.resetWarned=cUe;Ha.warning=sUe;Ha.warningOnce=cM;var aoe={},JMn=Ha.preMessage=function(t){};function sUe(e,t){}function lUe(e,t){}function cUe(){aoe={}}function Ufe(e,t,n){!t&&!aoe[n]&&(e(!1,n),aoe[n]=!0)}function cM(e,t){Ufe(sUe,e,t)}function uUe(e,t){Ufe(lUe,e,t)}cM.preMessage=JMn;cM.resetWarned=cUe;cM.noteOnce=uUe;Ha.default=cM;var dUe=Te.default;Object.defineProperty(Co,"__esModule",{value:!0});Co.devUseWarning=Co.default=Co.WarningContext=void 0;Co.noop=qfe;Co.resetWarned=nPn;var ePn=dUe(u),tPn=dUe(Ha);function qfe(){}function nPn(){(0,tPn.resetWarned)()}let rPn=qfe;Co.WarningContext=ePn.createContext({});Co.devUseWarning=()=>{const e=()=>{};return e.deprecated=qfe,e};Co.default=rPn;var uM={};Object.defineProperty(uM,"__esModule",{value:!0});uM.default=void 0;var iPn=u;uM.default=(0,iPn.createContext)(void 0);var ca={},cw={},Gl={},dM={};Object.defineProperty(dM,"__esModule",{value:!0});dM.default=void 0;var oPn={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"};dM.default=oPn;var fM={},aC={},eH={},hM={};Object.defineProperty(hM,"__esModule",{value:!0});hM.commonLocale=void 0;hM.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var aPn=ge.default;Object.defineProperty(eH,"__esModule",{value:!0});eH.default=void 0;var u7e=aPn(Bc),sPn=hM,lPn=(0,u7e.default)((0,u7e.default)({},sPn.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});eH.default=lPn;var pM={};Object.defineProperty(pM,"_
2025-02-18 08:35:18 +08:00
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
2025-04-17 15:35:46 +08:00
'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});rf.default=PPn;var nH={};const xa=Rr(aSt);Object.defineProperty(nH,"__esModule",{value:!0});nH.default=IPn;var uZ=xa;function IPn(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=n(l),h=n(i),p=n(o),g=n(a),m=n(s),v=r(c,d),C=e.colorLink||e.colorInfo,y=n(C),b=new uZ.FastColor(g[1]).mix(new uZ.FastColor(g[3]),50).toHexString();return Object.assign(Object.assign({},v),{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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new uZ.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var Xfe={},rH={};Object.defineProperty(rH,"__esModule",{value:!0});rH.default=void 0;const TPn=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}};rH.default=TPn;var _Pn=ge.default;Object.defineProperty(Xfe,"__esModule",{value:!0});Xfe.default=APn;var FPn=_Pn(rH);function APn(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},(0,FPn.default)(r))}var gM={};Object.defineProperty(gM,"__esModule",{value:!0});gM.default=void 0;const DPn=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};gM.default=DPn;var mM={},vM={};Object.defineProperty(vM,"__esModule",{value:!0});vM.default=LPn;vM.getLineHeight=pUe;function pUe(e){return(e+8)/e}function LPn(e){const t=new Array(10).fill(null).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:pUe(n)}))}var NPn=ge.default;Object.defineProperty(mM,"__esModule",{value:!0});mM.default=void 0;var zPn=NPn(vM);const kPn=e=>{const t=(0,zPn.default)(e),n=t.map(d=>d.size),r=t.map(
2025-02-18 08:35:18 +08:00
:root {
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
2025-04-17 15:35:46 +08:00
`.trim()}function wIn(e,t){const n=yUe(e,t);(0,yIn.default)()&&(0,bIn.updateCSS)(n,`${SIn}-dynamic-theme`)}var no={},xIn=Te.default;Object.defineProperty(no,"__esModule",{value:!0});no.default=no.DisabledContextProvider=void 0;var soe=xIn(u);const loe=soe.createContext(!1),$In=e=>{let{children:t,disabled:n}=e;const r=soe.useContext(loe);return soe.createElement(loe.Provider,{value:n??r},t)};no.DisabledContextProvider=$In;no.default=loe;var aH={},vm={},EIn=Te.default;Object.defineProperty(vm,"__esModule",{value:!0});vm.default=vm.SizeContextProvider=void 0;var coe=EIn(u);const uoe=coe.createContext(void 0),RIn=e=>{let{children:t,size:n}=e;const r=coe.useContext(uoe);return coe.createElement(uoe.Provider,{value:n||r},t)};vm.SizeContextProvider=RIn;vm.default=uoe;var bUe=ge.default;Object.defineProperty(aH,"__esModule",{value:!0});aH.default=void 0;var b7e=u,OIn=bUe(no),MIn=bUe(vm);function PIn(){const e=(0,b7e.useContext)(OIn.default),t=(0,b7e.useContext)(MIn.default);return{componentDisabled:e,componentSize:t}}aH.default=PIn;var nhe={},yM={},SUe=ge.default;Object.defineProperty(yM,"__esModule",{value:!0});yM.default=void 0;var S7e=SUe(Ba),IIn=SUe(Ha);function TIn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if((0,IIn.default)(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],a[d],c))return!1;return!0}if(o&&a&&(0,S7e.default)(o)==="object"&&(0,S7e.default)(a)==="object"){var f=Object.keys(o);return f.length!==Object.keys(a).length?!1:f.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}yM.default=TIn;var qt={};const wUe=Rr(Qhn);var fw={},sH={};Object.defineProperty(sH,"__esModule",{value:!0});sH.PresetColors=void 0;sH.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return t.PresetColors}});var t=sH})(fw);var _c={},bM={},lH={};Object.defineProperty(lH,"__esModule",{value:!0});lH.default=void 0;lH.default="5.23.0";var _In=ge.default;Object.defineProperty(bM,"__esModule",{value:!0});bM.default=void 0;var FIn=_In(lH);bM.default=FIn.default;var cH={},uH={};Object.defineProperty(uH,"__esModule",{value:!0});uH.default=void 0;var S_=xa;function fZ(e){return e>=0&&e<=255}function AIn(e,t){const{r:n,g:r,b:i,a:o}=new S_.FastColor(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new S_.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(fZ(d)&&fZ(f)&&fZ(h))return new S_.FastColor({r:d,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new S_.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}uH.default=AIn;var xUe=ge.default;Object.defineProperty(cH,"__esModule",{value:!0});cH.default=NIn;var hZ=xa,DIn=xUe(rf),w_=xUe(uH),LIn=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 NIn(e){const{override:t}=e,n=LIn(e,["override"]),r=Object.assign({},t);Object.keys(DIn.default).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,d=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,w_.default)(i.colorBorderSecondary,i.
2025-02-18 08:35:18 +08:00
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
2025-04-17 10:18:46 +08:00
0 1px 2px -2px ${new hZ.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new hZ.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new hZ.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()}
2025-02-18 08:35:18 +08:00
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
2025-04-17 15:35:46 +08:00
`,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 dH=ge.default;Object.defineProperty(_c,"__esModule",{value:!0});_c.default=WIn;_c.unitless=_c.ignore=_c.getComputedToken=void 0;var zIn=dH(u),kIn=Gt,BIn=dH(bM),w7e=tp,HIn=dH(rf),$Ue=dH(cH),x7e=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 jIn=_c.unitless={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},VIn=_c.ignore={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},GIn={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},rhe=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=x7e(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,$Ue.default)(a),Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:d}=c,f=x7e(c,["theme"]);let h=f;d&&(h=rhe(Object.assign(Object.assign({},a),f),{override:f},d)),a[l]=h}),a};_c.getComputedToken=rhe;function WIn(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=zIn.default.useContext(w7e.DesignTokenContext),o=`${BIn.default}-${t||""}`,a=n||w7e.defaultTheme,[s,l,c]=(0,kIn.useCacheToken)(a,[HIn.default,e],{salt:o,override:r,getComputedToken:rhe,formatToken:$Ue.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:jIn,ignore:VIn,preserve:GIn}});return[a,c,t?l:"",s,i]}var W2={},cn={};Object.defineProperty(cn,"__esModule",{value:!0});cn.textEllipsis=cn.resetIcon=cn.resetComponent=cn.operationUnit=cn.genLinkStyle=cn.genIconStyle=cn.genFocusStyle=cn.genFocusOutline=cn.genCommonStyle=cn.clearFix=void 0;var UIn=Gt;cn.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const qIn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}};cn.resetComponent=qIn;const EUe=()=>({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"}});cn.resetIcon=EUe;const KIn=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});cn.clearFix=KIn;const XIn=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"}}});cn.genLinkStyle=XIn;const YIn=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}}
2025-02-18 08:35:18 +08:00
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
2025-04-17 15:35:46 +08:00
`;vl.useInsertStyles=function(t){var n=(0,EN.useContext)(WTn.default),r=n.csp,i=n.prefixCls,o=QTn;i&&(o=o.replace(/anticon/g,i)),(0,EN.useEffect)(function(){var a=t.current,s=(0,VTn.getShadowRoot)(a);(0,jTn.updateCSS)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])};var NUe=ge.default,ZTn=Te.default;Object.defineProperty(xM,"__esModule",{value:!0});xM.default=void 0;var JTn=NUe(dC),g$=NUe(Bc),e_n=ZTn(u),b3=vl,t_n=["icon","className","onClick","style","primaryColor","secondaryColor"],J$={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n_n(e){var t=e.primaryColor,n=e.secondaryColor;J$.primaryColor=t,J$.secondaryColor=n||(0,b3.getSecondaryColor)(t),J$.calculated=!!n}function r_n(){return(0,g$.default)({},J$)}var yH=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,JTn.default)(t,t_n),c=e_n.useRef(),d=J$;if(a&&(d={primaryColor:a,secondaryColor:s||(0,b3.getSecondaryColor)(a)}),(0,b3.useInsertStyles)(c),(0,b3.warning)((0,b3.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,b3.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,g$.default)((0,g$.default)({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),(0,b3.generate)(f.icon,"svg-".concat(f.name),(0,g$.default)((0,g$.default)({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};yH.displayName="IconReact";yH.getTwoToneColors=r_n;yH.setTwoToneColors=n_n;xM.default=yH;var bH={},zUe=ge.default;Object.defineProperty(bH,"__esModule",{value:!0});bH.getTwoToneColor=s_n;bH.setTwoToneColor=a_n;var i_n=zUe(uC),kUe=zUe(xM),o_n=vl;function a_n(e){var t=(0,o_n.normalizeTwoToneColors)(e),n=(0,i_n.default)(t,2),r=n[0],i=n[1];return kUe.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function s_n(){var e=kUe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var fC=ge.default,l_n=Te.default;Object.defineProperty(rr,"__esModule",{value:!0});rr.default=void 0;var c_n=fC(nr),u_n=fC(uC),L7e=fC(sM),d_n=fC(dC),x_=l_n(u),f_n=fC(Ct),h_n=qh,p_n=fC(lw),g_n=fC(xM),lhe=bH,m_n=vl,v_n=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,lhe.setTwoToneColor)(h_n.blue.primary);var SH=x_.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,d_n.default)(e,v_n),d=x_.useContext(p_n.default),f=d.prefixCls,h=f===void 0?"anticon":f,p=d.rootClassName,g=(0,f_n.default)(p,h,(0,L7e.default)((0,L7e.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),m=a;m===void 0&&s&&(m=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=(0,m_n.normalizeTwoToneColors)(l),y=(0,u_n.default)(C,2),b=y[0],S=y[1];return x_.createElement("span",(0,c_n.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:g}),x_.createElement(g_n.default,{icon:r,primaryColor:b,secondaryColor:S,style:v}))});SH.displayName="AntdIcon";SH.getTwoToneColor=lhe.getTwoToneColor;SH.setTwoToneColor=lhe.setTwoToneColor;rr.default=SH;var C_n=Te.default,che=ge.default;Object.defineProperty(mH,"__esModule",{value:!0});mH.default=void 0;var y_n=che(nr),BUe=C_n(u),b_n=che(she),S_n=che(rr),w_n=function(t,n){return BUe.createElement(S_n.default,(0,y_n.default)({},t,{ref:n,icon:b_n.default}))},x_n=BUe.forwardRef(w_n);mH.default=x_n;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(mH);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(doe,doe.exports);var hC=doe.exports,poe={exports:{}},wH={},uhe={};Object.defineProperty(uhe,"__esModule",{value:!0});var $_n={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-
2025-02-18 08:35:18 +08:00
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
2025-04-17 15:35:46 +08:00
summary tabIndex target title type useMap value width wmode wrap`,tFn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
2025-02-18 08:35:18 +08:00
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
2025-04-17 15:35:46 +08:00
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,nFn="".concat(eFn," ").concat(tFn).split(/[\s\n]+/),rFn="aria-",iFn="data-";function N7e(e,t){return e.indexOf(t)===0}function oFn(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=(0,J_n.default)({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||N7e(i,rFn))||n.data&&N7e(i,iFn)||n.attr&&nFn.includes(i))&&(r[i]=e[i])}),r}var Ti={},OH={},aFn=ge.default;Object.defineProperty(OH,"__esModule",{value:!0});OH.default=dFn;var sFn=aFn(Ba),lFn=Symbol.for("react.element"),cFn=Symbol.for("react.transitional.element"),uFn=Symbol.for("react.fragment");function dFn(e){return e&&(0,sFn.default)(e)==="object"&&(e.$$typeof===lFn||e.$$typeof===cFn)&&e.type===uFn}var Che=ge.default;Object.defineProperty(Ti,"__esModule",{value:!0});Ti.useComposeRef=Ti.supportRef=Ti.supportNodeRef=Ti.getNodeRef=Ti.fillRef=Ti.composeRef=void 0;var fFn=Che(Ba),hFn=u,vZ=SA,pFn=Che(aM),gFn=Che(OH),mFn=Ti.fillRef=function(t,n){typeof t=="function"?t(n):(0,fFn.default)(t)==="object"&&t&&"current"in t&&(t.current=n)},vFn=Ti.composeRef=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){mFn(a,o)})}};Ti.useComposeRef=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,pFn.default)(function(){return vFn.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})};var CFn=Ti.supportRef=function(t){var n,r;if(!t)return!1;if(yhe(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=(0,vZ.isMemo)(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==vZ.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==vZ.ForwardRef)};function yhe(e){return(0,hFn.isValidElement)(e)&&!(0,gFn.default)(e)}Ti.supportNodeRef=function(t){return yhe(t)&&CFn(t)};Ti.getNodeRef=function(t){if(t&&yhe(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};var Li={},yFn=ge.default;Object.defineProperty(Li,"__esModule",{value:!0});Li.cloneElement=SFn;Li.isFragment=bFn;Li.replaceElement=void 0;var RN=yFn(u);function bFn(e){return e&&RN.default.isValidElement(e)&&e.type===RN.default.Fragment}const WUe=(e,t,n)=>RN.default.isValidElement(e)?RN.default.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;Li.replaceElement=WUe;function SFn(e,t){return WUe(e,e,t)}var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});Nd.prepareComponentToken=Nd.genTypeStyle=Nd.genBaseStyle=Nd.genActionStyle=Nd.default=void 0;var UUe=Gt,wFn=cn,xFn=qt;const $_=(e,t,n,r,i)=>({background:e,border:`${(0,UUe.unit)(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),qUe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:f,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},(0,wFn.resetComponent)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
2025-02-18 08:35:18 +08:00
padding-top ${n} ${c}, padding-bottom ${n} ${c},
2025-04-17 15:35:46 +08:00
margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}};Nd.genBaseStyle=qUe;const KUe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:d,colorInfo:f,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":$_(i,r,n,e,t),"&-info":$_(p,h,f,e,t),"&-warning":$_(s,a,o,e,t),"&-error":Object.assign(Object.assign({},$_(d,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}};Nd.genTypeStyle=KUe;const XUe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:(0,UUe.unit)(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}};Nd.genActionStyle=XUe;const YUe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`});Nd.prepareComponentToken=YUe;Nd.default=(0,xFn.genStyleHooks)("Alert",e=>[qUe(e),KUe(e),XUe(e)],YUe);var km=ge.default,$Fn=Te.default;Object.defineProperty(wM,"__esModule",{value:!0});wM.default=void 0;var Jo=$Fn(u),EFn=km(hC),RFn=km(zm),OFn=km(ku),MFn=km(Xv),PFn=km(RH),Coe=km(Ct),IFn=km(Kh),TFn=km(ff),_Fn=Ti,FFn=Li,AFn=Lt,DFn=km(Nd),z7e=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 LFn={success:EFn.default,info:PFn.default,error:RFn.default,warning:MFn.default},NFn=e=>{const{icon:t,prefixCls:n,type:r}=e,i=LFn[r]||null;return t?(0,FFn.replaceElement)(t,Jo.createElement("span",{className:`${n}-icon`},t),()=>({className:(0,Coe.default)(`${n}-icon`,t.props.className)})):Jo.createElement(i,{className:`${n}-icon`})},zFn=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?Jo.createElement(OFn.default,null):r;return t?Jo.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},kFn=Jo.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:d,onClick:f,afterClose:h,showIcon:p,closable:g,closeText:m,closeIcon:v,action:C,id:y}=e,b=z7e(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,w]=Jo.useState(!1),x=Jo.useRef(null);Jo.useImperativeHandle(t,()=>({nativeElement:x.current}));const{getPrefixCls:$,direction:R,alert:O}=Jo.useContext(AFn.ConfigContext),M=$("alert",r),[F,A,N]=(0,DFn.default)(M),D=j=>{var U;w(!0),(U=e.onClose)===null||U===void 0||U.call(e,j)},k=Jo.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),T=Jo.useMemo(()=>typeof g=="object"&&g.closeIcon||m?!0:typeof g=="boolean"?g:v!==!1&&v!==null&&v!==void 0?!0:!!(O!=null&&O.closable),[m,v,g,O==null?void 0:O.closable]),P=o&&p===void 0?!0:p,_=(0,Coe.default)(M,`${M}-${k}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!P,[`${M}-banner`]:!!o,[`${M}-rtl`]:R==="rtl"},O==null?void 0:O.className,a,s,N,A),L=(0,TFn.default)(b,{aria:!0,data:!0}),B=Jo.useMemo(
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,eDn.resetComponent)(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
2025-02-18 08:35:18 +08:00
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
2025-04-17 15:35:46 +08:00
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},vqe=e=>({zIndexPopup:e.zIndexPopupBase+JAn.CONTAINER_MAX_OFFSET+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});a8.prepareComponentToken=vqe;a8.default=(0,K7e.genStyleHooks)("Message",e=>{const t=(0,K7e.mergeToken)(e,{height:150});return[tDn(t)]},vqe);var Qv=ge.default,nDn=Te.default;Object.defineProperty(Xg,"__esModule",{value:!0});Xg.default=Xg.TypeIcon=Xg.PureContent=void 0;var k1=nDn(u),rDn=Qv(hC),iDn=Qv(zm),oDn=Qv(Xv),aDn=Qv(RH),sDn=Qv(Yh),Cqe=Qv(Ct),lDn=_H,cDn=Lt,uDn=Qv(Br),dDn=Qv(a8),fDn=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 hDn=Xg.TypeIcon={info:k1.createElement(aDn.default,null),success:k1.createElement(rDn.default,null),error:k1.createElement(iDn.default,null),warning:k1.createElement(oDn.default,null),loading:k1.createElement(sDn.default,null)},yqe=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return k1.createElement("div",{className:(0,Cqe.default)(`${t}-custom-content`,`${t}-${n}`)},r||hDn[n],k1.createElement("span",null,i))};Xg.PureContent=yqe;const pDn=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=fDn(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=k1.useContext(cDn.ConfigContext),l=t||s("message"),c=(0,uDn.default)(l),[d,f,h]=(0,dDn.default)(l,c);return d(k1.createElement(lDn.Notice,Object.assign({},a,{prefixCls:l,className:(0,Cqe.default)(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:k1.createElement(yqe,{prefixCls:l,type:r,icon:i},o)})))};Xg.default=pDn;var MM={};Object.defineProperty(MM,"__esModule",{value:!0});MM.getMotion=gDn;MM.wrapPromiseFn=mDn;function gDn(e,t){return{motionName:t??`${e}-move-up`}}function mDn(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 AH=ge.default,vDn=Te.default;Object.defineProperty(OM,"__esModule",{value:!0});OM.default=IDn;OM.useInternalMessage=wqe;var ah=vDn(u),CDn=AH(ku),$he=AH(Ct),bqe=_H,yDn=Co,bDn=Lt,SDn=AH(Br),wDn=Xg,xDn=AH(a8),Sqe=MM,$Dn=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 EDn=8,RDn=3,ODn=e=>{let{children:t,prefixCls:n}=e;const r=(0,SDn.default)(n),[i,o,a]=(0,xDn.default)(n,r);return i(ah.createElement(bqe.NotificationProvider,{classNames:{list:(0,$he.default)(o,a,r)}},t))},MDn=(e,t)=>{let{prefixCls:n,key:r}=t;return ah.createElement(ODn,{prefixCls:n,key:r},e)},PDn=ah.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=RDn,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:f,message:h,direction:p}=ah.useContext(bDn.ConfigContext),g=r||d("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??EDn}),v=()=>(0,$he.default)({[`${g}-rtl`]:s??p==="rtl"}),C=()=>(0,Sqe.getMotion)(g,l),y=ah.createElement("span",{className:`${g}-close-x`},ah.createElement(CDn.default,{className:`${g}-close-icon`})),[b,S]=(0,bqe.useNotification)({prefixCls:g,style:m,className:v,motion:C,closable:!1,closeIcon:y,duration:a,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:c
2025-02-18 08:35:18 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
2025-04-17 15:35:46 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});tj.default=WNn;var Yg={},t4={};Object.defineProperty(t4,"__esModule",{value:!0});t4.initMotion=void 0;const UNn=e=>({animationDuration:e,animationFillMode:"both"}),qNn=e=>({animationDuration:e,animationFillMode:"both"}),KNn=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
2025-02-18 08:35:18 +08:00
${o}${e}-enter,
${o}${e}-appear
2025-04-17 15:35:46 +08:00
`]:Object.assign(Object.assign({},UNn(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},qNn(r)),{animationPlayState:"paused"}),[`
2025-02-18 08:35:18 +08:00
${o}${e}-enter${e}-enter-active,
${o}${e}-appear${e}-appear-active
2025-04-17 15:35:46 +08:00
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}};t4.initMotion=KNn;Object.defineProperty(Yg,"__esModule",{value:!0});Yg.initFadeMotion=Yg.fadeOut=Yg.fadeIn=void 0;var Hqe=Gt,XNn=t4;const YNn=Yg.fadeIn=new Hqe.Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),QNn=Yg.fadeOut=new Hqe.Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),ZNn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[(0,XNn.initMotion)(r,YNn,QNn,e.motionDurationMid,t),{[`
2025-02-18 08:35:18 +08:00
${i}${r}-enter,
${i}${r}-appear
2025-04-17 15:35:46 +08:00
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]};Yg.initFadeMotion=ZNn;var ma={};Object.defineProperty(ma,"__esModule",{value:!0});ma.moveUpOut=ma.moveUpIn=ma.moveRightOut=ma.moveRightIn=ma.moveLeftOut=ma.moveLeftIn=ma.moveDownOut=ma.moveDownIn=ma.initMoveMotion=void 0;var n4=Gt,JNn=t4;const ezn=ma.moveDownIn=new n4.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tzn=ma.moveDownOut=new n4.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),nzn=ma.moveLeftIn=new n4.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rzn=ma.moveLeftOut=new n4.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),izn=ma.moveRightIn=new n4.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ozn=ma.moveRightOut=new n4.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),azn=ma.moveUpIn=new n4.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),szn=ma.moveUpOut=new n4.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),lzn={"move-up":{inKeyframes:azn,outKeyframes:szn},"move-down":{inKeyframes:ezn,outKeyframes:tzn},"move-left":{inKeyframes:nzn,outKeyframes:rzn},"move-right":{inKeyframes:izn,outKeyframes:ozn}},czn=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=lzn[t];return[(0,JNn.initMotion)(r,i,o,e.motionDurationMid),{[`
2025-02-18 08:35:18 +08:00
${r}-enter,
${r}-appear
2025-04-17 15:35:46 +08:00
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};ma.initMoveMotion=czn;var va={};Object.defineProperty(va,"__esModule",{value:!0});va.slideUpOut=va.slideUpIn=va.slideRightOut=va.slideRightIn=va.slideLeftOut=va.slideLeftIn=va.slideDownOut=va.slideDownIn=va.initSlideMotion=void 0;var r4=Gt,uzn=t4;const dzn=va.slideUpIn=new r4.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),fzn=va.slideUpOut=new r4.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),hzn=va.slideDownIn=new r4.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),pzn=va.slideDownOut=new r4.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gzn=va.slideLeftIn=new r4.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mzn=va.slideLeftOut=new r4.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),vzn=va.slideRightIn=new r4.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Czn=va.slideRightOut=new r4.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),yzn={"slide-up":{inKeyframes:dzn,outKeyframes:fzn},"slide-down":{inKeyframes:hzn,outKeyframes:pzn},"slide-left":{inKeyframes:gzn,outKeyframes:mzn},"slide-right":{inKeyframes:vzn,outKeyframes:Czn}},bzn=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=yzn[t];return[(0,uzn.initMotion)(r,i,o,e.motionDurationMid),{[`
2025-02-18 08:35:18 +08:00
${r}-enter,
${r}-appear
2025-04-17 15:35:46 +08:00
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};va.initSlideMotion=bzn;var qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.zoomUpOut=qi.zoomUpIn=qi.zoomRightOut=qi.zoomRightIn=qi.zoomOut=qi.zoomLeftOut=qi.zoomLeftIn=qi.zoomIn=qi.zoomDownOut=qi.zoomDownIn=qi.zoomBigOut=qi.zoomBigIn=qi.initZoomMotion=void 0;var hf=Gt,Szn=t4;const wzn=qi.zoomIn=new hf.Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xzn=qi.zoomOut=new hf.Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),vSe=qi.zoomBigIn=new hf.Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CSe=qi.zoomBigOut=new hf.Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),$zn=qi.zoomUpIn=new hf.Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ezn=qi.zoomUpOut=new hf.Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Rzn=qi.zoomLeftIn=new hf.Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ozn=qi.zoomLeftOut=new hf.Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Mzn=qi.zoomRightIn=new hf.Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Pzn=qi.zoomRightOut=new hf.Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Izn=qi.zoomDownIn=new hf.Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Tzn=qi.zoomDownOut=new hf.Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_zn={zoom:{inKeyframes:wzn,outKeyframes:xzn},"zoom-big":{inKeyframes:vSe,outKeyframes:CSe},"zoom-big-fast":{inKeyframes:vSe,outKeyframes:CSe},"zoom-left":{inKeyframes:Rzn,outKeyframes:Ozn},"zoom-right":{inKeyframes:Mzn,outKeyframes:Pzn},"zoom-up":{inKeyframes:$zn,outKeyframes:Ezn},"zoom-down":{inKeyframes:Izn,outKeyframes:Tzn}},Fzn=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=_zn[t];return[(0,Szn.initMotion)(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
2025-02-18 08:35:18 +08:00
${r}-enter,
${r}-appear
2025-04-17 15:35:46 +08:00
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};qi.initZoomMotion=Fzn;(function(e){var t=ge.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"fadeIn",{enumerable:!0,get:function(){return r.fadeIn}}),Object.defineProperty(e,"fadeOut",{enumerable:!0,get:function(){return r.fadeOut}}),Object.defineProperty(e,"genCollapseMotion",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"initFadeMotion",{enumerable:!0,get:function(){return r.initFadeMotion}}),Object.defineProperty(e,"initMoveMotion",{enumerable:!0,get:function(){return i.initMoveMotion}}),Object.defineProperty(e,"initSlideMotion",{enumerable:!0,get:function(){return o.initSlideMotion}}),Object.defineProperty(e,"initZoomMotion",{enumerable:!0,get:function(){return a.initZoomMotion}}),Object.defineProperty(e,"moveDownIn",{enumerable:!0,get:function(){return i.moveDownIn}}),Object.defineProperty(e,"moveDownOut",{enumerable:!0,get:function(){return i.moveDownOut}}),Object.defineProperty(e,"moveLeftIn",{enumerable:!0,get:function(){return i.moveLeftIn}}),Object.defineProperty(e,"moveLeftOut",{enumerable:!0,get:function(){return i.moveLeftOut}}),Object.defineProperty(e,"moveRightIn",{enumerable:!0,get:function(){return i.moveRightIn}}),Object.defineProperty(e,"moveRightOut",{enumerable:!0,get:function(){return i.moveRightOut}}),Object.defineProperty(e,"moveUpIn",{enumerable:!0,get:function(){return i.moveUpIn}}),Object.defineProperty(e,"moveUpOut",{enumerable:!0,get:function(){return i.moveUpOut}}),Object.defineProperty(e,"slideDownIn",{enumerable:!0,get:function(){return o.slideDownIn}}),Object.defineProperty(e,"slideDownOut",{enumerable:!0,get:function(){return o.slideDownOut}}),Object.defineProperty(e,"slideLeftIn",{enumerable:!0,get:function(){return o.slideLeftIn}}),Object.defineProperty(e,"slideLeftOut",{enumerable:!0,get:function(){return o.slideLeftOut}}),Object.defineProperty(e,"slideRightIn",{enumerable:!0,get:function(){return o.slideRightIn}}),Object.defineProperty(e,"slideRightOut",{enumerable:!0,get:function(){return o.slideRightOut}}),Object.defineProperty(e,"slideUpIn",{enumerable:!0,get:function(){return o.slideUpIn}}),Object.defineProperty(e,"slideUpOut",{enumerable:!0,get:function(){return o.slideUpOut}}),Object.defineProperty(e,"zoomBigIn",{enumerable:!0,get:function(){return a.zoomBigIn}}),Object.defineProperty(e,"zoomBigOut",{enumerable:!0,get:function(){return a.zoomBigOut}}),Object.defineProperty(e,"zoomDownIn",{enumerable:!0,get:function(){return a.zoomDownIn}}),Object.defineProperty(e,"zoomDownOut",{enumerable:!0,get:function(){return a.zoomDownOut}}),Object.defineProperty(e,"zoomIn",{enumerable:!0,get:function(){return a.zoomIn}}),Object.defineProperty(e,"zoomLeftIn",{enumerable:!0,get:function(){return a.zoomLeftIn}}),Object.defineProperty(e,"zoomLeftOut",{enumerable:!0,get:function(){return a.zoomLeftOut}}),Object.defineProperty(e,"zoomOut",{enumerable:!0,get:function(){return a.zoomOut}}),Object.defineProperty(e,"zoomRightIn",{enumerable:!0,get:function(){return a.zoomRightIn}}),Object.defineProperty(e,"zoomRightOut",{enumerable:!0,get:function(){return a.zoomRightOut}}),Object.defineProperty(e,"zoomUpIn",{enumerable:!0,get:function(){return a.zoomUpIn}}),Object.defineProperty(e,"zoomUpOut",{enumerable:!0,get:function(){return a.zoomUpOut}});var n=t(tj),r=Yg,i=ma,o=va,a=qi})(Wl);Object.defineProperty(U2,"__esModule",{value:!0});U2.prepareComponentToken=U2.genBaseStyle=U2.default=void 0;var Zf=Gt,TZ=cn,Azn=Wl,ySe=qt;const jqe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:d,colorBorder:f,colorText:h,colorTextHeading:p,colorTextDisabled:g,fontSizeLG:m,lineHeight:v,lineHeightLG:C,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:w,motionDurationSlow:x,fontSizeIcon:$,contentPadding:R,fontHeight:O,fontHeightLG:M}=e,F=`${(0,Zf.unit)(c)} ${d
2025-02-18 08:35:18 +08:00
&,
2025-04-17 10:18:46 +08:00
& > ${t}-header`]:{borderRadius:`${(0,Zf.unit)(l)} ${(0,Zf.unit)(l)} 0 0`}},"&:last-child":{[`
2025-02-18 08:35:18 +08:00
&,
2025-04-17 15:35:46 +08:00
& > ${t}-header`]:{borderRadius:`0 0 ${(0,Zf.unit)(l)} ${(0,Zf.unit)(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:p,lineHeight:v,cursor:"pointer",transition:`all ${x}, visibility 0s`},(0,TZ.genFocusStyle)(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},(0,TZ.resetIcon)()),{fontSize:$,transition:`transform ${x}`,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:F,[`& > ${t}-content-box`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:w,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(b).sub(w).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:C,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:M,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,Zf.unit)(l)} ${(0,Zf.unit)(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}};U2.genBaseStyle=jqe;const Dzn=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Lzn=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
2025-02-18 08:35:18 +08:00
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
2025-04-17 15:35:46 +08:00
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Nzn=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}}}}}},Vqe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer});U2.prepareComponentToken=Vqe;U2.default=(0,ySe.genStyleHooks)("Collapse",e=>{const t=(0,ySe.mergeToken)(e,{collapseHeaderPaddingSM:`${(0,Zf.unit)(e.paddingXS)} ${(0,Zf.unit)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,Zf.unit)(e.padding)} ${(0,Zf.unit)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[jqe(t),Lzn(t),Nzn(t),Dzn(t),(0,Azn.genCollapseMotion)(t)]},Vqe);var Hm=ge.default,zzn=Te.default;Object.defineProperty(ZH,"__esModule",{value:!0});ZH.default=void 0;var Y4=zzn(u),kzn=Hm(e4),bSe=Hm(Ct),Bzn=Hm(kqe),Hzn=Hm($a),SSe=Hm(oi),jzn=Hm(la),wSe=Li,Vzn=Lt,Gzn=Hm(Gi),Wzn=Hm(ej),Uzn=Hm(U2);const qzn=Y4.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=Y4.useContext(Vzn.ConfigContext),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:d,size:f,expandIconPosition:h="start",children:p,expandIcon:g}=e,m=(0,Gzn.default)(F=>{var A;return(A=f??F)!==null&&A!==void 0?A:"middle"}),v=n("collapse",o),C=n(),[y,b,S]=(0,Uzn.default)(v),w=Y4.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),x=g??(i==null?void 0:i.expandIcon),$=Y4.useCallback(function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const A=typeof x=="function"?x(F):Y4.createElement(kzn.default,{rotate:F.isActive?90:void 0,"aria-label":F.isActive?"expanded":"collapsed"});return(0,wSe.cloneElement)(A,()=>{var N;return{className:(0,bSe.default)((N=A==null?void 0:A.props)===null||N===void 0?void 0:N.className,`${v}-arrow`)}})},[x,v]),R=(0,bSe.default)(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!d,[`${v}-${m}`]:m!=="middle"},i==null?void 0:i.className,a,s,b,S),O=Object.assign(Object.assign({},(0,jzn.default)(C)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),M=Y4.useMemo(()=>p?(0,Hzn.default)(p).map((F,A)=>{var N,D;const k=F.props;if(k!=null&&k.disabled){const T=(N=F.key)!==null&&N!==void 0?N:String(A),P=Object.assign(Object.assign({},(0,SSe.default)(F.props,["disabled"])),{key:T,collapsible:(D=k.collapsible)!==null&&D!==void 0?D:"disabled"});return(0,wSe.cloneElement)(F,P)}return F}):null,[p]);return y(Y4.createElement(Bzn.default,Object.assign({ref:t,openMotion:O},(0,SSe.default)(e,["rootClassName"]),{expandIcon:$,prefixCls:v,className:R,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),M))});ZH.default=Object.assign(qzn,{Panel:Wzn.default});var Kzn=ge.default;Object.defineProperty(DM,"__esModule",{value:!0});DM.default=void 0;var Xzn=Kzn(ZH);DM.default=Xzn.default;var No={},Yzn=ge.default;Object.defineProperty(No,"__esModule",{value:!0});No.getRoundNumber=No.getGradientPercentColor=No.getColorAlpha=No.generateColor=No.genAlphaColor=void 0;var Qzn=Yzn(Ir),xSe=AM,$Se=Ru;const Moe=e=>e instanceof $Se.AggregationColor?e:new $Se.AggregationColor(e);No.generateColor=Moe;const Gqe=e=>Math.round(Number(e||0));No.getRoundNumber=Gqe;const Zzn=e=>Gqe(e.toHsb().a*100);No.getColorAlpha=Zzn;const Jzn=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=t||1,Moe(r)}return n.a=t||1,Moe(n)};No.genAlphaColor=Jzn;const ekn=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat((0,Qzn.default)(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const i=n[r].percent,o=n[r+1].percent,a=n[r].color,s=n[r+1].color;if(i<=t&&t<=o){const l=o-i;if(l===0)return a;const c=(t-i)/l*100,d=new xSe.Color(a),f=new xSe.Color(s);return d.mix(f,c).toRgbString()}}return""};No.getGradientPercentColor=ekn;var Ihe=ge.default,tkn=Te.
2025-02-18 08:35:18 +08:00
${r},
${i} > li,
${n},
${o},
${a},
${s}
2025-04-17 15:35:46 +08:00
`]:Object.assign({},VBn(e))}}},tKe=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}};zh.prepareComponentToken=tKe;zh.default=(0,NSe.genStyleHooks)("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=(0,NSe.mergeToken)(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[KBn(r)]},tKe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var hj=ge.default,XBn=Te.default;Object.defineProperty(dj,"__esModule",{value:!0});dj.default=void 0;var kZ=XBn(u),YBn=hj(Ct),QBn=hj(oi),ZBn=Lt,JBn=hj(vC),eHn=hj(zh);const tHn=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=kZ.useContext(ZBn.ConfigContext),l=s("skeleton",t),[c,d,f]=(0,eHn.default)(l),h=(0,QBn.default)(e,["prefixCls","className"]),p=(0,YBn.default)(l,`${l}-element`,{[`${l}-active`]:i},n,r,d,f);return c(kZ.createElement("div",{className:p},kZ.createElement(JBn.default,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))};dj.default=tHn;var pj={},gj=ge.default,nHn=Te.default;Object.defineProperty(pj,"__esModule",{value:!0});pj.default=void 0;var BZ=nHn(u),rHn=gj(Ct),iHn=gj(oi),oHn=Lt,aHn=gj(vC),sHn=gj(zh);const lHn=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=BZ.useContext(oHn.ConfigContext),l=s("skeleton",t),[c,d,f]=(0,sHn.default)(l),h=(0,iHn.default)(e,["prefixCls"]),p=(0,rHn.default)(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,d,f);return c(BZ.createElement("div",{className:p},BZ.createElement(aHn.default,Object.assign({prefixCls:`${l}-button`,size:a},h))))};pj.default=lHn;var mj={},nKe=ge.default,cHn=Te.default;Object.defineProperty(mj,"__esModule",{value:!0});mj.default=void 0;var M5=cHn(u),kSe=nKe(Ct),uHn=Lt,dHn=nKe(zh);const fHn="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",hHn=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=M5.useContext(uHn.ConfigContext),s=a("skeleton",t),[l,c,d]=(0,dHn.default)(s),f=(0,kSe.default)(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,d);return l(M5.createElement("div",{className:f},M5.createElement("div",{className:(0,kSe.default)(`${s}-image`,n),style:i},M5.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},M5.createElement("title",null,"Image placeholder"),M5.createElement("path",{d:fHn,className:`${s}-image-path`})))))};mj.default=hHn;var vj={},Cj=ge.default,pHn=Te.default;Object.defineProperty(vj,"__esModule",{value:!0});vj.default=void 0;var HZ=pHn(u),gHn=Cj(Ct),mHn=Cj(oi),vHn=Lt,CHn=Cj(vC),yHn=Cj(zh);const bHn=e=>{const{prefixCls:t,className:n,ro
2025-02-18 08:35:18 +08:00
${t}-body,
2025-04-17 15:35:46 +08:00
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Ijn=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Tjn=e=>{const{componentCls:t}=e,n=(0,Mjn.getMediaSize)(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${(0,pa.unit)(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat((0,Ojn.default)(r))}}},fKe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,uKe.mergeToken)(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()})};mu.prepareToken=fKe;const hKe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,pa.unit)(e.paddingMD)} ${(0,pa.unit)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,pa.unit)(e.padding)} ${(0,pa.unit)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,pa.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,pa.unit)(e.paddingXS)} ${(0,pa.unit)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,pa.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,pa.unit)(e.borderRadiusLG)} ${(0,pa.unit)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,pa.unit)(e.padding*2)} ${(0,pa.unit)(e.padding*2)} ${(0,pa.unit)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});mu.prepareComponentToken=hKe;mu.default=(0,uKe.genStyleHooks)("Modal",e=>{const t=fKe(e);return[Pjn(t),Ijn(t),dKe(t),(0,cKe.initZoomMotion)(t,"zoom"),Tjn(t)]},hKe,{unitless:{titleLineHeight:!0}});var o4=ge.default,pKe=Te.default;Object.defineProperty(LM,"__esModule",{value:!0});LM.default=void 0;var ig=pKe(u),_jn=o4(ku),O_=o4(Ct),Fjn=o4(Zqe),Ajn=o4(pf),GZ=pKe(mC),Djn=Qi,XSe=la,Ljn=Lhe,Njn=o4(Bm),zjn=Lt,kjn=o4(Br),Bjn=o4(i4),Hjn=CC,YSe=Cw,jjn=o4(mu),Vjn=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 Foe;const Gjn=e=>{Foe={x:e.pageX,y:e.pageY},setTimeout(()=>{Foe=null},100)};(0,Ljn.canUseDocElement)()&&document.documentElement.addEventListener("click",Gjn,!0);const Wjn=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=ig.useContext(zjn.ConfigContext),a=q=>{const{onCancel:Y}=e;Y==null||Y(q)},s=q=>{const{onOk:Y}=e;Y==null||Y(q)},{prefixCls:l,className:c,rootClassName:d,open:f,wrapClassName:h,centered:p,getContainer:g,focusTriggerAfterClose:m=!0,style:v,visible:C,width:y=520,footer:b,classNames:S,styles:w,children:x,loading:$}=e,R=Vjn(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",l),M=r(),F=(0,kjn.default)(O),[A,N,D]=(0,jjn.default)(O,F),k=(0,O_.default)(h,{[`${O}-centered`]:!!p,[`${O}-wrap-rtl`]:i==="rtl"}),T=b!==null&&!$?ig.createElement(YSe.Footer,Object.assign({},e,{onOk:s,onCancel:a})):null,[P,_,L]=(0,GZ.default)((0,GZ.pickClosable)(e),(0,GZ.pickClosable)(o),{closable:!0,
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};$j.default=(0,qjn.genSubStyleComponent)(["Modal","confirm"],e=>{const t=(0,ZSe.prepareToken)(e);return[Kjn(t)]},ZSe.prepareComponentToken,{order:-1e3});var Xjn=Te.default,gf=ge.default;Object.defineProperty(pC,"__esModule",{value:!0});pC.ConfirmContent=gKe;pC.default=void 0;var Yjn=gf(Ir),jo=Xjn(u),Qjn=gf(hC),Zjn=gf(zm),Jjn=gf(Xv),eVn=gf(RH),Aoe=gf(Ct),tVn=Qi,JSe=la,nVn=gf(Lt),rVn=ca,iVn=gf(_c),ewe=gf(NH),twe=gf(cj),oVn=Nh,aVn=gf(LM),sVn=gf($j),lVn=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 gKe(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,d=lVn(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(a){case"info":f=jo.createElement(eVn.default,null);break;case"success":f=jo.createElement(Qjn.default,null);break;case"error":f=jo.createElement(Zjn.default,null);break;default:f=jo.createElement(Jjn.default,null)}const h=s??a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=(0,rVn.useLocale)("Modal"),m=c||g,v=r||(h?m==null?void 0:m.okText:m==null?void 0:m.justOkText),C=i||(m==null?void 0:m.cancelText),y=Object.assign({autoFocusButton:p,cancelTextLocale:C,okTextLocale:v,mergedOkCancel:h},d),b=jo.useMemo(()=>y,(0,Yjn.default)(Object.values(y))),S=jo.createElement(jo.Fragment,null,jo.createElement(ewe.default,null),jo.createElement(twe.default,null)),w=e.title!==void 0&&e.title!==null,x=`${o}-body`;return jo.createElement("div",{className:`${o}-body-wrapper`},jo.createElement("div",{className:(0,Aoe.default)(x,{[`${x}-has-title`]:w})},f,jo.createElement("div",{className:`${o}-paragraph`},w&&jo.createElement("span",{className:`${o}-title`},e.title),jo.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?jo.createElement(oVn.ModalContextProvider,{value:b},jo.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(S,{OkBtn:twe.default,CancelBtn:ewe.default}):S)):l,jo.createElement(sVn.default,{prefixCls:t}))}const cVn=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:d,styles:f}=e,h=`${o}-confirm`,p=e.width||416,g=e.style||{},m=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,C=(0,Aoe.default)(h,`${h}-${e.type}`,{[`${h}-rtl`]:i==="rtl"},e.className),[,y]=(0,iVn.default)(),b=jo.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+tVn.CONTAINER_MAX_OFFSET,[n,y]);return jo.createElement(aVn.default,Object.assign({},e,{className:C,wrapClassName:(0,Aoe.default)({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:(0,JSe.getTransitionName)(s||"","zoom",e.transitionName),maskTransitionName:(0,JSe.getTransitionName)(s||"","fade",e.maskTransitionName),mask:m,maskClosable:v,style:g,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:b,closable:c}),jo.createElement(gKe,Object.assign({},e,{confirmPrefixCls:h})))},uVn=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return jo.createElement(nVn.default,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},jo.createElement(cVn,Object.assign({},e)))};pC.default=uVn;var yw={};Object.defineProperty(yw,"__esModule",{value:!0});yw.default=void 0;const dVn=[];yw.default=dVn;var mKe=Te.default,Ej=ge.default;Object.defineProperty(Mp,"__esModule",{value:!0});Mp.default=vVn;Mp.modalGlobalConfig=xVn;Mp.withConfirm=wVn;Mp.withError=SVn;Mp.withInfo=yVn;Mp.withSuccess=bVn;Mp.withWarn=CVn;var fVn=Ej(Ir),PN=mKe(u);Ej(Co);var Doe=mKe(Lt),
2025-02-18 08:35:18 +08:00
${i}${s}bottomLeft,
${o}${s}bottomLeft
2025-04-17 10:18:46 +08:00
`]:{animationName:C0.slideUpIn},[`
2025-02-18 08:35:18 +08:00
${i}${s}topLeft,
${o}${s}topLeft,
${i}${s}topRight,
${o}${s}topRight
2025-04-17 10:18:46 +08:00
`]:{animationName:C0.slideDownIn},[`${a}${s}bottomLeft`]:{animationName:C0.slideUpOut},[`
2025-02-18 08:35:18 +08:00
${a}${s}topLeft,
${a}${s}topRight
2025-04-17 15:35:46 +08:00
`]:{animationName:C0.slideDownOut},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},cwe(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"},lwe.textEllipsis),"&-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},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-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({},cwe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,C0.initSlideMotion)(e,"slide-up"),(0,C0.initSlideMotion)(e,"slide-down"),(0,C0.initMoveMotion)(e,"move-up"),(0,C0.initMoveMotion)(e,"move-down")]};kj.default=gWn;var Zg={};Object.defineProperty(Zg,"__esModule",{value:!0});Zg.getMultipleSelectorUnit=Zg.genOverflowStyle=Zg.default=void 0;var L3=Gt,mWn=cn,uwe=qt;const VKe=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:(0,L3.unit)(t),itemLineHeight:(0,L3.unit)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}};Zg.getMultipleSelectorUnit=VKe;const vWn=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},GKe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,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({},(0,mWn.resetIcon)()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}};Zg.genOverflowStyle=GKe;const CWn=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=vWn(e),s=t?`${n}-${t}`:"",l=VKe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},GKe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,L3.unit)(r)} 0`,lineHeight:(0,L3.unit)(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:(0,L3.unit)(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,L3.unit)(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHoriz
2025-02-18 08:35:18 +08:00
${n}-prefix + ${n}-selection-wrap
2025-04-17 10:18:46 +08:00
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.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:(0,L3.unit)(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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function KZ(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",i={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
2025-02-18 08:35:18 +08:00
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[CWn(e,t),i]}const yWn=e=>{const{componentCls:t}=e,n=(0,uwe.mergeToken)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,uwe.mergeToken)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[KZ(e),KZ(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},KZ(r,"lg")]};Zg.default=yWn;var Hhe={};Object.defineProperty(Hhe,"__esModule",{value:!0});Hhe.default=SWn;var m$=Gt,bWn=cn,dwe=qt;function XZ(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({},(0,bWn.resetComponent)(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
2025-02-18 08:35:18 +08:00
${n}-selection-item,
${n}-selection-placeholder
2025-04-17 10:18:46 +08:00
`]:{display:"block",padding:0,lineHeight:(0,m$.unit)(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"'}}),[`
2025-02-18 08:35:18 +08:00
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
2025-04-17 15:35:46 +08:00
`]:{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 ${(0,m$.unit)(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:(0,m$.unit)(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 ${(0,m$.unit)(r)}`,"&:after":{display:"none"}}}}}}}function SWn(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[XZ(e),XZ((0,dwe.mergeToken)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,m$.unit)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
2025-02-18 08:35:18 +08:00
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},XZ((0,dwe.mergeToken)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var Bj={};Object.defineProperty(Bj,"__esModule",{value:!0});Bj.prepareComponentToken=void 0;const wWn=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:g,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:C,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,w=s*2,x=r*2,$=Math.min(i-w,i-x),R=Math.min(o-w,o-x),O=Math.min(a-w,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:g,clearBg:g,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:R,multipleItemHeightLG:O,multipleSelectorBgDisabled:v,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}};Bj.prepareComponentToken=wWn;var Hj={};Object.defineProperty(Hj,"__esModule",{value:!0});Hj.default=void 0;var u8=Gt;const WKe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,u8.unit)(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 ${(0,u8.unit)(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},fwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},WKe(e,t))}),xWn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},WKe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),fwe(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),fwe(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:`${(0,u8.unit)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),UKe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,u8.unit)(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}}}},hwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},UKe(e,t))}),$Wn=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},UKe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),hwe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),hwe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.com
2025-02-18 08:35:18 +08:00
> ${t}-item-active,
2025-04-17 15:35:46 +08:00
> ${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"}}}};hV.default=uQn;var pV={};Object.defineProperty(pV,"__esModule",{value:!0});pV.default=void 0;var jwe=Gt;const dQn=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,jwe.unit)(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,jwe.unit)(n)})`}}}}};pV.default=dQn;var gV={};Object.defineProperty(gV,"__esModule",{value:!0});gV.default=void 0;var nJ=Gt,fQn=cn;const Vwe=e=>Object.assign({},(0,fQn.genFocusOutline)(e)),hQn=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:C,itemHoverColor:y,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:$,dangerItemSelectedColor:R,dangerItemActiveBg:O,dangerItemSelectedBg:M,popupBg:F,itemHoverBg:A,itemActiveBg:N,menuSubMenuBg:D,horizontalItemSelectedColor:k,horizontalItemSelectedBg:T,horizontalItemBorderRadius:P,horizontalItemHoverBg:_}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Vwe(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({},Vwe(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:N}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:N}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:F},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:F},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${(0,nJ.unit)(d)} solid transparent`,transition:`border-color ${p} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:_,"&::after":{borderBottomWidth:d,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:d,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,nJ.unit)(h)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,nJ.unit)(f)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${m}`,`opacity ${C} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${g}`,`opacity ${C} ${g}`].join(",")}}}}}};gV.default=hQn;var mV={};Object.defineProperty(mV,"__esModule",{value:!0});mV.default=void 0;var N3=Gt,pQn=cn;const Gwe=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,d=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,N3.unit)(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
2025-04-17 10:18:46 +08:00
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,N3.unit)(n)},[`${t}-item-group-list ${t}-submenu-title,
2025-04-17 15:35:46 +08:00
${t}-submenu-title`]:{paddingInlineEnd:d}}},gQn=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:g,collapsedWidth:m,collapsedIconSize:v}=e,C={height:r,lineHeight:(0,N3.unit)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Gwe(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Gwe(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${(0,N3.unit)(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 ${h}`,`background ${h}`,`padding ${f} ${s}`].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:l}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
2025-02-18 08:35:18 +08:00
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
2025-04-17 10:18:46 +08:00
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,N3.unit)(e.calc(v).div(2).equal())} - ${(0,N3.unit)(c)})`,textOverflow:"clip",[`
2025-02-18 08:35:18 +08:00
${t}-submenu-arrow,
${t}-submenu-expand-icon
2025-04-17 15:35:46 +08:00
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:(0,N3.unit)(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({},pQn.textEllipsis),{paddingInline:p})}}]};mV.default=gQn;var vV=ge.default;Object.defineProperty(I7,"__esModule",{value:!0});I7.prepareComponentToken=I7.default=void 0;var jf=Gt,Wwe=xa,WA=cn,D_=Wl,rJ=qt,mQn=vV(hV),vQn=vV(pV),Uwe=vV(gV),CQn=vV(mV);const qwe=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,WA.resetIcon)()),[`&${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"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Kwe=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(${(0,jf.unit)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,jf.unit)(a)})`}}}}},yQn=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:m,lineType:v,groupTitleLineHeight:C,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,WA.clearFix)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,WA.resetComponent)(e)),(0,WA.clearFix)()),{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:`${(0,jf.unit)(s)} ${(0,jf.unit)(l)}`,fontSize:y,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:"ab
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,jf.unit)(m)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,jf.unit)(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,jf.unit)(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,jf.unit)(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,jf.unit)(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},OXe=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:h,lineWidth:p,lineWidthBold:g,controlItemBgActive:m,colorBgTextHover:v,controlHeightLG:C,lineHeight:y,colorBgElevated:b,marginXXS:S,padding:w,fontSize:x,controlHeightSM:$,fontSizeLG:R,colorTextLightSolid:O,colorErrorHover:M}=e,F=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,A=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,N=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Wwe.FastColor(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:F,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:A,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:N,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:y,collapsedWidth:C*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${C*1.15}px`,iconSize:x,iconMarginInlineEnd:$-x,collapsedIconSize:R,groupTitleFontSize:x,darkItemDisabledColor:new Wwe.FastColor(O).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:O,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:F?`calc(100% + ${A}px)`:`calc(100% - ${N*2}px)`}};I7.prepareComponentToken=OXe;I7.default=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,rJ.genStyleHooks)("Menu",o=>{const{colorBgElevated:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:h,darkItemSelectedColor:p,darkItemSelectedBg:g,darkDangerItemSelectedBg:m,darkItemHoverBg:v,darkGroupTitleColor:C,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:x,popupBg:$,darkPopupBg:R}=o,O=o.calc(l).div(7).mul(5).equal(),M=(0,rJ.mergeToken)(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:$}),F=(0,rJ.mergeToken)(M,{itemColor:c,itemHoverColor:y,groupTitleColor:C,itemSelectedColor:p,itemBg:f,popupBg:R,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHe
2025-02-18 08:35:18 +08:00
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
2025-04-17 10:18:46 +08:00
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:lg.slideUpIn},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
2025-02-18 08:35:18 +08:00
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
2025-04-17 10:18:46 +08:00
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:lg.slideDownIn},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
2025-02-18 08:35:18 +08:00
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
2025-04-17 10:18:46 +08:00
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:lg.slideUpOut},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
2025-02-18 08:35:18 +08:00
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
2025-04-17 15:35:46 +08:00
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:lg.slideDownOut}}},(0,PXe.default)(e,m,{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({},(0,oJ.resetComponent)(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,oJ.genFocusStyle)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,P5.unit)(c)} ${(0,P5.unit)(g)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,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 ${l}`,"&: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:`${(0,P5.unit)(c)} ${(0,P5.unit)(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,oJ.genFocusStyle)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,P5.unit)(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.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,P5.unit)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,lg.initSlideMotion)(e,"slide-up"),(0,lg.initSlideMotion)(e,"slide-down"),(0,lg.initMoveMotion)(e,"move-up"),(0,lg.initMoveMotion)(e,"move-down"),(0,lg.initZoomMotion)(e,"zoom-big")]]},IXe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,PXe.getArrowOffsetToken)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,ZQn.getArrowToken)(e));T7.prepareComponentToken=IXe;T7.default=(0,e9e.genStyleHooks)("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=(0,e9e.mergeToken)(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[eZn(o),(0,JQn.default)(o)]},IXe,{resetStyle:!1});var ju=ge.default,tZn=Te.default;Object.defineProperty(Iw,"__esModule",{value:!0});Iw.default=void 0;var Us=tZn(u),nZn=ju(e4),aJ=ju(Ct),rZn=ju(YXn),iZn=ju(Ns),oZn=ju(ja),aZn=ju(oi),sZn=Qi,lZn=ju(aV),cZn=ju(Pw),uZn=ju(Ul),dZn=Li,fZn=Co,hZn=ju(Bm),pZn=Lt,gZn=ju(Br),mZn=ju(Tw),vZn=Mv,CZn=qt,yZn=ju(T7);const l1e=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:d,rootClassName:f,overlayStyle:h,open:p,onOpenChange:g,visible:m,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow
2025-02-18 08:35:18 +08:00
> ${n} + span,
> ${n} + a
2025-04-17 15:35:46 +08:00
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${(0,i9e.unit)(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},LXe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS});_7.prepareComponentToken=LXe;_7.default=(0,a9e.genStyleHooks)("Breadcrumb",e=>{const t=(0,a9e.mergeToken)(e,{});return DZn(t)},LXe);var u1e={};Object.defineProperty(u1e,"__esModule",{value:!0});u1e.default=zZn;var LZn=u,s9e=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 NZn(e){const{breadcrumbName:t,children:n}=e,r=s9e(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,s=s9e(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:a})})}),i}function zZn(e,t){return(0,LZn.useMemo)(()=>e||(t?t.map(NZn):null),[e,t])}var $C=ge.default,NXe=Te.default;Object.defineProperty(oV,"__esModule",{value:!0});oV.default=void 0;var fx=NXe(u),kZn=$C(Ct),l9e=$C($a),BZn=$C(ff),HZn=Li,jZn=Lt,zXe=NXe(P7),kXe=$C(tP),VZn=$C(_7),GZn=$C(nP),WZn=$C(u1e),UZn=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 qZn=(e,t)=>{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},d1e=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:s,children:l,itemRender:c,params:d={}}=e,f=UZn(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:p,breadcrumb:g}=fx.useContext(jZn.ConfigContext);let m;const v=h("breadcrumb",t),[C,y,b]=(0,VZn.default)(v),S=(0,WZn.default)(s,a),w=(0,GZn.default)(v,c);if(S&&S.length>0){const R=[],O=s||a;m=S.map((M,F)=>{const{path:A,key:N,type:D,menu:k,overlay:T,onClick:P,className:_,separator:L,dropdownProps:B}=M,z=qZn(d,A);z!==void 0&&R.push(z);const j=N??F;if(D==="separator")return fx.createElement(kXe.default,{key:j},L);const U={},G=F===S.length-1;k?U.menu=k:T&&(U.overlay=T);let{href:X}=M;return R.length&&z!==void 0&&(X=`#/${R.join("/")}`),fx.createElement(zXe.InternalBreadcrumbItem,Object.assign({key:j},U,(0,BZn.default)(M,{data:!0,aria:!0}),{className:_,dropdownProps:B,href:X,separator:G?"":n,onClick:P,prefixCls:v}),w(M,d,O,R,X))})}else if(l){const R=(0,l9e.default)(l).length;m=(0,l9e.default)(l).map((O,M)=>{if(!O)return O;const F=M===R-1;return(0,HZn.cloneElement)(O,{separator:F?"":n,key:M})})}const x=(0,kZn.default)(v,g==null?void 0:g.className,{[`${v}-rtl`]:p==="rtl"},i,o,y,b),$=Object.assign(Object.assign({},g==null?void 0:g.style),r);return C(fx.createElement("nav",Object.assign({className:x,style:$},f),fx.createElement("ol",null,m)))};d1e.Item=zXe.default;d1e.Separator=kXe.default;oV.default=d1e;var KZn=ge.default;Object.defineProperty(iV,"__esModule",{value:!0});iV.default=void 0;var XZn=KZn(oV);iV.default=XZn.default;var bV={},rP={},EC=ge.default;Object.defineProperty(rP,"__esModule",{value:!0});rP.default=void 0;var mc=EC(kce),YZn=EC(J6n),QZn=EC(e8n),ZZn=EC(t8n),JZn=EC(n8n),eJn=EC(r8n),tJn=EC(i8n);mc
&:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},(0,tE.genFocusOutline)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:y(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(w).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},uJn=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:d,buttonBg:f,fontSizeLG:h,controlHeightLG:p,controlHeightSM:g,paddingXS:m,borderRadius:v,borderRadiusSM:C,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:w,colorBgContainerDisabled:x,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:R,colorPrimary:O,colorPrimaryHover:M,colorPrimaryActive:F,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:D,calc:k}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:(0,z3.unit)(k(n).sub(k(i).mul(2)).equal()),background:f,border:`${(0,z3.unit)(i)} ${o} ${a}`,borderBlockStartWidth:k(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:k(i).mul(-1).equal(),insetInlineStart:k(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,z3.unit)(i)} ${o} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:h,lineHeight:(0,z3.unit)(k(p).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:g,paddingInline:k(m).sub(i).equal(),paddingBlock:0,lineHeight:(0,z3.unit)(k(g).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":Object.assign({},(0,tE.genFocusOutline)(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:b,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:F,borderColor:F,"&::before":{backgroundColor:F}}},[`${r}-group-solid &
2025-04-17 10:18:46 +08:00
& > ${w}-affix-wrapper,
& > ${w}-number-affix-wrapper,
& > ${x}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:S.calc(S.lineWidth).mul(-1).equal(),borderInlineEndWidth:S.lineWidth},[w]:{float:"none"},[`& > ${x}-select > ${x}-select-selector,
& > ${x}-select-auto-complete ${w},
& > ${x}-cascader-picker ${w},
& > ${w}-group-wrapper ${w}`]:{borderInlineEndWidth:S.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${x}-select-focused`]:{zIndex:1},[`& > ${x}-select > ${x}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${x}-select:first-child > ${x}-select-selector,
& > ${x}-select-auto-complete:first-child ${w},
& > ${x}-cascader-picker:first-child ${w}`]:{borderStartStartRadius:S.borderRadius,borderEndStartRadius:S.borderRadius},[`& > *:last-child,
& > ${x}-select:last-child > ${x}-select-selector,
& > ${x}-cascader-picker:last-child ${w},
& > ${x}-cascader-picker-focused:last-child ${w}`]:{borderInlineEndWidth:S.lineWidth,borderStartEndRadius:S.borderRadius,borderEndEndRadius:S.borderRadius},[`& > ${x}-select-auto-complete ${w}`]:{verticalAlign:"top"},[`${w}-group-wrapper + ${w}-group-wrapper`]:{marginInlineStart:S.calc(S.lineWidth).mul(-1).equal(),[`${w}-affix-wrapper`]:{borderRadius:0}},[`${w}-group-wrapper:not(:last-child)`]:{[`&${w}-search > ${w}-group`]:{[`& > ${w}-group-addon > ${w}-search-button`]:{borderRadius:0},[`& > ${w}`]:{borderStartStartRadius:S.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:S.borderRadius}}}})}};e.genInputGroupStyle=h;const p=S=>{const{componentCls:w,controlHeightSM:x,lineWidth:$,calc:R}=S,M=R(x).sub(R($).mul(2)).sub(16).div(2).equal();return{[w]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,n.resetComponent)(S)),f(S)),(0,a.genOutlinedStyle)(S)),(0,a.genFilledStyle)(S)),(0,a.genBorderlessStyle)(S)),{'&[type="color"]':{height:S.controlHeight,[`&${w}-lg`]:{height:S.controlHeightLG},[`&${w}-sm`]:{height:x,paddingTop:M,paddingBottom:M}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},g=S=>{const{componentCls:w}=S;return{[`${w}-clear-icon`]:{margin:0,lineHeight:0,color:S.colorTextQuaternary,fontSize:S.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${S.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:S.colorTextTertiary},"&:active":{color:S.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,t.unit)(S.inputAffixPadding)}`}}}},m=S=>{const{componentCls:w,inputAffixPadding:x,colorTextDescription:$,motionDurationSlow:R,colorIcon:O,colorIconHover:M,iconCls:F}=S,A=`${w}-affix-wrapper`,N=`${w}-affix-wrapper-disabled`;return{[A]:Object.assign(Object.assign(Object.assign(Object.assign({},f(S)),{display:"inline-flex",[`&:not(${w}-disabled):hover`]:{zIndex:1,[`${w}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${w}`]:{padding:0},[`> input${w}, > textarea${w}`]:{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"'},[w]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:S.paddingXS}},"&-show-count-suffix":{color:$},"&-show-count-has-suffix":{marginInlineEnd:S.paddingXXS},"&-prefix":{marginInlineEnd:x},"&-suffix":{marginInlineStart:x}}}),g(S)),{[`${F}${w}-password-icon`]:{color:O,cursor:"pointer",transition:`all ${R}`,"&:hover":{color:M}}}),[N]:{[`${F}${w}-password-icon`]:{color:O,cursor:"not-allowed","&:hover":{color:O}}}}},v=S=>{const{componentCls:w,borderRadiusLG:x,borderRadiusSM:$}=S;return{[`${w}-group`]:Object.assign(Object.assign(Object.assign({},(0,n.resetComponent)(S)),h(S)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${w}-group-addon`]:{borderRadius:x,fontSize:S.inputFontSizeLG}},"&-sm":{[`${w}-group-addon`]:{borderRadius:$}}},(0,a.genOutlinedGroupStyle)(S)),(0,a.genFilledGroupStyle)(S)),{[`&:not(${w}-compact-first-item):not(${w}-compact-last-item)${w}-compact-item`]:{[`${w}, ${w}-group-addon`]:{borderRadius:0}},[`&:not(${w}-compact-last-item)${w}-compact-first-item`]:{[`${w}, ${w}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${w}-compact-first-item)${w}-compact-last-item`]:{[`${w}, ${w}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${w}-compact-last-item)${w}-compact-item`]:{[`${w}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},C=S=>{const{componentCls:w,antCls:x}=S,$=`${w}-search`;return{[$]:{[w]:{"&:hover, &:focus":{[`+ ${w}-group-addon ${$}-button:not(${x}-btn-primary)`]:{borde
> ${w},
${w}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${w}-affix-wrapper-focused`]:{zIndex:2}}}}},y=S=>{const{componentCls:w,paddingLG:x}=S,$=`${w}-textarea`;return{[$]:{position:"relative","&-show-count":{[`> ${w}`]:{height:"100%"},[`${w}-data-count`]:{position:"absolute",bottom:S.calc(S.fontSize).mul(S.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:S.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${w},
&-affix-wrapper${$}-has-feedback ${w}
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:x},[`&-affix-wrapper${w}-affix-wrapper`]:{padding:0,[`> textarea${w}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${w}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${w}-clear-icon`]:{position:"absolute",insetInlineEnd:S.paddingInline,insetBlockStart:S.paddingXS},[`${$}-suffix`]:{position:"absolute",top:0,insetInlineEnd:S.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${w}-affix-wrapper-sm`]:{[`${w}-suffix`]:{[`${w}-clear-icon`]:{insetInlineEnd:S.paddingInlineSM}}}}}},b=S=>{const{componentCls:w}=S;return{[`${w}-out-of-range`]:{[`&, & input, & textarea, ${w}-show-count-suffix, ${w}-data-count`]:{color:S.colorError}}}};e.default=(0,i.genStyleHooks)("Input",S=>{const w=(0,i.mergeToken)(S,(0,o.initInputToken)(S));return[p(w),y(w),m(w),v(w),C(w),b(w),(0,r.genCompactItemStyle)(w)]},o.initComponentToken,{resetFont:!1})})(u4);var MV={};Object.defineProperty(MV,"__esModule",{value:!0});MV.default=void 0;var uer=Gt,YXe=Zg,S9e=qt;const lJ=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=(0,YXe.getMultipleSelectorUnit)(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:(0,uer.unit)(o.itemLineHeight)}}}]},der=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=(0,S9e.mergeToken)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=(0,S9e.mergeToken)(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[lJ(i,"small"),lJ(e),lJ(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},(0,YXe.genOverflowStyle)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};MV.default=der;var F7={};Object.defineProperty(F7,"__esModule",{value:!0});F7.genPanelStyle=F7.default=void 0;var ki=Gt,w9e=xa;const fer=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:g}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:(0,ki.unit)(r),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
2025-04-17 10:18:46 +08:00
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,ki.unit)(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
2025-02-18 08:35:18 +08:00
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
2025-04-17 15:35:46 +08:00
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:g}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},her=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:d,lineWidth:f,lineType:h,borderRadiusLG:p,colorPrimary:g,colorTextHeading:m,colorSplit:v,pickerControlIconBorderWidth:C,colorIcon:y,textHeight:b,motionDurationMid:S,colorIconHover:w,fontWeightStrong:x,cellHeight:$,pickerCellPaddingVertical:R,colorTextDisabled:O,colorText:M,fontSize:F,motionDurationSlow:A,withoutTimeCellHeight:N,pickerQuarterPanelContentHeight:D,borderRadiusSM:k,colorTextLightSolid:T,cellHoverBg:P,timeColumnHeight:_,timeColumnWidth:L,timeCellHeight:B,controlItemBgActive:z,marginXXS:j,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:G}=e,X=e.calc(a).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:p,outline:"none","&-focused":{borderColor:g},"&-rtl":{[`${t}-prev-icon,
2025-02-18 08:35:18 +08:00
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
2025-04-17 15:35:46 +08:00
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:X},"&-header":{display:"flex",padding:`0 ${(0,ki.unit)(l)}`,color:m,borderBottom:`${(0,ki.unit)(f)} ${h} ${v}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:(0,ki.unit)(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:F,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:(0,ki.unit)(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${(0,ki.unit)(C)} 0`,borderInlineWidth:`${(0,ki.unit)(C)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${(0,ki.unit)(C)} 0`,borderInlineWidth:`${(0,ki.unit)(C)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:$,fontWeight:"normal"},th:{height:e.calc($).add(e.calc(R).mul(2)).equal(),color:M,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,ki.unit)(R)} 0`,color:O,cursor:"pointer","&-in-view":{color:M}},fer(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(N).mul(4).equal()},[r]:{padding:`0 ${(0,ki.unit)(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${(0,ki.unit)(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${(0,ki.unit)(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,ki.unit)(l)} ${(0,ki.unit)(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
2025-02-18 08:35:18 +08:00
&-selected ${r},
2025-04-17 10:18:46 +08:00
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:k,borderEndStartRadius:k},"&:last-child:before":{borderStartEndRadius:k,borderEndEndRadius:k}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:g},[`&${t}-cell-week`]:{color:new w9e.FastColor(T).setA(.5).toHexString()},[r]:{color:T}}},"&-range-hover td:before":{background:z}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${(0,ki.unit)(l)} ${(0,ki.unit)(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,ki.unit)(f)} ${h} ${v}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel,
2025-04-17 15:35:46 +08:00
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:_},"&-column":{flex:"1 0 auto",width:L,margin:`${(0,ki.unit)(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,ki.unit)(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,ki.unit)(f)} ${h} ${v}`},"&-active":{background:new w9e.FastColor(z).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(j).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(B).div(2).equal(),color:M,lineHeight:(0,ki.unit)(B),borderRadius:k,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}};F7.genPanelStyle=her;const per=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,ki.unit)(r)} ${c} ${d}`,"&-extra":{padding:`0 ${(0,ki.unit)(i)}`,lineHeight:(0,ki.unit)(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,ki.unit)(r)} ${c} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,ki.unit)(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,ki.unit)(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};F7.default=per;var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.prepareComponentToken=K2.initPickerPanelToken=K2.initPanelComponentToken=void 0;var x9e=xa,ger=d4,mer=Zh;const ver=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}};K2.initPickerPanelToken=ver;const QXe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:a}=e,s=o*2,l=a*2,c=Math.min(n-s,n-l),d=Math.min(r-s,r-l),f=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new x9e.FastColor(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new x9e.FastColor(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}};K2.initPanelComponentToken=QXe;cons
2025-02-18 08:35:18 +08:00
&${y}-dropdown-placement-bottomRight`]:{[`${y}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${y}-dropdown-placement-topLeft,
&${y}-dropdown-placement-topRight`]:{[`${y}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${b}-slide-up-enter${b}-slide-up-enter-active${y}-dropdown-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${y}-dropdown-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${y}-dropdown-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${y}-dropdown-placement-topRight`]:{animationName:s.slideDownIn},[`&${b}-slide-up-enter${b}-slide-up-enter-active${y}-dropdown-placement-bottomLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${y}-dropdown-placement-bottomRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${y}-dropdown-placement-bottomLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${y}-dropdown-placement-bottomRight`]:{animationName:s.slideUpIn},[`&${b}-slide-up-leave ${y}-panel-container`]:{pointerEvents:"none"},[`&${b}-slide-up-leave${b}-slide-up-leave-active${y}-dropdown-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${y}-dropdown-placement-topRight`]:{animationName:s.slideDownOut},[`&${b}-slide-up-leave${b}-slide-up-leave-active${y}-dropdown-placement-bottomLeft,
2025-04-17 15:35:46 +08:00
&${b}-slide-up-leave${b}-slide-up-leave-active${y}-dropdown-placement-bottomRight`]:{animationName:s.slideUpOut},[`${y}-panel > ${y}-time-panel`]:{paddingTop:G},[`${y}-range-wrapper`]:{display:"flex",position:"relative"},[`${y}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:C.calc(w).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${j} ease-out`},(0,l.genRoundedArrow)(C,q,oe)),{"&:before":{insetInlineStart:C.calc(w).mul(1.5).equal()}}),[`${y}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:q,borderRadius:Y,boxShadow:Q,transition:`margin ${j}`,display:"inline-block",pointerEvents:"auto",[`${y}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${y}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:J,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:P,borderInlineEnd:`${(0,r.unit)(x)} ${$} ${ie}`,li:Object.assign(Object.assign({},o.textEllipsis),{borderRadius:te,paddingInline:P,paddingBlock:C.calc(k).sub(le).div(2).equal(),cursor:"pointer",transition:`all ${j}`,"+ li":{marginTop:_},"&:hover":{background:Z}})}},[`${y}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${y}-panel`]:{borderWidth:0}}},[`${y}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${y}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:R}}}}),"&-dropdown-range":{padding:`${(0,r.unit)(C.calc(X).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${y}-separator`]:{transform:"rotate(180deg)"},[`${y}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,s.initSlideMotion)(C,"slide-up"),(0,s.initSlideMotion)(C,"slide-down"),(0,s.initMoveMotion)(C,"move-up"),(0,s.initMoveMotion)(C,"move-down")]};e.default=(0,c.genStyleHooks)("DatePicker",C=>{const y=(0,c.mergeToken)((0,i.initInputToken)(C),(0,h.initPickerPanelToken)(C),{inputPaddingHorizontalBase:C.calc(C.paddingSM).sub(1).equal(),multipleSelectItemHeight:C.multipleItemHeight,selectHeight:C.controlHeight});return[(0,f.default)(y),v(y),(0,p.default)(y),m(y),(0,d.default)(y),(0,a.genCompactItemStyle)(C,{focusElCls:`${C.componentCls}-focused`})]},h.prepareComponentToken)})(RV);Object.defineProperty(q2,"__esModule",{value:!0});q2.prepareComponentToken=q2.genCalendarStyles=q2.default=void 0;var El=Gt,p1e=RV,ber=cn,$9e=qt;const ZXe=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:o}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,p1e.genPanelStyle)(e)),(0,ber.resetComponent)(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${(0,El.unit)(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:i,border:0,borderTop:`${(0,El.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${(0,El.unit)(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${(0,El.unit)(e.borderRadiusLG)} ${(0,El.unit)(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:(0,El.unit)(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:(0,El.unit)(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${(0,El.unit)(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e
2025-02-18 08:35:18 +08:00
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,
2025-04-17 15:35:46 +08:00
> 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:s(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:(0,fi.unit)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,fi.unit)(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,fi.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},ttr=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,fi.unit)(e.borderRadius)} ${(0,fi.unit)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,fi.unit)(e.borderRadius)} ${(0,fi.unit)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,fi.unit)(e.borderRadius)} ${(0,fi.unit)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,fi.unit)(e.borderRadius)} 0 0 ${(0,fi.unit)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ntr=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{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:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,X2.genFocusStyle)(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},(0,X2.genFocusOutline)(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,curs
2025-02-18 08:35:18 +08:00
> ${n}-typography,
> ${n}-typography-edit-content
2025-04-17 15:35:46 +08:00
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,Hi.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Rtr=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
2025-04-17 10:18:46 +08:00
${(0,Hi.unit)(i)} 0 0 0 ${n},
0 ${(0,Hi.unit)(i)} 0 0 ${n},
${(0,Hi.unit)(i)} ${(0,Hi.unit)(i)} 0 0 ${n},
${(0,Hi.unit)(i)} 0 0 0 ${n} inset,
0 ${(0,Hi.unit)(i)} 0 0 ${n} inset;
2025-04-17 15:35:46 +08:00
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Otr=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,Hi.unit)(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${(0,Hi.unit)(e.borderRadiusLG)} ${(0,Hi.unit)(e.borderRadiusLG)}`},(0,g8.clearFix)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,Hi.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:(0,Hi.unit)(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,Hi.unit)(e.lineWidth)} ${e.lineType} ${o}`}}})},Mtr=e=>Object.assign(Object.assign({margin:`${(0,Hi.unit)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,g8.clearFix)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},g8.textEllipsis),"&-description":{color:e.colorTextDescription}}),Ptr=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${(0,Hi.unit)(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,Hi.unit)(e.padding)} ${(0,Hi.unit)(i)}`}}},Itr=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Ttr=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},(0,g8.resetComponent)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:Etr(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${(0,Hi.unit)(e.borderRadiusLG)} ${(0,Hi.unit)(e.borderRadiusLG)}`},(0,g8.clearFix)()),[`${t}-grid`]:Rtr(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,Hi.unit)(e.borderRadiusLG)} ${(0,Hi.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Otr(e),[`${t}-meta`]:Mtr(e)}),[`${t}-bordered`]:{border:`${(0,Hi.unit)(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${(0,Hi.unit)(e.borderRadiusLG)} ${(0,Hi.unit)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Ptr(e),[`${t}-loading`]:Itr(e),[`${t}-rtl`]:{direction:"rtl"}}},_tr=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${(0,Hi.unit)(r)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},sYe=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:
2025-02-18 08:35:18 +08:00
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&: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}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
2025-04-17 15:35:46 +08:00
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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}}}]};kh.genCheckboxStyle=fYe;function hYe(e,t){const n=(0,dYe.mergeToken)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[fYe(n)]}kh.default=(0,dYe.genStyleHooks)("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[hYe(n,e)]});Object.defineProperty(uP,"__esModule",{value:!0});uP.default=void 0;var xnr=Gt,$nr=kh,Enr=cn;const Rnr=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
2025-02-18 08:35:18 +08:00
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
2025-04-17 15:35:46 +08:00
`;return[(0,$nr.getStyle)(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,xnr.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Enr.textEllipsis),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]};uP.default=Rnr;var Onr=ge.default;Object.defineProperty(Pv,"__esModule",{value:!0});Pv.prepareComponentToken=Pv.default=void 0;var Mnr=jm,Pnr=qt,Inr=Onr(uP);const Tnr=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},(0,Inr.default)(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,Mnr.genCompactItemStyle)(e)]},pYe=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}};Pv.prepareComponentToken=pYe;Pv.default=(0,Pnr.genStyleHooks)("Cascader",e=>[Tnr(e)],pYe);var BV={},_nr=ge.default;Object.defineProperty(BV,"__esModule",{value:!0});BV.default=void 0;var Fnr=Gt,Anr=Pv,Dnr=qt,Lnr=_nr(uP);const Nnr=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[(0,Lnr.default)(e),{display:"inline-flex",border:`${(0,Fnr.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}};BV.default=(0,Dnr.genComponentStyleHook)(["Cascader","Panel"],e=>Nnr(e),Anr.prepareComponentToken);var Wm=ge.default,znr=Te.default;Object.defineProperty(kV,"__esModule",{value:!0});kV.default=void 0;var hJ=znr(u),knr=Wm(Ct),Bnr=uYe,Hnr=Wm(Qh),jnr=Wm(no),Vnr=Wm(Br),Gnr=Wm(lP),Wnr=Wm(zV),Unr=Wm(cP),qnr=Wm(Pv),Knr=Wm(BV);function Xnr(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:a,expandIcon:s,disabled:l}=e,c=hJ.useContext(jnr.default),d=l??c,[f,h,p,g]=(0,Gnr.default)(t,a),m=(0,Vnr.default)(h),[v,C,y]=(0,qnr.default)(h,m);(0,Knr.default)(h);const b=p==="rtl",[S,w]=(0,Unr.default)(f,b,s),x=o||(g==null?void 0:g("Cascader"))||hJ.createElement(Hnr.default,{componentName:"Cascader"}),$=(0,Wnr.default)(h,r);return v(hJ.createElement(Bnr.Panel,Object.assign({},e,{checkable:$,prefixCls:h,className:(0,knr.default)(n,C,i,y,m),notFoundContent:x,direction:p,expandIcon:S,loadingIcon:w,disabled:d})))}kV.default=Xnr;var Ynr=Te.default,Va=ge.default;Object.defineProperty(NV,"__esModule",{value:!0});NV.default=void 0;var Qnr=Va(Ir),$g=Ynr(u),N9e=Va(Ct),gYe=Va(uYe),mYe=Va(oi),Znr=Qi,z9e=la,Jnr=Va(Ul),k9e=bl,err=Lt,trr=Va(Qh),nrr=Va(no),B9e=Va(Br),rrr=Va(Gi),irr=yr,orr=Va(Bu),arr=Va(Sw),srr=Va(ww),lrr=Va(xw),crr=Va(HM),urr=qo,drr=Va(lP),frr=Va(zV),hrr=Va(cP),prr=Va(kV),grr=Va(Pv),mrr=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=
2025-02-18 08:35:18 +08:00
${t}-handler-up-inner,
${t}-handler-down-inner
2025-04-17 10:18:46 +08:00
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Cd.unit)(n)} ${r} ${M}`,transition:`all ${m} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
2025-02-18 08:35:18 +08:00
${t}-handler-up-inner,
${t}-handler-down-inner
2025-04-17 10:18:46 +08:00
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,B_.resetIcon)()),{color:g,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},iae(e,"lg")),iae(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
2025-02-18 08:35:18 +08:00
${t}-handler-up-disabled,
${t}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${t}-handler-up-disabled:hover &-handler-up-inner,
${t}-handler-down-disabled:hover &-handler-down-inner
2025-04-17 15:35:46 +08:00
`]:{color:x}})}]},Wir=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,Cd.unit)(n)} 0`}},(0,rE.genBasicInputStyle)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${(0,Cd.unit)(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,Cd.unit)(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}};k7.default=(0,Y9e.genStyleHooks)("InputNumber",e=>{const t=(0,Y9e.mergeToken)(e,(0,rE.initInputToken)(e));return[Gir(t),Wir(t),(0,jir.genCompactItemStyle)(t)]},Vir.prepareComponentToken,{unitless:{handleOpacity:!0}});var Fp=ge.default,MYe=Te.default;Object.defineProperty(CP,"__esModule",{value:!0});CP.default=void 0;var vs=MYe(u),Uir=Fp($w),qir=Fp(OYe),T5=Fp(Ct),Kir=Fp(zir),Q9e=Fp(pf),pJ=bl,PYe=MYe(Lt),Xir=Fp(no),Yir=Fp(Br),Qir=Fp(Gi),Zir=yr,Jir=Fp(Bu),eor=qo,tor=Fp(k7),nor=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 IYe=vs.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=vs.useContext(PYe.ConfigContext),i=vs.useRef(null);vs.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:d,addonAfter:f,prefix:h,suffix:p,bordered:g,readOnly:m,status:v,controls:C,variant:y}=e,b=nor(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=(0,Yir.default)(S),[x,$,R]=(0,tor.default)(S,w),{compactSize:O,compactItemClassnames:M}=(0,eor.useCompactItemContext)(S,r);let F=vs.createElement(qir.default,{className:`${S}-handler-up-inner`}),A=vs.createElement(Uir.default,{className:`${S}-handler-down-inner`});const N=typeof C=="boolean"?C:void 0;typeof C=="object"&&(F=typeof C.upIcon>"u"?F:vs.createElement("span",{className:`${S}-handler-up-inner`},C.upIcon),A=typeof C.downIcon>"u"?A:vs.createElement("span",{className:`${S}-handler-down-inner`},C.downIcon));const{hasFeedback:D,status:k,isFormItemInput:T,feedbackIcon:P}=vs.useContext(Zir.FormItemInputContext),_=(0,pJ.getMergedStatus)(k,v),L=(0,Qir.default)(Q=>{var te;return(te=s??O)!==null&&te!==void 0?te:Q}),B=vs.useContext(Xir.default),z=l??B,[j,U]=(0,Jir.default)("inputNumber",y,g),G=D&&vs.createElement(vs.Fragment,null,P),X=(0,T5.default)({[`${S}-lg`]:L==="large",[`${S}-sm`]:L==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:T},$),q=`${S}-group`,Y=vs.createElement(Kir.default,Object.assign({ref:i,disabled:z,className:(0,T5.default)(R,w,o,a,M),upHandler:F,downHandler:A,prefixCls:S,readOnly:m,controls:N,prefix:h,suffix:G||p,addonBefore:d&&vs.createElement(Q9e.default,{form:!0,space:!0},d),addonAfter:f&&v
2025-02-18 08:35:18 +08:00
inset-inline-start ${v},
inset-block-start ${v},
width ${v},
height ${v},
box-shadow ${v},
outline ${v}
2025-04-17 10:18:46 +08:00
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(d).div(2).add(m).mul(-1).equal(),insetBlockStart:c(f).sub(d).div(2).add(m).mul(-1).equal(),width:c(f).add(c(m).mul(2)).equal(),height:c(f).add(c(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,ou.unit)(m)} ${h}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${(0,ou.unit)(g)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
2025-02-18 08:35:18 +08:00
${t}-dot
2025-04-17 10:18:46 +08:00
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${(0,ou.unit)(g)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
2025-02-18 08:35:18 +08:00
${t}-mark-text,
${t}-dot
2025-04-17 15:35:46 +08:00
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},HYe=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),g=s(i).sub(r).div(2).equal(),m=t?{borderWidth:`${(0,ou.unit)(g)} 0`,transform:`translateY(${(0,ou.unit)(s(g).mul(-1).equal())})`}:{borderWidth:`0 ${(0,ou.unit)(g)}`,transform:`translateX(${(0,ou.unit)(e.calc(g).mul(-1).equal())})`};return{[l]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[f]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},Psr=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},HYe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Isr=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},HYe(e,!1)),{height:"100%"})}},jYe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new uxe.FastColor(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new uxe.FastColor(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}};B7.prepareComponentToken=jYe;B7.default=(0,dxe.genStyleHooks)("Slider",e=>{const t=(0,dxe.mergeToken)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Msr(t),Psr(t),Isr(t)]},jYe);var _1e={},Tsr=ge.default,_sr=Te.default;Object.defineProperty(_1e,"__esModule",{value:!0});_1e.default=Fsr;var wJ=_sr(u),fxe=Tsr(kc);function Fsr(){const[e,t]=wJ.useState(!1),n=wJ.useRef(null),r=()=>{fxe.default.cancel(n.current)},i=o=>{r(),o?t(o):n.current=(0,fxe.default)(()=>{t(o)})};return wJ.useEffect(()=>r,[]),[e,i]}var Um=ge.default;Object.defineProperty(SP,"__esModule",{value:!0});SP.default=void 0;var C1=Um(u),vx=Um(Ct),Asr=Um(kYe),Dsr=Um(kc),Lsr=Lt,Nsr=Um(no),zsr=Um(wP),hxe=Um(uG),ksr=Um(B7),xJ=Um(_1e),Bsr=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 Hsr(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const jsr=C1.default.forwardRef((e,t)=>{var n,r,i,o,a,s,l,c,d,f;const{prefixCls:h,range:p,className:g,rootClassName:m,style:v,disabled:C,tooltipPrefixCls:y,tipFormatter:b,tooltipVisible:S,getTooltipPopupContainer:w,tooltipPlacement:x,tooltip:$={},onChangeComplete:R,classNames:O,styles:M}=e,F=Bsr(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:A}=e,{direction:N,slider:D,getPrefixCls:k,getPopupContainer:T}=C1.default.useContext(Lsr.ConfigContext),P=C1.default.useContext(Nsr.default),_=C??P,{handleRender:L,direction:B}=C1.default.useContext(zsr.default),j=(B||N)==="rtl",[U,G]=(0,xJ.default)(),[X,q]=(0,xJ.default)(),Y=Object.assign({},$),{open
2025-02-18 08:35:18 +08:00
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
2025-04-17 15:35:46 +08:00
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};XG.default=Ghr;var Whr=ge.default;Object.defineProperty(Rh,"__esModule",{value:!0});Rh.prepareToken=Rh.prepareComponentToken=Rh.default=void 0;var W1=Gt,PQe=cn,hae=Wl,IQe=qt,Uhr=Whr(XG);const qhr=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,W1.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,W1.unit)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Qxe=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Khr=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,PQe.resetComponent)(e)),qhr(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Qxe(e,e.controlHeightSM)),"&-large":Object.assign({},Qxe(e,e.controlHeightLG))})}},Xhr=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},(0,PQe.resetComponent)(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:hae.zoomIn,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Zxe=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Yhr=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},lh=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),TQe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:lh(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Qhr=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
2025-02-18 08:35:18 +08:00
${r}-col-24${n}-label,
2025-04-17 15:35:46 +08:00
${r}-col-xl-24${n}-label`]:lh(e)}},[`@media (max-width: ${(0,W1.unit)(e.screenXSMax)})`]:[TQe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:lh(e)}}}],[`@media (max-width: ${(0,W1.unit)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:lh(e)}}},[`@media (max-width: ${(0,W1.unit)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:lh(e)}}},[`@media (max-width: ${(0,W1.unit)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:lh(e)}}}}},Zhr=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
2025-02-18 08:35:18 +08:00
${n}-col-24${t}-label,
2025-04-17 15:35:46 +08:00
${n}-col-xl-24${t}-label`]:lh(e),[`@media (max-width: ${(0,W1.unit)(e.screenXSMax)})`]:[TQe(e),{[t]:{[`${n}-col-xs-24${t}-label`]:lh(e)}}],[`@media (max-width: ${(0,W1.unit)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:lh(e)}},[`@media (max-width: ${(0,W1.unit)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:lh(e)}},[`@media (max-width: ${(0,W1.unit)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:lh(e)}}}},_Qe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0});Rh.prepareComponentToken=_Qe;const FQe=(e,t)=>(0,IQe.mergeToken)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});Rh.prepareToken=FQe;Rh.default=(0,IQe.genStyleHooks)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=FQe(e,n);return[Khr(r),Xhr(r),(0,Uhr.default)(r),Zxe(r,r.componentCls),Zxe(r,r.formItemCls),Yhr(r),Qhr(r),Zhr(r),(0,hae.genCollapseMotion)(r),hae.zoomIn]},_Qe,{order:-1e3});var AQe=Te.default,Xw=ge.default;Object.defineProperty(IP,"__esModule",{value:!0});IP.default=void 0;var Jxe=Xw(Ir),O0=AQe(u),e$e=Xw(Ct),t$e=AQe(Kh),n$e=Xw(la),Jhr=Xw(Br),e1r=yr,r$e=Xw(KG),t1r=Xw(Rh);const i$e=[];function FJ(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const n1r=e=>{let{help:t,helpStatus:n,errors:r=i$e,warnings:i=i$e,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=O0.useContext(e1r.FormItemPrefixContext),c=`${l}-item-explain`,d=(0,Jhr.default)(l),[f,h,p]=(0,t1r.default)(l,d),g=O0.useMemo(()=>(0,n$e.default)(l),[l]),m=(0,r$e.default)(r),v=(0,r$e.default)(i),C=O0.useMemo(()=>t!=null?[FJ(t,"help",n)]:[].concat((0,Jxe.default)(m.map((S,w)=>FJ(S,"error","error",w))),(0,Jxe.default)(v.map((S,w)=>FJ(S,"warning","warning",w)))),[t,n,m,v]),y=O0.useMemo(()=>{const S={};return C.forEach(w=>{let{key:x}=w;S[x]=(S[x]||0)+1}),C.map((w,x)=>Object.assign(Object.assign({},w),{key:S[w.key]>1?`${w.key}-fallback-${x}`:w.key}))},[C]),b={};return a&&(b.id=`${a}_help`),f(O0.createElement(t$e.default,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},S=>{const{className:w,style:x}=S;return O0.createElement("div",Object.assign({},b,{className:(0,e$e.default)(c,w,p,d,o,h),style:x,role:"alert"}),O0.createElement(t$e.CSSMotionList,Object.assign({keys:y},(0,n$e.default)(l),{motionName:`${l}-show-help-item`,component:!1}),$=>{const{key:R,error:O,errorStatus:M,className:F,style:A}=$;return O0.createElement("div",{key:R,className:(0,e$e.default)(F,{[`${c}-${M}`]:M}),style:A},O)}))}))};IP.default=n1r;var DQe={},X1e={},TP={},Y1e=ge.default;Object.defineProperty(TP,"__esModule",{value:!0});TP.default=o1r;TP.getDOM=LQe;TP.isDOM=pae;var r1r=Y1e(Ba),i1r=Y1e(u),o$e=Y1e(aa);function pae(e){return e instanceof HTMLElement||e instanceof SVGElement}function LQe(e){return e&&(0,r1r.default)(e)==="object"&&pae(e.nativeElement)?e.nativeElement:pae(e)?e:null}function o1r(e){var t=LQe(e);if(t)return t;if(e instanceof i1r.default.Component){var n;return(n=o$e.default.findDOMNode)===null||n===void 0?void 0:n.call(o$e.default,e)}return null}var C4={};Object.defineProperty(C4,"__esModule",{value:!0});C4.getFieldId=c1r;C4.getStatus=u1r;C4.toArray=l1r;const a1r=["parentNode"],s1r="form_item";function l1r(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function c1r(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:a1r.includes(n)?`${s1r}_${n}`:n}function u1r(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}var d1r=ge.default,f1r=Te.default;Object.defineProperty(X1e,"__esModule",{value:!0});X1e.default=m1r;var a$e=f1r(u),h1r=NM,p1r=TP,g1r=d1r(uqe),gae=C4;function s$e(e){return(0,gae.toArray)(e).join("_")}function l$e(e,t){const n=t.getField
2025-02-18 08:35:18 +08:00
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
2025-04-17 15:35:46 +08:00
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,Ia.unit)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Ia.unit)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,Ia.unit)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,vW.genInputSmallStyle)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Jmr=e=>{const{componentCls:t}=e;return{[`
2025-02-18 08:35:18 +08:00
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
2025-04-17 15:35:46 +08:00
`]:{height:e.itemSizeSM,lineHeight:(0,Ia.unit)(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:(0,Ia.unit)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Ia.unit)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,Ia.unit)(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:`${(0,Ia.unit)(e.inputOutlineOffset)} 0 ${(0,Ia.unit)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},e0r=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}}},[`
2025-02-18 08:35:18 +08:00
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
2025-04-17 15:35:46 +08:00
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,Ia.unit)(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:`${(0,Ia.unit)(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:(0,Ia.unit)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,vW.genBasicInputStyle)(e)),(0,x$e.genBaseOutlinedStyle)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,x$e.genDisabledStyle)(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},t0r=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,Ia.unit)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,Ia.unit)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Ia.unit)(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},n0r=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,QA.resetComponent)(e)),{display:"flex","&-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:(0,Ia.unit)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),t0r(e)),e0r(e)),Jmr(e)),Zmr(e)),Qmr(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"}}},r0r=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,QA.genFocusStyle)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,QA.genFocusOutline)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,QA.genFocusOutline)(e))}}}},fZe=e=>Object.assign({itemB
2025-04-17 10:18:46 +08:00
${(0,d3.unit)(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
2025-02-18 08:35:18 +08:00
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
2025-04-17 10:18:46 +08:00
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,d3.unit)(l(a).mul(-1).equal())} ${(0,d3.unit)(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
2025-02-18 08:35:18 +08:00
> tr${t}-expanded-row,
> tr${t}-placeholder
2025-04-17 15:35:46 +08:00
`]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,d3.unit)(n)} 0 ${(0,d3.unit)(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};MU.default=f7r;var PU={};Object.defineProperty(PU,"__esModule",{value:!0});PU.default=void 0;var h7r=cn;const p7r=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},h7r.textEllipsis),{wordBreak:"keep-all",[`
2025-02-18 08:35:18 +08:00
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
2025-04-17 15:35:46 +08:00
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};PU.default=p7r;var IU={};Object.defineProperty(IU,"__esModule",{value:!0});IU.default=void 0;const g7r=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}};IU.default=g7r;var TU={};Object.defineProperty(TU,"__esModule",{value:!0});TU.default=void 0;var U5=Gt,m7r=cn;const v7r=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:g,expandIconMarginTop:m,expandIconSize:v,expandIconHalfInner:C,expandIconScale:y,calc:b}=e,S=`${(0,U5.unit)(i)} ${a} ${s}`,w=b(g).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,m7r.operationUnit)(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:(0,U5.unit)(v),background:l,border:S,borderRadius:d,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:w,insetInlineStart:w,height:i},"&::after":{top:w,bottom:w,insetInlineStart:C,width:i,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,U5.unit)(b(f).mul(-1).equal())} ${(0,U5.unit)(b(h).mul(-1).equal())}`,padding:`${(0,U5.unit)(f)} ${(0,U5.unit)(h)}`}}}};TU.default=v7r;var _U={};Object.defineProperty(_U,"__esModule",{value:!0});_U.default=void 0;var I0=Gt,C7r=cn;const y7r=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:d,tableBorderColor:f,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:g,borderRadius:m,motionDurationSlow:v,colorTextDescription:C,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:x,controlItemBgHover:$,controlItemBgActive:R,boxShadowSecondary:O,filterDropdownMenuBg:M,calc:F}=e,A=`${n}-dropdown`,N=`${t}-filter-dropdown`,D=`${n}-tree`,k=`${(0,I0.unit)(c)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:F(a).mul(-1).equal(),marginInline:`${(0,I0.unit)(a)} ${(0,I0.unit)(F(g).div(2).mul(-1).equal())}`,padding:`0 ${(0,I0.unit)(a)}`,color:h,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:C,background:b},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},(0,C7r.resetComponent)(e)),{minWidth:i,backgroundColor:w,borderRadius:m,boxShadow:O,overflow:"hidden",[`${A}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:M,"&:empty::after":{display:"block",padding:`${(0,I0.unit)(s)} 0`,color:S,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${(0,I0.unit)(s)} 0`,paddi
2025-02-18 08:35:18 +08:00
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:o,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after,
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
2025-04-17 15:35:46 +08:00
`]:{boxShadow:"none"}}}}};FU.default=b7r;var AU={};Object.defineProperty(AU,"__esModule",{value:!0});AU.default=void 0;var S7r=Gt;const w7r=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,S7r.unit)(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};AU.default=w7r;var DU={};Object.defineProperty(DU,"__esModule",{value:!0});DU.default=void 0;var fF=Gt;const x7r=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,fF.unit)(n)} ${(0,fF.unit)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,fF.unit)(n)} ${(0,fF.unit)(n)}`}}}}};DU.default=x7r;var LU={};Object.defineProperty(LU,"__esModule",{value:!0});LU.default=void 0;const $7r=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}};LU.default=$7r;var NU={};Object.defineProperty(NU,"__esModule",{value:!0});NU.default=void 0;var E7r=Gt;const R7r=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:g(c).add(i).add(g(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(c).add(g(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(c).add(i).add(g(o).div(4)).add(g(a).mul(2)).equal()}},[`
2025-02-18 08:35:18 +08:00
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
2025-04-17 15:35:46 +08:00
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:g(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,E7r.unit)(g(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}};NU.default=R7r;var zU={};Object.defineProperty(zU,"__esModule",{value:!0});zU.default=void 0;var fg=Gt;const O7r=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,a,s,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[`
2025-02-18 08:35:18 +08:00
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
2025-04-17 15:35:46 +08:00
`]:{padding:`${(0,fg.unit)(a)} ${(0,fg.unit)(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,fg.unit)(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,fg.unit)(r(a).mul(-1).equal())} ${(0,fg.unit)(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,fg.unit)(r(a).mul(-1).equal()),marginInline:`${(0,fg.unit)(r(n).sub(s).equal())} ${(0,fg.unit)(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,fg.unit)(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};zU.default=O7r;var kU={};Object.defineProperty(kU,"__esModule",{value:!0});kU.default=void 0;const M7r=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
2025-02-18 08:35:18 +08:00
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
2025-04-17 15:35:46 +08:00
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}};kU.default=M7r;var BU={};Object.defineProperty(BU,"__esModule",{value:!0});BU.default=void 0;var jEe=Gt;const P7r=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:d,tableBorderColor:f}=e,h=`${(0,jEe.unit)(c)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,jEe.unit)(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}};BU.default=P7r;var HU={};Object.defineProperty(HU,"__esModule",{value:!0});HU.default=void 0;var VEe=Gt;const I7r=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${(0,VEe.unit)(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,VEe.unit)(i(n).mul(-1).equal())} 0 ${r}`}}}};HU.default=I7r;var jU={};Object.defineProperty(jU,"__esModule",{value:!0});jU.default=void 0;var GEe=Gt;const T7r=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,s=`${(0,GEe.unit)(r)} ${i} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
2025-02-18 08:35:18 +08:00
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
2025-04-17 15:35:46 +08:00
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,GEe.unit)(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}};jU.default=T7r;var Kl=ge.default;Object.defineProperty(sS,"__esModule",{value:!0});sS.prepareComponentToken=sS.default=void 0;var ic=Gt,Mx=xa,WEe=cn,UEe=qt,_7r=Kl(MU),F7r=Kl(PU),A7r=Kl(IU),D7r=Kl(TU),L7r=Kl(_U),N7r=Kl(FU),z7r=Kl(AU),k7r=Kl(DU),B7r=Kl(LU),H7r=Kl(NU),j7r=Kl(zU),V7r=Kl(kU),G7r=Kl(BU),qEe=Kl(HU),W7r=Kl(jU);const U7r=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:d,tableRadius:f,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:g,tableHeaderCellSplitColor:m,tableFooterTextColor:v,tableFooterBg:C,calc:y}=e,b=`${(0,ic.unit)(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,WEe.clearFix)()),{[t]:Object.assign(Object.assign({},(0,WEe.resetComponent)(e)),{fontSize:c,background:d,borderRadius:`${(0,ic.unit)(f)} ${(0,ic.unit)(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ic.unit)(f)} ${(0,ic.unit)(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
2025-02-18 08:35:18 +08:00
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
2025-04-17 10:18:46 +08:00
`]:{position:"relative",padding:`${(0,ic.unit)(r)} ${(0,ic.unit)(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,ic.unit)(r)} ${(0,ic.unit)(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:g,borderBottom:b,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:b,[`
2025-02-18 08:35:18 +08:00
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
2025-04-17 10:18:46 +08:00
`]:{[t]:{marginBlock:(0,ic.unit)(y(r).mul(-1).equal()),marginInline:`${(0,ic.unit)(y(o).sub(i).equal())}
2025-04-17 15:35:46 +08:00
${(0,ic.unit)(y(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:g,borderBottom:b,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${(0,ic.unit)(r)} ${(0,ic.unit)(i)}`,color:v,background:C}})}},net=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:g,fontSize:m,fontSizeSM:v,lineHeight:C,lineWidth:y,colorIcon:b,colorIconHover:S,opacityLoading:w,controlInteractiveSize:x}=e,$=new Mx.FastColor(i).onBackground(n).toHexString(),R=new Mx.FastColor(o).onBackground(n).toHexString(),O=new Mx.FastColor(t).onBackground(n).toHexString(),M=new Mx.FastColor(b),F=new Mx.FastColor(S),A=x/2-y,N=A*2+y*3;return{headerBg:O,headerColor:r,headerSortActiveBg:$,headerSortHoverBg:R,bodySortBg:O,rowHoverBg:O,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:h,footerBg:O,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:f,fixedHeaderSortActiveBg:$,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*C-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:M.clone().setA(M.a*w).toRgbString(),headerIconHoverColor:F.clone().setA(F.a*w).toRgbString(),expandIconHalfInner:A,expandIconSize:N,expandIconScale:x/N}};sS.prepareComponentToken=net;const KEe=2;sS.default=(0,UEe.genStyleHooks)("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:g,cellPaddingInline:m,cellPaddingBlockMD:v,cellPaddingInlineMD:C,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:S,footerBg:w,footerColor:x,headerBorderRadius:$,cellFontSize:R,cellFontSizeMD:O,cellFontSizeSM:M,headerSplitColor:F,fixedHeaderSortActiveBg:A,headerFilterHoverBg:N,filterDropdownBg:D,expandIconBg:k,selectionColumnWidth:T,stickyScrollBarBg:P,calc:_}=e,L=(0,UEe.mergeToken)(e,{tableFontSize:R,tableBg:r,tableRadius:$,tablePaddingVertical:g,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:x,tableFooterBg:w,tableHeaderCellSplitColor:F,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:A,tableHeaderFilterActiveBg:N,tableFilterDropdownBg:D,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:h,zIndexTableFixed:KEe,zIndexTableSticky:_(KEe).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:M,tableSelectionColumnWidth:T,tableExpandIconBg:k,tableExpandColumnWidth:_(i).add(_(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[U7r(L),(0,z7r.default)(L),(0,qEe.default)(L),(0,V7r.default)(L),(0,L7r.default)(L),(0,_7r.default)(L),(0,k7r.default)(L),(0,D7r.default)(L),(0,qEe.default)(L),(0,A7r.default)(L),(0,H7r.default)(L),(0,N7r.default)(L),(0,G7r.default)(L),(0,F7r.default)(L),(0,j7r.default)(L),(0,B7r.default)(L),(0,W7r.default)(L)]},net,{unitless:{expandIconScale:!0}});var Ga=ge.default,VU=Te.default;Object.defineProperty(sU,"__esModule",{value:!0});sU.default=void 0;var fa=VU(u),f3=Ga(Ct),q7r=jP,K7r=VP,X7r=Ga(oi),Y7r=Ga(jpe),Q7r=Ga(pw),Z7r=Co,J7r=il,eSr=Ga(Qh),tSr=Ga(Br),nSr=Ga(Gi),rSr=Ga(Tp),iSr=Ga(Gl),oSr=
2025-02-18 08:35:18 +08:00
&${t}-right,
2025-04-17 15:35:46 +08:00
&${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${(0,Ol.unit)(e.marginXXS)})`,width:`calc(50% - ${(0,Ol.unit)(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${(0,Ol.unit)(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
2025-02-18 08:35:18 +08:00
${t}-item-head,
2025-04-17 15:35:46 +08:00
${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,Ol.unit)(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`},[`${t}-item-content`]:{width:`calc(100% - ${(0,Ol.unit)(n(e.itemHeadSize).add(e.marginXS).equal())})`}}},[`&${t}-pending
2025-02-18 08:35:18 +08:00
${t}-item-last
2025-04-17 15:35:46 +08:00
${t}-item-tail`]:{display:"block",height:`calc(100% - ${(0,Ol.unit)(e.margin)})`,borderInlineStart:`${(0,Ol.unit)(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse
2025-02-18 08:35:18 +08:00
${t}-item-last
2025-04-17 15:35:46 +08:00
${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${(0,Ol.unit)(e.margin)})`,borderInlineStart:`${(0,Ol.unit)(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${(0,Ol.unit)(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${(0,Ol.unit)(e.marginSM)})`,width:`calc(50% - ${(0,Ol.unit)(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},met=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25});uS.prepareComponentToken=met;uS.default=(0,eRe.genStyleHooks)("Timeline",e=>{const t=(0,eRe.mergeToken)(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[Pwr(t)]},met);var XP={},Iwr=ge.default,Twr=Te.default;Object.defineProperty(XP,"__esModule",{value:!0});XP.default=void 0;var q5=Twr(u),tRe=Iwr(Ct),_wr=Lt,Fwr=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 Awr=e=>{var{prefixCls:t,className:n,color:r="blue",dot:i,pending:o=!1,position:a,label:s,children:l}=e,c=Fwr(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=q5.useContext(_wr.ConfigContext),f=d("timeline",t),h=(0,tRe.default)(`${f}-item`,{[`${f}-item-pending`]:o},n),p=/blue|red|green|gray/.test(r||"")?void 0:r,g=(0,tRe.default)(`${f}-item-head`,{[`${f}-item-head-custom`]:!!i,[`${f}-item-head-${r}`]:!p});return q5.createElement("li",Object.assign({},c,{className:h}),s&&q5.createElement("div",{className:`${f}-item-label`},s),q5.createElement("div",{className:`${f}-item-tail`}),q5.createElement("div",{className:g,style:{borderColor:p,color:p}},i),q5.createElement("div",{className:`${f}-item-content`},l))};XP.default=Awr;var iq={},Dwr=Te.default,oq=ge.default;Object.defineProperty(iq,"__esModule",{value:!0});iq.default=void 0;var Lwr=oq(Ir),aee=Dwr(u),Nwr=oq(Yh),nRe=oq(Ct),zwr=oq(XP),rRe=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 kwr=e=>{var{prefixCls:t,className:n,pending:r=!1,children:i,items:o,rootClassName:a,reverse:s=!1,direction:l,hashId:c,pendingDot:d,mode:f=""}=e,h=rRe(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const p=(w,x)=>f==="alternate"?w==="right"?`${t}-item-right`:w==="left"?`${t}-item-left`:x%2===0?`${t}-item-left`:`${t}-item-right`:f==="left"?`${t}-item-left`:f==="right"?`${t}-item-right`:w==="right"?`${t}-item-right`:"",g=(0,Lwr.default)(o||[]),m=typeof r=="boolean"?null:r;r&&g.push({pending:!!r,dot:d||aee.createElement(Nwr.default,null),children:m}),s&&g.reverse();const v=g.length,C=`${t}-item-last`,y=g.filter(w=>!!w).map((w,x)=>{var $;const R=x===v-2?C:"",O=x===v-1?C:"",{className:M}=w,F=rRe(w,["className"]);return aee.createElement(zwr.default,Object.assign({},F,{className:(0,nRe.default)([M,!s&&r?R:O,p(($=w==null?void 0:w.position)!==null&&$!==void 0?$:"",x)]),key:(w==null?void 0:w.key)||x}))}),b=g.some(w=>!!(w!=null&&w.label)),S=(0,nRe.default)(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${f}`]:!!f&&!b,[`${t}-label`]:b,[`${t}-rtl`]:
2025-02-18 08:35:18 +08:00
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
2025-04-17 15:35:46 +08:00
`]=l$r(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n};yc.getTitleStyles=c$r;const u$r=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,s$r.operationUnit)(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}};yc.getLinkStyles=u$r;const d$r=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:o$r.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}});yc.getResetStyles=d$r;const f$r=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${(0,a$r.unit)(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}};yc.getEditableStyles=f$r;const h$r=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}});yc.getCopyableStyles=h$r;const p$r=()=>({"\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"}});yc.getEllipsisStyles=p$r;Object.defineProperty($8,"__esModule",{value:!0});$8.prepareComponentToken=$8.default=void 0;var g$r=cn,m$r=qt,X5=yc;const v$r=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.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},(0,X5.getTitleStyles)(e)),{[`
2025-02-18 08:35:18 +08:00
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
2025-04-17 10:18:46 +08:00
`]:{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}}}),(0,X5.getResetStyles)(e)),(0,X5.getLinkStyles)(e)),{[`
2025-02-18 08:35:18 +08:00
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
2025-04-17 15:35:46 +08:00
`]:Object.assign(Object.assign({},(0,g$r.operationUnit)(e)),{marginInlineStart:e.marginXXS})}),(0,X5.getEditableStyles)(e)),(0,X5.getCopyableStyles)(e)),(0,X5.getEllipsisStyles)()),{"&-rtl":{direction:"rtl"}})}},Iet=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});$8.prepareComponentToken=Iet;$8.default=(0,m$r.genStyleHooks)("Typography",e=>[v$r(e)],Iet);var JP=ge.default,C$r=Te.default;Object.defineProperty(wq,"__esModule",{value:!0});wq.default=void 0;var pg=C$r(u),y$r=JP(i$r),b$r=JP(Ct),xRe=JP(SC),S$r=Li,w$r=JP(bP),x$r=JP($8);const $$r=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:d,onEnd:f,component:h,enterIcon:p=pg.createElement(y$r.default,null)}=e,g=pg.useRef(null),m=pg.useRef(!1),v=pg.useRef(null),[C,y]=pg.useState(l);pg.useEffect(()=>{y(l)},[l]),pg.useEffect(()=>{var D;if(!((D=g.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:k}=g.current.resizableTextArea;k.focus();const{length:T}=k.value;k.setSelectionRange(T,T)}},[]);const b=D=>{let{target:k}=D;y(k.value.replace(/[\n\r]/g,""))},S=()=>{m.current=!0},w=()=>{m.current=!1},x=D=>{let{keyCode:k}=D;m.current||(v.current=k)},$=()=>{c(C.trim())},R=D=>{let{keyCode:k,ctrlKey:T,altKey:P,metaKey:_,shiftKey:L}=D;v.current!==k||m.current||T||P||_||L||(k===xRe.default.ENTER?($(),f==null||f()):k===xRe.default.ESC&&d())},O=()=>{$()},[M,F,A]=(0,x$r.default)(t),N=(0,b$r.default)(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},r,F,A);return M(pg.createElement("div",{className:N,style:i},pg.createElement(w$r.default,{ref:g,maxLength:a,value:C,onChange:b,onKeyDown:x,onKeyUp:R,onCompositionStart:S,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:s}),p!==null?(0,S$r.cloneElement)(p,{className:`${t}-edit-content-confirm`}):null))};wq.default=$$r;var $q={},Oge=ge.default,E$r=Te.default;Object.defineProperty($q,"__esModule",{value:!0});$q.default=void 0;var vF=E$r(u),R$r=Oge(eWe),O$r=Oge(Ns),M$r=Oge(Jw),P$r=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 s(d){try{c(r.next(d))}catch(f){a(f)}}function l(d){try{c(r.throw(d))}catch(f){a(f)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const I$r=e=>{let{copyConfig:t,children:n}=e;const[r,i]=vF.useState(!1),[o,a]=vF.useState(!1),s=vF.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),vF.useEffect(()=>l,[]);const d=(0,O$r.default)(f=>P$r(void 0,void 0,void 0,function*(){var h;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;(0,R$r.default)(p||(0,M$r.default)(n,!0).join("")||"",c),a(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,f)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:o,onClick:d}};$q.default=I$r;var Mge={},T$r=Te.default;Object.defineProperty(Mge,"__esModule",{value:!0});Mge.default=F$r;var _$r=T$r(u);function F$r(e,t){return _$r.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}var Eq={};Object.defineProperty(Eq,"__esModule",{value:!0});Eq.default=void 0;var $Re=u;const A$r=e=>{const t=(0,$Re.useRef)(void 0);return(0,$Re.useEffect)(()=>{t.current=e}),t.current};Eq.default=A$r;var Rq={};Object.defineProperty(Rq,"__esModule",{value:!0});Rq.default=void 0;var ERe=u;const D$r=(e,t,n)=>(0,ERe.useMemo)(()=>e===!0?{title:t??n}:(0,ERe.isValidElement)(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);Rq.default=D$r;var eI={},Tet=ge.default,L$r=Te.default;Object.defineProperty(eI,"__esModule",{value:!0});eI.default=void 0;var fee=L$r(u),N$r=Tet(Ct),z$r=Ti,k$r=Lt,B$r=Tet($8),H$r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototyp
2025-02-18 08:35:18 +08:00
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
2025-04-17 10:18:46 +08:00
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,bee.unit)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
2025-02-18 08:35:18 +08:00
p${t}-text,
p${t}-hint
2025-04-17 15:35:46 +08:00
`]:{color:e.colorTextDisabled}}}}}};Dq.default=fRr;var Lq={};Object.defineProperty(Lq,"__esModule",{value:!0});Lq.default=void 0;var hRr=Gt,ARe=cn;const pRr=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,ARe.clearFix)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},ARe.textEllipsis),{padding:`0 ${(0,hRr.unit)(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
2025-02-18 08:35:18 +08:00
${l}:focus-visible,
&.picture ${l}
2025-04-17 15:35:46 +08:00
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};Lq.default=pRr;var Nq={};Object.defineProperty(Nq,"__esModule",{value:!0});Nq.default=void 0;var DRe=Gt,gRr=Wl;const mRr=e=>{const{componentCls:t}=e,n=new DRe.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new DRe.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:n},[`${i}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:(0,gRr.initFadeMotion)(e)},n,r]};Nq.default=mRr;var pS={};Object.defineProperty(pS,"__esModule",{value:!0});pS.genPictureStyle=pS.genPictureCardStyle=void 0;var LRe=qh,Fg=Gt,Det=cn;const vRr=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
2025-02-18 08:35:18 +08:00
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
2025-04-17 15:35:46 +08:00
`]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,Fg.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Det.textEllipsis),{width:r,height:r,lineHeight:(0,Fg.unit)(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${(0,Fg.unit)(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${LRe.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${LRe.blue.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}};pS.genPictureStyle=vRr;const CRr=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
2025-02-18 08:35:18 +08:00
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
2025-04-17 10:18:46 +08:00
`]:Object.assign(Object.assign({},(0,Det.clearFix)()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,Fg.unit)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Fg.unit)(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Fg.unit)(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
2025-02-18 08:35:18 +08:00
${n}-eye,
${n}-download,
${n}-delete
2025-04-17 15:35:46 +08:00
`]:{zIndex:10,width:r,margin:`0 ${(0,Fg.unit)(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,Fg.unit)(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,Fg.unit)(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};pS.genPictureCardStyle=CRr;var zq={};Object.defineProperty(zq,"__esModule",{value:!0});zq.default=void 0;const yRr=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};zq.default=yRr;var kq=ge.default;Object.defineProperty(hS,"__esModule",{value:!0});hS.prepareComponentToken=hS.default=void 0;var bRr=cn,SRr=Wl,NRe=qt,wRr=kq(Dq),xRr=kq(Lq),$Rr=kq(Nq),zRe=pS,ERr=kq(zq);const RRr=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,bRr.resetComponent)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Let=e=>({actionsColor:e.colorTextDescription});hS.prepareComponentToken=Let;hS.default=(0,NRe.genStyleHooks)("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=(0,NRe.mergeToken)(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[RRr(a),(0,wRr.default)(a),(0,zRe.genPictureStyle)(a),(0,zRe.genPictureCardStyle)(a),(0,xRr.default)(a),(0,$Rr.default)(a),(0,ERr.default)(a),(0,SRr.genCollapseMotion)(a)]},Let);var Bq={},Xae={exports:{}},Hq={},Fge={};Object.defineProperty(Fge,"__esModule",{value:!0});var ORr={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};Fge.default=ORr;var MRr=Te.default,Age=ge.default;Object.defineProperty(Hq,"__esModule",{value:!0});Hq.default=void 0;var PRr=Age(nr),Net=MRr(u),IRr=Age(Fge),TRr=Age(rr),_Rr=function(t,n){return Net.createElement(TRr.default,(0,PRr.default)({},t,{ref:n,icon:IRr.default}))},FRr=Net.forwardRef(_Rr);Hq.default=FRr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(Hq);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Xae,Xae.exports);var ARr=Xae.exports,Yae={exports:{}},jq={},Dge={};Object.defineProperty(Dge,"__esModule",{value:!0});var DRr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 8
2025-02-18 08:35:18 +08:00
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
2025-04-17 15:35:46 +08:00
}`,FPr=bm`
2025-02-18 08:35:18 +08:00
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
2025-04-17 15:35:46 +08:00
}`,APr=bm`
2025-02-18 08:35:18 +08:00
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
2025-04-17 15:35:46 +08:00
}`,DPr=O4("div")`
2025-02-18 08:35:18 +08:00
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
2025-04-17 15:35:46 +08:00
animation: ${_Pr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
2025-02-18 08:35:18 +08:00
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
2025-04-17 15:35:46 +08:00
animation: ${FPr} 0.15s ease-out forwards;
2025-02-18 08:35:18 +08:00
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
2025-04-17 15:35:46 +08:00
animation: ${APr} 0.15s ease-out forwards;
2025-02-18 08:35:18 +08:00
animation-delay: 180ms;
transform: rotate(90deg);
}
2025-04-17 15:35:46 +08:00
`,LPr=bm`
2025-02-18 08:35:18 +08:00
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
2025-04-17 15:35:46 +08:00
`,NPr=O4("div")`
2025-02-18 08:35:18 +08:00
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
2025-04-17 15:35:46 +08:00
animation: ${LPr} 1s linear infinite;
`,zPr=bm`
2025-02-18 08:35:18 +08:00
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
2025-04-17 15:35:46 +08:00
}`,kPr=bm`
2025-02-18 08:35:18 +08:00
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
2025-04-17 15:35:46 +08:00
}`,BPr=O4("div")`
2025-02-18 08:35:18 +08:00
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
2025-04-17 15:35:46 +08:00
animation: ${zPr} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
2025-02-18 08:35:18 +08:00
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
2025-04-17 15:35:46 +08:00
animation: ${kPr} 0.2s ease-out forwards;
2025-02-18 08:35:18 +08:00
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
2025-04-17 15:35:46 +08:00
`,HPr=O4("div")`
2025-02-19 08:38:12 +08:00
position: absolute;
2025-04-17 15:35:46 +08:00
`,jPr=O4("div")`
2025-02-18 08:35:18 +08:00
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
2025-04-17 15:35:46 +08:00
`,VPr=bm`
2025-02-18 08:35:18 +08:00
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
2025-04-17 15:35:46 +08:00
}`,GPr=O4("div")`
2025-02-18 08:35:18 +08:00
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
2025-04-17 15:35:46 +08:00
animation: ${VPr} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
2025-02-18 08:35:18 +08:00
forwards;
2025-04-17 15:35:46 +08:00
`,WPr=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?u.createElement(GPr,null,t):t:n==="blank"?null:u.createElement(jPr,null,u.createElement(NPr,{...r}),n!=="loading"&&u.createElement(HPr,null,n==="error"?u.createElement(DPr,{...r}):u.createElement(BPr,{...r})))},UPr=e=>`
2025-02-18 08:35:18 +08:00
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
2025-04-17 15:35:46 +08:00
`,qPr=e=>`
2025-02-18 08:35:18 +08:00
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
2025-04-17 15:35:46 +08:00
`,KPr="0%{opacity:0;} 100%{opacity:1;}",XPr="0%{opacity:1;} 100%{opacity:0;}",YPr=O4("div")`
2025-02-18 08:35:18 +08:00
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
2025-04-17 15:35:46 +08:00
`,QPr=O4("div")`
2025-02-18 08:35:18 +08:00
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
2025-04-17 15:35:46 +08:00
`,ZPr=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=Qet()?[KPr,XPr]:[UPr(n),qPr(n)];return{animation:t?`${bm(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${bm(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},JPr=u.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?ZPr(e.position||t||"top-center",e.visible):{opacity:0},o=u.createElement(WPr,{toast:e}),a=u.createElement(QPr,{...e.ariaProps},VN(e.message,e));return u.createElement(YPr,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):u.createElement(u.Fragment,null,o,a))});bPr(u.createElement);var eIr=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=u.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return u.createElement("div",{ref:o,className:t,style:n},i)},tIr=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Qet()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},nIr=Yq`
2025-02-18 08:35:18 +08:00
z-index: 9999;
> * {
pointer-events: auto;
}
2025-04-17 15:35:46 +08:00
`,xF=16,rIr=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=TPr(n);return u.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:xF,left:xF,right:xF,bottom:xF,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(c=>{let d=c.position||t,f=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),h=tIr(d,f);return u.createElement(eIr,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?nIr:"",style:h},c.type==="custom"?VN(c.message,c):i?i(c):u.createElement(JPr,{toast:c,position:d}))}))},Fc=Ta;const sI=({value:e,onChange:t,compressed:n=!1,className:r,placeholder:i="点击上传",style:o,successText:a="上传成功",showCover:s=!0})=>{const{handleFileUpload:l,uploadProgress:c}=TWe(),[d,f]=u.useState(null),h=u.useRef(null),[p,g]=u.useState(e||""),[m,v]=u.useState(e),[C,y]=u.useState(e||""),[b,S]=u.useState(e||""),[w,x]=u.useState(!1),$=u.useRef(null),[R,O]=u.useState(0),{token:M}=Op.useToken();u.useEffect(()=>{(!p||(p==null?void 0:p.length)<1)&&g(e||"")},[e]);const F=async N=>{var T;const D=(T=N.target.files)==null?void 0:T[0];if(!D)return;const k=URL.createObjectURL(D);g(k),f({name:D.name,progress:0,status:"uploading",fileKey:`${D.name}-${Date.now()}`}),x(!0);try{const P=await new Promise((_,L)=>{l(D,B=>{f(z=>({...z,progress:100,status:"done",fileId:B.fileId,url:B.url,compressedUrl:B.compressedUrl})),S(B.url),y(B.compressedUrl),_(n?B.compressedUrl:B.url)},B=>{L(B)},d==null?void 0:d.fileKey)});O(_=>_+1),console.log(P),t==null||t(P),Fc.success(a)}catch(P){console.error("上传错误:",P),Fc.error("上传失败"),f(_=>({..._,status:"error"}))}finally{x(!1)}},A=()=>{var N;(N=$.current)==null||N.click()};return H.jsxs("div",{className:`relative w-24 h-24 overflow-hidden cursor-pointer ${r}`,onClick:A,style:{border:`1px solid ${M.colorBorder}`,background:M.colorBgContainer,...o},children:[H.jsx("input",{type:"file",ref:$,onChange:F,accept:"image/*",style:{display:"none"}}),p&&s?H.jsx(Hy.Avatar,{ref:h,src:p,shape:"square",onError:()=>e&&p&&m===e?(v(p),!0):!1,className:"w-full h-full object-cover"},R):H.jsx("div",{className:"flex items-center justify-center w-full h-full text-sm text-gray-500",children:i}),w&&H.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black bg-opacity-50",children:H.jsx(ml,{})}),d&&d.status==="uploading"&&H.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-white bg-opacity-75",children:H.jsx(kB,{percent:Math.round((c==null?void 0:c[d.fileKey])||0),showInfo:!1,strokeColor:M.colorPrimary})})]})};function iIr(){const{user:e}=_i(),{create:t,update:n}=nk(),{formLoading:r,modalOpen:i,setModalOpen:o,domainId:a,setDomainId:s,form:l,setFormLoading:c}=u.useContext(qge),{data:d,isLoading:f}=sn.staff.findFirst.useQuery({where:{id:e==null?void 0:e.id}},{enabled:!!(e!=null&&e.id)});_i();async function h(p){const{username:g,showname:m,deptId:v,domainId:C,password:y,phoneNumber:b,officerId:S,enabled:w,photoUrl:x,email:$,rank:R,office:O}=p;c(!0);try{d&&(e!=null&&e.id)&&await n.mutateAsync({where:{id:d.id},data:{username:g,deptId:v,showname:m,domainId:C,password:y,phoneNumber:b,officerId:S,enabled:w,meta:{photoUrl:x,email:$,rank:R,office:O}}}),Fc.success("提交成功"),o(!1)}catch(M){Fc.error(M.message)}finally{c(!1)}}return u.useEffect(()=>{var p,g,m,v;l.resetFields(),d&&(l.setFieldValue("username",d.username),l.setFieldValue("showname",d.showname),l.setFieldValue("domainId",d.domainId),l.setFieldValue("deptId",d.deptId),l.setFieldValue("officerId",d.officerId),l.setFieldValue("phoneNumber",d.phoneNumber),l.setFieldValue("enabled",d.enabled),l.setFieldValue("photoUrl",(p=d==null?void 0:d.meta)==null?void 0:p.photoUrl),l.setFieldValue("email",(g=d==null?void 0:d.meta)==null?void 0:g.email),l.setFieldValue("rank",(m=d==null?void 0:d.meta)==null?void 0:m.rank),l.setFieldValue("office",(v=d==null?void 0:d.meta)==null?void 0:v.office))},[d]),H.jsxs("div",{className:"relative",children:[f&&H.jsx("div",{classNam
2025-02-18 08:35:18 +08:00
transition-all duration-200 ease-in-out shadow-md
hover:shadow-lg focus:outline-none
focus:ring-2 focus:ring-[#00538E]/80 focus:ring-offset-2
2025-04-17 10:18:46 +08:00
focus:ring-offset-white `}),H.jsx("span",{className:`absolute bottom-0 right-0 h-3 w-3
2025-02-18 08:35:18 +08:00
rounded-full bg-emerald-500 ring-2 ring-white
shadow-sm transition-transform duration-200
2025-04-17 15:35:46 +08:00
ease-in-out hover:scale-110`,"aria-hidden":"true"})]}),H.jsx("div",{className:"flex flex-col space-y-0.5 ml-3 items-start",children:H.jsx("span",{className:"text-base text-primary flex items-center gap-1.5",children:(a==null?void 0:a.showname)||(a==null?void 0:a.username)})})]}),H.jsx(Ck,{children:r&&H.jsxs(Pa.div,{initial:"hidden",animate:"visible",exit:"exit",variants:aIr,role:"menu",id:"user-menu","aria-orientation":"vertical","aria-labelledby":"user-menu-button",style:{zIndex:100},className:`absolute right-0 mt-3 w-64 origin-top-right
2025-02-18 08:35:18 +08:00
bg-white rounded-xl overflow-hidden shadow-lg
2025-04-17 10:18:46 +08:00
border border-[#E5EDF5]`,children:[H.jsx("div",{className:`px-4 py-4 bg-gradient-to-b from-[#F6F9FC] to-white
border-b border-[#E5EDF5] `,children:H.jsxs("div",{className:"flex items-center space-x-4",children:[H.jsx(Y8e,{src:(S=a==null?void 0:a.meta)==null?void 0:S.photoUrl,name:(a==null?void 0:a.showname)||(a==null?void 0:a.username),size:40,className:"ring-2 ring-white shadow-sm"}),H.jsxs("div",{className:"flex flex-col space-y-0.5",children:[H.jsx("span",{className:"text-sm font-semibold text-[#00538E]",children:(a==null?void 0:a.showname)||(a==null?void 0:a.username)}),H.jsxs("span",{className:"text-xs text-[#718096] flex items-center gap-1.5",children:[H.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),"在线"]})]})]})}),H.jsx("div",{className:"p-2",children:C.map((w,x)=>H.jsxs("button",{role:"menuitem",tabIndex:r?0:-1,onClick:$=>{$.stopPropagation(),y(w.action)},className:`flex items-center gap-3 w-full px-4 py-3
2025-02-18 08:35:18 +08:00
text-sm font-medium rounded-lg transition-all
focus:outline-none
focus:ring-2 focus:ring-[#00538E]/20
group relative overflow-hidden
active:scale-[0.99]
2025-04-17 10:18:46 +08:00
${w.label==="注销"?"text-[#B22234] hover:bg-red-50/80 hover:text-red-700":"text-[#00538E] hover:bg-[#E6EEF5] hover:text-[#003F6A]"}`,children:[H.jsx("span",{className:`w-5 h-5 flex items-center justify-center
2025-02-18 08:35:18 +08:00
transition-all duration-200 ease-in-out
group-hover:scale-110 group-hover:rotate-6
2025-04-17 15:35:46 +08:00
group-hover:translate-x-0.5 ${w.label==="注销"?"group-hover:text-red-600":"group-hover:text-[#003F6A]"}`,children:w.icon}),H.jsx("span",{children:w.label})]},x))})]})})]}),H.jsx(oIr,{})]})}function Jet(){const e=navigator.userAgent,t=u.useMemo(()=>e==="MyCustomUserAgent/1.0",[e]);return{userAgent:e,previewMode:t}}const lIr=u.memo(function(){const{isAuthenticated:t}=_i(),n=Tm(),{previewMode:r}=Jet();return H.jsx("header",{className:"sticky top-0 z-50 bg-transparent w-full",children:H.jsx("div",{className:"w-full px-4",children:H.jsx("div",{className:"py-1 relative",children:H.jsx("div",{className:"flex justify-end",children:H.jsxs("div",{className:"flex items-center",children:[t?!r&&H.jsx(sIr,{}):!r&&H.jsx(Er,{className:"text-lg bg-primary-500/80",style:{boxShadow:"none"},onClick:()=>{n("/auth")},type:"primary",icon:H.jsx(US,{}),children:"登录"}),r&&H.jsx(Er,{className:"text-lg bg-primary-500/80",style:{boxShadow:"none"},type:"primary",children:"预览模式"})]})})})})})});function cIr(){return H.jsx("footer",{className:"bg-gradient-to-b from-slate-800 to-slate-900 relative z-10 text-secondary-200 mt-1",children:H.jsxs("div",{className:"container mx-auto px-4 py-6",children:[H.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[H.jsxs("div",{className:"text-center md:text-left space-y-2",children:[H.jsx("h3",{className:"text-white font-semibold text-sm flex items-center justify-center md:justify-start",children:"软件与数据小组"}),H.jsx("p",{className:"text-gray-400 text-xs italic",children:"提供技术支持"})]}),H.jsxs("div",{className:"text-center space-y-2",children:[H.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[H.jsx(Ek,{className:"text-gray-400"}),H.jsx("span",{className:"text-gray-300 text-xs",children:"628532"})]}),H.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[H.jsx(WS,{className:"text-gray-400"}),H.jsx("span",{className:"text-gray-300 text-xs",children:"ruanjian1@tx3l.nb.kj"})]})]}),H.jsx("div",{className:"text-center md:text-right space-y-2",children:H.jsxs("div",{className:"flex items-center justify-center md:justify-end space-x-4",children:[H.jsx("a",{href:"https://27.57.72.21",className:"text-gray-400 hover:text-white transition-colors",title:"访问门户网站",children:H.jsx(Due,{className:"text-lg"})}),H.jsx("a",{href:"https://27.57.72.14",className:"text-gray-400 hover:text-white transition-colors",title:"访问烽火青云",children:H.jsx(GNe,{className:"text-lg"})}),H.jsx("a",{href:"http://27.57.72.38",className:"text-gray-400 hover:text-white transition-colors",title:"访问烽火律询",children:H.jsx(Aue,{className:"text-lg"})})]})})]}),H.jsx("div",{className:"border-t border-gray-700/50 mt-4 pt-4 text-center",children:H.jsxs("p",{className:"text-gray-400 text-xs",children:["© ",new Date().getFullYear()," 南天烽火. All rights reserved."]})})]})})}function uIr(){const{user:e}=_i(),{data:t}=sn.term.findMany.useQuery({where:{taxonomy:{slug:KAe.CATEGORY}}}),{previewMode:n}=Jet();return{navItems:u.useMemo(()=>{const i={letterList:{to:"/",label:"许愿池",icon:H.jsx(WS,{className:"text-base"})},editor:{to:"/editor",label:"心理预约",icon:H.jsx(oze,{className:"text-base"})},letterProgress:{to:"/letter-progress",label:"进度查询",icon:H.jsx(Aue,{className:"text-base"})},inbox:{to:e?"/inbox":"auth",label:"我的悄悄话",icon:H.jsx(Nue,{className:"text-base"})},help:{to:Al.LIB_URL||"27.57.72.38",label:"意见建议",icon:H.jsx(wk,{className:"text-base"})}};return[!n&&i.inbox,i.editor,i.letterProgress,i.letterList,i.help].filter(Boolean)},[t,e])}}const Kge="-",dIr=e=>{const t=hIr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(Kge);return s[0]===""&&s.length!==1&&s.shift(),ett(s,t)||fIr(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},ett=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?ett(e.slice(1),r):void 0;if(i)re
2025-02-18 08:35:18 +08:00
inline-flex items-center gap-2 px-2 py-1 rounded-md
text-base transition-all
${r.bg} ${r.text} ${r.border}
${n}
2025-04-17 15:35:46 +08:00
`,children:[r.icon,H.jsx("span",{className:"tracking-wide",children:e==="state"?x3t[t]:t})]})}function Yge({post:e}){const{user:t}=_i(),{hate:n,unHate:r}=NS();function i(){e!=null&&e.hated?(e.hates-=1,e.hated=!1,r.mutateAsync({where:{visitorId:(t==null?void 0:t.id)||null,postId:e.id,type:n7.HATE}})):(e.hates+=1,e.hated=!0,n.mutateAsync({data:{visitorId:(t==null?void 0:t.id)||null,postId:e.id,type:n7.HATE}}))}return H.jsxs(Er,{title:e!=null&&e.hated?"取消点踩":"点踩",type:"text",style:{color:e!=null&&e.hated?"#ff4d4f":"#4b5563",boxShadow:"none"},shape:"round",icon:e!=null&&e.hated?H.jsx(WNe,{}):H.jsx(UNe,{}),onClick:o=>{o.stopPropagation(),i()},children:[H.jsx("span",{className:"mr-1",children:"不满意"}),(e==null?void 0:e.hates)||0]})}const{Title:Gii,Paragraph:Wii,Text:XTr}=Kv;function dtt({letter:e}){var t;return H.jsx("div",{onClick:()=>{window.open(`/${e.id}/detail`)},className:`cursor-pointer p-6 bg-slate-100/80 rounded-xl hover:ring-white hover:ring-1 transition-all
2025-02-18 08:35:18 +08:00
duration-300 ease-in-out hover:-translate-y-0.5
active:scale-[0.98] border border-white
2025-04-17 15:35:46 +08:00
group relative overflow-hidden`,children:H.jsxs("div",{className:"flex flex-col gap-4",children:[H.jsx("div",{className:" text-2xl text-primary font-bold flex justify-between gap-2",children:H.jsxs("div",{className:"flex items-center gap-2 ",children:[H.jsx(WS,{className:""}),e.receivers.some(n=>n==null?void 0:n.showname)&&H.jsx("div",{className:"flex items-center gap-2 text-primary-400 ",children:H.jsx(df,{title:(t=e==null?void 0:e.receivers)==null?void 0:t.map(n=>`${n==null?void 0:n.showname}信箱`).filter(Boolean).join(", "),children:H.jsxs(XTr,{className:"text-primary-400 text-2xl flex",children:[H.jsx("span",{children:"[ "}),e.receivers.map(n=>`${n==null?void 0:n.showname}信箱`).filter(Boolean).slice(0,2).join("、"),e.receivers.filter(n=>`${n==null?void 0:n.showname}信箱`).length>2&&" 等",H.jsx("span",{children:" ]"})]})})}),e.title,!(e!=null&&e.isPublic)&&H.jsx("div",{className:" bg-red-600 text-white px-2 py-1 flex justify-center items-center rounded-md text-base font-bold border-2 border-white shadow-md",children:"密"})]})}),H.jsxs("div",{className:"flex justify-between items-center ",children:[H.jsxs("div",{className:"flex flex-wrap gap-2",children:[H.jsx(db,{type:"state",value:e.state}),e.terms.map(n=>H.jsx(db,{type:"category",value:n.name},n.name)),H.jsx(db,{type:"date",value:Kd(e.createdAt).format("YYYY-MM-DD")})]}),H.jsxs("div",{className:"flex items-center",children:[H.jsxs(Er,{type:"text",shape:"round",style:{color:"#4b5563"},icon:H.jsx(GS,{}),children:[H.jsx("span",{className:"mr-1",children:"浏览量"}),e.views]}),H.jsx(Yge,{post:e}),H.jsx(Xge,{post:e})]})]})]})})}function Qge({params:e,search:t=""}){const[n,r]=u.useState(""),[i,o]=u.useState(1);u.useEffect(()=>{r(t||"")},[t]);const{data:a,isLoading:s}=sn.post.findManyWithPagination.useQuery({page:i,pageSize:e.pageSize,where:{OR:[{title:{contains:n}}],...e==null?void 0:e.where},orderBy:{updatedAt:"desc"},select:{...aR,...e.select}}),l=u.useMemo(()=>ctt(f=>{r(f),o(1)},300),[]);u.useEffect(()=>()=>{l.cancel()},[l]);const c=f=>{l(f)},d=f=>{o(f),window.scrollTo({top:0,behavior:"smooth"})};return H.jsxs("div",{className:"flex flex-col h-full",children:[H.jsx("div",{className:"p-6 transition-all ",children:H.jsx(Mr,{value:n,variant:"filled",className:"w-full bg-white",placeholder:"搜索信件标题...",allowClear:!0,size:"large",onChange:f=>c(f.target.value),prefix:H.jsx(U8,{className:"text-gray-400"})})}),H.jsx("div",{className:"flex-grow px-6",children:s?H.jsx("div",{className:"flex justify-center items-center pt-6",children:H.jsx(ml,{size:"large"})}):a!=null&&a.items.length?H.jsxs(H.Fragment,{children:[H.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 lg:grid-cols-1 gap-4 mb-6",children:a.items.map(f=>H.jsx(dtt,{letter:f},f.id))}),H.jsx("div",{className:"flex justify-center pb-6",children:H.jsx(LB,{current:i,total:a.totalCount,pageSize:e.pageSize,onChange:d,showSizeChanger:!1,showQuickJumper:!0})})]}):H.jsx("div",{className:"flex flex-col justify-center items-center pt-6",children:H.jsx(Ld,{description:n?"未找到相关信件":"暂无信件"})})})]})}function YTr({staff:e}){var n,r;const t=()=>{window.open(`/editor?&receiverId=${e.id}`,"_blank")};return H.jsxs("div",{className:"shadow-elegant border border-white rounded-lg overflow-hidden flex transition-transform duration-300 hover:translate-y-[-5px] hover:shadow-lg",children:[H.jsx("div",{className:"w-24 h-32 flex-shrink-0 flex items-center justify-center relative",children:(n=e.meta)!=null&&n.photoUrl?H.jsx("img",{src:(r=e==null?void 0:e.meta)==null?void 0:r.photoUrl,alt:(e==null?void 0:e.showname)||(e==null?void 0:e.username),className:"w-full h-full object-cover"}):H.jsx("div",{className:"flex flex-col items-center justify-center text-gray-400 w-full h-full bg-gray-200",children:H.jsx(US,{style:{fontSize:"32px"}})})}),H.jsxs("div",{className:"flex-1 p-4 flex flex-col justify-center gap-2",children:[H.jsx("h3",{className:"text-xl font-semibold text-primary",children:(e==null?void 0:e.showname)||(e==null?void 0:e.username)||"未知"}),H.jsxs("div",{className:"
2025-02-18 08:35:18 +08:00
投递时间: ${m}
2025-04-17 15:35:46 +08:00
`,C=new Blob([v],{type:"text/plain"});Fc.success("信件投递成功!",{duration:5e3});const y=new URLSearchParams({ownCode:p,submitTime:Kd().format("YYYY-MM-DD HH:mm:ss")});s.isPublic?i("/",{state:{successMessage:"信件提交成功",ownCode:p}}):i(`/submission-success?${y}`,{state:{ownCode:p,submitTime:Kd().format("YYYY-MM-DD HH:mm:ss")}}),o.resetFields()}catch(f){console.error("Error submitting form:",f),Fc.error("操作失败,请重试!")}};return H.jsx(htt.Provider,{value:{onSubmit:a,receiverId:t,termId:n,form:o},children:e})}const d_r=()=>{const e=u.useContext(htt);if(!e)throw new Error("useLetterEditor must be used within LetterFormProvider");return e};var ptt=typeof global=="object"&&global&&global.Object===Object&&global,f_r=typeof self=="object"&&self&&self.Object===Object&&self,Hp=ptt||f_r||Function("return this")(),Fv=Hp.Symbol,gtt=Object.prototype,h_r=gtt.hasOwnProperty,p_r=gtt.toString,Nx=Fv?Fv.toStringTag:void 0;function g_r(e){var t=h_r.call(e,Nx),n=e[Nx];try{e[Nx]=void 0;var r=!0}catch{}var i=p_r.call(e);return r&&(t?e[Nx]=n:delete e[Nx]),i}var m_r=Object.prototype,v_r=m_r.toString;function C_r(e){return v_r.call(e)}var y_r="[object Null]",b_r="[object Undefined]",yOe=Fv?Fv.toStringTag:void 0;function d9(e){return e==null?e===void 0?b_r:y_r:yOe&&yOe in Object(e)?g_r(e):C_r(e)}function Sm(e){return e!=null&&typeof e=="object"}var M8=Array.isArray;function M4(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function mtt(e){return e}var S_r="[object AsyncFunction]",w_r="[object Function]",x_r="[object GeneratorFunction]",$_r="[object Proxy]";function Zge(e){if(!M4(e))return!1;var t=d9(e);return t==w_r||t==x_r||t==S_r||t==$_r}var Pee=Hp["__core-js_shared__"],bOe=function(){var e=/[^.]+$/.exec(Pee&&Pee.keys&&Pee.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function E_r(e){return!!bOe&&bOe in e}var R_r=Function.prototype,O_r=R_r.toString;function HC(e){if(e!=null){try{return O_r.call(e)}catch{}try{return e+""}catch{}}return""}var M_r=/[\\^$.*+?()[\]{}|]/g,P_r=/^\[object .+?Constructor\]$/,I_r=Function.prototype,T_r=Object.prototype,__r=I_r.toString,F_r=T_r.hasOwnProperty,A_r=RegExp("^"+__r.call(F_r).replace(M_r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D_r(e){if(!M4(e)||E_r(e))return!1;var t=Zge(e)?A_r:P_r;return t.test(HC(e))}function L_r(e,t){return e==null?void 0:e[t]}function jC(e,t){var n=L_r(e,t);return D_r(n)?n:void 0}var nse=jC(Hp,"WeakMap"),SOe=Object.create,N_r=function(){function e(){}return function(t){if(!M4(t))return{};if(SOe)return SOe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function z_r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vtt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var k_r=800,B_r=16,H_r=Date.now;function j_r(e){var t=0,n=0;return function(){var r=H_r(),i=B_r-(r-n);if(n=r,i>0){if(++t>=k_r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function V_r(e){return function(){return e}}var GN=function(){try{var e=jC(Object,"defineProperty");return e({},"",{}),e}catch{}}(),G_r=GN?function(e,t){return GN(e,"toString",{configurable:!0,enumerable:!1,value:V_r(t),writable:!0})}:mtt,W_r=j_r(G_r);function U_r(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var q_r=9007199254740991,K_r=/^(?:0|[1-9]\d*)$/;function Ctt(e,t){var n=typeof e;return t=t??q_r,!!t&&(n=="number"||n!="symbol"&&K_r.test(e))&&e>-1&&e%1==0&&e<t}function Jge(e,t,n){t=="__proto__"&&GN?GN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lI(e,t){return e===t||e!==e&&t!==t}var X_r=Object.prototype,Y_r=X_r.hasOwnProperty;function ytt(e,t,n){var r=e[t];(!(Y_r.call(e,t)&&lI(r,n))||n===void 0&&!(t in e))&&Jge(e,t,n)}function cI(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?Jge(n,s,l):ytt(n,s,l)}return n}var wOe=Math.max;function Q_r(e,t,n){return t=wOe(t
`){const g=new s.default(this.ops);let m=new d,v=0;for(;g.hasNext();){if(g.peekType()!=="insert")return;const C=g.peek(),y=a.default.length(C)-g.peekLength(),b=typeof C.insert=="string"?C.insert.indexOf(p,y)-y:-1;if(b<0)m.push(g.next());else if(b>0)m.push(g.next(b));else{if(h(m,g.next(1).attributes||{},v)===!1)return;v+=1,m=new d}}m.length()>0&&h(m,{},v)}invert(h){const p=new d;return this.reduce((g,m)=>{if(m.insert)p.delete(a.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return p.retain(m.retain),g+m.retain;if(m.delete||typeof m.retain=="number"){const v=m.delete||m.retain;return h.slice(g,g+v).forEach(y=>{m.delete?p.push(y):m.retain&&m.attributes&&p.retain(a.default.length(y),o.default.invert(m.attributes,y.attributes))}),g+v}else if(typeof m.retain=="object"&&m.retain!==null){const v=h.slice(g,g+1),C=new s.default(v.ops).next(),[y,b,S]=c(m.retain,C.insert),w=d.getHandler(y);return p.retain({[y]:w.invert(b,S)},o.default.invert(m.attributes,C.attributes)),g+1}}return g},0),p.chop()}transform(h,p=!1){if(p=!!p,typeof h=="number")return this.transformPosition(h,p);const g=h,m=new s.default(this.ops),v=new s.default(g.ops),C=new d;for(;m.hasNext()||v.hasNext();)if(m.peekType()==="insert"&&(p||v.peekType()!=="insert"))C.retain(a.default.length(m.next()));else if(v.peekType()==="insert")C.push(v.next());else{const y=Math.min(m.peekLength(),v.peekLength()),b=m.next(y),S=v.next(y);if(b.delete)continue;if(S.delete)C.push(S);else{const w=b.retain,x=S.retain;let $=typeof x=="object"&&x!==null?x:y;if(typeof w=="object"&&w!==null&&typeof x=="object"&&x!==null){const R=Object.keys(w)[0];if(R===Object.keys(x)[0]){const O=d.getHandler(R);O&&($={[R]:O.transform(w[R],x[R],p)})}}C.retain($,o.default.transform(b.attributes,S.attributes,p))}}return C.chop()}transformPosition(h,p=!1){p=!!p;const g=new s.default(this.ops);let m=0;for(;g.hasNext()&&m<=h;){const v=g.peekLength(),C=g.peekType();if(g.next(),C==="delete"){h-=Math.min(v,h-m);continue}else C==="insert"&&(m<h||!p)&&(h+=v);m+=v}return h}}d.Op=a.default,d.OpIterator=s.default,d.AttributeMap=o.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d})(pse,pse.exports);var Gd=pse.exports;const Hn=sf(Gd);class o1 extends Gu{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}o1.blotName="break";o1.tagName="BR";let jh=class extends qN{};const sNr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function oK(e){return e.replace(/[&<>"']/g,t=>sNr[t])}const P1=class P1 extends lme{static compare(t,n){const r=P1.order.indexOf(t),i=P1.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}formatAt(t,n,r,i){if(P1.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Gn.BLOT)){const o=this.isolate(t,n);i&&o.wrap(r,i)}else super.formatAt(t,n,r,i)}optimize(t){if(super.optimize(t),this.parent instanceof P1&&P1.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};Bt(P1,"allowedChildren",[P1,o1,Gu,jh]),Bt(P1,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let bp=P1;const ZOe=1;class Ts extends YR{constructor(){super(...arguments);Bt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Jtt(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,i,o){r<=0||(this.scroll.query(i,Gn.BLOCK)?n+r===this.length()&&this.format(i,o):super.formatAt(n,Math.min(r,this.length()-n-1),i,o),this.cache={})}insertAt(n,r,i){if(i!=null){super.insertAt(n,r,i),this.cache={};return}if(r.length===0)return;const o=r.split(`
`),a=o.shift();a.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let s=this;o.reduce((l,c)=>(s=s.split(l,!0),s.insertAt(0,c),c.length),n+a.length)}insertBefore(n,r){const{head:i}=this.children;super.insertBefore(n,r),i instanceof o1&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+ZOe),this.cache.length}moveChildren(n,r){super.moveChildren(n,r),this.cache={}}optimize(n){super.optimize(n),this.cache={}}path(n){return super.path(n,!0)}removeChild(n){super.removeChild(n),this.cache={}}split(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(n===0||n>=this.length()-ZOe)){const o=this.clone();return n===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const i=super.split(n,r);return this.cache={},i}}Ts.blotName="block";Ts.tagName="P";Ts.defaultChild=o1;Ts.allowedChildren=[o1,bp,Gu,jh];class zd extends Gu{attach(){super.attach(),this.attributes=new eK(this.domNode)}delta(){return new Hn().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const r=this.scroll.query(t,Gn.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(t,n,r,i){this.format(r,i)}insertAt(t,n,r){if(r!=null){super.insertAt(t,n,r);return}const i=n.split(`
`),o=i.pop(),a=i.map(l=>{const c=this.scroll.create(Ts.blotName);return c.insertAt(0,l),c}),s=this.split(t);a.forEach(l=>{this.parent.insertBefore(l,s)}),o&&this.parent.insertBefore(this.scroll.create("text",o),s)}}zd.scope=Gn.BLOCK_BLOT;function Jtt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(ol).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),_d(r,{},t)),new Hn).insert(`
`,_d(e))}function _d(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e==null||("formats"in e&&typeof e.formats=="function"&&(t={...t,...e.formats()},n&&delete t["code-token"]),e.parent==null||e.parent.statics.blotName==="scroll"||e.parent.statics.scope!==e.statics.scope)?t:_d(e.parent,t,n)}const vd=class vd extends Gu{static value(){}constructor(t,n,r){super(t,n),this.selection=r,this.textNode=document.createTextNode(vd.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,n){if(this.savedLength!==0){super.format(t,n);return}let r=this,i=0;for(;r!=null&&r.statics.scope!==Gn.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=vd.CONTENTS.length,r.optimize(),r.formatAt(i,vd.CONTENTS.length,t,n),this.savedLength=0)}index(t,n){return t===this.textNode?0:super.index(t,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof jh?this.prev:null,r=n?n.length():0,i=this.next instanceof jh?this.next:null,o=i?i.text:"",{textNode:a}=this,s=a.data.split(vd.CONTENTS).join("");a.data=vd.CONTENTS;let l;if(n)l=n,(s||i)&&(n.insertAt(n.length(),s+o),i&&i.remove());else if(i)l=i,i.insertAt(0,s);else{const c=document.createTextNode(s);l=this.scroll.create(c),this.parent.insertBefore(l,this)}if(this.remove(),t){const c=(h,p)=>n&&h===n.domNode?p:h===a?r+p-1:i&&h===i.domNode?r+s.length+p:null,d=c(t.start.node,t.start.offset),f=c(t.end.node,t.end.offset);if(d!==null&&f!==null)return{startNode:l.domNode,startOffset:d,endNode:l.domNode,endOffset:f}}return null}update(t,n){if(t.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(n.range=r)}}optimize(t){super.optimize(t);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=vd.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}};Bt(vd,"blotName","cursor"),Bt(vd,"className","ql-cursor"),Bt(vd,"tagName","span"),Bt(vd,"CONTENTS","\uFEFF");let CS=vd;var ent={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function o(l,c,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new i(d,f||l,h),g=n?n+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],p]:l._events[g].push(p):(l._events[g]=p,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],d,f;if(this._eventsCount===0)return c;for(f in d=this._events)t.call(d,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},s.prototype.listeners=function(c){var d=n?n+c:c,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,g=new Array(p);h<p;h++)g[h]=f[h].fn;return g},s.prototype.listenerCount=function(c){var d=n?n+c:c,f=this._events[d];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,d,f,h,p,g){var m=n?n+c:c;if(!this._events[m])return!1;var v=this._events[m],C=arguments.length,y,b;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),C){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,h),!0;case 5:return v.fn.call(v.context,d,f,h,p),!0;case 6:return v.fn.call(v.context,d,f,h,p,g),!0}for(b=1,y=new Array(C-1);b<C;b++)y[b-1]=arguments[b];v.fn.apply(v.context
`)&&(n<=a||!!this.scroll.descendant(zd,a)[0]),this.scroll.insertAt(a,g);const[m,v]=this.scroll.line(a);let C=ev({},_d(m));if(m instanceof Ts){const[y]=m.descendant(ol,v);y&&(C=ev(C,_d(y)))}c=Gd.AttributeMap.diff(C,c)||{}}else if(typeof s.insert=="object"){const g=Object.keys(s.insert)[0];if(g==null)return a;const m=this.scroll.query(g,Gn.INLINE)!=null;if(m)(n<=a||this.scroll.descendant(zd,a)[0])&&(f=!0);else if(a>0){const[v,C]=this.scroll.descendant(ol,a-1);v instanceof jh?v.value()[C]!==`
`&&(d=!0):v instanceof Gu&&v.statics.scope===Gn.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(a,g,s.insert[g]),m){const[v]=this.scroll.descendant(ol,a);if(v){const C=ev({},_d(v));c=Gd.AttributeMap.diff(C,c)||{}}}}n+=l}else if(i.push(s),s.retain!==null&&typeof s.retain=="object"){const g=Object.keys(s.retain)[0];if(g==null)return a;this.scroll.updateEmbedAt(a,g,s.retain[g])}Object.keys(c).forEach(g=>{this.scroll.formatAt(a,l,g,c[g])});const h=d?1:0,p=f?1:0;return n+=h+p,i.retain(h),i.delete(p),a+l+h+p},0),i.reduce((a,s)=>typeof s.delete=="number"?(this.scroll.deleteAt(a,s.delete),a):a+Gd.Op.length(s),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new Hn().retain(t).delete(n))}formatLine(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(o=>{this.scroll.lines(t,Math.max(n,1)).forEach(a=>{a.format(o,r[o])})}),this.scroll.optimize();const i=new Hn().retain(t).retain(n,fb(r));return this.update(i)}formatText(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(o=>{this.scroll.formatAt(t,n,o,r[o])});const i=new Hn().retain(t).retain(n,fb(r));return this.update(i)}getContents(t,n){return this.delta.slice(t,t+n)}getDelta(){return this.scroll.lines().reduce((t,n)=>t.concat(n.delta()),new Hn)}getFormat(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],i=[];n===0?this.scroll.path(t).forEach(s=>{const[l]=s;l instanceof Ts?r.push(l):l instanceof ol&&i.push(l)}):(r=this.scroll.lines(t,n),i=this.scroll.descendants(ol,t,n));const[o,a]=[r,i].map(s=>{const l=s.shift();if(l==null)return{};let c=_d(l);for(;Object.keys(c).length>0;){const d=s.shift();if(d==null)return c;c=pNr(_d(d),c)}return c});return{...o,...a}}getHTML(t,n){const[r,i]=this.scroll.line(t);if(r){const o=r.length();return r.length()>=i+n&&!(i===0&&n===o)?ZR(r,i,n,!0):ZR(this.scroll,t,n,!0)}return""}getText(t,n){return this.getContents(t,n).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(t,n){const r=JOe(n),i=new Hn().retain(t).concat(r);return this.scroll.insertContents(t,r),this.update(i)}insertEmbed(t,n,r){return this.scroll.insertAt(t,n,r),this.update(new Hn().retain(t).insert({[n]:r}))}insertText(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n=n.replace(/\r\n/g,`
2025-02-18 08:35:18 +08:00
`).replace(/\r/g,`
2025-04-17 15:35:46 +08:00
`),this.scroll.insertAt(t,n),Object.keys(r).forEach(i=>{this.scroll.formatAt(t,n.length,i,r[i])}),this.update(new Hn().retain(t).insert(n,fb(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==Ts.blotName)return!1;const n=t;return n.children.length>1?!1:n.children.head instanceof o1}removeFormat(t,n){const r=this.getText(t,n),[i,o]=this.scroll.line(t+n);let a=0,s=new Hn;i!=null&&(a=i.length()-o,s=i.delta().slice(o,o+a-1).insert(`
2025-04-17 10:18:46 +08:00
`));const c=this.getContents(t,n+a).diff(new Hn().insert(r).concat(s)),d=new Hn().retain(t).concat(c);return this.applyDelta(d)}update(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(n.length===1&&n[0].type==="characterData"&&n[0].target.data.match(fNr)&&this.scroll.find(n[0].target)){const o=this.scroll.find(n[0].target),a=_d(o),s=o.offset(this.scroll),l=n[0].oldValue.replace(CS.CONTENTS,""),c=new Hn().insert(l),d=new Hn().insert(o.value()),f=r&&{oldRange:eMe(r.oldRange,-s),newRange:eMe(r.newRange,-s)};t=new Hn().retain(s).concat(c.diff(d,f)).reduce((p,g)=>g.insert?p.insert(g.insert,a):p.push(g),new Hn),this.delta=i.compose(t)}else this.delta=this.getDelta(),(!t||!sme(i.compose(t),this.delta))&&(t=i.diff(this.delta,r));return t}}function hy(e,t,n){if(e.length===0){const[p]=Nee(n.pop());return t<=0?`</li></${p}>`:`</li></${p}>${hy([],t-1,n)}`}const[{child:r,offset:i,length:o,indent:a,type:s},...l]=e,[c,d]=Nee(s);if(a>t)return n.push(s),a===t+1?`<${c}><li${d}>${ZR(r,i,o)}${hy(l,a,n)}`:`<${c}><li>${hy(e,t+1,n)}`;const f=n[n.length-1];if(a===t&&s===f)return`</li><li${d}>${ZR(r,i,o)}${hy(l,a,n)}`;const[h]=Nee(n.pop());return`</li></${h}>${hy(e,t-1,n)}`}function ZR(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in e&&typeof e.html=="function")return e.html(t,n);if(e instanceof jh)return oK(e.value().slice(t,t+n)).replaceAll(" ","&nbsp;");if(e instanceof Mh){if(e.statics.blotName==="list-container"){const c=[];return e.children.forEachAt(t,n,(d,f,h)=>{const p="formats"in d&&typeof d.formats=="function"?d.formats():{};c.push({child:d,offset:f,length:h,indent:p.indent||0,type:p.list})}),hy(c,-1,[])}const i=[];if(e.children.forEachAt(t,n,(c,d,f)=>{i.push(ZR(c,d,f))}),r||e.statics.blotName==="list")return i.join("");const{outerHTML:o,innerHTML:a}=e.domNode,[s,l]=o.split(`>${a}<`);return s==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${l}`:`${s}>${i.join("")}<${l}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function pNr(e,t){return Object.keys(t).reduce((n,r)=>{if(e[r]==null)return n;const i=t[r];return i===e[r]?n[r]=i:Array.isArray(i)?i.indexOf(e[r])<0?n[r]=i.concat([e[r]]):n[r]=i:n[r]=[i,e[r]],n},{})}function Nee(e){const t=e==="ordered"?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function JOe(e){return e.reduce((t,n)=>{if(typeof n.insert=="string"){const r=n.insert.replace(/\r\n/g,`
2025-02-18 08:35:18 +08:00
`).replace(/\r/g,`
2025-04-17 10:18:46 +08:00
`);return t.insert(r,n.attributes)}return t.push(n)},new Hn)}function eMe(e,t){let{index:n,length:r}=e;return new I8(n+t,r)}function gNr(e){const t=[];return e.forEach(n=>{typeof n.insert=="string"?n.insert.split(`
2025-02-18 08:35:18 +08:00
`).forEach((i,o)=>{o&&t.push({insert:`
2025-04-17 10:18:46 +08:00
`,attributes:n.attributes}),i&&t.push({insert:i,attributes:n.attributes})}):t.push(n)}),t}class a1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=n}}Bt(a1,"DEFAULTS",{});const EF="\uFEFF";class pme extends Gu{constructor(t,n){super(t,n),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(EF),this.rightGuard=document.createTextNode(EF),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,n)}restore(t){let n=null,r;const i=t.data.split(EF).join("");if(t===this.leftGuard)if(this.prev instanceof jh){const o=this.prev.length();this.prev.insertAt(o,i),n={startNode:this.prev.domNode,startOffset:o+i.length}}else r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this),n={startNode:r,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof jh?(this.next.insertAt(0,i),n={startNode:this.next.domNode,startOffset:i.length}):(r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this.next),n={startNode:r,startOffset:i.length}));return t.data=EF,n}update(t,n){t.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const i=this.restore(r.target);i&&(n.range=i)}})}}class mNr{constructor(t,n){Bt(this,"isComposing",!1);this.scroll=t,this.emitter=n,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const n=t.target instanceof Node?this.scroll.find(t.target,!0):null;n&&!(n instanceof pme)&&(this.emitter.emit(Fn.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(Fn.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(Fn.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(Fn.events.COMPOSITION_END,t),this.isComposing=!1}}const CE=class CE{constructor(t,n){Bt(this,"modules",{});this.quill=t,this.options=n}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const n=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t]}};Bt(CE,"DEFAULTS",{modules:{}}),Bt(CE,"themes",{default:CE});let yS=CE;const vNr=e=>e.parentElement||e.getRootNode().host||null,CNr=e=>{const t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,r="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*r,left:t.left}},RF=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},tMe=(e,t,n,r,i,o)=>e<n&&t>r?0:e<n?-(n-e+i):t>r?t-e>r-n?e+i-n:t-r+o:0,yNr=(e,t)=>{var o,a,s;const n=e.ownerDocument;let r=t,i=e;for(;i;){const l=i===n.body,c=l?{top:0,right:((o=window.visualViewport)==null?void 0:o.width)??n.documentElement.clientWidth,bottom:((a=window.visualViewport)==null?void 0:a.height)??n.documentElement.clientHeight,left:0}:CNr(i),d=getComputedStyle(i),f=tMe(r.left,r.right,c.left,c.right,RF(d.scrollPaddingLeft),RF(d.scrollPaddingRight)),h=tMe(r.top,r.bottom,c.top,c.bottom,RF(d.scrollPaddingTop),RF(d.scrollPaddingBottom));if(f||h)if(l)(s=n.defaultView)==null||s.scrollBy(f,h);else{const{scrollLeft:p,scrollTop:g}=i;h&&(i.scrollTop+=h),f&&(i.scrollLeft+=f);const m=i.scrollLeft-p,v=i.scrollTop-g;r={left:r.left-m,top:r.top-v,right:r.right-m,bottom:r.bottom-v}}i=l||d.position==="fixed"?null:vNr(i)}},bNr=100,SNr=["block","break","cursor","inline","scroll","text"],wNr=(e,t,n)=>{const r=new vS;return SNr.forEach(i=>{const o=t.query(i);o&&r.register(o)}
2025-04-17 15:35:46 +08:00
`});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const r=t;t=document.createElement("div"),t.classList.add(r)}return this.container.insertBefore(t,n),t}blur(){this.selection.setRange(null)}deleteText(t,n,r){return[t,n,,r]=vg(t,n,r),Lf.call(this,()=>this.editor.deleteText(t,n),r,t,-1*n)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const n=t();return this.allowReadOnlyEdits=!1,n}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fn.sources.API;return Lf.call(this,()=>{const i=this.getSelection(!0);let o=new Hn;if(i==null)return o;if(this.scroll.query(t,Gn.BLOCK))o=this.editor.formatLine(i.index,i.length,{[t]:n});else{if(i.length===0)return this.selection.format(t,n),o;o=this.editor.formatText(i.index,i.length,{[t]:n})}return this.setSelection(i,Fn.sources.SILENT),o},r)}formatLine(t,n,r,i,o){let a;return[t,n,a,o]=vg(t,n,r,i,o),Lf.call(this,()=>this.editor.formatLine(t,n,a),o,t,0)}formatText(t,n,r,i,o){let a;return[t,n,a,o]=vg(t,n,r,i,o),Lf.call(this,()=>this.editor.formatText(t,n,a),o,t,0)}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof t=="number"?r=this.selection.getBounds(t,n):r=this.selection.getBounds(t.index,t.length),!r)return null;const i=this.container.getBoundingClientRect();return{bottom:r.bottom-i.top,height:r.height,left:r.left-i.left,right:r.right-i.left,top:r.top-i.top,width:r.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,n]=vg(t,n),this.editor.getContents(t,n)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,n):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,n)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=vg(t,n),this.editor.getHTML(t,n)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=vg(t,n),this.editor.getText(t,n)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Wf.sources.API;return Lf.call(this,()=>this.editor.insertEmbed(t,n,r),i,t)}insertText(t,n,r,i,o){let a;return[t,,a,o]=vg(t,0,r,i,o),Lf.call(this,()=>this.editor.insertText(t,n,a),o,t,n.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,n,r){return[t,n,,r]=vg(t,n,r),Lf.call(this,()=>this.editor.removeFormat(t,n),r,t)}scrollRectIntoView(t){yNr(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecate
2025-04-17 10:18:46 +08:00
`)?i.insertAt(0,n.slice(0,-1),r):i.insertAt(0,n,r)}else{const i=this.scroll.create(n,r);this.appendChild(i)}else super.insertAt(t,n,r);this.optimize()}insertBefore(t,n){if(t.statics.scope===Gn.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),super.insertBefore(r,n)}else super.insertBefore(t,n)}insertContents(t,n){const r=this.deltaToRenderBlocks(n.concat(new Hn().insert(`
`))),i=r.pop();if(i==null)return;this.batchStart();const o=r.shift();if(o){const l=o.type==="block"&&(o.delta.length()===0||!this.descendant(zd,t)[0]&&t<this.length()),c=o.type==="block"?o.delta:new Hn().insert({[o.key]:o.value});kee(this,t,c);const d=o.type==="block"?1:0,f=t+c.length()+d;l&&this.insertAt(f-1,`
2025-04-17 15:35:46 +08:00
`);const h=_d(this.line(t)[0]),p=Gd.AttributeMap.diff(h,o.attributes)||{};Object.keys(p).forEach(g=>{this.formatAt(f-1,1,g,p[g])}),t=f}let[a,s]=this.children.find(t);if(r.length&&(a&&(a=a.split(s),s=0),r.forEach(l=>{if(l.type==="block"){const c=this.createBlock(l.attributes,a||void 0);kee(c,0,l.delta)}else{const c=this.create(l.key,l.value);this.insertBefore(c,a||void 0),Object.keys(l.attributes).forEach(d=>{c.format(d,l.attributes[d])})}})),i.type==="block"&&i.delta.length()){const l=a?a.offset(a.scroll)+s:this.length();kee(this,l,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const n=this.path(t).pop();if(!n)return[null,-1];const[r,i]=n;return r instanceof ol?[r,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(oMe,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(i,o,a)=>{let s=[],l=a;return i.children.forEachAt(o,a,(c,d,f)=>{oMe(c)?s.push(c):c instanceof tK&&(s=s.concat(r(c,d,l))),l-=f}),s};return r(this,t,n)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,n),t.length>0&&this.emitter.emit(Fn.events.SCROLL_OPTIMIZE,t,n))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let n=Fn.sources.USER;typeof t=="string"&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(r=>{let{target:i}=r;const o=this.find(i,!0);return o&&!aMe(o)}),t.length>0&&this.emitter.emit(Fn.events.SCROLL_BEFORE_UPDATE,n,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(Fn.events.SCROLL_UPDATE,n,t)}updateEmbedAt(t,n,r){const[i]=this.descendant(o=>o instanceof zd,t);i&&i.statics.blotName===n&&aMe(i)&&i.updateContent(r)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const n=[];let r=new Hn;return t.forEach(i=>{const o=i==null?void 0:i.insert;if(o)if(typeof o=="string"){const a=o.split(`
`);a.slice(0,-1).forEach(l=>{r.insert(l,i.attributes),n.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new Hn});const s=a[a.length-1];s&&r.insert(s,i.attributes)}else{const a=Object.keys(o)[0];if(!a)return;this.query(a,Gn.INLINE)?r.push(i):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new Hn,n.push({type:"blockEmbed",key:a,value:o[a],attributes:i.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(t,n){let r;const i={};Object.entries(t).forEach(s=>{let[l,c]=s;this.query(l,Gn.BLOCK&Gn.BLOT)!=null?r=l:i[l]=c});const o=this.create(r||this.statics.defaultChild.blotName,r?t[r]:void 0);this.insertBefore(o,n||void 0);const a=o.length();return Object.entries(i).forEach(s=>{let[l,c]=s;o.formatAt(0,a,l,c)}),o}}Bt(py,"blotName","scroll"),Bt(py,"className","ql-editor"),Bt(py,"tagName","DIV"),Bt(py,"defaultChild",Ts),Bt(py,"allowedChildren",[Ts,zd,GC]);function kee(e,t,n){n.reduce((r,i)=>{const o=Gd.Op.length(i);let a=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const s=i.insert;e.insertAt(r,s);const[l]=e.descendant(ol,r),c=_d(l);a=Gd.AttributeMap.diff(c,a)||{}}else if(typeof i.insert=="object"){const s=Object.keys(i.insert)[0];if(s==null)return r;if(e.insertAt(r,s,i.insert[s]),e.scroll.query(s,Gn.INLINE)!=null){const[c]=e.descendant(ol,r),d=_d(c);a=Gd.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(s=>{e.formatAt(r,o,s,a[s])}),r+o},t)}const gme={scope:Gn.BLOCK,whitelist:["right","center","justify"]},$Nr=new yp("align","align",gme),nnt=new i1("align","ql-align",gme),rnt=new P4("align","text-align",gme);class int extends P4{value(t){let n=super.value(t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):n}}const ENr=new i1("color","ql-color",{scope:Gn.INLINE}),mme=new int("color","color",{scope:Gn.INLINE}),RNr=new i1("background","ql-bg",{scope:Gn.INLINE}),vme=new int("background","background-color",{scope:Gn.INLINE});class WC extends GC{static create(t){const n=super.create(t);return n.setAttribute("spellcheck","false"),n}code(t,n){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
2025-02-18 08:35:18 +08:00
`).slice(t,t+n)}html(t,n){return`<pre>
2025-04-17 10:18:46 +08:00
${oK(this.code(t,n))}
2025-04-17 15:35:46 +08:00
</pre>`}}class fl extends Ts{static register(){Ht.register(WC)}}Bt(fl,"TAB"," ");class Cme extends bp{}Cme.blotName="code";Cme.tagName="CODE";fl.blotName="code-block";fl.className="ql-code-block";fl.tagName="DIV";WC.blotName="code-block-container";WC.className="ql-code-block-container";WC.tagName="DIV";WC.allowedChildren=[fl];fl.allowedChildren=[jh,o1,CS];fl.requiredContainer=WC;const yme={scope:Gn.BLOCK,whitelist:["rtl"]},ont=new yp("direction","dir",yme),ant=new i1("direction","ql-direction",yme),snt=new P4("direction","direction",yme),lnt={scope:Gn.INLINE,whitelist:["serif","monospace"]},cnt=new i1("font","ql-font",lnt);class ONr extends P4{value(t){return super.value(t).replace(/["']/g,"")}}const unt=new ONr("font","font-family",lnt),dnt=new i1("size","ql-size",{scope:Gn.INLINE,whitelist:["small","large","huge"]}),fnt=new P4("size","font-size",{scope:Gn.INLINE,whitelist:["10px","18px","32px"]}),MNr=e0("quill:keyboard"),PNr=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class aK extends a1{static match(t,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!n[r]!==t[r]&&n[r]!==null)?!1:n.key===t.key||n.key===t.which}constructor(t,n){super(t,n),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=TNr(t);if(i==null){MNr.warn("Attempted to add invalid keyboard binding",i);return}typeof n=="function"&&(n={handler:n}),typeof r=="function"&&(r={handler:r}),(Array.isArray(i.key)?i.key:[i.key]).forEach(a=>{const s={...i,key:a,...n,...r};this.bindings[s.key]=this.bindings[s.key]||[],this.bindings[s.key].push(s)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const i=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(C=>aK.match(t,C));if(i.length===0)return;const o=Ht.find(t.target,!0);if(o&&o.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[s,l]=this.quill.getLine(a.index),[c,d]=this.quill.getLeaf(a.index),[f,h]=a.length===0?[c,d]:this.quill.getLeaf(a.index+a.length),p=c instanceof qN?c.value().slice(0,d):"",g=f instanceof qN?f.value().slice(h):"",m={collapsed:a.length===0,empty:a.length===0&&s.length()<=1,format:this.quill.getFormat(a),line:s,offset:l,prefix:p,suffix:g,event:t};i.some(C=>{if(C.collapsed!=null&&C.collapsed!==m.collapsed||C.empty!=null&&C.empty!==m.empty||C.offset!=null&&C.offset!==m.offset)return!1;if(Array.isArray(C.format)){if(C.format.every(y=>m.format[y]==null))return!1}else if(typeof C.format=="object"&&!Object.keys(C.format).every(y=>C.format[y]===!0?m.format[y]!=null:C.format[y]===!1?m.format[y]==null:sme(C.format[y],m.format[y])))return!1;return C.prefix!=null&&!C.prefix.test(m.prefix)||C.suffix!=null&&!C.suffix.test(m.suffix)?!1:C.handler.call(this,a,m,C)!==!0})&&t.preventDefault()})}handleBackspace(t,n){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let i={};const[o]=this.quill.getLine(t.index);let a=new Hn().retain(t.index-r).delete(r);if(n.offset===0){con
2025-04-17 10:18:46 +08:00
`,r);this.quill.updateContents(i,Ht.sources.USER),this.quill.setSelection(t.index+1,Ht.sources.SILENT),this.quill.focus()}}const INr={bindings:{bold:Bee("bold"),italic:Bee("italic"),underline:Bee("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",Ht.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",Ht.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(e,t){t.format.indent!=null?this.quill.format("indent","-1",Ht.sources.USER):t.format.list!=null&&this.quill.format("list",!1,Ht.sources.USER)}},"indent code-block":sMe(!0),"outdent code-block":sMe(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,Ht.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=new Hn().retain(e.index).delete(e.length).insert(" ");return this.quill.updateContents(n,Ht.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,Ht.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Ht.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(e,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,Ht.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(e){const[t,n]=this.quill.getLine(e.index),r={...t.formats(),list:"checked"},i=new Hn().retain(e.index).insert(`
`,r).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Ht.sources.USER),this.quill.setSelection(e.index+1,Ht.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(e,t){const[n,r]=this.quill.getLine(e.index),i=new Hn().retain(e.index).insert(`
`,t.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,Ht.sources.USER),this.quill.setSelection(e.index+1,Ht.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(e){const t=this.quill.getModule("table");if(t){const[n,r,i,o]=t.getTable(e),a=_Nr(n,r,i,o);if(a==null)return;let s=n.offset();if(a<0){const l=new Hn().retain(s).insert(`
`);this.quill.updateContents(l,Ht.sources.USER),this.quill.setSelection(e.index+1,e.length,Ht.sources.SILENT)}else if(a>0){s+=n.length();const l=new Hn().retain(s).insert(`
2025-04-17 15:35:46 +08:00
`);this.quill.updateContents(l,Ht.sources.USER),this.quill.setSelection(s,Ht.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(e,t){const{event:n,line:r}=t,i=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(i-1,Ht.sources.USER):this.quill.setSelection(i+r.length(),Ht.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(e,t){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=t.prefix,[r,i]=this.quill.getLine(e.index);if(i>n)return!0;let o;switch(t.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(e.index," ",Ht.sources.USER),this.quill.history.cutoff();const a=new Hn().retain(e.index-i).delete(n+1).retain(r.length()-2-i).retain(1,{list:o});return this.quill.updateContents(a,Ht.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,Ht.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(e){const[t,n]=this.quill.getLine(e.index);let r=2,i=t;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const o=new Hn().retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Ht.sources.USER),this.quill.setSelection(e.index-1,Ht.sources.SILENT),!1}return!0}},"embed left":MF("ArrowLeft",!1),"embed left shift":MF("ArrowLeft",!0),"embed right":MF("ArrowRight",!1),"embed right shift":MF("ArrowRight",!0),"table down":lMe(!1),"table up":lMe(!0)}};aK.DEFAULTS=INr;function sMe(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler(t,n){let{event:r}=n;const i=this.quill.scroll.query("code-block"),{TAB:o}=i;if(t.length===0&&!r.shiftKey){this.quill.insertText(t.index,o,Ht.sources.USER),this.quill.setSelection(t.index+o.length,Ht.sources.SILENT);return}const a=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:s,length:l}=t;a.forEach((c,d)=>{e?(c.insertAt(0,o),d===0?s+=o.length:l+=o.length):c.domNode.textContent.startsWith(o)&&(c.deleteAt(0,o.length),d===0?s-=o.length:l-=o.length)}),this.quill.update(Ht.sources.USER),this.quill.setSelection(s,l,Ht.sources.SILENT)}}}function MF(e,t){return{key:e,shiftKey:t,altKey:null,[e==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:i}=r;e==="ArrowRight"&&(i+=r.length+1);const[o]=this.quill.getLeaf(i);return o instanceof Gu?(e==="ArrowLeft"?t?this.quill.setSelection(r.index-1,r.length+1,Ht.sources.USER):this.quill.setSelection(r.index-1,Ht.sources.USER):t?this.quill.setSelection(r.index,r.length+1,Ht.sources.USER):this.quill.setSelection(r.index+r.length+1,Ht.sources.USER),!1):!0}}}function Bee(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],Ht.sources.USER)}}}function lMe(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const r=e?"prev":"next",i=n.line,o=i.parent[r];if(o!=null){if(o.statics.blotName==="table-row"){let a=o.children.head,s=i;for(;s.prev!=null;)s=s.prev,a=a.next;const l=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(l,0,Ht.sources.USER)}}else{const a=i.table()[r];a!=null&&(e?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,Ht.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,Ht.sources.USER))}return!1}}}function TNr(e){if(typeof e=="string"||typeof e=="number")e={key:e};else if(typeof e=="object")e=fb(e);else return null;return e.shortKey&&(e[PNr]=e.shortKey,delete e.shortKey),e}function bme(e){let{quill:t,range:n}=e;const r=t.getLines(n);let i={};if(r.length>1){const o=r[0].formats(),a=r[r.length-1].formats();i=Gd.AttributeMap.diff(a,o)||{}}t.deleteText(n,Ht.sources.USER),Object.keys(i).length>0&&t.formatLine(n.index,1,i,Ht.sources.USER),t.setSelection(n.index,Ht.sources.SILENT)}function _Nr(e,t,n,r){return t.prev==null&&t.next==null?n.prev==null&&n.next==null?r===0?-1:1:n.prev==null?-1:1:
2025-04-17 10:18:46 +08:00
`)&&(o.ops[o.ops.length-1].attributes==null||i.table)?o.compose(new Hn().retain(o.length()-1).delete(1)):o}normalizeHTML(t){WNr(t)}convertHTML(t){const n=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(n);const r=n.body,i=new WeakMap,[o,a]=this.prepareMatching(r,i);return Sme(this.quill.scroll,r,o,a,i)}dangerouslyPasteHTML(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ht.sources.API;if(typeof t=="string"){const i=this.convert({html:t,text:""});this.quill.setContents(i,n),this.quill.setSelection(0,Ht.sources.SILENT)}else{const i=this.convert({html:n,text:""});this.quill.updateContents(new Hn().retain(t).concat(i),r),this.quill.setSelection(t+i.length(),Ht.sources.SILENT)}}onCaptureCopy(t){var a,s;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:i,text:o}=this.onCopy(r,n);(a=t.clipboardData)==null||a.setData("text/plain",o),(s=t.clipboardData)==null||s.setData("text/html",i),n&&bme({range:r,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(n=>n[0]!=="#").join(`
2025-04-17 15:35:46 +08:00
`)}onCapturePaste(t){var a,s,l,c,d;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=(a=t.clipboardData)==null?void 0:a.getData("text/html");let i=(s=t.clipboardData)==null?void 0:s.getData("text/plain");if(!r&&!i){const f=(l=t.clipboardData)==null?void 0:l.getData("text/uri-list");f&&(i=this.normalizeURIList(f))}const o=Array.from(((c=t.clipboardData)==null?void 0:c.files)||[]);if(!r&&o.length>0){this.quill.uploader.upload(n,o);return}if(r&&o.length>0){const f=new DOMParser().parseFromString(r,"text/html");if(f.body.childElementCount===1&&((d=f.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(n,o);return}}this.onPaste(n,{html:r,text:i})}onCopy(t){const n=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:n}}onPaste(t,n){let{text:r,html:i}=n;const o=this.quill.getFormat(t.index),a=this.convert({text:r,html:i},o);UNr.log("onPaste",a,{text:r,html:i});const s=new Hn().retain(t.index).delete(t.length).concat(a);this.quill.updateContents(s,Ht.sources.USER),this.quill.setSelection(s.length()-t.length,Ht.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,n){const r=[],i=[];return this.matchers.forEach(o=>{const[a,s]=o;switch(a){case Node.TEXT_NODE:i.push(s);break;case Node.ELEMENT_NODE:r.push(s);break;default:Array.from(t.querySelectorAll(a)).forEach(l=>{if(n.has(l)){const c=n.get(l);c==null||c.push(s)}else n.set(l,[s])});break}}),[r,i]}}Bt(hnt,"DEFAULTS",{matchers:[]});function UC(e,t,n,r){return r.query(t)?e.reduce((i,o)=>{if(!o.insert)return i;if(o.attributes&&o.attributes[t])return i.push(o);const a=n?{[t]:n}:{};return i.insert(o.insert,{...a,...o.attributes})},new Hn):e}function dI(e,t){let n="";for(let r=e.ops.length-1;r>=0&&n.length<t.length;--r){const i=e.ops[r];if(typeof i.insert!="string")break;n=i.insert+n}return n.slice(-1*t.length)===t}function I2(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return n&&n.prototype instanceof Gu?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}function XNr(e,t){return e.previousElementSibling&&e.nextElementSibling&&!I2(e.previousElementSibling,t)&&!I2(e.nextElementSibling,t)}const PF=new WeakMap;function pnt(e){return e==null?!1:(PF.has(e)||(e.tagName==="PRE"?PF.set(e,!0):PF.set(e,pnt(e.parentNode))),PF.get(e))}function Sme(e,t,n,r,i){return t.nodeType===t.TEXT_NODE?r.reduce((o,a)=>a(t,o,e),new Hn):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((o,a)=>{let s=Sme(e,a,n,r,i);return a.nodeType===t.ELEMENT_NODE&&(s=n.reduce((l,c)=>c(a,l,e),s),s=(i.get(a)||[]).reduce((l,c)=>c(a,l,e),s)),o.concat(s)},new Hn):new Hn}function Hee(e){return(t,n,r)=>UC(n,e,!0,r)}function YNr(e,t,n){const r=yp.keys(e),i=i1.keys(e),o=P4.keys(e),a={};return r.concat(i).concat(o).forEach(s=>{let l=n.query(s,Gn.ATTRIBUTE);l!=null&&(a[l.attrName]=l.value(e),a[l.attrName])||(l=KNr[s],l!=null&&(l.attrName===s||l.keyName===s)&&(a[l.attrName]=l.value(e)||void 0),l=uMe[s],l!=null&&(l.attrName===s||l.keyName===s)&&(l=uMe[s],a[l.attrName]=l.value(e)||void 0))}),Object.entries(a).reduce((s,l)=>{let[c,d]=l;return UC(s,c,d,n)},t)}function QNr(e,t,n){const r=n.query(e);if(r==null)return t;if(r.prototype instanceof Gu){const i={},o=r.value(e);if(o!=null)return i[r.blotName]=o,new Hn().insert(i,r.formats(e,n))}else if(r.prototype instanceof YR&&!dI(t,`
2025-02-18 08:35:18 +08:00
`)&&t.insert(`
2025-04-17 10:18:46 +08:00
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return UC(t,r.blotName,r.formats(e,n),n);return t}function ZNr(e,t){return dI(t,`
2025-02-18 08:35:18 +08:00
`)||t.insert(`
2025-04-17 10:18:46 +08:00
`),t}function JNr(e,t,n){const r=n.query("code-block"),i=r&&"formats"in r&&typeof r.formats=="function"?r.formats(e,n):!0;return UC(t,"code-block",i,n)}function ezr(){return new Hn}function tzr(e,t,n){const r=n.query(e);if(r==null||r.blotName!=="list"||!dI(t,`
`))return t;let i=-1,o=e.parentNode;for(;o!=null;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?t:t.reduce((a,s)=>s.insert?s.attributes&&typeof s.attributes.indent=="number"?a.push(s):a.insert(s.insert,{indent:i,...s.attributes||{}}):a,new Hn)}function nzr(e,t,n){const r=e;let i=r.tagName==="OL"?"ordered":"bullet";const o=r.getAttribute("data-checked");return o&&(i=o==="true"?"checked":"unchecked"),UC(t,"list",i,n)}function dMe(e,t,n){if(!dI(t,`
`)){if(I2(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert(`
`);if(t.length()>0&&e.nextSibling){let r=e.nextSibling;for(;r!=null;){if(I2(r,n))return t.insert(`
`);const i=n.query(r);if(i&&i.prototype instanceof zd)return t.insert(`
2025-04-17 15:35:46 +08:00
`);r=r.firstChild}}}return t}function rzr(e,t,n){var o;const r={},i=e.style||{};return i.fontStyle==="italic"&&(r.italic=!0),i.textDecoration==="underline"&&(r.underline=!0),i.textDecoration==="line-through"&&(r.strike=!0),((o=i.fontWeight)!=null&&o.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),t=Object.entries(r).reduce((a,s)=>{let[l,c]=s;return UC(a,l,c,n)},t),parseFloat(i.textIndent||0)>0?new Hn().insert(" ").concat(t):t}function izr(e,t,n){var i,o;const r=((i=e.parentElement)==null?void 0:i.tagName)==="TABLE"?e.parentElement:(o=e.parentElement)==null?void 0:o.parentElement;if(r!=null){const s=Array.from(r.querySelectorAll("tr")).indexOf(e)+1;return UC(t,"table",s,n)}return t}function ozr(e,t,n){var i;let r=e.data;if(((i=e.parentElement)==null?void 0:i.tagName)==="O:P")return t.insert(r.trim());if(!pnt(e)){if(r.trim().length===0&&r.includes(`
`)&&!XNr(e,n))return t;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(e.previousSibling==null&&e.parentElement!=null&&I2(e.parentElement,n)||e.previousSibling instanceof Element&&I2(e.previousSibling,n))&&(r=r.replace(/^ /,"")),(e.nextSibling==null&&e.parentElement!=null&&I2(e.parentElement,n)||e.nextSibling instanceof Element&&I2(e.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return t.insert(r)}class gnt extends a1{constructor(n,r){super(n,r);Bt(this,"lastRecorded",0);Bt(this,"ignoreChange",!1);Bt(this,"stack",{undo:[],redo:[]});Bt(this,"currentRange",null);this.quill.on(Ht.events.EDITOR_CHANGE,(i,o,a,s)=>{i===Ht.events.SELECTION_CHANGE?o&&s!==Ht.sources.SILENT&&(this.currentRange=o):i===Ht.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||s===Ht.sources.USER?this.record(o,a):this.transform(o)),this.currentRange=bse(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(n,r){if(this.stack[n].length===0)return;const i=this.stack[n].pop();if(!i)return;const o=this.quill.getContents(),a=i.delta.invert(o);this.stack[r].push({delta:a,range:bse(i.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Ht.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(n,r){if(n.ops.length===0)return;this.stack.redo=[];let i=n.invert(r),o=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const s=this.stack.undo.pop();s&&(i=i.compose(s.delta),o=s.range)}else this.lastRecorded=a;i.length()!==0&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(n){fMe(this.stack.undo,n),fMe(this.stack.redo,n)}undo(){this.change("undo","redo")}restoreSelection(n){if(n.range)this.quill.setSelection(n.range,Ht.sources.USER);else{const r=szr(this.quill.scroll,n.delta);this.quill.setSelection(r,Ht.sources.USER)}}}Bt(gnt,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function fMe(e,t){let n=t;for(let r=e.length-1;r>=0;r-=1){const i=e[r];e[r]={delta:n.transform(i.delta,!0),range:i.range&&bse(i.range,n)},n=i.delta.transform(n),e[r].delta.length()===0&&e.splice(r,1)}}function azr(e,t){const n=t.ops[t.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
`):n.attributes!=null?Object.keys(n.attributes).some(r=>e.query(r,Gn.BLOCK)!=null):!1}function szr(e,t){const n=t.reduce((i,o)=>i+(o.delete||0),0);let r=t.length()-n;return azr(e,t)&&(r-=1),r}function bse(e,t){if(!e)return e;const n=t.transformPosition(e.index),r=t.transformPosition(e.index+e.length);return{index:n,length:r-n}}class mnt extends a1{constructor(t,n){super(t,n),t.root.addEventListener("drop",r=>{var a;r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const s=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(s.offsetNode,s.offset),i.setEnd(s.offsetNode,s.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const s=t.selection.normalizedToRange(o);(a=r.dataTransfer)!=null&&a.files&&this.upload(s,r.dataTransfer.files)}})}upload(t,n){const r=[];Array.from(n).forEach(i=>{var o;i&&((o=this.options.mimetypes)!=null&&o.includes(i.type))&&r.push(i)}),r.length>0&&this.options.handler.call(this,t,r)}}mnt.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const n=t.map(r=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(r)}));Promise.all(n).then(r=>{const i=r.reduce((o,a)=>o.insert({image:a}),new Hn().retain(e.index).delete(e.length));this.quill.updateContents(i,Fn.sources.USER),this.quill.setSelection(e.index+r.length,Fn.sources.SILENT)})}};const lzr=["insertText","insertReplacementText"];class czr extends a1{constructor(t,n){super(t,n),t.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||t.on(Ht.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){bme({range:t,quill:this.quill})}replaceText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(n){const r=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new Hn().retain(t.index).insert(n,r),Ht.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+n.length,0,Ht.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!lzr.includes(t.inputType))return;const n=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=uzr(t);if(r==null)return;const i=this.quill.selection.normalizeNative(n),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,r)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function uzr(e){var t;return typeof e.data=="string"?e.data:(t=e.dataTransfer)!=null&&t.types.includes("text/plain")?e.dataTransfer.getData("text/plain"):null}const dzr=/Mac/i.test(navigator.platform),fzr=100,hzr=e=>!!(e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="Home"||dzr&&e.key==="a"&&e.ctrlKey===!0);class pzr extends a1{constructor(n,r){super(n,r);Bt(this,"isListening",!1);Bt(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(n,r){let{line:i,event:o}=r;if(!(i instanceof Mh)||!i.uiNode)return!0;const a=getComputedStyle(i.domNode).direction==="rtl";return a&&o.key!=="ArrowRight"||!a&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(n.index-1,n.length+(o.shiftKey?1:0),Ht.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",n=>{!n.defaultPrevented&&hzr(n)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+fzr,this.isListening)return;this.isListening=!0;const n=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",n,{once:!0})}handleSelectionChange(){const n=document.getSelection();if(!n)return;const r=n.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!=
2025-02-18 08:35:18 +08:00
`)}
2025-04-17 15:35:46 +08:00
`,o=Fd.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const a=this.children.reduce((l,c)=>l.concat(Jtt(c,!1)),new Hn),s=t(i,o);a.diff(s).reduce((l,c)=>{let{retain:d,attributes:f}=c;return d?(f&&Object.keys(f).forEach(h=>{[Fd.blotName,wm.blotName].includes(h)&&this.formatAt(l,d,h,f[h])}),l+d):l},0)}this.cachedText=i,this.forceNext=!1}}html(t,n){const[r]=this.children.find(t);return`<pre data-language="${r?Fd.formats(r.domNode):"plain"}">
2025-04-17 10:18:46 +08:00
${oK(this.code(t,n))}
2025-04-17 15:35:46 +08:00
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=Fd.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}cE.allowedChildren=[Fd];Fd.requiredContainer=cE;Fd.allowedChildren=[wm,CS,jh,o1];const yzr=(e,t,n)=>{if(typeof e.versionString=="string"){const r=e.versionString.split(".")[0];if(parseInt(r,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value};class Cnt extends a1{static register(){Ht.register(wm,!0),Ht.register(Fd,!0),Ht.register(cE,!0)}constructor(t,n){if(super(t,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,i)=>{let{key:o}=i;return r[o]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Ht.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof cE))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:i,label:o}=r;const a=n.ownerDocument.createElement("option");a.textContent=o,a.setAttribute("value",i),n.appendChild(a)}),n.addEventListener("change",()=>{t.format(Fd.blotName,n.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(n),t.children.head&&(n.value=Fd.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Ht.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Ht.sources.USER);const r=this.quill.getSelection();(t==null?this.quill.scroll.descendants(cE):[t]).forEach(o=>{o.highlight(this.highlightBlot,n)}),this.quill.update(Ht.sources.SILENT),r!=null&&this.quill.setSelection(r,Ht.sources.SILENT)}highlightBlot(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return oK(t).split(`
2025-02-18 08:35:18 +08:00
`).reduce((i,o,a)=>(a!==0&&i.insert(`
2025-04-17 15:35:46 +08:00
`,{[fl.blotName]:n}),i.insert(o)),new Hn);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(fl.className),r.innerHTML=yzr(this.options.hljs,n,t),Sme(this.quill.scroll,r,[(i,o)=>{const a=w$.value(i);return a?o.compose(new Hn().retain(o.length(),{[wm.blotName]:a})):o}],[(i,o)=>i.data.split(`
2025-02-18 08:35:18 +08:00
`).reduce((a,s,l)=>(l!==0&&a.insert(`
2025-04-17 15:35:46 +08:00
`,{[fl.blotName]:n}),a.insert(s)),o)],new WeakMap)}}Cnt.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const yE=class yE extends Ts{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",wme()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===yE.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Bt(yE,"blotName","table"),Bt(yE,"tagName","TD");let uh=yE;class xm extends GC{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===i.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),i=n.next.formats();if(r.table!==i.table){const o=this.splitAfter(n);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Bt(xm,"blotName","table-row"),Bt(xm,"tagName","TR");class op extends GC{}Bt(op,"blotName","table-body"),Bt(op,"tagName","TBODY");class bS extends GC{balanceCells(){const t=this.descendants(xm),n=t.reduce((r,i)=>Math.max(i.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=uh.formats(r.children.head.domNode));const o=this.scroll.create(uh.blotName,i);r.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(op);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t);i!=null&&i.remove()})}insertColumn(t){const[n]=this.descendant(op);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t),o=uh.formats(r.children.head.domNode),a=this.scroll.create(uh.blotName,o);r.insertBefore(a,i)})}insertRow(t){const[n]=this.descendant(op);if(n==null||n.children.head==null)return;const r=wme(),i=this.scroll.create(xm.blotName);n.children.head.children.forEach(()=>{const a=this.scroll.create(uh.blotName,r);i.appendChild(a)});const o=n.children.at(t);n.insertBefore(i,o)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}Bt(bS,"blotName","table-container"),Bt(bS,"tagName","TABLE");bS.allowedChildren=[op];op.requiredContainer=bS;op.allowedChildren=[xm];xm.requiredContainer=op;xm.allowedChildren=[uh];uh.requiredContainer=xm;function wme(){return`row-${Math.random().toString(36).slice(2,6)}`}class bzr extends a1{static register(){Ht.register(uh),Ht.register(xm),Ht.register(op),Ht.register(bS)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(bS).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(Ht.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(Ht.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(Ht.sources.USER),this.quill.setSelection(n,Ht.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==uh.blotName)return[null,null,null,-1];const i=n.parent;return[i.parent
`).join("");return o.insert(a,{table:wme()})},new Hn().retain(r.index));this.quill.updateContents(i,Ht.sources.USER),this.quill.setSelection(r.index,Ht.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ht.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(Ht.events.TEXT_CHANGE,(r,i,o)=>{o===Ht.sources.USER&&this.balanceTables()}),!0):!1)})}}const gMe=e0("quill:toolbar");class xme extends a1{constructor(t,n){var r,i;if(super(t,n),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),Szr(o,this.options.container),(i=(r=t.container)==null?void 0:r.parentNode)==null||i.insertBefore(o,t.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){gMe.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var s;const a=(s=this.options.handlers)==null?void 0:s[o];a&&this.addHandler(o,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Ht.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(i=>i.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){gMe.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,i=>{let o;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const s=t.options[t.selectedIndex];s.hasAttribute("selected")?o=!1:o=s.value||!1}else t.classList.contains("ql-active")?o=!1:o=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,o);else if(this.quill.scroll.query(n).prototype instanceof Gu){if(o=prompt(`Enter ${n}`),!o)return;this.quill.updateContents(new Hn().retain(a.index).delete(a.length).insert({[n]:o}),Ht.sources.USER)}else this.quill.format(n,o,Ht.sources.USER);this.update(a)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[i,o]=r;if(o.tagName==="SELECT"){let a=null;if(t==null)a=null;else if(n[i]==null)a=o.querySelector("option[selected]");else if(!Array.isArray(n[i])){let s=n[i];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),a=o.querySelector(`option[value="${s}"]`)}a==null?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(t==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const a=n[i],s=a===o.getAttribute("value")||a!=null&&a.toString()===o.getAttribute("value")||a==null&&!o.getAttribute("value");o.classList.toggle("ql-active",s),o.setAttribute("aria-pressed",s.toString())}else{const a=n[i]!=null;o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}})}}xme.DEFAULTS={};function mMe(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function Szr(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(i=>{if(typeof i=="string")mMe(r,i);else{const o=Object.keys(i)[0],a=i[o];Array.isArray(a)?wzr(r,o,a):mMe(r,o,a)}}),e.appendChild(r)})}function wzr(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),r.appendChild(o)}),e.appendChild(r)}xme.DEFAULT
2025-02-18 08:35:18 +08:00
flex items-center justify-end gap-1
px-3 py-1.5 text-sm
${r()}
transition-colors duration-200
2025-04-17 15:35:46 +08:00
`,children:[H.jsx("span",{className:"font-medium tabular-nums",children:e}),t&&H.jsxs(H.Fragment,{children:[H.jsx("span",{children:"/"}),H.jsx("span",{className:"tabular-nums",children:t})]}),H.jsx("span",{children:"字符"}),n>0&&e<n&&H.jsxs("span",{className:"ml-2 text-amber-500",children:["至少输入 ",n," 字符"]})]})},fkr={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],[{align:[]}],["link"],["clean"]]},Ont=({value:e="",onChange:t,placeholder:n="请输入内容...",readOnly:r=!1,theme:i="snow",modules:o=fkr,className:a="",style:s={},onFocus:l,onBlur:c,onKeyDown:d,onKeyUp:f,maxLength:h,minLength:p=0,minRows:g=1,maxRows:m})=>{const v=u.useRef(null),C=u.useRef(null),y=u.useRef(!1),[b,S]=u.useState(0),w=()=>{var O;if(!C.current)return;const x=C.current,R=x.getText().replace(/\n$/,"").length;if(h&&R>h){x.off("text-change",w);const M=x.getSelection(),F=x.getContents();let A=0;const N=(O=F.ops)==null?void 0:O.reduce((k,T)=>{if(typeof T.insert=="string"){const P=h-A;if(A<h){const _=T.insert.slice(0,P);A+=_.length,k.push({...T,insert:_})}}else k.push(T);return k},[]);x.setContents({ops:N}),M&&x.setSelection(Math.min(M.index,h));const D=x.getText().replace(/\n$/,"");S(D.length),x.on("text-change",w)}else S(R);t==null||t(C.current.root.innerHTML)};return u.useEffect(()=>{v.current&&(y.current||(C.current=new Ht(v.current,{theme:i,modules:o,placeholder:n,readOnly:r}),C.current.root.innerHTML=e,l&&C.current.on(Ht.events.SELECTION_CHANGE,x=>{x&&l()}),c&&C.current.on(Ht.events.SELECTION_CHANGE,x=>{x||c()}),C.current.on(Ht.events.TEXT_CHANGE,w),d&&C.current.root.addEventListener("keydown",d),f&&C.current.root.addEventListener("keyup",f),y.current=!0))},[i,o,n,r,l,c,d,f,h,p]),u.useEffect(()=>{var x;if(C.current){const $=(x=v.current)==null?void 0:x.querySelector(".ql-editor");if($){const R=parseInt(window.getComputedStyle($).lineHeight,10),O=parseInt(window.getComputedStyle($).paddingTop,10),M=parseInt(window.getComputedStyle($).paddingBottom,10),F=R*g+O+M;if($.style.minHeight=`${F}px`,m){const A=R*m+O+M;$.style.maxHeight=`${A}px`,$.style.overflowY="auto"}}}},[g,m,C.current]),u.useEffect(()=>{C.current&&e!==C.current.root.innerHTML&&(C.current.root.innerHTML=e)},[e]),H.jsxs("div",{className:`quill-editor-container ${a}`,style:s,children:[H.jsx("div",{ref:v}),(h||p>0)&&H.jsx(dkr,{currentCount:b,maxLength:h,minLength:p})]})},Mnt=({value:e=[],onChange:t})=>{const{handleFileUpload:n,uploadProgress:r}=TWe(),[i,o]=u.useState([]),[a,s]=u.useState(()=>(e==null?void 0:e.map(p=>({name:`文件 ${p}`,progress:100,status:"done",fileId:p})))||[]),[l,c]=u.useState(e||[]),d=u.useCallback(p=>{s(g=>g.filter(m=>m.fileId!==p)),c(g=>{const m=g.filter(v=>v!==p);return t==null||t(m),m})},[t]),f=u.useCallback(p=>{o(g=>g.filter(m=>m.fileKey!==p))},[]),h=u.useCallback(p=>{const g=`${p.name}-${Date.now()}`;return o(m=>[...m,{name:p.name,progress:0,status:"uploading",fileKey:g}]),n(p,m=>{s(v=>[...v,{name:p.name,progress:100,status:"done",fileId:m.fileId}]),o(v=>v.filter(C=>C.fileKey!==g)),c(v=>{const C=[...v,m.fileId];return t==null||t(C),C})},m=>{console.error("上传错误:",m),Fc.error(`上传失败: ${m instanceof Error?m.message:"未知错误"}`),o(v=>v.map(C=>C.fileKey===g?{...C,status:"error"}:C))},g),!1},[n,t]);return H.jsx("div",{className:"space-y-1",children:H.jsxs(YB.Dragger,{name:"files",multiple:!0,showUploadList:!1,style:{background:"transparent",borderStyle:"none"},beforeUpload:h,children:[H.jsx("p",{className:"ant-upload-drag-icon",children:H.jsx(wze,{})}),H.jsx("p",{className:"ant-upload-text",children:"点击或拖拽文件到此区域进行上传"}),H.jsx("p",{className:"ant-upload-hint",children:"支持单个或批量上传文件"}),H.jsxs("div",{className:"px-2 py-0 rounded mt-1",children:[i.map(p=>H.jsxs("div",{className:"flex flex-col gap-1 mb-2",children:[H.jsx("div",{className:"flex items-center gap-2",children:H.jsx("span",{className:"text-sm",children:p.name})}),H.jsxs("div",{className:"flex items-center gap-2",children:[H.jsx(kB,{p
2025-02-18 08:35:18 +08:00
${s?"bg-primary-300text-white":""}
transition-all duration-200 ease-in-out shadow-md
hover:shadow-lg
2025-04-17 15:35:46 +08:00
${n}`,src:l,...i,children:!l&&o})}const{TabPane:bMe}=PB;function wkr(){const{post:e}=u.useContext(qC),[t,n]=u.useState(""),[r,i]=u.useState(void 0),[o,a]=u.useState([]),{create:s}=ik(),[l,c]=u.useState(0),{user:d}=_i(),f=async h=>{if(h.preventDefault(),jee(t)){Fc.error("内容不得为空");return}try{await s.mutateAsync({data:{type:X6.POST_COMMENT,parentId:e==null?void 0:e.id,content:t,resources:{connect:o.filter(Boolean).map(p=>({fileId:p}))},meta:{signature:r}}}),Fc.success("发布成功!"),n(""),a([]),i(""),c(l+1)}catch(p){Fc.error("发布失败,请稍后重试"),console.error("Error posting comment:",p)}console.log("Submitting:",t),n("")};return H.jsx("div",{className:"p-6",children:H.jsxs("form",{onSubmit:f,className:"space-y-2",children:[H.jsxs(PB,{defaultActiveKey:"1",children:[H.jsx(bMe,{tab:"回复",children:H.jsx("div",{className:"relative rounded-xl border border-white hover:ring-1 ring-white transition-all duration-300 ease-in-out bg-slate-100",children:H.jsx(Ont,{value:t,onChange:n,className:"bg-transparent",theme:"snow",minRows:6,modules:{toolbar:[["bold","italic","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]}})})},"1"),H.jsx(bMe,{tab:"附件",children:H.jsx("div",{className:"relative rounded-xl border border-white hover:ring-1 ring-white transition-all duration-300 ease-in-out bg-slate-100",children:H.jsx(Mnt,{value:o,onChange:h=>{a(h)}},l)})},"2")]}),!jee(t)&&H.jsxs("div",{className:"flex items-center justify-end gap-2",children:[!d&&H.jsx(Pnt,{randomString:r}),!d&&H.jsx(Mr,{maxLength:15,style:{width:150},onChange:h=>{i(h.target.value)},placeholder:"签名"}),H.jsx("div",{children:H.jsx(Er,{type:"primary",htmlType:"submit",disabled:jee(t),className:"flex items-center space-x-2 bg-primary",icon:H.jsx(HO,{}),children:"提交"})})]})]})})}function Int({post:e}){const{resources:t}=u.useMemo(()=>{if(!(e!=null&&e.resources))return{resources:[]};const i=a=>/\.(png|jpg|jpeg|gif|webp)$/i.test(a);return{resources:e.resources.map(a=>{const s=`http://${Al.SERVER_IP}:${Al.UPLOAD_PORT}/uploads/${a.url}`,l=i(a.url);return{...a,url:l?IWe(s):s,originalUrl:s,isImage:l}}).sort((a,s)=>a.isImage===s.isImage?0:a.isImage?-1:1)}},[e]),n=t.filter(i=>i.isImage),r=t.filter(i=>!i.isImage);return H.jsxs("div",{className:"space-y-6",children:[n.length>0&&H.jsx(bVe,{gutter:[16,16],className:"mb-6",children:H.jsx(mN.PreviewGroup,{children:n.map(i=>H.jsx(afe,{xs:12,sm:8,md:6,lg:6,xl:4,className:"relative",children:H.jsxs("div",{className:"relative aspect-square rounded-lg overflow-hidden bg-gray-100",children:[H.jsx("div",{className:"w-full h-full",children:H.jsx(mN,{src:i.url,alt:i.title,preview:{src:i.originalUrl,mask:H.jsx("div",{className:"flex items-center justify-center text-white",children:"点击预览"})},style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"},rootClassName:"w-full h-full"})}),i.title&&H.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-3 bg-gradient-to-t from-black/60 to-transparent text-white text-sm truncate",children:i.title})]})},i.url))})}),r.length>0&&H.jsx("div",{className:"rounded-xl p-1 border border-gray-100 bg-white",children:H.jsx("div",{className:"flex flex-nowrap overflow-x-auto scrollbar-hide gap-1.5",children:r.map(i=>{var o,a;return H.jsx("a",{className:"flex-shrink-0 relative active:scale-95 transition-transform select-none ",href:i.originalUrl,target:"_blank",download:!0,title:"点击下载文件",children:H.jsxs("div",{className:"w-[120px] h-[80px] p-2 flex flex-col items-center justify-between rounded-xl hover:bg-primary-50/40 cursor-pointer",children:[H.jsx("div",{className:"text-primary-600 text-base",children:Ckr(i.url)}),H.jsxs("div",{className:"w-full text-center space-y-0.5",children:[H.jsx("p",{className:"text-xs font-medium text-gray-800 truncate",children:((o=i.title)==null?void 0:o.slice(0,12))||"未命名"}),H.jsxs("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[H.jsx("span",{className:"bg-gray-100 px-0.5 rounded-sm",children:(a=i.url.split(".").p
2025-04-17 10:18:46 +08:00
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2025-04-17 15:35:46 +08:00
*/YN.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",f=1,h=2,p=4,g=1,m=2,v=1,C=2,y=4,b=8,S=16,w=32,x=64,$=128,R=256,O=512,M=30,F="...",A=800,N=16,D=1,k=2,T=3,P=1/0,_=9007199254740991,L=17976931348623157e292,B=NaN,z=4294967295,j=z-1,U=z>>>1,G=[["ary",$],["bind",v],["bindKey",C],["curry",b],["curryRight",S],["flip",O],["partial",w],["partialRight",x],["rearg",R]],X="[object Arguments]",q="[object Array]",Y="[object AsyncFunction]",Q="[object Boolean]",te="[object Date]",ie="[object DOMException]",Z="[object Error]",ee="[object Function]",J="[object GeneratorFunction]",oe="[object Map]",le="[object Number]",pe="[object Null]",fe="[object Object]",be="[object Promise]",de="[object Proxy]",Ce="[object RegExp]",ue="[object Set]",Se="[object String]",we="[object Symbol]",Fe="[object Undefined]",Ne="[object WeakMap]",He="[object WeakSet]",We="[object ArrayBuffer]",Ge="[object DataView]",je="[object Float32Array]",De="[object Float64Array]",ke="[object Int8Array]",Ke="[object Int16Array]",Le="[object Int32Array]",$e="[object Uint8Array]",Ae="[object Uint8ClampedArray]",Ie="[object Uint16Array]",ye="[object Uint32Array]",Be=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$t=/&(?:amp|lt|gt|quot|#39);/g,ot=/[&<>"']/g,vt=RegExp($t.source),Rt=RegExp(ot.source),xt=/<%-([\s\S]+?)%>/g,Mt=/<%([\s\S]+?)%>/g,yt=/<%=([\s\S]+?)%>/g,ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tt=/^\w*$/,he=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,Ee=RegExp(Oe.source),Ve=/^\s+/,nt=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gt=/\{\n\/\* \[wrapped with (.+)\] \*/,mt=/,? & /,rt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,Pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,At=/\w*$/,un=/^[-+]0x[0-9a-f]+$/i,tn=/^0b[01]+$/i,Tt=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,St=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ln=/($^)/,Et=/['\n\r\u2028\u2029\\]/g,ht="\\ud800-\\udfff",zt="\\u0300-\\u036f",Yt="\\ufe20-\\ufe2f",dn="\\u20d0-\\u20ff",In=zt+Yt+dn,nn="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",en="\\xac\\xb1\\xd7\\xf7",mn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xn="\\u2000-\\u206f",qn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wr="A-Z\\xc0-\\xd6\\xd8-\\xde",Ar="\\ufe0e\\ufe0f",Fi=en+mn+xn+qn,Mi="[']",Dr="["+ht+"]",wi="["+Fi+"]",pn="["+In+"]",Ut="\\d+",kn="["+nn+"]",gr="["+It+"]",Wt="[^"+ht+Fi+Ut+nn+It+wr+"]",Kt="\\ud83c[\\udffb-\\udfff]",er="(?:"+pn+"|"+Kt+")",ur="[^"+ht+"]",Vr="(?:\\ud83c[\\udde6-\\uddff]){2}",qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tr="["+wr+"]",Ci="\\u200d",An="(?:"+gr+"|"+Wt+")",Zt="(?:"+Tr+"|"+Wt+")",bn="(?:"+Mi+"(?:d|ll|m|re|s|t|ve))?",$n="(?:"+Mi+"(?:D|LL|M|RE|S|T|VE))?",Ln=er+"?",Kr="["+Ar+"]?",lo="(?:"+Ci+"(?:"+[ur,Vr,qr].join("|")+")"+Kr+Ln+")*",pi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hs=Kr+Ln+lo,Wu="(?:"+[kn,Vr,qr].join("|")+")"+Hs,wf="(?:"+[ur+pn+"?",pn,Vr,qr,Dr].join("|")+")",Uu=RegExp(Mi,"g"),Rn=RegExp(pn,"g"),Kn=RegExp(Kt+"(?="+Kt+")|"+wf+Hs,"g"),xi=RegExp([Tr+"?"+gr+"+"+bn+"(?="+[wi,Tr,"$"].join("|")+")",Zt+"+"+$n+"(?="+[wi,Tr+An,"$"].join("|")+")",Tr+"?"+An+"+"+bn,Tr+"+"+$n,Wa,pi,Ut,Wu].join("|"),"g"),ro=RegExp("["+Ci+ht+In+Ar+"]"),ai=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$f=-1,$i={};$i[je]=$
2025-04-17 10:18:46 +08:00
/* [wrapped with `+I+`] */
2025-04-17 15:35:46 +08:00
`)}function Plt(E){return Or(E)||W4(E)||!!(q0e&&E&&E[q0e])}function Yp(E,I){var W=typeof E;return I=I??_,!!I&&(W=="number"||W!="symbol"&&St.test(E))&&E>-1&&E%1==0&&E<I}function xl(E,I,W){if(!Po(W))return!1;var ne=typeof I;return(ne=="number"?Yl(W)&&Yp(I,W.length):ne=="string"&&I in W)?Mf(W[I],E):!1}function EX(E,I){if(Or(E))return!1;var W=typeof E;return W=="number"||W=="symbol"||W=="boolean"||E==null||Gc(E)?!0:tt.test(E)||!ct.test(E)||I!=null&&E in Ji(I)}function Ilt(E){var I=typeof E;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?E!=="__proto__":E===null}function RX(E){var I=oT(E),W=Re[I];if(typeof W!="function"||!(I in ti.prototype))return!1;if(E===W)return!0;var ne=wX(W);return!!ne&&E===ne[0]}function Tlt(E){return!!V0e&&V0e in E}var _lt=DI?Qp:VX;function T9(E){var I=E&&E.constructor,W=typeof I=="function"&&I.prototype||r5;return E===W}function V2e(E){return E===E&&!Po(E)}function G2e(E,I){return function(W){return W==null?!1:W[E]===I&&(I!==n||E in Ji(W))}}function Flt(E){var I=dT(E,function(ne){return W.size===c&&W.clear(),ne}),W=I.cache;return I}function Alt(E,I){var W=E[1],ne=I[1],me=W|ne,_e=me<(v|C|$),Ue=ne==$&&W==b||ne==$&&W==R&&E[7].length<=I[8]||ne==($|R)&&I[7].length<=I[8]&&W==b;if(!(_e||Ue))return E;ne&v&&(E[2]=I[2],me|=W&v?0:y);var Je=I[3];if(Je){var pt=E[3];E[3]=pt?R2e(pt,Je,I[4]):Je,E[4]=pt?o0(E[3],d):I[4]}return Je=I[5],Je&&(pt=E[5],E[5]=pt?O2e(pt,Je,I[6]):Je,E[6]=pt?o0(E[5],d):I[6]),Je=I[7],Je&&(E[7]=Je),ne&$&&(E[8]=E[8]==null?I[8]:js(E[8],I[8])),E[9]==null&&(E[9]=I[9]),E[0]=I[0],E[1]=me,E}function Dlt(E){var I=[];if(E!=null)for(var W in Ji(E))I.push(W);return I}function Llt(E){return NI.call(E)}function W2e(E,I,W){return I=Ra(I===n?E.length-1:I,0),function(){for(var ne=arguments,me=-1,_e=Ra(ne.length-I,0),Ue=Ot(_e);++me<_e;)Ue[me]=ne[I+me];me=-1;for(var Je=Ot(I+1);++me<I;)Je[me]=ne[me];return Je[I]=W(Ue),Ua(E,this,Je)}}function U2e(E,I){return I.length<2?E:j4(E,Zu(I,0,-1))}function Nlt(E,I){for(var W=E.length,ne=js(I.length,W),me=Xl(E);ne--;){var _e=I[ne];E[ne]=Yp(_e,W)?me[_e]:n}return E}function OX(E,I){if(!(I==="constructor"&&typeof E[I]=="function")&&I!="__proto__")return E[I]}var q2e=X2e(m2e),_9=Zat||function(E,I){return Xr.setTimeout(E,I)},MX=X2e(alt);function K2e(E,I,W){var ne=I+"";return MX(E,Mlt(ne,zlt(Elt(ne),W)))}function X2e(E){var I=0,W=0;return function(){var ne=nst(),me=N-(ne-W);if(W=ne,me>0){if(++I>=A)return arguments[0]}else I=0;return E.apply(n,arguments)}}function sT(E,I){var W=-1,ne=E.length,me=ne-1;for(I=I===n?ne:I;++W<I;){var _e=uX(W,me),Ue=E[_e];E[_e]=E[W],E[W]=Ue}return E.length=I,E}var Y2e=Flt(function(E){var I=[];return E.charCodeAt(0)===46&&I.push(""),E.replace(he,function(W,ne,me,_e){I.push(me?_e.replace(lt,"$1"):ne||W)}),I});function f1(E){if(typeof E=="string"||Gc(E))return E;var I=E+"";return I=="0"&&1/E==-1/0?"-0":I}function G4(E){if(E!=null){try{return LI.call(E)}catch{}try{return E+""}catch{}}return""}function zlt(E,I){return Ku(G,function(W){var ne="_."+W[0];I&W[1]&&!TI(E,ne)&&E.push(ne)}),E.sort()}function Q2e(E){if(E instanceof ti)return E.clone();var I=new Yu(E.__wrapped__,E.__chain__);return I.__actions__=Xl(E.__actions__),I.__index__=E.__index__,I.__values__=E.__values__,I}function klt(E,I,W){(W?xl(E,I,W):I===n)?I=1:I=Ra(Lr(I),0);var ne=E==null?0:E.length;if(!ne||I<1)return[];for(var me=0,_e=0,Ue=Ot(VI(ne/I));me<ne;)Ue[_e++]=Zu(E,me,me+=I);return Ue}function Blt(E){for(var I=-1,W=E==null?0:E.length,ne=0,me=[];++I<W;){var _e=E[I];_e&&(me[ne++]=_e)}return me}function Hlt(){var E=arguments.length;if(!E)return[];for(var I=Ot(E-1),W=arguments[0],ne=E;ne--;)I[ne-1]=arguments[ne];return i0(Or(W)?Xl(W):[W],hs(I,1))}var jlt=Gr(function(E,I){return Yo(E)?R9(E,hs(I,1,Yo,!0)):[]}),Vlt=Gr(function(E,I){var W=Ju(I);return Yo(W)&&(W=n),Yo(E)?R9(E,hs(I,1,Yo,!0),or(W,2)):[]}),Glt=Gr(function(E,I){var W=Ju(I);return Yo(W)&&(W=n),Yo(E)?R9(E,hs(I,1,Yo,!0),n,W):[]});function Wlt(E,I,W){var ne=E==null?0:E.length;return ne?(I=W||I===n?1:Lr(I),Zu(E,I<0?0:I,ne)):[]}function Ult(E,I,W){var ne=E==null?0:E.length;return ne?(I=W||I===n?1:Lr(I),I=ne-I,Zu(E,0,I<0?0:I)):[]}function
`;E.replace(Sn,function(lr,Qr,ui,Wc,$l,Uc){return ui||(ui=Wc),Xt+=E.slice(jt,Uc).replace(Et,_at),Qr&&(Je=!0,Xt+=`' +
2025-04-17 10:18:46 +08:00
__e(`+Qr+`) +
2025-04-17 15:35:46 +08:00
'`),$l&&(pt=!0,Xt+=`';
`+$l+`;
2025-04-17 10:18:46 +08:00
__p += '`),ui&&(Xt+=`' +
((__t = (`+ui+`)) == null ? '' : __t) +
'`),jt=Uc+lr.length,lr}),Xt+=`';
`;var sr=zi.call(I,"variable")&&I.variable;if(!sr)Xt=`with (obj) {
`+Xt+`
}
`;else if(Qe.test(sr))throw new xr(s);Xt=(pt?Xt.replace(Be,""):Xt).replace(Xe,"$1").replace(ft,"$1;"),Xt="function("+(sr||"obj")+`) {
`+(sr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Je?", __e = _.escape":"")+(pt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Xt+`return __p
2025-04-17 15:35:46 +08:00
}`;var Hr=Pve(function(){return Pi(_e,jn+"return "+Xt).apply(n,Ue)});if(Hr.source=Xt,FX(Hr))throw Hr;return Hr}function ift(E){return Ai(E).toLowerCase()}function oft(E){return Ai(E).toUpperCase()}function aft(E,I,W){if(E=Ai(E),E&&(W||I===n))return z0e(E);if(!E||!(I=Vc(I)))return E;var ne=Rf(E),me=Rf(I),_e=k0e(ne,me),Ue=B0e(ne,me)+1;return u0(ne,_e,Ue).join("")}function sft(E,I,W){if(E=Ai(E),E&&(W||I===n))return E.slice(0,j0e(E)+1);if(!E||!(I=Vc(I)))return E;var ne=Rf(E),me=B0e(ne,Rf(I))+1;return u0(ne,0,me).join("")}function lft(E,I,W){if(E=Ai(E),E&&(W||I===n))return E.replace(Ve,"");if(!E||!(I=Vc(I)))return E;var ne=Rf(E),me=k0e(ne,Rf(I));return u0(ne,me).join("")}function cft(E,I){var W=M,ne=F;if(Po(I)){var me="separator"in I?I.separator:me;W="length"in I?Lr(I.length):W,ne="omission"in I?Vc(I.omission):ne}E=Ai(E);var _e=E.length;if(e5(E)){var Ue=Rf(E);_e=Ue.length}if(W>=_e)return E;var Je=W-t5(ne);if(Je<1)return ne;var pt=Ue?u0(Ue,0,Je).join(""):E.slice(0,Je);if(me===n)return pt+ne;if(Ue&&(Je+=pt.length-Je),AX(me)){if(E.slice(Je).search(me)){var jt,Vt=pt;for(me.global||(me=YK(me.source,Ai(At.exec(me))+"g")),me.lastIndex=0;jt=me.exec(Vt);)var Xt=jt.index;pt=pt.slice(0,Xt===n?Je:Xt)}}else if(E.indexOf(Vc(me),Je)!=Je){var Sn=pt.lastIndexOf(me);Sn>-1&&(pt=pt.slice(0,Sn))}return pt+ne}function uft(E){return E=Ai(E),E&&vt.test(E)?E.replace($t,kat):E}var dft=l5(function(E,I,W){return E+(W?" ":"")+I.toUpperCase()}),NX=I2e("toUpperCase");function Mve(E,I,W){return E=Ai(E),I=W?n:I,I===n?Aat(E)?jat(E):Eat(E):E.match(I)||[]}var Pve=Gr(function(E,I){try{return Ua(E,n,I)}catch(W){return FX(W)?W:new xr(W)}}),fft=Xp(function(E,I){return Ku(I,function(W){W=f1(W),qp(E,W,TX(E[W],E))}),E});function hft(E){var I=E==null?0:E.length,W=or();return E=I?So(E,function(ne){if(typeof ne[1]!="function")throw new Xu(a);return[W(ne[0]),ne[1]]}):[],Gr(function(ne){for(var me=-1;++me<I;){var _e=E[me];if(Ua(_e[0],this,ne))return Ua(_e[1],this,ne)}})}function pft(E){return kst(Qu(E,f))}function zX(E){return function(){return E}}function gft(E,I){return E==null||E!==E?I:E}var mft=_2e(),vft=_2e(!0);function Zl(E){return E}function kX(E){return l2e(typeof E=="function"?E:Qu(E,f))}function Cft(E){return u2e(Qu(E,f))}function yft(E,I){return d2e(E,Qu(I,f))}var bft=Gr(function(E,I){return function(W){return O9(W,E,I)}}),Sft=Gr(function(E,I){return function(W){return O9(E,W,I)}});function BX(E,I,W){var ne=qa(I),me=YI(I,ne);W==null&&!(Po(I)&&(me.length||!ne.length))&&(W=I,I=E,E=this,me=YI(I,qa(I)));var _e=!(Po(W)&&"chain"in W)||!!W.chain,Ue=Qp(E);return Ku(me,function(Je){var pt=I[Je];E[Je]=pt,Ue&&(E.prototype[Je]=function(){var jt=this.__chain__;if(_e||jt){var Vt=E(this.__wrapped__),Xt=Vt.__actions__=Xl(this.__actions__);return Xt.push({func:pt,args:arguments,thisArg:E}),Vt.__chain__=jt,Vt}return pt.apply(E,i0([this.value()],arguments))})}),E}function wft(){return Xr._===this&&(Xr._=Kat),this}function HX(){}function xft(E){return E=Lr(E),Gr(function(I){return f2e(I,E)})}var $ft=CX(So),Eft=CX(F0e),Rft=CX(VK);function Ive(E){return EX(E)?GK(f1(E)):nlt(E)}function Oft(E){return function(I){return E==null?n:j4(E,I)}}var Mft=A2e(),Pft=A2e(!0);function jX(){return[]}function VX(){return!1}function Ift(){return{}}function Tft(){return""}function _ft(){return!0}function Fft(E,I){if(E=Lr(E),E<1||E>_)return[];var W=z,ne=js(E,z);I=or(I),E-=z;for(var me=qK(ne,I);++W<E;)I(W);return me}function Aft(E){return Or(E)?So(E,f1):Gc(E)?[E]:Xl(Y2e(Ai(E)))}function Dft(E){var I=++Uat;return Ai(E)+I}var Lft=nT(function(E,I){return E+I},0),Nft=yX("ceil"),zft=nT(function(E,I){return E/I},1),kft=yX("floor");function Bft(E){return E&&E.length?XI(E,Zl,iX):n}function Hft(E,I){return E&&E.length?XI(E,or(I,2),iX):n}function jft(E){return L0e(E,Zl)}function Vft(E,I){return L0e(E,or(I,2))}function Gft(E){return E&&E.length?XI(E,Zl,lX):n}function Wft(E,I){return E&&E.length?XI(E,or(I,2),lX):n}var Uft=nT(function(E,I){return E*I},1),qft=yX("round"),Kft=nT(function(E,I){return E-I},0);function Xft(E){return E&&E.length?UK(E,Zl):0}function Yft(E,I){return E&&E.length?UK(E,or(I,2)):0}return Re.aft
2025-02-18 08:35:18 +08:00
<span style="display: inline-block; width: 1px"></span>
<span style="display: inline-block; width: 1px"></span>
2025-04-17 15:35:46 +08:00
</div>`,document.body.appendChild(e),e.scrollLeft=1,_F=Math.floor(e.scrollLeft)===0,document.body.removeChild(e),_F}function rz(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n),Bme()&&!nz()&&(n=e.scrollWidth-e.getBoundingClientRect().width-n)),n}function iz(e,t,n){n&&(nz()?t*=-1:(xp()||Bme())&&(t=e.scrollWidth-e.getBoundingClientRect().width-t)),e.scrollLeft=t}function Zi(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function xc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function crt(e){return!!e.offsetParent}function zc(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!crt(e)||window.getComputedStyle(e).visibility!=="visible")}function $c(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function urt(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function drt(e,t){for(let n=0;n<t.length;n++){const r=t[n],i=e.children[n];i!==r&&e.insertBefore(r,i)}}function XBr(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function frt(e,t){if(t)for(const[n,r]of Object.entries(t)){if(!n||!n.length||r==null)continue;const i=$Br(n),o=r.toString(),a=o.replace(/\s*!important/g,""),s=a.length!=o.length?"important":void 0;e.style.setProperty(i,a,s)}}function YBr(e){return e.clientWidth<e.scrollWidth}function QBr(e){return e.clientHeight<e.scrollHeight}function oz(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Ih(e,t)}function Ih(e,t){t=Vme(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function fE(e,t){t=Vme(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Vme(e){return typeof e=="number"?`${e}px`:e}function mK(e){return e instanceof Node||e instanceof HTMLElement}function ZBr(e){if(e==null)return[];const t=[];return hrt(e,n=>t.push(n)),t}function JBr(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n];t(r.name,r.value)}}function Yd(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function hrt(e,t){if(e!=null)for(let n=0;n<e.length;n++)t(e[n])}var Cu=class{constructor(e=0,t=1){this.nextValue=e,this.step=t}next(){const e=this.nextValue;return this.nextValue+=this.step,e}peek(){return this.nextValue}skip(e){this.nextValue+=e}},eHr=1e3,tHr=1e3,AMe=100,prt=class O3 extends at{constructor(t,n,r,i){super(),this.parentComp=t,this.tooltipShowDelayOverride=n,this.tooltipHideDelayOverride=r,this.shouldDisplayTooltip=i,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(t){this.popupService=t.popupService,this.userComponentFactory=t.userComponentFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const t=this.parentComp.getGui();this.tooltipTrigger===0&&this.addManagedListeners(t,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(t,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(t,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(t,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(t){const n=this.gos.get(t);return n<0&&et(`${t} should not be lower than 0`),Math.max(200,n)}getTooltipDelay(t){return t==="show"?this.tooltipShowDelayOverride??this.getGridOptionsTooltipDelay("tooltipShowDelay"):this.tooltipHideDelayOverride??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const t=this.gos.get("tooltipTrigger");return!t||t==="hover"?0:1}onMouseEnter(t){thi
2025-02-18 08:35:18 +08:00
<span data-ref="eIcon" class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>
<div data-ref="eLabel" class="ag-dnd-ghost-label"></div>
2025-04-17 15:35:46 +08:00
</div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t=!1){var r,i;Zi(this.eIcon);let n=null;e||(e=(r=this.dragSource)!=null&&r.getDefaultIconName?(i=this.dragSource)==null?void 0:i.getDefaultIconName():"notAllowed"),n=this.dropIconMap[e],this.eIcon.classList.toggle("ag-shake-left-to-right",t),!(n===this.dropIconMap.hide&&this.gos.get("suppressDragLeaveHidesColumns"))&&n&&this.eIcon.appendChild(n)}setLabel(e){this.eLabel.textContent=hl(e)}};function vrt(e,t,n){if(n===0)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=n}var sp=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new I4,this.eElement=e,this.preventMouseClick=t;const n=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",r,{passive:!0}),this.eElement.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push(()=>{this.eElement.removeEventListener("touchstart",n,{passive:!0}),this.eElement.removeEventListener("touchmove",r,{passive:!0}),this.eElement.removeEventListener("touchend",i,{passive:!1})})}getActiveTouch(e){for(let t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}onTouchStart(e){if(this.touching)return;this.touchStart=e.touches[0],this.touching=!0,this.moved=!1;const t=this.touchStart;window.setTimeout(()=>{const n=this.touchStart===t;if(this.touching&&n&&!this.moved){this.moved=!0;const r={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(r)}},500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!vrt(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const t={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){const n={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(n),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach(e=>e())}};function Hx(e,t){return`<span data-ref="eSort${e}" class="ag-sort-indicator-icon ag-sort-${t} ag-hidden" aria-hidden="true"></span>`}var aHr=`<span class="ag-sort-indicator-container">
2025-04-17 10:18:46 +08:00
${Hx("Order","order")}
${Hx("Asc","ascending-icon")}
${Hx("Desc","descending-icon")}
${Hx("Mixed","mixed-icon")}
${Hx("None","none-icon")}
2025-04-17 15:35:46 +08:00
</span>`,Gme=class extends vn{constructor(e){super(),this.eSortOrder=wt,this.eSortAsc=wt,this.eSortDesc=wt,this.eSortMixed=wt,this.eSortNone=wt,e||this.setTemplate(aHr)}wireBeans(e){this.sortController=e.sortController}attachCustomElements(e,t,n,r,i){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=n,this.eSortMixed=r,this.eSortNone=i}setupSort(e,t=!1){if(this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!this.column.isSortable()&&!this.column.getColDef().showRowGroup)return;this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e);const n=this.updateIcons.bind(this),r=this.onSortChanged.bind(this);this.addManagedPropertyListener("unSortIcon",n),this.addManagedEventListeners({newColumnsLoaded:n,sortChanged:r,columnRowGroupChanged:r}),this.onSortChanged()}addInIcon(e,t,n){if(t==null)return;const r=zn(e,this.gos,n);r&&t.appendChild(r)}onSortChanged(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()}updateIcons(){const e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){const t=e==="asc";En(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){const t=e==="desc";En(this.eSortDesc,t,{skipAriaHidden:!0})}if(this.eSortNone){const t=!this.column.getColDef().unSortIcon&&!this.gos.get("unSortIcon"),n=e==null;En(this.eSortNone,!t&&n,{skipAriaHidden:!0})}}setupMultiSortIndicator(){this.addInIcon("sortUnSort",this.eSortMixed,this.column);const e=this.column.getColDef().showRowGroup;dh(this.gos)&&e&&(this.addManagedEventListeners({sortChanged:this.updateMultiSortIndicator.bind(this),columnRowGroupChanged:this.updateMultiSortIndicator.bind(this)}),this.updateMultiSortIndicator())}updateMultiSortIndicator(){if(this.eSortMixed){const e=this.sortController.getDisplaySortForColumn(this.column)==="mixed";En(this.eSortMixed,e,{skipAriaHidden:!0})}}updateSortOrder(){if(!this.eSortOrder)return;const e=this.sortController.getColumnsWithSortingOrdered(),t=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,n=e.some(i=>this.sortController.getDisplaySortIndexForColumn(i)??!1),r=t>=0&&n;En(this.eSortOrder,r,{skipAriaHidden:!0}),t>=0?this.eSortOrder.textContent=(t+1).toString():Zi(this.eSortOrder)}},Crt={selector:"AG-SORT-INDICATOR",component:Gme},sHr=`<div class="ag-cell-label-container" role="presentation">
2025-02-18 08:35:18 +08:00
<span data-ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>
<span data-ref="eFilterButton" class="ag-header-icon ag-header-cell-filter-button" aria-hidden="true"></span>
<div data-ref="eLabel" class="ag-header-cell-label" role="presentation">
<span data-ref="eText" class="ag-header-cell-text"></span>
<span data-ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>
<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>
</div>
2025-04-17 15:35:46 +08:00
</div>`,kse=class extends vn{constructor(){super(...arguments),this.eFilter=wt,this.eFilterButton=wt,this.eSortIndicator=wt,this.eMenu=wt,this.eLabel=wt,this.eText=wt,this.eSortOrder=wt,this.eSortAsc=wt,this.eSortDesc=wt,this.eSortMixed=wt,this.eSortNone=wt,this.lastMovingChanged=0}wireBeans(e){this.sortController=e.sortController,this.menuService=e.menuService,this.funcColsService=e.funcColsService}destroy(){super.destroy()}refresh(e){const t=this.params;return this.params=e,this.workOutTemplate()!=this.currentTemplate||this.workOutShowMenu()!=this.currentShowMenu||this.workOutSort()!=this.currentSort||this.shouldSuppressMenuHide()!=this.currentSuppressMenuHide||t.enableFilterButton!=e.enableFilterButton||t.enableFilterIcon!=e.enableFilterIcon?!1:(this.setDisplayName(e),!0)}workOutTemplate(){let e=this.params.template??sHr;return e=e&&e.trim?e.trim():e,e}init(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,[Crt]),this.setupTap(),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setupFilterButton(),this.setDisplayName(e)}setDisplayName(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;const t=hl(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=t)}}addInIcon(e,t,n){if(t==null)return;const r=zn(e,this.gos,n);r&&t.appendChild(r)}setupTap(){const{gos:e}=this;if(e.get("suppressTouch"))return;const t=new sp(this.getGui(),!0),n=this.shouldSuppressMenuHide(),r=n&&Dt(this.eMenu),i=r?new sp(this.eMenu,!0):t;if(this.params.enableMenu){const o=r?"tap":"longTap",a=s=>this.params.showColumnMenuAfterMouseClick(s.touchStart);this.addManagedListeners(i,{[o]:a})}if(this.params.enableSorting){const o=a=>{var l,c;const s=a.touchStart.target;n&&((l=this.eMenu)!=null&&l.contains(s)||(c=this.eFilterButton)!=null&&c.contains(s))||this.sortController.progressSort(this.params.column,!1,"uiColumnSorted")};this.addManagedListeners(t,{tap:o})}if(this.params.enableFilterButton){const o=new sp(this.eFilterButton,!0);this.addManagedListeners(o,{tap:()=>this.params.showFilter(this.eFilterButton)}),this.addDestroyFunc(()=>o.destroy())}this.addDestroyFunc(()=>t.destroy()),r&&this.addDestroyFunc(()=>i.destroy())}workOutShowMenu(){return this.params.enableMenu&&this.menuService.isHeaderMenuButtonEnabled()}shouldSuppressMenuHide(){return this.menuService.isHeaderMenuButtonAlwaysShowEnabled()}setMenu(){if(!this.eMenu)return;if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu){xc(this.eMenu),this.eMenu=void 0;return}const e=this.menuService.isLegacyMenuEnabled();this.addInIcon(e?"menu":"menuAlt",this.eMenu,this.params.column),this.eMenu.classList.toggle("ag-header-menu-icon",!e),this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedElementListeners(this.eMenu,{click:()=>this.params.showColumnMenu(this.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)}onMenuKeyboardShortcut(e){const t=this.params.column,n=this.menuService.isLegacyMenuEnabled();if(e&&!n){if(this.menuService.isFilterMenuInHeaderEnabled(t))return this.params.showFilter(this.eFilterButton??this.eMenu??this.getGui()),!0}else if(this.params.enableMenu)return this.params.showColumnMenu(this.eMenu??this.eFilterButton??this.getGui()),!0;return!1}workOutSort(){return this.params.enableSorting}setupSort(){if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.createBean(new Gme(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),!this.currentSort)return;this.addManagedListeners(this.params.column,{movingChanged:()=>{this.lastMovingChanged=new Date().getTime()}}),this.eLabel&&this.addManagedElementListeners(this.eLabel,{click:t=>{const n=this.params.column.isMoving(),i=new Date().getTime()-this.lastMovingChanged<50;if(!(n||i)){const s=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.params.progressSort(s)}}});const e=()=>{const t
2025-02-18 08:35:18 +08:00
<span data-ref="agLabel" class="ag-header-group-text" role="presentation"></span>
<span data-ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>
<span data-ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>
2025-04-17 15:35:46 +08:00
</div>`),this.agOpened=wt,this.agClosed=wt,this.agLabel=wt}wireBeans(e){this.columnModel=e.columnModel}destroy(){super.destroy()}init(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()}checkWarnings(){this.params.template&&et("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}setupExpandIcons(){this.addInIcon("columnGroupOpened",this.agOpened),this.addInIcon("columnGroupClosed",this.agClosed);const e=i=>{if(Ph(i))return;const o=!this.params.columnGroup.isExpanded();this.columnModel.setColumnGroupOpened(this.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")};this.addTouchAndClickListeners(this.agClosed,e),this.addTouchAndClickListeners(this.agOpened,e);const t=i=>{Sp(i)};this.addManagedElementListeners(this.agClosed,{dblclick:t}),this.addManagedElementListeners(this.agOpened,{dblclick:t}),this.addManagedElementListeners(this.getGui(),{dblclick:e}),this.updateIconVisibility();const n=this.params.columnGroup.getProvidedColumnGroup(),r=this.updateIconVisibility.bind(this);this.addManagedListeners(n,{expandedChanged:r,expandableChanged:r})}addTouchAndClickListeners(e,t){const n=new sp(e,!0);this.addManagedListeners(n,{tap:t}),this.addDestroyFunc(()=>n.destroy()),this.addManagedElementListeners(e,{click:t})}updateIconVisibility(){if(this.params.columnGroup.isExpandable()){const t=this.params.columnGroup.isExpanded();En(this.agOpened,t),En(this.agClosed,!t)}else En(this.agOpened,!1),En(this.agClosed,!1)}addInIcon(e,t){const n=zn(e,this.gos,null);n&&t.appendChild(n)}addGroupExpandIcon(){if(!this.params.columnGroup.isExpandable()){En(this.agOpened,!1),En(this.agClosed,!1);return}}setupLabel(){var n;const{displayName:e,columnGroup:t}=this.params;if(Dt(e)){const r=hl(e,!0);this.agLabel.textContent=r}this.addOrRemoveCssClass("ag-sticky-label",!((n=t.getColGroupDef())!=null&&n.suppressStickyLabel))}},cHr="",uHr="",dHr=class extends vn{constructor(){super(),this.refreshCount=0;const e=document.createElement("span"),t=document.createElement("span");t.setAttribute("class","ag-value-change-delta");const n=document.createElement("span");n.setAttribute("class","ag-value-change-value"),e.appendChild(t),e.appendChild(n),this.setTemplateFromElement(e)}wireBeans(e){this.filterManager=e.filterManager}init(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e,!0)}showDelta(e,t){const n=Math.abs(t),r=e.formatValue(n),i=Dt(r)?r:n,o=t>=0;o?this.eDelta.textContent=cHr+i:this.eDelta.textContent=uHr+i,this.eDelta.classList.toggle("ag-value-change-delta-up",o),this.eDelta.classList.toggle("ag-value-change-delta-down",!o)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.getFrameworkOverrides().wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),Zi(this.eDelta)}refresh(e,t=!1){var r;const n=e.value;if(n===this.lastValue||(Dt(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:Dt(e.value)?this.eValue.textContent=n:Zi(this.eValue),(r=this.filterManager)!=null&&r.isSuppressFlashingCellsBecauseFiltering()))return!1;if(typeof n=="number"&&typeof this.lastValue=="number"){const i=n-this.lastValue;this.showDelta(e,i)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=n,!0}},fHr=class extends vn{constructor(){super(),this.refreshCount=0;const e=document.createElement("span"),t=document.createElement("span");t.setAttribute("class","ag-value-slide-current"),e.appendChild(t),this.setTemplateFromElement(e),this.eCurrent=this.queryForHtmlElement(".ag-value-slide-current")}wireBeans(e){this.filterManager=e.filterManager}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious);const t=document.createElement("span")
2025-02-18 08:35:18 +08:00
<div role="presentation">
<div data-ref="eLabel" class="ag-input-field-label"></div>
<div data-ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">
<${r} data-ref="eInput" class="ag-input-field-input"></${r}>
</div>
2025-04-17 15:35:46 +08:00
</div>`,[],t),this.inputType=n,this.displayFieldTag=r,this.eLabel=wt,this.eWrapper=wt,this.eInput=wt}postConstruct(){super.postConstruct(),this.setInputType(),this.eLabel.classList.add(`${this.className}-label`),this.eWrapper.classList.add(`${this.className}-input-wrapper`),this.eInput.classList.add(`${this.className}-input`),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||`ag-${this.getCompId()}-input`;const{inputName:e,inputWidth:t}=this.config;e!=null&&this.setInputName(e),t!=null&&this.setInputWidth(t),this.addInputListeners(),this.activateTabIndex([this.eInput])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return oz(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return Yd(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return yl(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return cO(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)Yd(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";Yd(this.eInput,"autocomplete",t)}return this}},vK=class extends r6{constructor(e,t="ag-checkbox",n="checkbox"){super(e,t,n),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue))}dispatchChange(e,t,n){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:n});const r=this.getInputElement();this.eventService.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}refreshSelectedClass(e){this.eWrapper.classList.toggle("ag-checked",e===!0),this.eWrapper.classList.toggle("ag-indeterminate",e==null)}},T4={selector:"AG-CHECKBOX",component:vK},pHr=class extends vn{constructor(){super(`
2025-02-18 08:35:18 +08:00
<div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
2025-04-17 15:35:46 +08:00
</div>`,[T4]),this.eCheckbox=wt}init(e){this.refresh(e);const t=this.eCheckbox.getInputElement();t.setAttribute("tabindex","-1"),qnt(t,"polite"),this.addManagedListeners(t,{click:n=>{if(Sp(n),this.eCheckbox.isDisabled())return;const r=this.eCheckbox.getValue();this.onCheckboxChanged(r)},dblclick:n=>{Sp(n)}}),this.addManagedElementListeners(this.params.eGridCell,{keydown:n=>{if(n.key===Ze.SPACE&&!this.eCheckbox.isDisabled()){this.params.eGridCell===ri(this.gos)&&this.eCheckbox.toggle();const r=this.eCheckbox.getValue();this.onCheckboxChanged(r),n.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){var s;let t,n=!0;if(e.node.group&&e.column)if(typeof e.value=="boolean")t=e.value;else{const l=e.column.getColId();l.startsWith(_8)?t=e.value==null||e.value===""?void 0:e.value==="true":e.node.aggData&&e.node.aggData[l]!==void 0?t=e.value??void 0:n=!1}else t=e.value??void 0;if(!n){this.eCheckbox.setDisplayed(!1);return}this.eCheckbox.setValue(t);const r=e.disabled!=null?e.disabled:!((s=e.column)!=null&&s.isCellEditable(e.node));this.eCheckbox.setDisabled(r);const i=this.localeService.getLocaleTextFunc(),o=kme(i,t),a=r?o:`${i("ariaToggleCellValue","Press SPACE to toggle cell value")} (${o})`;this.eCheckbox.setInputAriaLabel(a)}onCheckboxChanged(e){const{column:t,node:n,value:r}=this.params;this.eventService.dispatchEvent({type:"cellEditingStarted",column:t,colDef:t==null?void 0:t.getColDef(),data:n.data,node:n,rowIndex:n.rowIndex,rowPinned:n.rowPinned,value:r});const i=this.params.node.setDataValue(this.params.column,e,"edit");this.eventService.dispatchEvent({type:"cellEditingStopped",column:t,colDef:t==null?void 0:t.getColDef(),data:n.data,node:n,rowIndex:n.rowIndex,rowPinned:n.rowPinned,value:r,oldValue:r,newValue:e,valueChanged:i}),i||this.updateCheckbox(this.params)}},gHr=class extends vn{constructor(){super(`<div class="ag-loading">
2025-02-18 08:35:18 +08:00
<span class="ag-loading-icon" data-ref="eLoadingIcon"></span>
<span class="ag-loading-text" data-ref="eLoadingText"></span>
2025-04-17 15:35:46 +08:00
</div>`),this.eLoadingIcon=wt,this.eLoadingText=wt}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){const e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")}setupLoading(){const e=zn("groupLoading",this.gos,null);e&&this.eLoadingIcon.appendChild(e);const t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")}refresh(e){return!1}destroy(){super.destroy()}},mHr=class extends vn{constructor(){super('<div class="ag-skeleton-container"></div>')}init(e){const t=`ag-cell-skeleton-renderer-${this.getCompId()}`;this.getGui().setAttribute("id",t),this.addDestroyFunc(()=>ES(e.eParentOfValue)),ES(e.eParentOfValue,t),e.node.failedLoad?this.setupFailed():this.setupLoading(e)}setupFailed(){const e=this.localeService.getLocaleTextFunc();this.getGui().innerText=e("loadingError","ERR");const t=e("ariaSkeletonCellLoadingFailed","Row failed to load");yl(this.getGui(),t)}setupLoading(e){const n=Yi(this.gos).createElement("div");n.classList.add("ag-skeleton-effect");const r=e.node.rowIndex;if(r!=null){const a=75+25*(r%2===0?Math.sin(r):Math.cos(r));n.style.width=`${a}%`}this.getGui().appendChild(n);const o=this.localeService.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");yl(this.getGui(),o)}refresh(e){return!1}destroy(){super.destroy()}},brt=class extends vn{constructor(){super()}destroy(){super.destroy()}},vHr=class extends brt{init(){var t;const e=as((t=this.gos.get("overlayLoadingTemplate"))==null?void 0:t.trim());if(this.setTemplate(e??'<span aria-live="polite" aria-atomic="true" class="ag-overlay-loading-center"></span>'),!e){const n=this.localeService.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=n("loadingOoo","Loading...")})}}},CHr=class extends brt{init(){var t;const e=as((t=this.gos.get("overlayNoRowsTemplate"))==null?void 0:t.trim());if(this.setTemplate(e??'<span class="ag-overlay-no-rows-center"></span>'),!e){const n=this.localeService.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=n("noRowsToShow","No Rows To Show")})}}},p9=class extends vn{isPopup(){return!0}setParentComponent(e){e.addCssClass("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},yHr=class extends p9{constructor(){super('<div class="ag-tooltip"></div>')}init(e){const{value:t}=e;this.getGui().textContent=hl(t,!0)}};function Srt(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:r,filterByPercentageOfBestMatch:i,addSequentialWeight:o}=e;let a=n.map((c,d)=>({value:c,relevance:SHr(t.toLowerCase(),c.toLocaleLowerCase(),o),idx:d}));if(a.sort((c,d)=>d.relevance-c.relevance),r&&(a=a.filter(c=>c.relevance!==0)),a.length>0&&i&&i>0){const d=a[0].relevance*i;a=a.filter(f=>d-f.relevance<0)}const s=[],l=[];for(const c of a)s.push(c.value),l.push(c.idx);return{values:s,indices:l}}function bHr(e){const t=[],n=e.length;for(let r=1;r<=n;r++)for(let i=0;i<=n-r;i++){const o=i+r-1;t.push(e.slice(i,o+1))}return t}function SHr(e,t,n=!1){const r=e.replace(/\s/g,""),i=t.replace(/\s/g,""),o=r.length,a=i.length,s=new Array(o+1).fill(null).map(()=>new Array(a+1).fill(0));for(let f=0;f<=o;f+=1)s[f][0]=f;for(let f=0;f<=a;f+=1)s[0][f]=f;for(let f=1;f<=o;f++)for(let h=1;h<=a;h++)r[f-1]===i[h-1]?s[f][h]=s[f-1][h-1]:s[f][h]=1+Math.min(s[f][h-1],Math.min(s[f-1][h],s[f-1][h-1]));const l=s[o][a];let d=Math.max(o,a)-l;if(n){const f=bHr(r);for(let h=0;h<f.length;h++){const p=f[h];i.indexOf(p)!==-1&&(d+=1,d*=p.length)}}return d}var wHr=class extends at{constructor(){super(...arguments),this.beanName="userComponentRegistry",this.agGridDefaults={agDragAndDropImage:oHr,agColumnHeader:kse,agColumnGroupHeader:lHr,agSortIndicator:Gme,agAnimateShowChangeCellRenderer:dHr,agAnimateSlideCellRenderer:fHr,agLoadingCellRenderer:gHr,agSkeletonCellRenderer:mHr,agCheckboxCellRenderer:pHr,agLoadingOverlay:vHr,agNoRowsOverlay:CHr,agTooltipComponent:yHr},this.agGridDefaultParams={},this.enterpriseAgDefaultCompsModule={agSetColumnFilter:"@ag-
2025-02-18 08:35:18 +08:00
<script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>
2025-04-17 10:18:46 +08:00
For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(Ei.moduleBased||Ei.moduleBased===void 0){const a=(o=Object.entries(Qn).find(([s,l])=>l===t))==null?void 0:o[0];i=`AG Grid: unable to use ${n} as the ${a} is not registered${Ei.areGridScopedModules?` for gridId: ${r}`:""}. Check if you have registered the module:
2025-02-18 08:35:18 +08:00
import { ModuleRegistry } from '@ag-grid-community/core';
import { ${a} } from '${t}';
ModuleRegistry.registerModules([ ${a} ]);
For more info see: https://www.ag-grid.com/javascript-grid/modules/`}else i=`AG Grid: unable to use ${n} as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:
2025-04-17 15:35:46 +08:00
import 'ag-grid-enterprise';`;return br(i),!1}static __isRegistered(t,n){var r;return!!Ei.globalModulesMap[t]||!!((r=Ei.gridModulesMap[n])!=null&&r[t])}static __getRegisteredModules(t){return[...dD(Ei.globalModulesMap),...dD(Ei.gridModulesMap[t]||{})]}static __getGridRegisteredModules(t){return dD(Ei.gridModulesMap[t]??{})||[]}static __isPackageBased(){return!Ei.moduleBased}};CK.globalModulesMap={};CK.gridModulesMap={};CK.areGridScopedModules=!1;var kd=CK,HHr=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){var t;Object.entries(e.providedBeanInstances).forEach(([n,r])=>{this.beans[n]=r}),e.beanClasses.forEach(n=>{const r=new n;r.beanName?this.beans[r.beanName]=r:console.error(`Bean ${n.name} is missing beanName`),this.createdBeans.push(r)}),(t=e.derivedBeans)==null||t.forEach(n=>{const{beanName:r,bean:i}=n(this);this.beans[r]=i,this.createdBeans.push(i)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(n=>{var r,i;(r=n.preWireBeans)==null||r.call(n,this.beans),(i=n.wireBeans)==null||i.call(n,this.beans)}),e.forEach(n=>{var r;return(r=n.preConstruct)==null?void 0:r.call(n)}),t&&e.forEach(t),e.forEach(n=>{var r;return(r=n.postConstruct)==null?void 0:r.call(n)})}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){var t;(t=e==null?void 0:e.destroy)==null||t.call(e)}destroyBeans(e){if(e)for(let t=0;t<e.length;t++)this.destroyBean(e[t]);return[]}isDestroyed(){return this.destroyed}},jHr=class extends HHr{init(e){this.gridId=e.gridId,this.beans.context=this,super.init(e)}destroy(){super.destroy(),kd.__unRegisterGridModules(this.gridId)}getGridId(){return this.gridId}},$rt=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))($rt||{}),F8=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(F8||{}),VHr=class extends at{constructor(){super(...arguments),this.beanName="dragAndDropService",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsService=e.ctrlsService,this.dragService=e.dragService,this.mouseEventService=e.mouseEventService,this.environment=e.environment,this.userComponentFactory=e.userComponentFactory}addDragSource(e,t=!1){const n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const t=this.dragSourceAndParamsList.find(n=>n.dragSource===e);t&&(this.dragService.removeDragSource(t.params),Ms(this.dragSourceAndParamsList,t))}destroy(){this.dragSourceAndParamsList.forEach(e=>this.dragService.removeDragSource(e.params)),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){var n,r;this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),(r=(n=this.dragSource).onDragStarted)==null||r.call(n),this.createDragAndDropImageComponent()}onDragStop(e){var t,n,r;if((n=(t=this.dragSource)==null?void 0:t.onDragStopped)==null||n.call(t),(r=this.lastDropTarget)!=null&&r.onDragStop){const i=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.l
2025-04-17 10:18:46 +08:00
${A0("eTopLeft","topLeft")}
${A0("eTop","top")}
${A0("eTopRight","topRight")}
${A0("eRight","right")}
${A0("eBottomRight","bottomRight")}
${A0("eBottom","bottom")}
${A0("eBottomLeft","bottomLeft")}
${A0("eLeft","left")}
2025-04-17 15:35:46 +08:00
</div>`,bK=class extends at{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupService=e.popupService,this.resizeObserverService=e.resizeObserverService,this.dragService=e.dragService}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,n=t/2-this.getWidth()/2,r=e/2-this.getHeight()/2;this.offsetElement(n,r)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:n,width:r,minHeight:i,height:o,x:a,y:s}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const d=zc(this.element);if(d){const f=this.findBoundaryElement(),h=window.getComputedStyle(f);if(h.minWidth!=null){const p=f.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-p}if(h.minHeight!=null){const p=f.offsetHeight-this.element.offsetHeight;l=parseInt(h.minHeight,10)-p}}if(this.minHeight=i||l,this.minWidth=n||c,r&&this.setWidth(r),o&&this.setHeight(o),(!r||!o)&&this.refreshSize(),e)this.center();else if(a||s)this.offsetElement(a,s);else if(d&&t){let f=this.boundaryEl,h=!0;if(f||(f=this.findBoundaryElement(),h=!1),f){const p=parseFloat(f.style.top),g=parseFloat(f.style.left);h?this.offsetElement(isNaN(g)?0:g,isNaN(p)?0:p):this.setPosition(g,p)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){if(!this.config.popup||e===this.movable)return;this.movable=e;const n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{const r=!!e[t],i=this.getResizerElement(t),o={dragStartPixels:0,eElement:i,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(r||!this.isAlive()&&!r)&&(r?(this.dragService.addDragSource(o),this.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=r)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,n=this.element;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)fE(n,e),e=srt(n),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(r?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?fE(n,e):(n.style.height=`${e}px`,n.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:n}=this.offsetParent;if(!n)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),o=e?this.position.y:r.top,a=e?0:i.top;let s=0;if(t){const c=this.element.parentElement;if(c){const{bottom:d}=c.getBoundingClientRect();s=d-r.bottom}}return n+a-o-s}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:n}=this.config;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Ih(t,e),e=tz(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{cl
2025-02-18 08:35:18 +08:00
<form class="ag-filter-wrapper">
<div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody">
${this.createBodyTemplate()}
</div>
2025-04-17 10:18:46 +08:00
</form>`;this.setTemplate(n,this.getAgComponents(),e),t=this.getGui(),t&&t.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.providedFilterParams.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.providedFilterParams=e,this.applyActive=sz(e),this.resetButtonsPanel(e)}updateParams(e){this.providedFilterParams=e,this.applyActive=sz(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:n,readOnly:r}=t??{},{buttons:i,readOnly:o}=e;if(r===o&&tO(n,i))return;const a=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Zi(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):a&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!a){this.eButtonsPanel&&xc(this.eButtonsPanel);return}const s=document.createDocumentFragment(),l=c=>{let d,f;switch(c){case"apply":d=this.translate("applyFilter"),f=g=>this.onBtApply(!1,!1,g);break;case"clear":d=this.translate("clearFilter"),f=()=>this.onBtClear();break;case"reset":d=this.translate("resetFilter"),f=()=>this.onBtReset();break;case"cancel":d=this.translate("cancelFilter"),f=g=>{this.onBtCancel(g)};break;default:et("Unknown button type specified");return}const p=$c(`<button
2025-02-18 08:35:18 +08:00
type="${c==="apply"?"submit":"button"}"
data-ref="${c}FilterButton"
class="ag-button ag-standard-button ag-filter-apply-panel-button"
>${d}
2025-04-17 15:35:46 +08:00
</button>`);this.buttonListeners.push(...this.addManagedElementListeners(p,{click:f})),s.append(p)};i.forEach(c=>l(c)),this.eButtonsPanel.append(s),this.getGui().appendChild(this.eButtonsPanel)}getDefaultDebounceMs(){return 0}setupOnBtApplyDebounce(){const e=qme(this.providedFilterParams,this.getDefaultDebounceMs()),t=is(this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel?this.appliedModel:null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.providedFilterParams.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const n=()=>{this.onUiChanged(!1,"prevent"),t==null||t()};e!=null?this.setModelIntoUi(e).then(n):this.resetUiToDefaults().then(n)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const n=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(n,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,n){n&&n.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"});const{closeOnApply:r}=this.providedFilterParams;r&&this.applyActive&&!e&&!t&&this.close(n)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,n=t&&t.key;let r;(n==="Enter"||n==="Space")&&(r={keyboardEvent:t}),this.hidePopup(r),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const n=this.isModelValid(this.getModelFromUi()),r=this.queryForHtmlElement('[data-ref="applyFilterButton"]');r&&cO(r,!n)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e==null?void 0:e.container)}refreshFilterResizer(e){if(!this.positionableFeature||e==="toolPanel")return;const t=e==="floatingFilter"||e==="columnFilter",{positionableFeature:n,gos:r}=this;t?(n.restoreLastSize(),n.setResizable(r.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)}refresh(e){const t=this.providedFilterParams;return this.providedFilterParams=e,this.resetButtonsPanel(e,t),!0}destroy(){const e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.localeService.getLocaleTextFunc()(e,Prt[e])}getCellValue(e){return this.providedFilterParams.getValue(e)}getPositionableElement(){return this.eFilterBody}},QHr=class extends vK{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)}},ZHr=class extends vn{constructor(e="default",t=!1){super(`<div class="ag-list ag-${e}-list" role="listbox"></div>`),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){const e=this.getGui();this
2025-02-18 08:35:18 +08:00
<div class="ag-picker-field" role="presentation">
<div data-ref="eLabel"></div>
<div data-ref="eWrapper" class="ag-wrapper ag-picker-field-wrapper ag-picker-collapsed">
<div data-ref="eDisplayField" class="ag-picker-field-display"></div>
<div data-ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>
</div>
2025-04-17 15:35:46 +08:00
</div>`,(e==null?void 0:e.agComponents)||[],e==null?void 0:e.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=wt,this.eWrapper=wt,this.eDisplayField=wt,this.eIcon=wt,this.ariaRole=e==null?void 0:e.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:n,variableWidth:r,minPickerWidth:i,maxPickerWidth:o}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,n!=null&&this.setPickerMaxHeight(n),i!=null&&this.setPickerMinWidth(i),o!=null&&this.setPickerMaxWidth(o)}wireBeans(e){this.popupService=e.popupService}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:n,inputWidth:r}=this.config;if(n){const i=zn(n,this.gos);i&&this.eIcon.appendChild(i)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Du(e,!1),this.ariaRole&&Ro(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&(e==null?void 0:e.target)===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case Ze.UP:case Ze.DOWN:case Ze.ENTER:case Ze.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Ze.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.localeService.getLocaleTextFunc(),{pickerAriaLabelKey:n,pickerAriaLabelValue:r,modalPicker:i=!0}=this.config,o={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const h=oO(this.gos);this.beforeHidePicker(),h&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,r),anchorToElement:this.eWrapper};e.style.position="absolute";const a=this.popupService.addPopup(o),{maxPickerHeight:s,minPickerWidth:l,maxPickerWidth:c,variableWidth:d}=this;d?(l&&(e.style.minWidth=l),e.style.width=Vme(tz(this.eWrapper)),c&&(e.style.maxWidth=c)):oz(e,c??tz(this.eWrapper));const f=s??`${gK(this.popupService.getPopupParent())}px`;return e.style.setProperty("max-height",f),this.alignPickerToComponent(),a.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerType:e}=this.config,{pickerGap:t}=this,n=this.gos.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:n,keepWithinBounds:!0,nudgeY:t})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();Du(t,e),this.eWrapper.classList.toggle("ag-picker-expa
2025-02-18 08:35:18 +08:00
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
2025-04-17 15:35:46 +08:00
</div>`,[F4]),this.eFloatingFilterText=wt}wireBeans(e){this.columnNameService=e.columnNameService}destroy(){super.destroy()}init(e){this.params=e;const t=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${n("ariaFilterInput","Filter Input")}`)}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const n=t.getModelAsString(e);this.eFloatingFilterText.setValue(n)}})}onParamsUpdated(e){this.refresh(e)}refresh(e){this.init(e)}},Yrt=class extends vn{wireBeans(e){this.columnNameService=e.columnNameService}getDefaultDebounceMs(){return 0}destroy(){super.destroy()}isEventFromFloatingFilter(e){return e&&e.afterFloatingFilter}isEventFromDataChange(e){return e==null?void 0:e.afterDataChange}getLastType(){return this.lastType}isReadOnly(){return this.readOnly}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.getDefaultOption();return}const t=e.operator;let n;t?n=e.conditions[0]:n=e,this.lastType=n.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const n=e;return this.isTypeEditable(n.type)}init(e){this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){this.optionsFactory=new Trt,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),t||(this.lastType=this.optionsFactory.getDefaultOption()),this.readOnly=!!e.filterParams.readOnly;const n=this.isTypeEditable(this.optionsFactory.getDefaultOption());this.setEditable(n)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.setSimpleParams(e)}doesFilterHaveSingleInput(e){const t=this.optionsFactory.getCustomOption(e),{numberOfInputs:n}=t||{};return n==null||n==1}isTypeEditable(e){const t=["inRange","empty","blank","notBlank"];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0}getAriaLabel(e){const t=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),n=this.localeService.getLocaleTextFunc();return`${t} ${n("ariaFilterInput","Filter Input")}`}},Djr=class extends Yrt{constructor(){super(`
2025-02-18 08:35:18 +08:00
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field data-ref="eReadOnlyText"></ag-input-text-field>
<div data-ref="eDateWrapper" style="display: flex;"></div>
2025-04-17 15:35:46 +08:00
</div>`,[F4]),this.eReadOnlyText=wt,this.eDateWrapper=wt}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}getDefaultFilterOptions(){return jrt}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Vrt(this.filterParams,this.localeService,this.optionsFactory);const t=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){if(e){const n=e;this.dateComp.setDate(Ec(n.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){En(this.eDateWrapper,e),En(this.eReadOnlyText.getGui(),!e)}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(super.setLastTypeFromModel(e),this.updateCompOnModelChange(e))}onDateChanged(){const e=this.dateComp.getDate(),t=Qd(e);this.params.parentFilterInstance(n=>{if(n){const r=Ec(t);n.onFloatingFilterChanged(this.getLastType()||null,r)}})}getDateComponentParams(){const e=qme(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:is(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}}createDateComponent(){this.dateComp=new Hrt(this.context,this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper,e=>{e.setInputAriaLabel(this.getAriaLabel(this.params))}),this.addDestroyFunc(()=>this.dateComp.destroy())}updateDateComponent(){const e=this.gos.addGridCommonParams(this.getDateComponentParams());this.dateComp.updateParams(e)}getFilterModelFormatter(){return this.filterModelFormatter}},Ljr=class extends vn{constructor(){super(`
2025-02-18 08:35:18 +08:00
<div class="ag-filter-filter">
<ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
2025-04-17 15:35:46 +08:00
</div>`,[F4]),this.eDateInput=wt}destroy(){super.destroy()}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus()},input:n=>{n.target===ri(this.gos)&&(this.eDateInput.isDisabled()||this.params.onDateChanged())}})}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&xp(),t.type=n?"date":"text";const{minValidYear:r,maxValidYear:i,minValidDate:o,maxValidDate:a}=e.filterParams||{};if(o&&r&&et("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),a&&i&&et("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),o&&a){const[s,l]=[o,a].map(c=>c instanceof Date?c:Ec(c));s&&l&&s.getTime()>l.getTime()&&et("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}o?o instanceof Date?t.min=pE(o):t.min=o:r&&(t.min=`${r}-01-01`),a?a instanceof Date?t.max=pE(a):t.max=a:i&&(t.max=`${i}-12-31`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}getDate(){return Ec(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(Qd(e,!1))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()}shouldUseBrowserDatePicker(e){return e.filterParams&&e.filterParams.browserDatePicker!=null?e.filterParams.browserDatePicker:Bme()||Hme()||xp()&&nrt()>=14.1}},Qrt=class extends at{constructor(e){super(),this.params=e,this.eFloatingFilterTextInput=wt,this.valueChangedListener=()=>{}}setupGui(e){var r;this.eFloatingFilterTextInput=this.createManagedBean(new _4((r=this.params)==null?void 0:r.config));const t=this.eFloatingFilterTextInput.getGui();e.appendChild(t);const n=i=>this.valueChangedListener(i);this.addManagedListeners(t,{input:n,keydown:n})}setEditable(e){this.eFloatingFilterTextInput.setDisabled(!e)}setAutoComplete(e){this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.eFloatingFilterTextInput.getValue()}setValue(e,t){this.eFloatingFilterTextInput.setValue(e,t)}setValueChangedListener(e){this.valueChangedListener=e}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)}},Zrt=class extends Yrt{constructor(){super(...arguments),this.eFloatingFilterInputContainer=wt}postConstruct(){this.setTemplate(`
2025-02-18 08:35:18 +08:00
<div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
2025-04-17 15:35:46 +08:00
`)}getDefaultDebounceMs(){return 500}onParentModelChanged(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))}init(e){this.setupFloatingFilterInputService(e),super.init(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){this.params=e;const t=e.browserAutoComplete??!1;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:t}),this.applyActive=sz(this.params.filterParams),!this.isReadOnly()){const n=qme(this.params.filterParams,this.getDefaultDebounceMs()),r=is(this.syncUpWithParentFilter.bind(this),n);this.floatingFilterInputService.setValueChangedListener(r)}}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const t=this.floatingFilterInputService.getValue();Zi(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)}syncUpWithParentFilter(e){const t=e.key===Ze.ENTER;if(this.applyActive&&!t)return;let n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=krt(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance(r=>{r&&r.onFloatingFilterChanged(this.getLastType()||null,n||null)})}setEditable(e){this.floatingFilterInputService.setEditable(e)}},Njr=class extends at{constructor(){super(...arguments),this.valueChangedListener=()=>{},this.numberInputActive=!0}setupGui(e){this.eFloatingFilterNumberInput=this.createManagedBean(new Kme),this.eFloatingFilterTextInput=this.createManagedBean(new _4),this.eFloatingFilterTextInput.setDisabled(!0);const t=this.eFloatingFilterNumberInput.getGui(),n=this.eFloatingFilterTextInput.getGui();e.appendChild(t),e.appendChild(n),this.setupListeners(t,r=>this.valueChangedListener(r)),this.setupListeners(n,r=>this.valueChangedListener(r))}setEditable(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput}setValueChangedListener(e){this.valueChangedListener=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams(e){this.setAriaLabel(e.ariaLabel),e.autoComplete!==void 0&&this.setAutoComplete(e.autoComplete)}setAriaLabel(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)}},zjr=class extends Zrt{init(e){var t;super.init(e),this.filterModelFormatter=new Lrt(this.localeService,this.optionsFactory,(t=e.filterParams)==null?void 0:t.numberFormatter)}onParamsUpdated(e){this.refresh(e)}refresh(e){Hse(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return Drt}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(e){return this.allowedCharPattern=Hse(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Qrt({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Njr)}},kjr=class extends Zrt{init(e){super.init(e),this.filterModelFormatter=new zrt(this.localeService,this.optionsFactory)}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.filterModelFormatter.u
`)}},Zme={version:ir,moduleName:"@ag-grid-community/filter-core",beans:[XHr]},Gjr={version:ir,moduleName:"@ag-grid-community/filter-api",apiFunctions:{isAnyFilterPresent:_jr,onFilterChanged:Fjr},dependantModules:[Zme]},YC={version:ir,moduleName:"@ag-grid-community/column-filter",beans:[Tjr],dependantModules:[Zme]},Wjr={version:ir,moduleName:"@ag-grid-community/column-filter-api",apiFunctions:{isColumnFilterPresent:Sjr,getFilterInstance:wjr,getColumnFilterInstance:xjr,destroyFilter:$jr,setFilterModel:Ejr,getFilterModel:Rjr,getColumnFilterModel:Ojr,setColumnFilterModel:Mjr,showColumnFilter:Pjr},dependantModules:[YC,Gjr]},Jme={version:ir,moduleName:"@ag-grid-community/floating-filter-core",controllers:[{name:"headerFilterCell",classImp:bjr}],dependantModules:[YC]},Jrt={version:ir,moduleName:"@ag-grid-community/floating-filter",dependantModules:[Jme,YC]},Ujr={version:ir,moduleName:"@ag-grid-community/read-only-floating-filter",userComponents:[{name:"agReadOnlyFloatingFilter",classImp:Ajr}],dependantModules:[Jme]},qjr={version:ir,moduleName:"@ag-grid-community/simple-filter",dependantModules:[YC],userComponents:[{name:"agTextColumnFilter",classImp:fjr},{name:"agNumberColumnFilter",classImp:djr},{name:"agDateColumnFilter",classImp:gjr},{name:"agDateInput",classImp:Ljr}]},Kjr={version:ir,moduleName:"@ag-grid-community/simple-floating-filter",dependantModules:[qjr,Jme],userComponents:[{name:"agTextColumnFloatingFilter",classImp:kjr},{name:"agNumberColumnFloatingFilter",classImp:zjr},{name:"agDateColumnFloatingFilter",classImp:Djr}]},eit={version:ir,moduleName:"@ag-grid-community/quick-filter-core",beans:[Vjr],dependantModules:[Zme]},Xjr={version:ir,moduleName:"@ag-grid-community/quick-filter-api",apiFunctions:{isQuickFilterPresent:Bjr,getQuickFilter:Hjr,resetQuickFilter:jjr},dependantModules:[eit]},Yjr={version:ir,moduleName:"@ag-grid-community/quick-filter",dependantModules:[eit,Xjr]},Qjr={version:ir,moduleName:"@ag-grid-community/filter",dependantModules:[Kjr,Ujr,Yjr,Wjr]},e0e=class extends vn{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},Zjr=class extends e0e{constructor(t){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell">
2025-02-18 08:35:18 +08:00
<div data-ref="eFloatingFilterBody" role="presentation"></div>
<div class="ag-floating-filter-button ag-hidden" data-ref="eButtonWrapper" role="presentation">
<button type="button" class="ag-button ag-floating-filter-button-button" data-ref="eButtonShowMainFilter" tabindex="-1"></button>
</div>
2025-04-17 10:18:46 +08:00
</div>`,t),this.eFloatingFilterBody=wt,this.eButtonWrapper=wt,this.eButtonShowMainFilter=wt}postConstruct(){const t=this.getGui(),n={addOrRemoveCssClass:(r,i)=>this.addOrRemoveCssClass(r,i),addOrRemoveBodyCssClass:(r,i)=>this.eFloatingFilterBody.classList.toggle(r,i),setButtonWrapperDisplayed:r=>En(this.eButtonWrapper,r),setCompDetails:r=>this.setCompDetails(r),getFloatingFilterComp:()=>this.compPromise,setWidth:r=>t.style.width=r,setMenuIcon:r=>this.eButtonShowMainFilter.appendChild(r)};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(t){if(!t){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=t.newAgStackInstance(),this.compPromise.then(n=>this.afterCompCreated(n))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(t){if(t){if(!this.isAlive()){this.destroyBean(t);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()}}},Jjr=class extends e0e{constructor(t){super(`<div class="ag-header-cell" role="columnheader">
2025-02-18 08:35:18 +08:00
<div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
<div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
2025-04-17 15:35:46 +08:00
</div>`,t),this.eResize=wt,this.eHeaderCompWrapper=wt,this.headerCompVersion=0,this.column=t.getColumnGroupChild(),this.pinned=t.getPinned()}postConstruct(){const t=this.getGui();((o,a)=>{a!=null&&a!=""?t.setAttribute(o,a):t.removeAttribute(o)})("col-id",this.column.getColId());const r={setWidth:o=>t.style.width=o,addOrRemoveCssClass:(o,a)=>this.addOrRemoveCssClass(o,a),setAriaSort:o=>o?Jnt(t,o):ert(t),setUserCompDetails:o=>this.setUserCompDetails(o),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);const i=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",i)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(t){this.headerCompVersion++;const n=this.headerCompVersion;t.newAgStackInstance().then(r=>this.afterCompCreated(n,r))}afterCompCreated(t,n){if(t!=this.headerCompVersion||!this.isAlive()){this.destroyBean(n);return}this.destroyHeaderComp(),this.headerComp=n,this.headerCompGui=n.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},eVr=class extends e0e{constructor(t){super(`<div class="ag-header-group-cell" role="columnheader">
2025-02-18 08:35:18 +08:00
<div data-ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>
<div data-ref="eResize" class="ag-header-cell-resize" role="presentation"></div>
2025-04-17 15:35:46 +08:00
</div>`,t),this.eResize=wt,this.eHeaderCompWrapper=wt}postConstruct(){const t=this.getGui(),n=(i,o)=>o!=null?t.setAttribute(i,o):t.removeAttribute(i);t.setAttribute("col-id",this.ctrl.getColId());const r={addOrRemoveCssClass:(i,o)=>this.addOrRemoveCssClass(i,o),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>En(this.eResize,i),setWidth:i=>t.style.width=i,setAriaExpanded:i=>n("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(r,t,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(t){t.newAgStackInstance().then(n=>this.afterHeaderCompCreated(n))}afterHeaderCompCreated(t){const n=()=>this.destroyBean(t);if(!this.isAlive()){n();return}const r=this.getGui(),i=t.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(n),this.headerGroupComp=t,this.ctrl.setDragSource(r)}addOrRemoveHeaderWrapperStyle(t,n){const{eHeaderCompWrapper:r}=this;n?r.style.setProperty(t,n):r.style.removeProperty(t)}},jse=(e=>(e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter",e))(jse||{}),tVr=class extends vn{constructor(t){super(),this.headerComps={},this.ctrl=t,this.setTemplate(`<div class="${this.ctrl.getHeaderRowClass()}" role="row"></div>`)}postConstruct(){Ynt(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:n=>this.getGui().style.height=n,setTop:n=>this.getGui().style.top=n,setHeaderCtrls:(n,r)=>this.setHeaderCtrls(n,r),setWidth:n=>this.getGui().style.width=n};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(t,n){if(!this.isAlive())return;const r=this.headerComps;if(this.headerComps={},t.forEach(i=>{const o=i.instanceId;let a=r[o];delete r[o],a==null&&(a=this.createHeaderComp(i),this.getGui().appendChild(a.getGui())),this.headerComps[o]=a}),Rs(r,(i,o)=>{this.getGui().removeChild(o.getGui()),this.destroyBean(o)}),n){const i=Av(this.headerComps);i.sort((a,s)=>{const l=a.getCtrl().getColumnGroupChild().getLeft(),c=s.getCtrl().getColumnGroupChild().getLeft();return l-c});const o=i.map(a=>a.getGui());drt(this.getGui(),o)}}createHeaderComp(t){let n;switch(this.ctrl.getType()){case"group":n=new eVr(t);break;case"filter":n=new Zjr(t);break;default:n=new Jjr(t);break}return this.createBean(n),n.setParentComponent(this),n}},nVr=class extends at{constructor(){super(...arguments),this.beanName="headerNavigationService",this.currentHeaderRowWithoutSpan=-1}wireBeans(e){this.focusService=e.focusService,this.headerPositionUtils=e.headerPositionUtils,this.ctrlsService=e.ctrlsService,this.columnModel=e.columnModel,this.visibleColService=e.visibleColsService}postConstruct(){this.ctrlsService.whenReady(this,t=>{this.gridBodyCon=t.gridBodyCtrl});const e=Yi(this.gos);this.addManagedElementListeners(e,{mousedown:()=>this.setCurrentHeaderRowWithoutSpan(-1)})}getHeaderRowCount(){var e;return((e=this.ctrlsService.getHeaderRowContainerCtrl())==null?void 0:e.getRowCount())??0}getHeaderPositionForColumn(e,t){let n;if(typeof e=="string"?(n=this.columnModel.getCol(e),n||(n=this.visibleColService.getColumnGroup(e))):n=e,!n)return null;const r=this.ctrlsService.getHeaderRowContainerCtrl(),i=r==null?void 0:r.getAllCtrls(),o=Pn(i||[]).getType()==="filter",a=this.getHeaderRowCount()-1;let s=-1,l=n;for(;l;)s++,l=l.getParent();let c=s;return t&&o&&c===a-1&&c++,c===-1?null:{headerRowIndex:c,column:n}}navigateVertically(e,t,n){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;const{headerRowIndex:r}=t,i=t.column,o=this.getHeaderRowCount(),a=e===0;let{headerRowIndex:s,column:l,headerRowIndexWithoutSpan:c}=a?this.headerPositionUtils.getColumnVisibleParent(i,r):this.headerPositionUtils.getColumnVisibleChild(i,r),d=!1;re
2025-02-18 08:35:18 +08:00
<div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
2025-04-17 15:35:46 +08:00
</div>`,rte=class extends vn{constructor(t){super(),this.eCenterContainer=wt,this.headerRowComps={},this.rowCompsList=[],this.pinned=t}postConstruct(){this.selectAndSetTemplate();const t={setDisplayed:r=>this.setDisplayed(r),setCtrls:r=>this.setCtrls(r),setCenterWidth:r=>this.eCenterContainer.style.width=r,setViewportScrollLeft:r=>this.getGui().scrollLeft=r,setPinnedContainerWidth:r=>{const i=this.getGui();i.style.width=r,i.style.maxWidth=r,i.style.minWidth=r}};this.createManagedBean(new rit(this.pinned)).setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left",n=this.pinned=="right",r=t?yVr:n?bVr:SVr;this.setTemplate(r),this.eRowContainer=this.eCenterContainer!==wt?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())}setCtrls(t){const n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let r;const i=o=>{const a=o.getGui();a.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(a),r&&urt(this.eRowContainer,a,r),r=a};t.forEach(o=>{const a=o.instanceId,s=n[a];delete n[a];const l=s||this.createBean(new tVr(o));this.headerRowComps[a]=l,this.rowCompsList.push(l),i(l)}),Av(n).forEach(o=>this.destroyRowComp(o))}},wVr=class extends vn{constructor(){super('<div class="ag-header" role="presentation"/>')}postConstruct(){const t={addOrRemoveCssClass:(i,o)=>this.addOrRemoveCssClass(i,o),setHeightAndMinHeight:i=>{this.getGui().style.height=i,this.getGui().style.minHeight=i}};this.createManagedBean(new tit).setComp(t,this.getGui(),this.getFocusableElement());const r=i=>{this.createManagedBean(i),this.appendChild(i)};r(new rte("left")),r(new rte(null)),r(new rte("right"))}},xVr={selector:"AG-HEADER-ROOT",component:wVr},r0e=class extends at{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.getDomLayout(),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},n=t.autoHeight?"ag-layout-auto-height":t.print?"ag-layout-print":"ag-layout-normal";this.view.updateLayoutClasses(n,t)}getDomLayout(){const e=this.gos.get("domLayout")??"normal";return["normal","print","autoHeight"].indexOf(e)===-1?(et(`${e} is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.`),"normal"):e}},iit=class extends vn{constructor(){super(`
2025-02-18 08:35:18 +08:00
<div class="ag-overlay" role="presentation">
<div class="ag-overlay-panel" role="presentation">
<div class="ag-overlay-wrapper" data-ref="eOverlayWrapper" role="presentation"></div>
</div>
2025-04-17 15:35:46 +08:00
</div>`),this.eOverlayWrapper=wt,this.activePromise=null,this.activeOverlay=null,this.updateListenerDestroyFunc=null,this.activeOverlayWrapperCssClass=null,this.elToFocusAfter=null}wireBeans(e){this.overlayService=e.overlayService,this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}handleKeyDown(e){if(e.key!==Ze.TAB||e.defaultPrevented||Ph(e)||this.focusService.findNextFocusableElement(this.eOverlayWrapper,!1,e.shiftKey))return;let n=!1;e.shiftKey?n=this.focusService.focusGridView(Pn(this.visibleColsService.getAllCols()),!0,!1):n=this.focusService.focusNextGridCoreContainer(!1),n&&e.preventDefault()}updateLayoutClasses(e,t){const n=this.eOverlayWrapper.classList;n.toggle("ag-layout-auto-height",t.autoHeight),n.toggle("ag-layout-normal",t.normal),n.toggle("ag-layout-print",t.print)}postConstruct(){this.createManagedBean(new r0e(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.overlayService.setOverlayWrapperComp(this),this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}setWrapperTypeClass(e){const t=this.eOverlayWrapper.classList;this.activeOverlayWrapperCssClass&&t.toggle(this.activeOverlayWrapperCssClass,!1),this.activeOverlayWrapperCssClass=e,t.toggle(e,!0)}showOverlay(e,t,n,r){if(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.elToFocusAfter=null,this.activePromise=e,!!e){if(this.setDisplayed(!0,{skipAriaHidden:!0}),n&&this.focusService.isGridFocused()){const i=ri(this.gos);i&&!oO(this.gos)&&(this.elToFocusAfter=i)}e.then(i=>{if(this.activePromise!==e){this.activeOverlay!==i&&(this.destroyBean(i),i=null);return}if(this.activePromise=null,!i)return;if(this.activeOverlay!==i&&(this.eOverlayWrapper.appendChild(i.getGui()),this.activeOverlay=i,r)){const a=i;this.updateListenerDestroyFunc=this.addManagedPropertyListener(r,({currentValue:s})=>{var l;(l=a.refresh)==null||l.call(a,this.gos.addGridCommonParams({...s??{}}))})}const o=this.focusService;n&&o.isGridFocused()&&o.focusInto(this.eOverlayWrapper)})}}updateOverlayWrapperPaddingTop(e){this.eOverlayWrapper.style.setProperty("padding-top",`${e}px`)}destroyActiveOverlay(){var r;this.activePromise=null;const e=this.activeOverlay;if(!e)return;let t=this.elToFocusAfter;this.activeOverlay=null,this.elToFocusAfter=null,t&&!this.focusService.isGridFocused()&&(t=null);const n=this.updateListenerDestroyFunc;n&&(n(),this.updateListenerDestroyFunc=null),this.destroyBean(e),Zi(this.eOverlayWrapper),(r=t==null?void 0:t.focus)==null||r.call(t,{preventScroll:!0})}hideOverlay(){this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})}destroy(){this.elToFocusAfter=null,this.destroyActiveOverlay(),this.overlayService.setOverlayWrapperComp(void 0),super.destroy()}},$Vr={selector:"AG-OVERLAY-WRAPPER",component:iit},oit=class extends vn{constructor(e,t){super(),this.direction=t,this.eViewport=wt,this.eContainer=wt,this.hideTimeout=null,this.setTemplate(e)}wireBeans(e){this.animationFrameService=e.animationFrameService}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",rrt()||t0())}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=ort(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),n=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:n,touchend:n})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame(()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout!==null&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=null),this.addOrRemoveCssClass("ag-scrollbar-scr
2025-02-18 08:35:18 +08:00
<div class="ag-horizontal-left-spacer" data-ref="eLeftSpacer"></div>
<div class="ag-body-horizontal-scroll-viewport" data-ref="eViewport">
<div class="ag-body-horizontal-scroll-container" data-ref="eContainer"></div>
</div>
<div class="ag-horizontal-right-spacer" data-ref="eRightSpacer"></div>
2025-04-17 15:35:46 +08:00
</div>`,"horizontal"),this.eLeftSpacer=wt,this.eRightSpacer=wt}wireBeans(e){super.wireBeans(e),this.visibleColsService=e.visibleColsService,this.pinnedRowModel=e.pinnedRowModel,this.ctrlsService=e.ctrlsService,this.scrollVisibleService=e.scrollVisibleService}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.onPinnedRowDataChanged.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.ctrlsService.register("fakeHScrollComp",this),this.createManagedBean(new t0e(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}onPinnedRowDataChanged(){this.refreshCompBottom()}refreshCompBottom(){if(!this.invisibleScrollbar)return;const e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleService.isVerticalScrollShowing();let t=this.visibleColsService.getDisplayedColumnsRightWidth();const n=!this.enableRtl&&e,r=this.scrollVisibleService.getScrollbarWidth();n&&(t+=r),Ih(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let i=this.visibleColsService.getColsLeftWidth();this.enableRtl&&e&&(i+=r),Ih(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=r)}setScrollVisible(){const e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleService.getScrollbarWidth()||0,o=n?0:r===0&&t?16:r;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),fE(this.getGui(),o),fE(this.eViewport,o),fE(this.eContainer,o),this.setDisplayed(e,{skipAriaHidden:!0})}getScrollPosition(){return rz(this.getViewportElement(),this.enableRtl)}setScrollPosition(e){zc(this.getViewportElement())||this.attemptSettingScrollPosition(e),iz(this.getViewportElement(),e,this.enableRtl)}},EVr={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:ait},sit=class extends at{wireBeans(e){this.maxDivHeightScaler=e.rowContainerHeightService}constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this)})}onHeightChanged(){const e=this.maxDivHeightScaler.getUiContainerHeight(),t=e!=null?`${e}px`:"";this.eContainer.style.height=t,this.eViewport&&(this.eViewport.style.height=t)}},lit=class extends oit{wireBeans(e){super.wireBeans(e),this.ctrlsService=e.ctrlsService,this.scrollVisibleService=e.scrollVisibleService}constructor(){super(`<div class="ag-body-vertical-scroll" aria-hidden="true">
2025-02-18 08:35:18 +08:00
<div class="ag-body-vertical-scroll-viewport" data-ref="eViewport">
<div class="ag-body-vertical-scroll-container" data-ref="eContainer"></div>
</div>
2025-04-17 15:35:46 +08:00
</div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new sit(this.eContainer)),this.ctrlsService.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this)})}setScrollVisible(){const e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,n=e&&this.scrollVisibleService.getScrollbarWidth()||0,r=n===0&&t?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Ih(this.getGui(),r),Ih(this.eViewport,r),Ih(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})}onRowContainerHeightChanged(){const{ctrlsService:e}=this,n=e.getGridBodyCtrl().getBodyViewportElement(),r=this.getScrollPosition(),i=n.scrollTop;r!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.getViewportElement().scrollTop}setScrollPosition(e,t){!t&&!zc(this.getViewportElement())&&this.attemptSettingScrollPosition(e),this.getViewportElement().scrollTop=e}},RVr={selector:"AG-FAKE-VERTICAL-SCROLL",component:lit},Gse=(e=>(e.FakeHScrollbar="fakeHScrollComp",e.Header="centerHeader",e.PinnedTop="topCenter",e.PinnedBottom="bottomCenter",e.StickyTop="stickyTopCenter",e.StickyBottom="stickyBottomCenter",e))(Gse||{}),OVr=class extends at{constructor(e){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.eBodyViewport=e,this.resetLastHScrollDebounced=is(()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=is(()=>this.lastScrollSource[0]=null,500)}wireBeans(e){this.ctrlsService=e.ctrlsService,this.animationFrameService=e.animationFrameService,this.paginationService=e.paginationService,this.pageBoundsService=e.pageBoundsService,this.rowModel=e.rowModel,this.heightScaler=e.rowContainerHeightService,this.rowRenderer=e.rowRenderer,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this)}),this.ctrlsService.whenReady(this,e=>{this.centerRowsCtrl=e.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.getViewportElement(),{scroll:this.onHScroll.bind(this,"Viewport")});for(const e of Object.values(Gse)){const t=this.ctrlsService.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsService.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),n=t?is(this.onVScroll.bind(this,"Viewport"),100):this.onVScroll.bind(this,"Viewport"),r=t?is(this.onVScroll.bind(this,"fakeVScrollComp"),100):this.onVScroll.bind(this,"fakeVScrollComp");this.addManagedElementListeners(this.eBodyViewport,{scroll:n}),this.registerScrollPartner(e,r)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...Object.values(Gse),"Viewport"]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);iz(n,e,this.enableRtl)}}getViewportForSource(e){return e==="Viewport"?this.centerRowsCtrl.getViewportElement():this.ctrlsService.get(e).getViewportElement()}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.getViewportElement(),{scrollLeft:n}=t;if(this.shouldBlockScrollUpdate(1,n,!0))return;const r=rz(this.getViewportForSource(e),this.enableRtl);this.doH
2025-02-18 08:35:18 +08:00
<div class="ag-selection-checkbox" role="presentation">
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
2025-04-17 15:35:46 +08:00
</div>`,[T4]),this.eCheckbox=wt}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=kme(e,t),[r,i]=this.rowNode.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],o=e(r,i);this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(`${o} (${n})`)}onClicked(e,t,n){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:n.shiftKey,groupSelectsFiltered:t,event:n,source:"checkboxSelected"})}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:r=>Sp(r),click:r=>{Sp(r);const i=Pme(this.gos)==="filteredDescendants",o=this.eCheckbox.getValue();this.shouldHandleIndeterminateState(o,i)?this.onClicked(!0,i,r||{})===0&&this.onClicked(!1,i,r):o?this.onClicked(!1,i,r):this.onClicked(!0,i,r||{})}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),Mme(this.gos)||typeof this.getIsVisible()=="function"){const r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}shouldHandleIndeterminateState(e,t){return t&&(this.eCheckbox.getPreviousValue()===void 0||e===void 0)&&Si(this.gos)}showOrHideSelect(){var i,o,a;let e=this.rowNode.selectable;const t=this.getIsVisible();if(e)if(typeof t=="function"){const s=(i=this.overrides)==null?void 0:i.callbackParams;if(!this.column)e=t({...s,node:this.rowNode,data:this.rowNode.data});else{const l=this.column.createColumnFunctionCallbackParams(this.rowNode);e=t({...s,...l})}}else e=t??!1;const n=this.gos.get("rowSelection");if(n&&typeof n!="string"?!Qkr(n):(o=this.column)==null?void 0:o.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!e),this.setVisible(!0),this.setDisplayed(!0);return}if((a=this.overrides)!=null&&a.removeHidden){this.setDisplayed(e);return}this.setVisible(e)}getIsVisible(){var t,n;if(this.overrides)return this.overrides.isVisible;const e=this.gos.get("rowSelection");return e&&typeof e!="string"?wS(e):(n=(t=this.column)==null?void 0:t.getColDef())==null?void 0:n.checkboxSelection}},IVr=class extends vn{constructor(e,t,n){super('<div class="ag-drag-handle ag-row-drag" draggable="true"></div>'),this.rowNode=e,this.column=t,this.eCell=n}postConstruct(){this.getGui().appendChild(zn("rowDrag",this.gos,null)),this.addGuiEventListener("mousedown",t=>{t.stopPropagation()}),this.addDragSource(),this.checkVisibility()}addDragSource(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))}onDragStart(e){const t=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);const n=()=>{try{const r=JSON.stringify(this.rowNode.data);e.dataTransfer.setData("application/json",r),e.dataTransfer.setData("text/plain",r)}catch{}};if(t){const r=this.gos.addGridCommonParams({rowNode:this.rowNode,dragEvent:e});t(r)}else n()}checkVisibility(){const e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)}},TVr=class extends at{constructor(e,t){super(),this.staticClasses=[],this.cellCtrl=e,this.beans=t,this.column=e.getColumn(),this.rowNode=e.getRowNode()}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const e=this.column.getColDef(),{cellClassRules:t}=e,n=this.beans.gos.addGridCommonParams({value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:e,column:this.column,rowIndex:this.rowNode.rowIndex});this.beans.stylingService.processClassRules(t===this.cellClassRules
2025-02-18 08:35:18 +08:00
<div class="${e.container}" data-ref="eContainer"></div>
2025-04-17 15:35:46 +08:00
</div>`:t=`<div class="${e.container}" data-ref="eContainer"></div>`,t}var yGr=class extends vn{constructor(){super(),this.eViewport=wt,this.eContainer=wt,this.rowComps={},this.name=vn.elementGettingCreated.getAttribute("name"),this.options=i6(this.name),this.setTemplate(CGr(this.options))}wireBeans(t){this.beans=t}postConstruct(){const t={setHorizontalScroll:r=>this.eViewport.scrollLeft=r,setViewportHeight:r=>this.eViewport.style.height=r,setRowCtrls:({rowCtrls:r})=>this.setRowCtrls(r),setDomOrder:r=>{this.domOrder=r},setContainerWidth:r=>this.eContainer.style.width=r,setOffsetTop:r=>this.eContainer.style.transform=`translateY(${r})`};this.createManagedBean(new pit(this.name)).setComp(t,this.eContainer,this.eViewport)}destroy(){this.setRowCtrls([]),super.destroy()}setRowCtrls(t){const n={...this.rowComps};this.rowComps={},this.lastPlacedElement=null;const r=i=>{const o=i.instanceId,a=n[o];if(a)this.rowComps[o]=a,delete n[o],this.ensureDomOrder(a.getGui());else{if(!i.getRowNode().displayed)return;const s=new vGr(i,this.beans,this.options.type);this.rowComps[o]=s,this.appendRow(s.getGui())}};t.forEach(r),Av(n).forEach(i=>{this.eContainer.removeChild(i.getGui()),i.destroy()}),Ro(this.eContainer,"rowgroup")}appendRow(t){this.domOrder?XBr(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t}ensureDomOrder(t){this.domOrder&&(urt(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)}},bGr={selector:"AG-ROW-CONTAINER",component:yGr};function Vx(e){return e.map(t=>`<ag-row-container name="${t}"></ag-row-container>`).join("")}var SGr=`<div class="ag-root ag-unselectable" role="treegrid">
2025-02-18 08:35:18 +08:00
<ag-header-root></ag-header-root>
<div class="ag-floating-top" data-ref="eTop" role="presentation">
2025-04-17 10:18:46 +08:00
${Vx(["topLeft","topCenter","topRight","topFullWidth"])}
2025-02-18 08:35:18 +08:00
</div>
<div class="ag-body" data-ref="eBody" role="presentation">
<div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation">
2025-04-17 10:18:46 +08:00
${Vx(["left","center","right","fullWidth"])}
2025-02-18 08:35:18 +08:00
</div>
<ag-fake-vertical-scroll></ag-fake-vertical-scroll>
</div>
<div class="ag-sticky-top" data-ref="eStickyTop" role="presentation">
2025-04-17 10:18:46 +08:00
${Vx(["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])}
2025-02-18 08:35:18 +08:00
</div>
<div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation">
2025-04-17 10:18:46 +08:00
${Vx(["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])}
2025-02-18 08:35:18 +08:00
</div>
<div class="ag-floating-bottom" data-ref="eBottom" role="presentation">
2025-04-17 10:18:46 +08:00
${Vx(["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])}
2025-02-18 08:35:18 +08:00
</div>
<ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
<ag-overlay-wrapper></ag-overlay-wrapper>
2025-04-17 15:35:46 +08:00
</div>`,wGr=class extends vn{constructor(){super(SGr,[$Vr,EVr,RVr,xVr,bGr]),this.eBodyViewport=wt,this.eStickyTop=wt,this.eStickyBottom=wt,this.eTop=wt,this.eBottom=wt,this.eBody=wt}wireBeans(t){this.resizeObserverService=t.resizeObserverService,this.rangeService=t.rangeService}postConstruct(){const t=(r,i)=>{const o=`${r}px`;i.style.minHeight=o,i.style.height=o},n={setRowAnimationCssOnBodyViewport:(r,i)=>this.setRowAnimationCssOnBodyViewport(r,i),setColumnCount:r=>Qnt(this.getGui(),r),setRowCount:r=>Xnt(this.getGui(),r),setTopHeight:r=>t(r,this.eTop),setBottomHeight:r=>t(r,this.eBottom),setTopDisplay:r=>this.eTop.style.display=r,setBottomDisplay:r=>this.eBottom.style.display=r,setStickyTopHeight:r=>this.eStickyTop.style.height=r,setStickyTopTop:r=>this.eStickyTop.style.top=r,setStickyTopWidth:r=>this.eStickyTop.style.width=r,setStickyBottomHeight:r=>{this.eStickyBottom.style.height=r,this.eStickyBottom.classList.toggle("ag-hidden",r==="0px")},setStickyBottomBottom:r=>this.eStickyBottom.style.bottom=r,setStickyBottomWidth:r=>this.eStickyBottom.style.width=r,setColumnMovingCss:(r,i)=>this.addOrRemoveCssClass(r,i),updateLayoutClasses:(r,i)=>{[this.eBodyViewport.classList,this.eBody.classList].forEach(a=>{a.toggle("ag-layout-auto-height",i.autoHeight),a.toggle("ag-layout-normal",i.normal),a.toggle("ag-layout-print",i.print)}),this.addOrRemoveCssClass("ag-layout-auto-height",i.autoHeight),this.addOrRemoveCssClass("ag-layout-normal",i.normal),this.addOrRemoveCssClass("ag-layout-print",i.print)},setAlwaysVerticalScrollClass:(r,i)=>this.eBodyViewport.classList.toggle(git,i),registerBodyViewportResizeListener:r=>{const i=this.resizeObserverService.observeResize(this.eBodyViewport,r);this.addDestroyFunc(()=>i())},setPinnedTopBottomOverflowY:r=>this.eTop.style.overflowY=this.eBottom.style.overflowY=r,setCellSelectableCss:(r,i)=>{[this.eTop,this.eBodyViewport,this.eBottom].forEach(o=>o.classList.toggle(r,i))},setBodyViewportWidth:r=>this.eBodyViewport.style.width=r};this.ctrl=this.createManagedBean(new mit),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(this.rangeService&&wc(this.gos)||xS(this.gos))&&BBr(this.getGui(),!0)}setRowAnimationCssOnBodyViewport(t,n){const r=this.eBodyViewport.classList;r.toggle("ag-row-animation",n),r.toggle("ag-row-no-animation",!n)}getFloatingTopBottom(){return[this.eTop,this.eBottom]}},xGr={selector:"AG-GRID-BODY",component:wGr},$Gr=class extends at{constructor(){super(...arguments),this.beanName="scrollVisibleService"}wireBeans(e){this.ctrlsService=e.ctrlsService,this.columnAnimationService=e.columnAnimationService}postConstruct(){this.getScrollbarWidth(),this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this)})}onDisplayedColumnsChanged(){this.updateScrollVisible()}onDisplayedColumnsWidthChanged(){this.updateScrollVisible()}onCentreViewportResized(){this.updateScrollGap()}updateScrollVisible(){this.columnAnimationService.isActive()?this.columnAnimationService.executeLaterVMTurn(()=>{this.columnAnimationService.executeLaterVMTurn(()=>this.updateScrollVisibleImpl())}):this.updateScrollVisibleImpl()}updateScrollVisibleImpl(){const e=this.ctrlsService.get("center");if(!e||this.columnAnimationService.isActive())return;const t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t),this.updateScrollGap()}updateScrollGap(){const e=this.ctrlsService.get("center"),t=e.hasHorizontalScrollGap(),n=e.hasVerticalScrollGap();(this.horizontalScrollGap!==t||this.verticalScrollGap!==n)&&(this.horizontalScrollGap=t,this.verticalScrollGap=n,this.eventService.dispatchEvent({type:"scrollGapChanged"}))}setScrollsVisible(e){(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing)&&(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dis
2025-02-18 08:35:18 +08:00
<ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
2025-04-17 10:18:46 +08:00
</div>`,[FGr]),this.eTextArea=wt}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),Dt(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}onKeyDown(e){const t=e.key;(t===Ze.LEFT||t===Ze.UP||t===Ze.RIGHT||t===Ze.DOWN||e.shiftKey&&t===Ze.ENTER)&&e.stopPropagation()}afterGuiAttached(){const e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()}getValue(){const e=this.eTextArea.getValue();return!Dt(e)&&!Dt(this.params.value)?this.params.value:this.params.parseValue(e)}},DGr=class extends p9{constructor(e){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=e}postConstruct(){T8(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=r=>{Bse(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:n})}},LGr=class extends p9{constructor(){super(`<div class="ag-cell-edit-wrapper">
2025-02-18 08:35:18 +08:00
<ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
2025-04-17 10:18:46 +08:00
</div>`,[ejr]),this.eSelect=wt,this.startedByEnter=!1}wireBeans(e){this.valueService=e.valueService}init(e){this.focusAfterAttached=e.cellStartedEdit;const{eSelect:t,valueService:n,gos:r}=this,{values:i,value:o,eventKey:a}=e;if(tr(i)){et("no values found for select cellEditor");return}this.startedByEnter=a!=null?a===Ze.ENTER:!1;let s=!1;i.forEach(f=>{const h={value:f},p=n.formatValue(e.column,null,f),g=p!=null;h.text=g?p:f,t.addOption(h),s=s||o===f}),s?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:d}=e;l!=null&&t.setPickerGap(l),d!=null&&t.setPickerMaxHeight(d),c!=null&&t.setPickerMaxWidth(c),r.get("editType")!=="fullRow"&&this.addManagedListeners(this.eSelect,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eSelect.showPicker()})}focusIn(){this.eSelect.getFocusableElement().focus()}getValue(){return this.eSelect.getValue()}isPopup(){return!1}},xK=class extends p9{constructor(e){super(`
2025-02-18 08:35:18 +08:00
<div class="ag-cell-edit-wrapper">
${e.getTemplate()}
2025-04-17 15:35:46 +08:00
</div>`,e.getAgComponents()),this.cellEditorInput=e,this.eInput=wt}init(e){this.params=e;const{cellStartedEdit:t,eventKey:n,suppressPreventDefault:r}=e,i=this.eInput;this.cellEditorInput.init(i,e);let o,a=!0;t?(this.focusAfterAttached=!0,n===Ze.BACKSPACE||n===Ze.DELETE?o="":n&&n.length===1?r?a=!1:o=n:(o=this.cellEditorInput.getStartValue(),n!==Ze.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue()),a&&o!=null&&i.setStartValue(o),this.addManagedElementListeners(i.getGui(),{keydown:s=>{const{key:l}=s;(l===Ze.PAGE_UP||l===Ze.PAGE_DOWN)&&s.preventDefault()}})}afterGuiAttached(){var r,i;const e=this.localeService.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;xp()||t.getFocusableElement().focus();const n=t.getInputElement();this.highlightAllOnFocus?n.select():(i=(r=this.cellEditorInput).setCaret)==null||i.call(r)}focusIn(){const e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()}getValue(){return this.cellEditorInput.getValue()}isPopup(){return!1}},NGr=class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[F4]}init(e,t){this.eInput=e,this.params=t,t.maxLength!=null&&e.setMaxLength(t.maxLength)}getValue(){const e=this.eInput.getValue();return!Dt(e)&&!Dt(this.params.value)?this.params.value:this.params.parseValue(e)}getStartValue(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value}setCaret(){const e=this.eInput.getValue(),t=Dt(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)}},bit=class extends xK{constructor(){super(new NGr)}},zGr=class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[ujr]}init(e,t){this.eInput=e,this.params=t,t.max!=null&&e.setMax(t.max),t.min!=null&&e.setMin(t.min),t.precision!=null&&e.setPrecision(t.precision),t.step!=null&&e.setStep(t.step);const n=e.getInputElement();t.preventStepping?e.addManagedElementListeners(n,{keydown:this.preventStepping}):t.showStepperButtons&&n.classList.add("ag-number-field-input-stepper")}preventStepping(e){(e.key===Ze.UP||e.key===Ze.DOWN)&&e.preventDefault()}getValue(){const e=this.eInput.getValue();if(!Dt(e)&&!Dt(this.params.value))return this.params.value;let t=this.params.parseValue(e);if(t==null)return t;if(typeof t=="string"){if(t==="")return null;t=Number(t)}return isNaN(t)?null:t}getStartValue(){return this.params.value}setCaret(){xp()&&this.eInput.getInputElement().focus({preventScroll:!0})}},kGr=class extends xK{constructor(){super(new zGr)}},BGr=class extends _4{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=xp();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){ri(this.gos)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Qd(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,Yd(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Qd(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,Yd(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Yd(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return Ec(this.getValue())??void 0}setDate(e,t){this.setValue(Qd(e??null,!1),t)}},Sit={selector:"AG-INPUT-DATE-FIELD",component:BGr},HGr=class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[Sit]}init(e,t){this.eInput=e,this.params=t,t.min!=null&&e.setMin(t.min),t.max!=null&&e.setMax(t.max),t.step!=null&&e.setStep(t.step)}getValue(){const e=this.eInput.getDate();return!Dt(e)&&!Dt(this.params.value)?this.params.value:e??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Qd(e,!1)}},jGr=class
2025-02-18 08:35:18 +08:00
<div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
2025-04-17 15:35:46 +08:00
</div>`,[T4]),this.eCheckbox=wt}init(e){this.params=e;const t=e.value??void 0;this.eCheckbox.setValue(t),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(t),this.addManagedListeners(this.eCheckbox,{fieldValueChanged:r=>this.setAriaLabel(r.selected)})}getValue(){return this.eCheckbox.getValue()}focusIn(){this.eCheckbox.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.localeService.getLocaleTextFunc(),n=kme(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}},R$=class{constructor(e){this.cellValueChanges=e}},ite=class extends R${constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},UGr=10,VMe=class{constructor(e){this.actionStack=[],this.maxStackSize=e||UGr,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},qGr=class extends at{constructor(){super(...arguments),this.beanName="undoRedoService",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.activeCellEdit!==null&&this.cellPositionUtils.equals(this.activeCellEdit,t),r=this.activeRowEdit!==null&&this.rowPositionUtils.sameRow(this.activeRowEdit,t);if(!(n||r||this.isPasting||this.isRangeInAction))return;const{rowPinned:o,rowIndex:a,column:s,oldValue:l,value:c}=e,d={rowPinned:o,rowIndex:a,columnId:s.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}wireBeans(e){this.focusService=e.focusService,this.ctrlsService=e.ctrlsService,this.cellPositionUtils=e.cellPositionUtils,this.rowPositionUtils=e.rowPositionUtils,this.columnModel=e.columnModel,this.rangeService=e.rangeService}postConstruct(){if(!this.gos.get("undoRedoCellEditing"))return;const e=this.gos.get("undoRedoCellEditingLimit");if(e<=0)return;this.undoStack=new VMe(e),this.redoStack=new VMe(e),this.addListeners();const t=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:n=>{n.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:t,newColumnsLoaded:t,columnGroupOpened:t,columnRowGroupChanged:t,columnMoved:t,columnPinned:t,columnVisible:t,rowDragEnd:t}),this.ctrlsService.whenReady(this,n=>{this.gridBodyCtrl=n.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?this.undoStack.getCurrentStackSize():0}getCurrentRedoStackSize(){return this.redoStack?this.redoStack.getCurrentStackSize():0}undo(e){this.eventService.dispatchEvent({type:"undoStarted",source:e});const t=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo");this.eventService.dispatchEvent({type:"undoEnded",source:e,operationPerformed:t})}redo(e){this.eventService.dispatchEvent({type:"redoStarted",source:e});const t=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo");this.eventService.dispatchEvent({type:"redoEnded",source:e,operationPerformed:t})}undoRedo(e,t,n,r,i){if(!e)return!1;const o=e.pop();return!o||!o.cellValueChanges?!1:(this.processAction(o,a=>a[r],i),o instanceof ite?this.processRange(this.rangeService,o.ranges||[o[n]]):this.processCell(o.cellValueChanges),t.push(o),!0)}processAction(e,t,n){e.cellValueChanges.forEach(r=>{const{rowIndex:i,rowPinned:o,columnId:a}=r,s={rowIndex:i,rowPinned:o},l=this.rowPositionUtils.getRowNode(s);l.displayed&&l.setDataValue(a,t(r),n)})}processRange(e,t){let n;e.removeAllCellRanges(!0),t.forEach((r,i)=>{if(!r)return;const o=r.startRow,a=r.endRow;i===t.length-1&&(n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:r.startColumn.getColId()},this.setLast
2025-02-18 08:35:18 +08:00
Either clear local references to the grid api, when it is destroyed, or check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.
2025-04-17 15:35:46 +08:00
To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${r}`);else{const i=WMe[e];n.assertModuleRegistered(i,`api.${e}`)&&et(`API function '${e}' not registered to module '${i}'`)}}destroy(){super.destroy(),this.fns=ote,this.beans=null}};function FWr(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionService").api}}var AWr=class extends at{constructor(){super(...arguments),this.beanName="columnDefFactory"}buildColumnDefs(e,t,n){const r=[],i={};return e.forEach(o=>{const a=this.createDefFromColumn(o,t,n);let s=!0,l=a,c=o.getOriginalParent(),d=null;for(;c;){let f=null;if(c.isPadding()){c=c.getOriginalParent();continue}const h=i[c.getGroupId()];if(h){h.children.push(l),s=!1;break}if(f=this.createDefFromGroup(c),f&&(f.children=[l],i[f.groupId]=f,l=f,c=c.getOriginalParent()),c!=null&&d===c){s=!1;break}d=c}s&&r.push(l)}),r}createDefFromGroup(e){const t=Fse(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const r=Fse(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?n.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=e.isVisible()?void 0:!0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=e.getSortIndex()!=null?e.getSortIndex():null,r}},DWr=class extends at{constructor(){super(...arguments),this.beanName="columnEventDispatcher"}visibleCols(e){this.eventService.dispatchEvent({type:"displayedColumnsChanged",source:e})}gridColumns(){this.eventService.dispatchEvent({type:"gridColumnsChanged"})}headerHeight(e){this.eventService.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"})}groupHeaderHeight(e){this.eventService.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}groupOpened(e){this.eventService.dispatchEvent({type:"columnGroupOpened",columnGroup:e.length===1?e[0]:void 0,columnGroups:e})}rowGroupChanged(e,t){this.eventService.dispatchEvent({type:"columnRowGroupChanged",columns:e,column:e.length===1?e[0]:null,source:t})}genericColumnEvent(e,t,n){this.eventService.dispatchEvent({type:e,columns:t,column:t.length===1?t[0]:null,source:n})}pivotModeChanged(){this.eventService.dispatchEvent({type:"columnPivotModeChanged"})}virtualColumnsChanged(e){this.eventService.dispatchEvent({type:"virtualColumnsChanged",afterScroll:e})}newColumnsLoaded(e){this.eventService.dispatchEvent({type:"newColumnsLoaded",source:e})}everythingChanged(e){this.eventService.dispatchEvent({type:"columnEverythingChanged",source:e})}columnMoved(e){const{movedColumns:t,source:n,toIndex:r,finished:i}=e;this.eventService.dispatchEvent({type:"columnMoved",columns:t,column:t&&t.length===1?t[0]:null,toIndex:r,finished:i,source:n})}columnPinned(e,t){if(!e.length)return;const n=e.length===1?e[0]:null,r=this.getCommonValue(e,i=>i.getPinned());this.eventService.dispatchEvent({type:"columnPinned",pinned:r??null,columns:e,column:n,source:t})}columnVisible(e,t){if(!e.length)return;const n=e.length===1?e[0]:null,r=this.getCommonValue(e,i=>i.isVisible());this.eventService.dispatchEvent({type:"columnVisible",visible:r,columns:e,column:n,source:t})}getCommonValue(e,t){if(!e||e.length==0)return;const n=t(e[0]);for(let r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}columnChanged(e,t,n){this.eventService.dispatchEvent({type:e,columns:t,column:t&&t.length==1?t[0]:null,source:n})}columnResized(e,t,n,r=null){e&&e.length&&this.eventService.dispatchEvent({type:"columnResized",columns:e,column:e.length===1?e[0]:null,flexColumns:r,finished:t,source:n})}},LWr=class extends at{constructor(){super(...arguments),this.beanName="columnGetStateService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}getColumnState(){const e=this.columnModel.getColDefCols();if(tr(e)||!this.columnModel.isAlive())return[];const n=this.columnModel.getAllCols().m
2025-02-18 08:35:18 +08:00
${n}
<div class="ag-root-wrapper-body" data-ref="rootWrapperBody" role="presentation">
<ag-grid-body data-ref="gridBody"></ag-grid-body>
${r}
</div>
${i}
${a}
${o}
2025-04-17 10:18:46 +08:00
</div>`}getFocusableElement(){return this.rootWrapperBody}forceFocusOutOfContainer(t=!1){var n;if(!t&&((n=this.pagination)!=null&&n.isDisplayed())){this.pagination.forceFocusOutOfContainer(t);return}super.forceFocusOutOfContainer(t)}getFocusableContainers(){const t=[this.gridBody];return[this.sideBar,this.pagination].forEach(n=>{n&&t.push(n)}),t.filter(n=>zc(n.getGui()))}},tUr=class extends at{constructor(){super(...arguments),this.beanName="alignedGridsService",this.consuming=!1}wireBeans(e){this.columnModel=e.columnModel,this.columnSizeService=e.columnSizeService,this.ctrlsService=e.ctrlsService,this.columnApplyStateService=e.columnApplyStateService}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t=typeof e=="function";typeof e=="function"&&(e=e());const n=()=>`See ${this.getFrameworkOverrides().getDocLink("aligned-grids")}`;return e.map(i=>{var a;if(!i){br("alignedGrids contains an undefined option."),t||br(`You may want to configure via a callback to avoid setup race conditions:
2025-04-17 15:35:46 +08:00
"alignedGrids: () => [linkedGrid]"`),br(n());return}if(this.isGridApi(i))return i;const o=i;return"current"in o?(a=o.current)==null?void 0:a.api:(o.api||br(`alignedGrids - No api found on the linked grid. If you are passing gridOptions to alignedGrids since v31 this is no longer valid. ${n()}`),o.api)}).filter(i=>!!i&&!i.isDestroyed())}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:t})=>this.onColumnEvent(t),alignedGridScroll:({event:t})=>this.onScrollEvent(t)})}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach(t=>{t.isDestroyed()||t.dispatchEvent(e)})}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){e.direction==="horizontal"&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent(()=>{this.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left,!0)})}extractDataFromEvent(e,t){const n=[];return e.columns?e.columns.forEach(r=>{n.push(t(r))}):e.column&&n.push(t(e.column)),n}getMasterColumns(e){return this.extractDataFromEvent(e,t=>t)}getColumnIds(e){return this.extractDataFromEvent(e,t=>t.getColId())}onColumnEvent(e){this.onEvent(()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":{this.processColumnEvent(e);break}case"columnGroupOpened":{this.processGroupOpenedEvent(e);break}case"columnPivotChanged":et("pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.");break}})}processGroupOpenedEvent(e){const{columnModel:t}=this;e.columnGroups.forEach(n=>{let r=null;n&&(r=t.getProvidedColGroup(n.getGroupId())),!(n&&!r)&&t.setColumnGroupOpened(r,n.isExpanded(),"alignedGridChanged")})}processColumnEvent(e){var c;const t=e.column;let n=null;if(t&&(n=this.columnModel.getColDefCol(t.getColId())),t&&!n)return;const r=this.getMasterColumns(e),{columnApplyStateService:i,columnSizeService:o,ctrlsService:a}=this;switch(e.type){case"columnMoved":{const f=e.api.getColumnState().map(h=>({colId:h.colId}));i.applyColumnState({state:f,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const f=e.api.getColumnState().map(h=>({colId:h.colId,hide:h.hide}));i.applyColumnState({state:f},"alignedGridChanged")}break;case"columnPinned":{const f=e.api.getColumnState().map(h=>({colId:h.colId,pinned:h.pinned}));i.applyColumnState({state:f},"alignedGridChanged")}break;case"columnResized":{const d=e,f={};r.forEach(h=>{f[h.getId()]={key:h.getColId(),newWidth:h.getActualWidth()}}),(c=d.flexColumns)==null||c.forEach(h=>{f[h.getId()]&&delete f[h.getId()]}),o.setColumnWidths(Object.values(f),!1,d.finished,"alignedGridChanged");break}}const l=a.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(d=>{d.setGridOption("alwaysShowVerticalScroll",l)})}},nUr={version:ir,moduleName:"@ag-grid-community/aligned-grid",beans:[tUr]};function rUr(e,t){const n=e.columnModel.getColDefCol(t);return n?n.getColDef():null}function iUr(e){return e.columnModel.getColumnDefs()}function oUr(e,t){typeof t=="number"?e.columnSizeService.sizeColumnsToFit(t,"api"):e.ctrlsService.getGridBodyCtrl().sizeColumnsToFit(t)}function aUr(e,t,n){e.columnModel.setColumnGroupOpened(t,n,"api")}function sUr(e,t,n){return e.visibleColsService.getColumnGroup(t,n)}function lUr(e,t){return e.columnModel.getProvidedColGroup(t)}function cUr(e,t,n){return e.columnNameService.getDisplayNameForColumn(t,n)||""}function uUr(e,t,n){return e.columnNameService.getDisplayNameForColumnGroup(t,n)||""}function dUr(e,t){return e.columnModel.getColDefCol(t)}function fUr(e){return e.columnModel.getColDefCols()}function hUr(e,t){return e.columnApplyStateService.applyColumnState(t,"api")}function pUr(e){return e.columnGetStateService.getColumnState()}function gUr(e){e.columnApplyStateService
2025-02-18 08:35:18 +08:00
<ag-page-size-selector data-ref="pageSizeComp"></ag-page-size-selector>
<span class="ag-paging-row-summary-panel">
<span id="ag-${l}-first-row" data-ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-${l}-to">${n}</span>
<span id="ag-${l}-last-row" data-ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>
<span id="ag-${l}-of">${r}</span>
<span id="ag-${l}-row-count" data-ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>
</span>
<span class="ag-paging-page-summary-panel" role="presentation">
<div data-ref="btFirst" class="ag-button ag-paging-button" role="button" aria-label="${i}"></div>
<div data-ref="btPrevious" class="ag-button ag-paging-button" role="button" aria-label="${o}"></div>
<span class="ag-paging-description">
<span id="ag-${l}-start-page">${t}</span>
<span id="ag-${l}-start-page-number" data-ref="lbCurrent" class="ag-paging-number"></span>
<span id="ag-${l}-of-page">${r}</span>
<span id="ag-${l}-of-page-number" data-ref="lbTotal" class="ag-paging-number"></span>
</span>
<div data-ref="btNext" class="ag-button ag-paging-button" role="button" aria-label="${a}"></div>
<div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${s}"></div>
</span>
2025-04-17 15:35:46 +08:00
</div>`}onBtNext(){this.nextButtonDisabled||this.paginationService.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.paginationService.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.paginationService.goToLastPage()}enableOrDisableButtons(){const e=this.paginationService.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),n=this.paginationService.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const r=this.isZeroPagesToDisplay(),i=e===n-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){Knt(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.paginationService.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.paginationService.getTotalPages(),n=this.paginationService.getMasterRowCount(),r=e?n:null;if(r===1){const y=this.rowModel.getRow(0);if(y&&y.group&&!(y.groupData||y.aggData)){this.setTotalLabelsToZero();return}}const i=this.paginationService.getCurrentPage(),o=this.paginationService.getPageSize();let a,s;this.isZeroPagesToDisplay()?a=s=0:(a=o*i+1,s=a+o-1,e&&s>r&&(s=r));const l=a+o-1,c=!e&&n<l,d=this.formatNumber(a);this.lbFirstRowOnPage.textContent=d;let f;const h=this.localeService.getLocaleTextFunc();c?f=h("pageLastRowUnknown","?"):f=this.formatNumber(s),this.lbLastRowOnPage.textContent=f;const g=t>0?i+1:0,m=this.formatNumber(g);this.lbCurrent.textContent=m;let v,C;if(e)v=this.formatNumber(t),C=this.formatNumber(r);else{const y=h("more","more");v=y,C=y}this.lbTotal.textContent=v,this.lbRecordCount.textContent=C,this.announceAriaStatus(d,f,C,m,v)}announceAriaStatus(e,t,n,r,i){const o=this.localeService.getLocaleTextFunc(),a=o("page","Page"),s=o("to","to"),l=o("of","of"),c=`${e} ${s} ${t} ${l} ${n}`,d=`${a} ${r} ${l} ${i}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnouncementService.announceValue(c,"paginationRow")),d!==this.ariaPageStatus&&(this.ariaPageStatus=d,this.ariaAnnouncementService.announceValue(d,"paginationPage"))}setTotalLabelsToZero(){const e=this.formatNumber(0);this.lbFirstRowOnPage.textContent=e,this.lbCurrent.textContent=e,this.lbLastRowOnPage.textContent=e,this.lbTotal.textContent=e,this.lbRecordCount.textContent=e,this.announceAriaStatus(e,e,e,e,e)}},DKr={selector:"AG-PAGINATION",component:AKr},LKr=class extends at{constructor(){super(...arguments),this.beanName="paginationService",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}wireBeans(e){this.rowModel=e.rowModel,this.pageBoundsService=e.pageBoundsService}postConstruct(){this.active=this.gos.get("pagination"),this.pageSizeFromGridOptions=this.gos.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return DKr}isPaginateChildRows(){return this.gos.get("groupRemoveSingleChildren")||this.gos.get("groupRemoveLowestSingleChildren")?!0:this.gos.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){!this.active||this.currentPage===e||typeof this.currentPage!="number"||(this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0}))}isRowPresent(e){return e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex}getPageForIndex(e){return Math.floor(e/this.pageSize)}goToPageWithIndex(e){if
2025-04-17 10:18:46 +08:00
If you want to hide the page size selector, set paginationPageSizeSelector to false.`}},rowSelection:{validate({rowSelection:e}){return e&&typeof e=="string"?'As of version 32.2.1, using `rowSelection` with the values "single" or "multiple" has been deprecated. Use the object value instead.':e&&typeof e!="object"?"Expected `RowSelectionOptions` object for the `rowSelection` property.":null}},cellSelection:{module:"@ag-grid-enterprise/range-selection"},columnDefs:()=>gy,defaultColDef:()=>gy,defaultColGroupDef:()=>gy,autoGroupColumnDef:()=>gy,selectionColumnDef:()=>gy}),XKr=()=>({objectName:"gridOptions",allProperties:[...sO.ALL_PROPERTIES,...lO.EVENT_CALLBACKS],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:UKr(),validations:KKr()}),YKr=class extends at{constructor(){super(...arguments),this.beanName="validationService"}wireBeans(e){this.beans=e,this.gridOptions=e.gridOptions}postConstruct(){this.processGridOptions(this.gridOptions)}processGridOptions(e){this.processOptions(e,XKr())}validateApiFunction(e,t){return HKr(e,t,this.beans)}processOptions(e,t){const{validations:n,deprecations:r,allProperties:i,propertyExceptions:o,objectName:a,docsUrl:s}=t;i&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...o??[],...Object.keys(r)],i,a,s);const l=new Set;Object.keys(e).forEach(d=>{const f=r[d];if(f)if("renamed"in f){const{renamed:b,version:S}=f;l.add(`As of v${S}, ${String(d)} is deprecated. Please use ${String(b)} instead.`),e[b]=e[d]}else{const{message:b,version:S}=f;l.add(`As of v${S}, ${String(d)} is deprecated. ${b??""}`)}const h=e[d];if(h==null||h===!1)return;const p=n[d];let g;if(p)if(typeof p=="function"){const b=p(e,this.gridOptions);if(!b)return;if("objectName"in b){const S=e[d];if(Array.isArray(S)){S.forEach(w=>{this.processOptions(w,b)});return}this.processOptions(e[d],b);return}g=b}else g=p;else return;const{module:m,dependencies:v,validate:C,supportedRowModels:y}=g;if(y){const b=this.gridOptions.rowModelType??"clientSide";if(!y.includes(b)){l.add(`${String(d)} is not supported with the '${b}' row model.`);return}}if(m){const b=Array.isArray(m)?m:[m];let S=!0;if(b.forEach(w=>{this.gos.assertModuleRegistered(w,String(d))||(S=!1,l.add(`${String(d)} is only available when ${w} is loaded.`))}),!S)return}if(v){const b=this.checkForRequiredDependencies(d,v,e);if(b){l.add(b);return}}if(C){const b=C(e,this.gridOptions);if(b){l.add(b);return}}}),l.size>0&&l.forEach(d=>{et(d)})}checkForRequiredDependencies(e,t,n){const i=Object.entries(t).find(([s,l])=>{const c=n[s];return!l.includes(c)});if(!i)return null;const[o,a]=i;return a.length>1?`'${String(e)}' requires '${o}' to be one of [${a.join(", ")}].`:`'${String(e)}' requires '${o}' to be ${a[0]}.`}checkProperties(e,t,n,r,i){const o=["__ob__","__v_skip","__metadata__"],a=QKr(Object.getOwnPropertyNames(e),[...o,...t,...n],n);if(Rs(a,(s,l)=>{let c=`invalid ${r} property '${s}' did you mean any of these: ${l.slice(0,8).join(", ")}.`;n.includes("context")&&(c+=`
2025-04-17 15:35:46 +08:00
If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),et(c)}),Object.keys(a).length>0&&i){const s=this.getFrameworkOverrides().getDocLink(i);et(`to see all the valid ${r} properties please check: ${s}`)}}};function QKr(e,t,n){const r={},i=e.filter(o=>!t.some(a=>a===o));return i.length>0&&i.forEach(o=>r[o]=Srt({inputValue:o,allSuggestions:n}).values),r}var ZKr={version:ir,moduleName:"@ag-grid-community/core"},JKr={version:ir,moduleName:"@ag-grid-community/core-validations",beans:[YKr]},eXr={version:ir,moduleName:"@ag-grid-community/core-community-features",dependantModules:[ZKr,JKr,pWr,Qjr,bKr,qUr,nUr,zKr,hKr]},tXr=class extends at{constructor(){super(...arguments),this.beanName="gridDestroyService",this.destroyCalled=!1}wireBeans(e){this.beans=e}destroy(){var e,t;this.destroyCalled||(this.eventService.dispatchEvent({type:"gridPreDestroyed",state:((e=this.beans.stateService)==null?void 0:e.getState())??{}}),this.destroyCalled=!0,(t=this.beans.ctrlsService.get("gridCtrl"))==null||t.destroyGridUi(),this.beans.context.destroy(),super.destroy())}isDestroyCalled(){return this.destroyCalled}},gD=new Set(["gridPreDestroyed","fillStart","pasteStart"]),o0e=e=>e==="checkboxSelected"||e==="rowClicked"||e==="spaceKey"||e==="uiSelectAll"||e==="uiSelectAllCurrentPage"||e==="uiSelectAllFiltered",nXr=new Map([...sO.BOOLEAN_PROPERTIES.map(e=>[e,Pse]),...sO.NUMBER_PROPERTIES.map(e=>[e,Brt]),["groupAggFiltering",e=>typeof e=="function"?e:Pse(e)],["pageSize",E1(1)],["autoSizePadding",E1(0)],["keepDetailRowsCount",E1(1)],["rowBuffer",E1(0)],["infiniteInitialRowCount",E1(1)],["cacheOverflowSize",E1(1)],["cacheBlockSize",E1(1)],["serverSideInitialRowCount",E1(1)],["viewportRowModelPageSize",E1(1)],["viewportRowModelBufferSize",E1(0)]]);function kit(e,t){const n=nXr.get(e);return n?n(t):t}function rXr(e){const t={};return Object.entries(e).forEach(([n,r])=>{const i=kit(n,r);t[n]=i}),t}var Bit=class Hit extends at{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new I4,this.globalEventHandlerFactory=t=>(n,r)=>{if(!this.isAlive())return;const i=gD.has(n);if(i&&!t||!i&&t)return;const o=lO.getCallbackForEvent(n),a=this.gridOptions[o];typeof a=="function"&&this.frameworkOverrides.wrapOutgoing(()=>{a(r)})}}wireBeans(t){this.gridOptions=t.gridOptions,this.eGridDiv=t.eGridDiv,this.validationService=t.validationService,this.environment=t.environment,this.api=t.gridApi,this.gridId=t.context.getGridId()}get gridOptionsContext(){return this.gridOptions.context}postConstruct(){const t=!this.get("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandlerFactory().bind(this),t),this.eventService.addGlobalListener(this.globalEventHandlerFactory(!0).bind(this),!1),this.propertyEventService.setFrameworkOverrides(this.frameworkOverrides),this.addManagedEventListeners({gridOptionsChanged:({options:n})=>{this.updateGridOptions({options:n,force:!0,source:"gridOptionsUpdated"})}})}get(t){return this.gridOptions[t]??qKr[t]}getCallback(t){return this.mergeGridCommonParams(this.gridOptions[t])}exists(t){return Dt(this.gridOptions[t])}mergeGridCommonParams(t){return t&&(r=>{const i=r;return i.api=this.api,i.context=this.gridOptionsContext,t(i)})}updateGridOptions({options:t,force:n,source:r="api"}){var a;const i={id:Hit.changeSetId++,properties:[]},o=[];Object.entries(t).forEach(([s,l])=>{r==="api"&&TBr[s]&&et(`${s} is an initial property and cannot be updated.`);const c=kit(s,l),d=n||typeof c=="object"&&r==="api",f=this.gridOptions[s];if(d||f!==c){this.gridOptions[s]=c;const h={type:s,currentValue:c,previousValue:f,changeSet:i,source:r};o.push(h)}}),(a=this.validationService)==null||a.processGridOptions(this.gridOptions),i.properties=o.map(s=>s.type),o.forEach(s=>{this.gridOptions.debug&&vh(`Updated property ${s.type} from`,s.previousValue," to ",s.currentValue),this.propertyEventService.dispatchEvent(s)})}addPropertyEventListener(t,n){this.propertyEventService.addEventListener(t,n)}removePropertyEventListener(t,n){this.pr
2025-02-18 08:35:18 +08:00
<div data-ref="eLicenseTextRef" class="ag-watermark-text"></div>
2025-04-17 15:35:46 +08:00
</div>`),this.eLicenseTextRef=wt}wireBeans(e){this.licenseManager=e.licenseManager}postConstruct(){const e=this.shouldDisplayWatermark();this.setDisplayed(e),e&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCssClass("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}},jYr={selector:"AG-WATERMARK",component:HYr},Jit=class extends at{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new BF(Yi(this.gos)),this.licenseManager.validateLicense()}static getLicenseDetails(e){return new BF(null).getLicenseDetails(e)}getWatermarkSelector(){return jYr}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){BF.setLicenseKey(e)}static setChartsLicenseManager(e){BF.setChartsLicenseManager(e)}},VYr="32.3.3",f0e=class extends vn{constructor(){super(),this.setTemplate("<div></div>")}init(e){this.params=e,this.cssClassPrefix=this.params.cssClassPrefix??"ag-menu-option",this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu()}configureDefaults(){return!0}addIcon(){if(this.params.isCompact)return;const e=$c(`<span data-ref="eIcon" class="${this.getClassName("part")} ${this.getClassName("icon")}" role="presentation"></span>`),{checked:t,icon:n}=this.params;t?e.appendChild(zn("check",this.gos)):n&&(mK(n)?e.appendChild(n):typeof n=="string"?e.innerHTML=n:et("menu item icon must be DOM node or string")),this.getGui().appendChild(e)}addName(){const e=$c(`<span data-ref="eName" class="${this.getClassName("part")} ${this.getClassName("text")}">${this.params.name||""}</span>`);this.getGui().appendChild(e)}addShortcut(){if(this.params.isCompact)return;const e=$c(`<span data-ref="eShortcut" class="${this.getClassName("part")} ${this.getClassName("shortcut")}">${this.params.shortcut||""}</span>`);this.getGui().appendChild(e)}addSubMenu(){const e=$c(`<span data-ref="ePopupPointer" class="${this.getClassName("part")} ${this.getClassName("popup-pointer")}"></span>`),t=this.getGui();if(this.params.subMenu){const n=this.gos.get("enableRtl")?"smallLeft":"smallRight";Du(t,!1),e.appendChild(zn(n,this.gos))}t.appendChild(e)}getClassName(e){return`${this.cssClassPrefix}-${e}`}destroy(){super.destroy()}},l1={version:VYr,moduleName:Qn.EnterpriseCoreModule,beans:[Jit],userComponents:[{name:"agMenuItem",classImp:f0e}]};function GYr(e){const t=e.cssIdentifier||"default",n=e.direction||"vertical";return`
2025-02-18 08:35:18 +08:00
<div class="ag-group ag-${t}-group" role="presentation">
<div data-ref="eToolbar" class="ag-group-toolbar ag-${t}-group-toolbar">
<ag-checkbox data-ref="cbGroupEnabled"></ag-checkbox>
</div>
<div data-ref="eContainer" class="ag-group-container ag-group-container-${n} ag-${t}-group-container"></div>
</div>
2025-04-17 15:35:46 +08:00
`}var WYr=class extends vn{constructor(e={}){super(GYr(e),[T4]),this.params=e,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1,this.eToolbar=wt,this.cbGroupEnabled=wt,this.eContainer=wt;const{enabled:t,items:n,suppressEnabledCheckbox:r,expanded:i,suppressToggleExpandOnEnableChange:o,useToggle:a}=e;this.cssIdentifier=e.cssIdentifier||"default",this.enabled=t??!0,this.items=n||[],this.useToggle=a??!1,this.alignItems=e.alignItems||"center",this.expanded=i??!0,r!=null&&(this.suppressEnabledCheckbox=r),o!=null&&(this.suppressToggleExpandOnEnableChange=o)}postConstruct(){if(this.setupTitleBar(),this.items.length){const i=this.items;this.items=[],this.addItems(i)}const e=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(e("enabled","Enabled")),this.enabled&&this.setEnabled(this.enabled,void 0,!0),this.setAlignItems(this.alignItems);const{onEnableChange:t,onExpandedChange:n,suppressOpenCloseIcons:r}=this.params;this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(r??!1),this.refreshChildDisplay(),En(this.eContainer,this.expanded),this.cbGroupEnabled.onValueChange(i=>{this.setEnabled(i,!0,this.suppressToggleExpandOnEnableChange),this.dispatchEnableChangeEvent(i)}),t!=null&&this.onEnableChange(t),n!=null&&this.onExpandedChange(n)}refreshChildDisplay(){var e;En(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),(e=this.eTitleBar)==null||e.refreshOnExpand(this.expanded)}isExpanded(){return this.expanded}setAlignItems(e){this.alignItems!==e&&this.removeCssClass(`ag-group-item-alignment-${this.alignItems}`),this.alignItems=e;const t=`ag-group-item-alignment-${this.alignItems}`;return this.addCssClass(t),this}toggleGroupExpand(e,t){var n;if((n=this.eTitleBar)!=null&&n.isSuppressCollapse()&&!this.useToggle)e=!0,t=!0;else if(e=e??!this.expanded,this.expanded===e)return this;return this.expanded=e,this.refreshChildDisplay(),En(this.eContainer,e),t||this.dispatchLocalEvent({type:e?"expanded":"collapsed"}),this}addItems(e){e.forEach(t=>this.addItem(t))}prependItem(e){this.insertItem(e,!0)}addItem(e){this.insertItem(e,!1)}insertItem(e,t){const n=this.eContainer,r=e instanceof vn?e.getGui():e;r.classList.add("ag-group-item",`ag-${this.cssIdentifier}-group-item`),t?(n.insertAdjacentElement("afterbegin",r),this.items.unshift(r)):(n.appendChild(r),this.items.push(r))}hideItem(e,t){const n=this.items[t];En(n,!e)}getItemIndex(e){const t=e instanceof vn?e.getGui():e;return this.items.indexOf(t)}setTitle(e){var t;return(t=this.eTitleBar)==null||t.setTitle(e),this}addTitleBarWidget(e){var t;return(t=this.eTitleBar)==null||t.addWidget(e),this}addCssClassToTitleBar(e){var t;(t=this.eTitleBar)==null||t.addCssClass(e)}dispatchEnableChangeEvent(e){const t={type:"enableChange",enabled:e};this.dispatchLocalEvent(t)}setEnabled(e,t,n){var r;return this.enabled=e,this.refreshDisabledStyles(),n||this.toggleGroupExpand(e),t||(this.cbGroupEnabled.setValue(e),(r=this.eToggle)==null||r.setValue(e)),this}isEnabled(){return this.enabled}onEnableChange(e){return this.addManagedListeners(this,{enableChange:t=>e(t.enabled)}),this}onExpandedChange(e){return this.addManagedListeners(this,{expanded:()=>e(!0),collapsed:()=>e(!1)}),this}hideEnabledCheckbox(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this}hideOpenCloseIcons(e){var t;return(t=this.eTitleBar)==null||t.hideOpenCloseIcons(e),this}refreshDisabledStyles(){var t;const e=!this.enabled;this.eContainer.classList.toggle("ag-disabled",e),(t=this.eTitleBar)==null||t.refreshDisabledStyles(this.suppressEnabledCheckbox&&e),this.eContainer.classList.toggle("ag-disabled-group-container",e)}setupTitleBar(){const e=this.useToggle?this.createToggleTitleBar():this.createDefaultTitleBar();this.eToolbar.insertAdjacentElement("beforebegin",e.getGui())}createDefaultTitleBar(){const e=this.createManagedBean(new qYr(this.params));return this.eTitleBar=e,e.refreshOnExpand(this.expanded),this.addManagedListeners(e,{expandedChanged:t=>this.toggleGroupExpand(t.expanded)}),e}createToggleTitleBar(){const e=t
2025-02-18 08:35:18 +08:00
<div class="ag-group-title-bar ag-${t}-group-title-bar ag-unselectable" role="${n}">
<span class="ag-group-title-bar-icon ag-${t}-group-title-bar-icon" data-ref="eGroupOpenedIcon" role="presentation"></span>
<span class="ag-group-title-bar-icon ag-${t}-group-title-bar-icon" data-ref="eGroupClosedIcon" role="presentation"></span>
<span data-ref="eTitle" class="ag-group-title ag-${t}-group-title"></span>
</div>
2025-04-17 10:18:46 +08:00
`}var qYr=class extends vn{constructor(e={}){super(UYr(e)),this.suppressOpenCloseIcons=!1,this.suppressKeyboardNavigation=!1,this.eGroupOpenedIcon=wt,this.eGroupClosedIcon=wt,this.eTitle=wt;const{title:t,suppressOpenCloseIcons:n,suppressKeyboardNavigation:r}=e;t&&t.length>0&&(this.title=t),n!=null&&(this.suppressOpenCloseIcons=n),this.suppressKeyboardNavigation=r??!1}postConstruct(){this.setTitle(this.title),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract()}setupExpandContract(){this.eGroupClosedIcon.appendChild(tv("columnSelectClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(tv("columnSelectOpen",this.gos,null)),this.addManagedElementListeners(this.getGui(),{click:()=>this.dispatchExpandChanged(),keydown:e=>{switch(e.key){case Ze.ENTER:case Ze.SPACE:e.preventDefault(),this.dispatchExpandChanged();break;case Ze.RIGHT:case Ze.LEFT:e.preventDefault(),this.dispatchExpandChanged(e.key===Ze.RIGHT);break}}})}refreshOnExpand(e){this.refreshAriaStatus(e),this.refreshOpenCloseIcons(e)}refreshAriaStatus(e){this.suppressOpenCloseIcons||Du(this.getGui(),e)}refreshOpenCloseIcons(e){const t=!this.suppressOpenCloseIcons;En(this.eGroupOpenedIcon,t&&e),En(this.eGroupClosedIcon,t&&!e)}isSuppressCollapse(){return this.suppressOpenCloseIcons}dispatchExpandChanged(e){const t={type:"expandedChanged",expanded:e};this.dispatchLocalEvent(t)}setTitle(e){const t=this.getGui(),n=!!e&&e.length>0;e=n?e:void 0,this.eTitle.textContent=e??"",En(t,n),e!==this.title&&(this.title=e);const r=t.classList.contains(ste);return this.refreshDisabledStyles(r),this}addWidget(e){return this.getGui().appendChild(e),this}hideOpenCloseIcons(e){return this.suppressOpenCloseIcons=e,e&&this.dispatchExpandChanged(!0),this}refreshDisabledStyles(e){const t=this.getGui();e?(t.classList.add(ste),t.removeAttribute("tabindex")):(t.classList.remove(ste),typeof this.title=="string"&&!this.suppressKeyboardNavigation?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}},KYr={selector:"AG-GROUP-COMPONENT",component:WYr};function XYr(e){return`<div class="ag-virtual-list-viewport ag-${e}-virtual-list-viewport" role="presentation">
2025-02-18 08:35:18 +08:00
<div class="ag-virtual-list-container ag-${e}-virtual-list-container" data-ref="eContainer"></div>
2025-04-17 15:35:46 +08:00
</div>`}var h0e=class extends ZC{constructor(e){super(XYr((e==null?void 0:e.cssIdentifier)||"default")),this.renderedRows=new Map,this.rowHeight=20,this.pageSize=-1,this.isScrolling=!1,this.isHeightFromTheme=!0,this.eContainer=wt,this.awaitStableCallbacks=[];const{cssIdentifier:t="default",ariaRole:n="listbox",listName:r}=e||{};this.cssIdentifier=t,this.ariaRole=n,this.listName=r}wireBeans(e){this.resizeObserverService=e.resizeObserverService,this.animationFrameService=e.animationFrameService,this.environment=e.environment}postConstruct(){this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e),focusInnerElement:e=>this.focusInnerElement(e),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)}),this.setAriaProperties(),this.addManagedEventListeners({gridStylesChanged:this.onGridStylesChanged.bind(this)})}onGridStylesChanged(e){e.listItemHeightChanged&&(this.rowHeight=this.getItemHeight(),this.refresh())}setAriaProperties(){const t=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),n=this.eContainer;Ro(n,this.ariaRole),yl(n,t)}addResizeObserver(){const e=()=>this.animationFrameService.requestAnimationFrame(()=>this.drawVirtualRows()),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)}focusInnerElement(e){this.focusRow(e?this.model.getRowCount()-1:0)}onFocusIn(e){const t=e.target;t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=DBr(t)-1)}onFocusOut(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(e){switch(e.key){case Ze.UP:case Ze.DOWN:this.navigate(e.key===Ze.UP)&&e.preventDefault();break;case Ze.PAGE_HOME:case Ze.PAGE_END:case Ze.PAGE_UP:case Ze.PAGE_DOWN:this.navigateToPage(e.key)!==null&&e.preventDefault();break}}onTabKeyDown(e){Sp(e),this.forceFocusOutOfContainer(e.shiftKey)}navigate(e){if(this.lastFocusedRowIndex==null)return!1;const t=this.lastFocusedRowIndex+(e?-1:1);return t<0||t>=this.model.getRowCount()?!1:(this.focusRow(t),!0)}navigateToPage(e,t="focused"){let n=!1;t==="focused"&&(t=this.getLastFocusedRow(),n=!0);const r=this.model.getRowCount()-1;let i=-1;return e===Ze.PAGE_HOME?i=0:e===Ze.PAGE_END?i=r:e===Ze.PAGE_DOWN?i=Math.min(t+this.pageSize,r):e===Ze.PAGE_UP&&(i=Math.max(t-this.pageSize,0)),i===-1?null:(n?this.focusRow(i):this.ensureIndexVisible(i),i)}getLastFocusedRow(){return this.lastFocusedRowIndex}focusRow(e){this.isScrolling||(this.isScrolling=!0,this.ensureIndexVisible(e),this.animationFrameService.requestAnimationFrame(()=>{if(this.isScrolling=!1,!this.isAlive())return;const t=this.renderedRows.get(e);t&&t.eDiv.focus()}))}getComponentAt(e){const t=this.renderedRows.get(e);return t&&t.rowComponent}forEachRenderedRow(e){this.renderedRows.forEach((t,n)=>e(t.rowComponent,n))}getItemHeight(){return this.isHeightFromTheme?this.environment.getDefaultListItemHeight():this.rowHeight}ensureIndexVisible(e,t=!0){const n=this.model.getRowCount();if(typeof e!="number"||e<0||e>=n)return et("invalid row index for ensureIndexVisible: ",e),!1;const r=e*this.rowHeight,i=r+this.rowHeight,o=this.getGui(),a=o.scrollTop,s=o.offsetHeight,l=a+s,c=t?0:this.rowHeight,d=a>r+c,f=l<i-c;if(d)return o.scrollTop=r,!0;if(f){const h=i-s;return o.scrollTop=h,!0}return!1}setComponentCreator(e){this.componentCreator=e}setComponentUpdater(e){this.componentUpdater=e}getRowHeight(){return this.rowHeight}getScrollTop(){return this.getGui().scrollTop}setRowHeight(e){this.isHeightFromTheme=!1,this.rowHeight=e,this.refresh()}refresh(e){if(this.model==null||!this.isAlive())return;const t=this.model.getRowCount();this.eContainer.style.height=`${t*this.rowHeight}px`,this.awaitStable(()=>{this.isAlive()&&(this.canSoftRefresh(e)?this.drawVirtualRows(!0):(this.clearVirtualRows(),this.drawVirtualRows()))})}awaitStable(e){if(this.awaitStableCallbacks.push(e),this.awaitStableCallbacks.length>1)return;const t=this.model.getRowCount();Tnt(()=>this.eContainer.client
2025-02-18 08:35:18 +08:00
<span role="option">
<span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
<span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
<span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
2025-04-17 15:35:46 +08:00
</span>`,this.agComponents);const e=this.getGui();this.addElementClasses(e),this.addElementClasses(this.eDragHandle,"drag-handle"),this.addElementClasses(this.eText,"text"),this.addElementClasses(this.eButton,"button"),this.eDragHandle.appendChild(zn("columnDrag",this.gos)),this.eButton.appendChild(zn("cancel",this.gos)),this.setupComponents(),!this.ghost&&this.isDraggable()&&this.addDragSource(),this.setupAria(),this.setupTooltip(),this.activateTabIndex(),this.refreshDraggable()}isDraggable(){return!0}refreshDraggable(){this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!this.isDraggable())}setupAria(){const e=this.localeService.getLocaleTextFunc(),t=[this.getAriaDisplayName()];this.addAdditionalAriaInstructions(t,e),yl(this.getGui(),t.join(". "))}addAdditionalAriaInstructions(e,t){if(this.isRemovable()){const n=t("ariaDropZoneColumnComponentDescription","Press DELETE to remove");e.push(n)}}setupTooltip(){const e=()=>{const t=this.getTooltip();this.setTooltip({newTooltipText:t})};e(),this.addManagedEventListeners({newColumnsLoaded:e})}getDragSourceId(){}getDefaultIconName(){return"notAllowed"}addDragSource(){const{dragAndDropService:e,eDragHandle:t}=this,n=this.createGetDragItem(),r=this.getDefaultIconName(),i={type:this.getDragSourceType(),sourceId:this.getDragSourceId(),eElement:t,getDefaultIconName:()=>r,getDragItem:n,dragItemName:this.getDisplayName()};e.addDragSource(i,!0),this.addDestroyFunc(()=>e.removeDragSource(i))}setupComponents(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost")}isRemovable(){return!0}refreshRemove(){En(this.eButton,this.isRemovable())}setupRemove(){this.refreshRemove();const e={type:"columnRemove"};this.addGuiEventListener("keydown",n=>this.onKeyDown(n)),this.addManagedElementListeners(this.eButton,{click:n=>{this.dispatchLocalEvent(e),n.stopPropagation()}});const t=new sp(this.eButton);this.addManagedListeners(t,{tap:()=>this.dispatchLocalEvent(e)}),this.addDestroyFunc(t.destroy.bind(t))}onKeyDown(e){e.key===Ze.DELETE&&this.isRemovable()&&(e.preventDefault(),this.dispatchLocalEvent({type:"columnRemove"}))}getDisplayValue(){return this.getDisplayName()}setTextValue(){const e=this.getDisplayValue(),t=hl(e);this.eText.innerHTML=t}addElementClasses(e,t){t=t?`-${t}`:"";const n=this.horizontal?"horizontal":"vertical";e.classList.add(`ag-column-drop-cell${t}`,`ag-column-drop-${n}-cell${t}`)}destroy(){super.destroy(),this.dragSourceDropTarget=null}},QYr=class extends vn{constructor(e){super('<div class="ag-unselectable" role="presentation"></div>'),this.horizontal=e,this.state="notDragging",this.guiDestroyFunctions=[],this.childPillComponents=[],this.resizeEnabled=!1,this.addElementClasses(this.getGui()),this.ePillDropList=document.createElement("div"),this.addElementClasses(this.ePillDropList,"list"),Ro(this.ePillDropList,"listbox")}wireBeans(e){this.focusService=e.focusService,this.dragAndDropService=e.dragAndDropService}isHorizontal(){return this.horizontal}toggleResizable(e){this.positionableFeature.setResizable(e?{bottom:!0}:!1),this.resizeEnabled=e}isSourceEventFromTarget(e){const{dropZoneTarget:t,dragSource:n}=e;return t.contains(n.eElement)}destroy(){this.destroyGui(),super.destroy()}destroyGui(){this.guiDestroyFunctions.forEach(e=>e()),this.guiDestroyFunctions.length=0,this.childPillComponents.length=0,Zi(this.getGui()),Zi(this.ePillDropList)}init(e){this.params=e??{},this.createManagedBean(new n0(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.onKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new bK(this.getGui()),this.createManagedBean(this.positionableFeature),this.refreshGui(),yl(this.ePillDropList,this.getAriaLabel())}onTabKeyDown(e){const t=this.focusService.findFocusableElements(this.getFocusableElement(),null,!0),n=t.length;if(n===0)return;const{shiftKey:r}=e,i=ri(this.gos),o=i===t[0],a=i===Pn(t);n===1||o&&r||a&&!r||t[r?0:n-1].focus()}onKeyDown(e){const{key:t}=e,n=!this.horizontal;let r=t===Ze.DOWN,i=t===Ze.UP;if(!n){const a=this.gos.get("ena
2025-02-18 08:35:18 +08:00
<div data-ref="eTitleBar" class="ag-panel-title-bar ag-${t}-panel-title-bar ag-unselectable">
<span data-ref="eTitle" class="ag-panel-title-bar-title ag-${t}-panel-title-bar-title"></span>
<div data-ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-${t}-panel-title-bar-buttons"></div>
</div>
<div data-ref="eContentWrapper" class="ag-panel-content-wrapper ag-${t}-panel-content-wrapper"></div>
2025-04-17 15:35:46 +08:00
</div>`}var eot=class tot extends vn{constructor(t){super(ZYr(t)),this.config=t,this.closable=!0,this.eContentWrapper=wt,this.eTitleBar=wt,this.eTitleBarButtons=wt,this.eTitle=wt}postConstruct(){const{component:t,closable:n,hideTitleBar:r,title:i,minWidth:o=250,width:a,minHeight:s=250,height:l,centered:c,popup:d,x:f,y:h}=this.config;this.positionableFeature=new bK(this.getGui(),{minWidth:o,width:a,minHeight:s,height:l,centered:c,x:f,y:h,popup:d,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);const p=this.getGui();t&&this.setBodyComponent(t),r?En(this.eTitleBar,!1):(i&&this.setTitle(i),this.setClosable(n??this.closable)),this.addManagedElementListeners(this.eTitleBar,{mousedown:g=>{if(p.contains(g.relatedTarget)||p.contains(ri(this.gos))||this.eTitleBarButtons.contains(g.target)){g.preventDefault();return}const m=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");m&&m.focus()}}),!(d&&this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")}renderComponent(){const t=this.getGui();t.focus(),this.close=()=>{t.parentElement.removeChild(t),this.destroy()}}getHeight(){return this.positionableFeature.getHeight()}setHeight(t){this.positionableFeature.setHeight(t)}getWidth(){return this.positionableFeature.getWidth()}setWidth(t){this.positionableFeature.setWidth(t)}setClosable(t){if(t!==this.closable&&(this.closable=t),t){const n=this.closeButtonComp=new vn(tot.CLOSE_BTN_TEMPLATE);this.createBean(n);const r=n.getGui(),i=zn("close",this.gos);i.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(i),this.addTitleBarButton(n),n.addManagedElementListeners(r,{click:this.onBtClose.bind(this)})}else if(this.closeButtonComp){const n=this.closeButtonComp.getGui();n.parentElement.removeChild(n),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}}setBodyComponent(t){t.setParentComponent(this),this.eContentWrapper.appendChild(t.getGui())}addTitleBarButton(t,n){const r=this.eTitleBarButtons,i=r.children,o=i.length;n==null&&(n=o),n=Math.max(0,Math.min(n,o)),t.addCssClass("ag-panel-title-bar-button");const a=t.getGui();n===0?r.insertAdjacentElement("afterbegin",a):n===o?r.insertAdjacentElement("beforeend",a):i[n-1].insertAdjacentElement("afterend",a),t.setParentComponent(this)}getBodyHeight(){return gK(this.eContentWrapper)}getBodyWidth(){return h9(this.eContentWrapper)}setTitle(t){this.eTitle.innerText=t}onBtClose(){this.close()}destroy(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));const t=this.getGui();t&&zc(t)&&this.close(),super.destroy()}};eot.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>';var JYr=eot,eQr=class extends JYr{constructor(e){super({...e,popup:!0}),this.isMaximizable=!1,this.isMaximized=!1,this.maximizeListeners=[],this.resizeListenerDestroy=null,this.lastPosition={x:0,y:0,width:0,height:0}}wireBeans(e){this.popupService=e.popupService,this.focusService=e.focusService}postConstruct(){const e=this.getGui(),{movable:t,resizable:n,maximizable:r,modal:i,postProcessPopupParams:o}=this.config;if(this.addCssClass("ag-dialog"),super.postConstruct(),o){const{type:a,eventSource:s,column:l,mouseEvent:c,rowNode:d}=o;this.popupService.callPostProcessPopup(a,e,s,c,l,d)}if(this.tabGuardFeature=this.createManagedBean(new Oit(this)),this.tabGuardFeature.initialiseTabGuard({isFocusableContainer:!0,onFocusIn:()=>{this.popupService.bringPopupToFront(e)},onTabKeyDown:a=>{if(i)return;const s=a.shiftKey,l=this.focusService.findNextFocusableElement(e,!1,s);(!l||this.tabGuardFeature.getTabGuardCtrl().isTabGuard(l))&&this.focusService.focusNextGridCoreContainer(s)&&a.preventDefault()}}),t&&this.setMovable(t),r&&this.setMaximizable(r),n&&this.setResizable(n),!this.config.modal){const{focusService:a}=this;a.addFocusableContainer(this),this.addDestroyFunc(()=>a.removeFocusableContainer(this))}}setAllowFocus(e){this.tabGuardFeature.getTabGuardCtrl().setAllow
2025-02-18 08:35:18 +08:00
<div class="ag-menu-separator" aria-hidden="true">
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
<div class="ag-menu-separator-part"></div>
2025-04-17 15:35:46 +08:00
</div>`)}handleNavKey(e){switch(e){case Ze.UP:case Ze.DOWN:{const n=this.findNextItem(e===Ze.UP);n&&n!==this.activeMenuItem&&n.activate();return}}const t=this.gos.get("enableRtl")?Ze.RIGHT:Ze.LEFT;e===t?this.closeIfIsChild():this.openChild()}closeIfIsChild(e){const t=this.getParentComponent();return t&&t instanceof iPe?(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus(),!0):!1}openChild(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)}findNextItem(e){const t=this.menuItems.filter(i=>!i.isDisabled());if(!t.length)return;if(!this.activeMenuItem)return e?Pn(t):t[0];e&&t.reverse();let n,r=!1;for(let i=0;i<t.length;i++){const o=t[i];if(!r){o===this.activeMenuItem&&(r=!0);continue}n=o;break}return r&&!n?t[0]:n||this.activeMenuItem}destroy(){this.clearActiveItem(),super.destroy()}},tQr=class extends ZC{constructor(e){super(),this.setTemplateFromElement(e.getGui(),void 0,void 0,!0)}postConstruct(){this.initialiseTabGuard({onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e)})}handleKeyDown(e){e.key===Ze.ESCAPE&&this.closePanel()}onTabKeyDown(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())}closePanel(){const e=this.parentComponent;e.closeSubMenu(),setTimeout(()=>e.getGui().focus(),0)}},iPe=class extends at{constructor(){super(...arguments),this.ACTIVATION_DELAY=80,this.isActive=!1,this.subMenuIsOpen=!1,this.subMenuIsOpening=!1,this.suppressRootStyles=!0,this.suppressAria=!0,this.suppressFocus=!0}wireBeans(e){this.popupService=e.popupService,this.userComponentFactory=e.userComponentFactory}init(e){var s;const{menuItemDef:t,isAnotherSubMenuOpen:n,level:r,childComponent:i,contextParams:o}=e;return this.params=e.menuItemDef,this.level=r,this.isAnotherSubMenuOpen=n,this.childComponent=i,this.contextParams=o,this.cssClassPrefix=((s=this.params.menuItemParams)==null?void 0:s.cssClassPrefix)??"ag-menu-option",this.userComponentFactory.getMenuItemCompDetails(this.params,{...t,level:r,isAnotherSubMenuOpen:n,openSubMenu:l=>this.openSubMenu(l),closeSubMenu:()=>this.closeSubMenu(),closeMenu:l=>this.closeMenu(l),updateTooltip:(l,c)=>this.refreshTooltip(l,c),onItemActivated:()=>this.onItemActivated()}).newAgStackInstance().then(l=>{var d;this.menuItemComp=l;const c=(d=l.configureDefaults)==null?void 0:d.call(l);c&&this.configureDefaults(c===!0?void 0:c)})}addListeners(e,t){t!=null&&t.suppressClick||this.addManagedElementListeners(e,{click:n=>this.onItemSelected(n)}),t!=null&&t.suppressKeyboardSelect||this.addManagedElementListeners(e,{keydown:n=>{(n.key===Ze.ENTER||n.key===Ze.SPACE)&&(n.preventDefault(),this.onItemSelected(n))}}),t!=null&&t.suppressMouseDown||this.addManagedElementListeners(e,{mousedown:n=>{n.stopPropagation(),n.preventDefault()}}),t!=null&&t.suppressMouseOver||this.addManagedElementListeners(e,{mouseenter:()=>this.onMouseEnter(),mouseleave:()=>this.onMouseLeave()})}isDisabled(){return!!this.params.disabled}openSubMenu(e=!1,t){var c,d;if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;const n=$c('<div class="ag-menu" role="presentation"></div>');this.eSubMenuGui=n;let r,i=()=>{this.subMenuIsOpening=!1};if(this.childComponent){const f=this.createBean(new tQr(this.childComponent));f.setParentComponent(this);const h=f.getGui(),p="mouseenter",g=()=>this.cancelDeactivate();h.addEventListener(p,g),r=()=>h.removeEventListener(p,g),n.appendChild(h),this.childComponent.afterGuiAttached&&(i=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){const f=this.createBean(new $K(this.level+1,this.contextParams));f.setParentComponent(this),f.addMenuItems(this.params.subMenu),n.appendChild(f.getGui()),this.addManagedListeners(f,{closeMenu:h=>this.dispatchLocalEvent(h)}),f.addGuiEventListener("mouseenter",()=>this.cancelDeactivate()),r=()=>this.destroyBean(f),e&&(i=()=>{f.activateFirstItem(),this.subMenuIsOpening=!1})}const{popupService:o}=this,a=()=>{const f=this.eGui;o.positionPopupForMenu({eventSource:f,ePopup:n});const{column:h,node:p}=this.contextParams;o.callPostProcessPopup("subMenu",n,f,t instanceof Mo
2025-02-18 08:35:18 +08:00
<div data-ref="eHeader"></div>
<div data-ref="eBody" role="presentation" class="ag-tabs-body ${e?`${e}-body`:""}"></div>
2025-04-17 15:35:46 +08:00
</div>`}var iQr=class extends ZC{constructor(e){super(rQr(e.cssClass)),this.eHeader=wt,this.eBody=wt,this.items=[],this.tabbedItemScrollMap=new Map,this.params=e}wireBeans(e){this.focusService=e.focusService}postConstruct(){this.setupHeader(),this.params.items&&this.params.items.forEach(e=>this.addItem(e)),this.initialiseTabGuard({onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),focusInnerElement:this.focusInnerElement.bind(this),focusTrapActive:!0}),this.addDestroyFunc(()=>{var e,t,n;return(n=(t=(e=this.activeItem)==null?void 0:e.tabbedItem)==null?void 0:t.afterDetachedCallback)==null?void 0:n.call(t)})}setupHeader(){const{enableCloseButton:e,cssClass:t}=this.params,n=(r,i)=>{r.classList.add(`ag-tabs-${i}`),t&&r.classList.add(`${t}-${i}`)};e?(this.setupCloseButton(n),this.eTabHeader=Yi(this.gos).createElement("div"),n(this.eHeader,"header-wrapper"),Ro(this.eHeader,"presentation"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,Ro(this.eTabHeader,"tablist"),n(this.eTabHeader,"header")}setupCloseButton(e){const t=Yi(this.gos),n=t.createElement("button");e(n,"close-button");const r=zn("close",this.gos,void 0,!0);yl(n,this.params.closeButtonAriaLabel),n.appendChild(r),this.addManagedElementListeners(n,{click:()=>{var o,a;return(a=(o=this.params).onCloseClicked)==null?void 0:a.call(o)}});const i=t.createElement("div");e(i,"close-button-wrapper"),Ro(i,"presentation"),i.appendChild(n),this.eHeader.appendChild(i),this.eCloseButton=n}handleKeyDown(e){switch(e.key){case Ze.RIGHT:case Ze.LEFT:{if(!this.eTabHeader.contains(ri(this.gos)))return;const t=e.key===Ze.RIGHT,n=this.gos.get("enableRtl"),r=this.items.indexOf(this.activeItem),i=t!==n?Math.min(r+1,this.items.length-1):Math.max(r-1,0);if(r===i)return;e.preventDefault();const o=this.items[i];this.showItemWrapper(o),o.eHeaderButton.focus();break}case Ze.UP:case Ze.DOWN:e.stopPropagation();break}}onTabKeyDown(e){var h,p,g,m;if(e.defaultPrevented)return;const{focusService:t,eHeader:n,eBody:r,activeItem:i,params:o}=this,{suppressTrapFocus:a,enableCloseButton:s}=o,l=ri(this.gos),c=e.target,d=e.shiftKey;if(n.contains(l)){e.preventDefault(),s&&d&&!((h=this.eCloseButton)!=null&&h.contains(l))?(p=this.eCloseButton)==null||p.focus():a&&d?(g=this.focusService.findFocusableElementBeforeTabGuard(Yi(this.gos).body,c))==null||g.focus():this.focusBody(e.shiftKey);return}let f=null;if(t.isTargetUnderManagedComponent(r,c)&&(d&&(f=this.focusService.findFocusableElementBeforeTabGuard(r,c)),!f&&!a&&(f=i.eHeaderButton)),!f&&r.contains(l)&&(f=t.findNextFocusableElement(r,!1,d),!f)){a&&!d?this.forceFocusOutOfContainer(d):s&&!d?(e.preventDefault(),(m=this.eCloseButton)==null||m.focus()):(e.preventDefault(),this.focusHeader());return}f&&(e.preventDefault(),f.focus())}focusInnerElement(e){e?this.focusBody(!0):this.focusHeader()}focusHeader(e){this.activeItem.eHeaderButton.focus({preventScroll:e})}focusBody(e){this.focusService.focusInto(this.eBody,e)}setAfterAttachedParams(e){this.afterAttachedParams=e}showFirstItem(){this.items.length>0&&this.showItemWrapper(this.items[0])}addItem(e){const t=document.createElement("span");Ro(t,"tab"),t.setAttribute("tabindex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eTabHeader.appendChild(t),yl(t,e.titleLabel);const n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))}showItem(e){const t=this.items.find(n=>n.tabbedItem===e);t&&this.showItemWrapper(t)}showItemWrapper(e){var r,i,o,a,s,l;const{tabbedItem:t,eHeaderButton:n}=e;if((i=(r=this.params).onItemClicked)==null||i.call(r,{item:t}),this.activeItem===e){(a=(o=this.params).onActiveItemClicked)==null||a.call(o);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),Zi(this.eBody),t.bodyPromise.then(c=>{this.eBody.appendChild(c);const d=!this.focusService.isKeyboardMode();if(this.params.suppressFocusBodyOnOpen||this.focusService.focusInto(this.eBody,!1,d),t.afterAttachedCallback&&t.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrol
2025-02-18 08:35:18 +08:00
<span class="ag-group-expanded" data-ref="eExpanded"></span>
<span class="ag-group-contracted" data-ref="eContracted"></span>
<span class="ag-group-checkbox ag-invisible" data-ref="eCheckbox"></span>
<span class="ag-group-value" data-ref="eValue"></span>
<span class="ag-group-child-count" data-ref="eChildCount"></span>
2025-04-17 15:35:46 +08:00
</span>`,cz=class extends vn{constructor(){super(oQr),this.eExpanded=wt,this.eContracted=wt,this.eCheckbox=wt,this.eValue=wt,this.eChildCount=wt}init(e){const t={setInnerRenderer:(o,a)=>this.setRenderDetails(o,a),setChildCount:o=>this.eChildCount.textContent=o,addOrRemoveCssClass:(o,a)=>this.addOrRemoveCssClass(o,a),setContractedDisplayed:o=>En(this.eContracted,o),setExpandedDisplayed:o=>En(this.eExpanded,o),setCheckboxVisible:o=>this.eCheckbox.classList.toggle("ag-invisible",!o)},n=this.createManagedBean(new p0e),r=!e.colDef,i=this.getGui();n.init(t,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&Ro(i,n.getCellAriaRole())}setRenderDetails(e,t){if(e){const n=e.newAgStackInstance();if(n==null)return;n.then(r=>{if(!r)return;const i=()=>this.destroyBean(r);this.isAlive()?(this.eValue.appendChild(r.getGui()),this.addDestroyFunc(i)):i()})}else this.eValue.innerText=t}destroy(){this.destroyBean(this.innerCellRenderer),super.destroy()}refresh(){return!1}},aQr={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},sQr=class extends at{constructor(){super(...arguments),this.beanName="aggFuncService",this.aggFuncsMap={},this.initialised=!1}postConstruct(){this.init()}init(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gos.get("aggFuncs")))}initialiseWithDefaultAggregations(){const e=this.aggFuncsMap;e.sum=lQr,e.first=cQr,e.last=uQr,e.min=dQr,e.max=fQr,e.count=hQr,e.avg=pQr,this.initialised=!0}isAggFuncPossible(e,t){const n=this.getFuncNames(e),r=_s(n,t),i=Dt(this.aggFuncsMap[t]);return r&&i}getDefaultFuncLabel(e){return aQr[e]??e}getDefaultAggFunc(e){const t=e.getColDef().defaultAggFunc;if(Dt(t)&&this.isAggFuncPossible(e,t))return t;if(this.isAggFuncPossible(e,"sum"))return"sum";const n=this.getFuncNames(e);return mb(n)?n[0]:null}addAggFuncs(e){this.init(),Rs(e,(t,n)=>{this.aggFuncsMap[t]=n})}getAggFunc(e){return this.init(),this.aggFuncsMap[e]}getFuncNames(e){const t=e.getColDef().allowedAggFuncs;return t??Object.keys(this.aggFuncsMap).sort()}clear(){this.aggFuncsMap={}}};function lQr(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];typeof i=="number"?n===null?n=i:n+=typeof n=="number"?i:BigInt(i):typeof i=="bigint"&&(n===null?n=i:n=(typeof n=="bigint"?n:BigInt(n))+i)}return n}function cQr(e){return e.values.length>0?e.values[0]:null}function uQr(e){return e.values.length>0?Pn(e.values):null}function dQr(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];(typeof i=="number"||typeof i=="bigint")&&(n===null||n>i)&&(n=i)}return n}function fQr(e){const{values:t}=e;let n=null;for(let r=0;r<t.length;r++){const i=t[r];(typeof i=="number"||typeof i=="bigint")&&(n===null||n<i)&&(n=i)}return n}function hQr(e){var i,o;const{values:t}=e;let n=0;for(let a=0;a<t.length;a++){const s=t[a];n+=s!=null&&typeof s.value=="number"?s.value:1}const r=(o=(i=e.rowNode)==null?void 0:i.aggData)==null?void 0:o[e.column.getColId()];return r&&r.value===n?r:{value:n,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function pQr(e){var a,s,l;const{values:t}=e;let n=0,r=0;for(let c=0;c<t.length;c++){const d=t[c];let f=null;typeof d=="number"||typeof d=="bigint"?(f=d,r++):d!=null&&(typeof d.value=="number"||typeof d.value=="bigint")&&typeof d.count=="number"&&(f=d.value*(typeof d.value=="number"?d.count:BigInt(d.count)),r+=d.count),typeof f=="number"?n+=typeof n=="number"?f:BigInt(f):typeof f=="bigint"&&(n=(typeof n=="bigint"?n:BigInt(n))+f)}let i=null;r>0&&(i=n/(typeof n=="number"?r:BigInt(r)));const o=(l=(a=e.rowNode)==null?void 0:a.aggData)==null?void 0:l[(s=e.column)==null?void 0:s.getColId()];return o&&o.count===r&&o.value===i?o:{count:r,value:i,toString:function(){return typeof this.value=="number"||typeof this.value=="bigint"?this.value.toString():""},toNumber:function(){return this.value}}}var gQr=class extends at{constructor(){super(...arguments),this.beanName="aggregationStage"}wireBeans(e){this.columnModel=e.columnModel,this.aggFuncService=e.aggFuncService,this.funcColsServ
2025-02-18 08:35:18 +08:00
<span role="option">
<span data-ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>
<span data-ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>
<ag-sort-indicator data-ref="eSortIndicator"></ag-sort-indicator>
<span data-ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>
</span>
2025-04-17 15:35:46 +08:00
`,[Crt]),this.column=e,this.dropZonePurpose=r,this.eSortIndicator=wt,this.popupShowing=!1}wireBeans(e){super.wireBeans(e),this.popupService=e.popupService,this.sortController=e.sortController,this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.funcColsService=e.funcColsService,this.aggFuncService=e.aggFuncService}postConstruct(){this.displayName=this.columnNameService.getDisplayNameForColumn(this.column,"columnDrop"),super.postConstruct(),this.setupSort(),this.addManagedEventListeners({sortChanged:()=>{this.setupAria()}}),this.isGroupingZone()&&this.addManagedPropertyListener("groupLockGroupColumns",()=>{this.refreshRemove(),this.refreshDraggable(),this.setupAria()})}getItem(){return this.column}getDisplayName(){return this.displayName}getTooltip(){return this.column.getColDef().headerTooltip}addAdditionalAriaInstructions(e,t){const n=this.gos.get("rowGroupPanelSuppressSort"),r=this.gos.get("functionsReadOnly");if(this.isAggregationZone()&&!r){const i=t("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");e.push(i)}if(this.isGroupingZone()&&this.column.isSortable()&&!n){const i=t("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");e.push(i)}super.addAdditionalAriaInstructions(e,t)}isDraggable(){return this.isReadOnly()}isRemovable(){return this.isReadOnly()}isReadOnly(){return!this.isGroupingAndLocked()&&!this.gos.get("functionsReadOnly")}getAriaDisplayName(){const e=this.localeService.getLocaleTextFunc(),{name:t,aggFuncName:n}=this.getColumnAndAggFuncName(),r=e("ariaDropZoneColumnComponentAggFuncSeparator"," of "),i={asc:e("ariaDropZoneColumnComponentSortAscending","ascending"),desc:e("ariaDropZoneColumnComponentSortDescending","descending")},o=this.column.getSort(),a=this.gos.get("rowGroupPanelSuppressSort");return[n&&`${n}${r}`,t,this.isGroupingZone()&&!a&&o&&`, ${i[o]}`].filter(s=>!!s).join("")}getColumnAndAggFuncName(){const e=this.displayName;let t="";if(this.isAggregationZone()){const n=this.column.getAggFunc(),r=typeof n=="string"?n:"agg";t=this.localeService.getLocaleTextFunc()(r,r)}return{name:e,aggFuncName:t}}setupSort(){const e=this.column.isSortable(),t=this.isGroupingZone();if(!(!e||!t)&&!this.gos.get("rowGroupPanelSuppressSort")){this.eSortIndicator.setupSort(this.column,!0);const n=r=>{r.preventDefault();const o=this.gos.get("multiSortKey")==="ctrl"?r.ctrlKey||r.metaKey:r.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")};this.addGuiEventListener("click",n),this.addGuiEventListener("keydown",r=>{r.key===Ze.ENTER&&this.isGroupingZone()&&n(r)})}}getDefaultIconName(){return"hide"}createGetDragItem(){const{column:e}=this;return()=>{const t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}}}setupComponents(){super.setupComponents(),this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))}onKeyDown(e){super.onKeyDown(e),e.key===Ze.ENTER&&this.isAggregationZone()&&!this.gos.get("functionsReadOnly")&&(e.preventDefault(),this.onShowAggFuncSelection())}getDisplayValue(){const{name:e,aggFuncName:t}=this.getColumnAndAggFuncName();return this.isAggregationZone()?`${t}(${e})`:e}onShowAggFuncSelection(){if(this.popupShowing)return;this.popupShowing=!0;const e=new h0e({cssIdentifier:"select-agg-func"}),t=this.aggFuncService.getFuncNames(this.column),n=this.getGui(),r=e.getGui();e.setModel({getRow:function(d){return t[d]},getRowCount:function(){return t.length}}),this.createBean(e);const i=$c('<div class="ag-select-agg-func-popup"></div>');i.style.top="0px",i.style.left="0px",i.appendChild(r),i.style.width=`${n.clientWidth}px`;const[o]=this.addManagedElementListeners(i,{focusout:d=>{!i.contains(d.relatedTarget)&&l&&l.hideFunc()}}),a=d=>{this.destroyBean(e),this.popupShowing=!1,(d==null?void 0:d.key)==="Escape"&&n.focus(),o&&o()},s=this.localeService.getLocaleTextFunc(),l=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:a,ariaLabel:s("ariaLabelAggregationFunction","Aggregation Function")});l&&e.se
2025-02-18 08:35:18 +08:00
<div class="ag-group-filter">
<div data-ref="eGroupField"></div>
<div data-ref="eUnderlyingFilter"></div>
</div>
2025-04-17 10:18:46 +08:00
`),this.eGroupField=wt,this.eUnderlyingFilter=wt}wireBeans(e){this.filterManager=e.filterManager,this.columnNameService=e.columnNameService,this.funcColsService=e.funcColsService}postConstruct(){this.initialiseTabGuard({})}init(e){return this.updateParams(e).then(()=>{this.addManagedEventListeners({columnRowGroupChanged:()=>this.onColumnRowGroupChanged(),filterDestroyed:t=>this.onFilterDestroyed(t)})})}refresh(e){return this.updateParams(e),!0}updateParams(e){return this.params=e,this.validateParams(),this.updateGroups()}validateParams(){const{colDef:e}=this.params;e.field&&et('Group Column Filter does not work with the colDef property "field". This property will be ignored.'),e.filterValueGetter&&et('Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.'),e.filterParams&&et('Group Column Filter does not work with the colDef property "filterParams". This property will be ignored.')}updateGroups(){const e=this.updateGroupField();return this.getUnderlyingFilters(e)}getSourceColumns(){if(this.groupColumn=this.params.column,this.gos.get("treeData"))return et("Group Column Filter does not work with Tree Data enabled. Please disable Tree Data, or use a different filter."),[];const e=this.funcColsService.getSourceColumnsForGroupColumn(this.groupColumn);return e||(et("Group Column Filter only works on group columns. Please use a different filter."),[])}updateGroupField(){Zi(this.eGroupField),this.eGroupFieldSelect&&this.destroyBean(this.eGroupFieldSelect);const e=this.getSourceColumns(),t=e.filter(n=>n.isFilterAllowed());return t.length?(e.length===1?(this.selectedColumn=t[0],En(this.eGroupField,!1)):((!this.selectedColumn||!t.some(n=>n.getId()===this.selectedColumn.getId()))&&(this.selectedColumn=t[0]),this.createGroupFieldSelectElement(t),this.eGroupField.appendChild(this.eGroupFieldSelect.getGui()),this.eGroupField.appendChild($c('<div class="ag-filter-separator"></div>')),En(this.eGroupField,!0)),t):(this.selectedColumn=void 0,En(this.eGroupField,!1),null)}createGroupFieldSelectElement(e){this.eGroupFieldSelect=this.createManagedBean(new SK);const t=this.localeService.getLocaleTextFunc();this.eGroupFieldSelect.setLabel(t("groupFilterSelect","Select field:")),this.eGroupFieldSelect.setLabelAlignment("top"),this.eGroupFieldSelect.addOptions(e.map(n=>({value:n.getId(),text:this.columnNameService.getDisplayNameForColumn(n,"groupFilter",!1)??void 0}))),this.eGroupFieldSelect.setValue(this.selectedColumn.getId()),this.eGroupFieldSelect.onValueChange(n=>this.updateSelectedColumn(n)),this.eGroupFieldSelect.addCssClass("ag-group-filter-field-select-wrapper"),e.length===1&&this.eGroupFieldSelect.setDisabled(!0)}getUnderlyingFilters(e){if(!e)return this.filterColumnPairs=void 0,this.selectedFilter=void 0,this.groupColumn.setFilterActive(!1,"columnRowGroupChanged"),fr.resolve();const t=[],n=[];return e.forEach(r=>{const i=this.filterManager.getOrCreateFilterWrapper(r);i!=null&&i.filterPromise&&t.push(i.filterPromise.then(o=>(o&&n.push({filter:o,column:r}),r.getId()===this.selectedColumn.getId()&&(this.selectedFilter=o??void 0),o)))}),fr.all(t).then(()=>{this.filterColumnPairs=n,this.groupColumn.setFilterActive(this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){var t;if(Zi(this.eUnderlyingFilter),!this.selectedColumn)return fr.resolve();const e=this.createManagedBean(new yK(this.selectedColumn,"COLUMN_MENU"));return this.filterWrapperComp=e,e.hasFilter()?(this.eUnderlyingFilter.appendChild(e.getGui()),((t=e.getFilter())==null?void 0:t.then(()=>{var n,r;(n=e.afterGuiAttached)==null||n.call(e,this.afterGuiAttachedParams),!((r=this.afterGuiAttachedParams)!=null&&r.suppressFocus)&&this.eGroupFieldSelect&&!this.eGroupFieldSelect.isDisabled()&&this.eGroupFieldSelect.getFocusableElement().focus()}))??fr.resolve()):fr.resolve()}updateSelectedColumn(e){var n;if(!e)return;(n=this.filterWrapperComp)==null||n.afterGuiDetached(),this.destroyBean(this.filterWrapperComp);const t=this.getFilterColumnPair(e);this.selectedColumn=t==null?void 0:t.column,this.select
2025-02-18 08:35:18 +08:00
<div data-ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>
2025-04-17 15:35:46 +08:00
`),this.eFloatingFilter=wt,this.haveAddedColumnListeners=!1}wireBeans(e){this.columnNameService=e.columnNameService,this.filterManager=e.filterManager}init(e){this.params=e;const t=this.gos.get("groupDisplayType")==="multipleColumns";return new fr(n=>{this.params.parentFilterInstance(r=>{this.parentFilterInstance=r,t?this.setupUnderlyingFloatingFilterElement().then(()=>n()):(this.setupReadOnlyFloatingFilterElement(),n())})}).then(()=>{this.addManagedListeners(this.parentFilterInstance,{selectedColumnChanged:this.onSelectedColumnChanged.bind(this),columnRowGroupChanged:this.onColumnRowGroupChanged.bind(this)})})}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams()}setParams(){var n;const e=this.columnNameService.getDisplayNameForColumn(this.params.column,"header",!0),t=this.localeService.getLocaleTextFunc();(n=this.eFloatingFilterText)==null||n.setInputAriaLabel(`${e} ${t("ariaFilterInput","Filter Input")}`)}setupReadOnlyFloatingFilterElement(){this.eFloatingFilterText||(this.eFloatingFilterText=this.createManagedBean(new _4),this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams()),this.updateDisplayedValue(),this.eFloatingFilter.appendChild(this.eFloatingFilterText.getGui())}setupUnderlyingFloatingFilterElement(){this.showingUnderlyingFloatingFilter=!1,this.underlyingFloatingFilter=void 0,Zi(this.eFloatingFilter);const e=this.parentFilterInstance.getSelectedColumn();if(e&&!e.isVisible()){const t=this.filterManager.getFloatingFilterCompDetails(e,this.params.showParentFilter);if(t)return this.haveAddedColumnListeners||(this.haveAddedColumnListeners=!0,this.addManagedListeners(e,{visibleChanged:this.onColumnVisibleChanged.bind(this),colDefChanged:this.onColDefChanged.bind(this)})),t.newAgStackInstance().then(n=>{var r,i;this.underlyingFloatingFilter=n,(i=this.underlyingFloatingFilter)==null||i.onParentModelChanged((r=this.parentFilterInstance.getSelectedFilter())==null?void 0:r.getModel()),this.appendChild(n.getGui()),this.showingUnderlyingFloatingFilter=!0})}return this.setupReadOnlyFloatingFilterElement(),fr.resolve()}onColumnVisibleChanged(){this.setupUnderlyingFloatingFilterElement()}onColDefChanged(e){var n,r,i;if(!e.column)return;const t=this.filterManager.getFloatingFilterCompDetails(e.column,this.params.showParentFilter);t&&((n=this.underlyingFloatingFilter)!=null&&n.refresh?this.underlyingFloatingFilter.refresh(t.params):(i=(r=this.underlyingFloatingFilter)==null?void 0:r.onParamsUpdated)==null||i.call(r,t.params))}onParentModelChanged(e,t){var n,r;this.showingUnderlyingFloatingFilter?(r=this.underlyingFloatingFilter)==null||r.onParentModelChanged((n=this.parentFilterInstance.getSelectedFilter())==null?void 0:n.getModel(),t):this.updateDisplayedValue()}updateDisplayedValue(){if(!this.parentFilterInstance||!this.eFloatingFilterText)return;const e=this.parentFilterInstance.getSelectedFilter();if(!e){this.eFloatingFilterText.setValue(""),this.eFloatingFilterText.setDisplayed(!1);return}if(this.eFloatingFilterText.setDisplayed(!0),e.getModelAsString){const t=e.getModel();this.eFloatingFilterText.setValue(t==null?"":e.getModelAsString(t))}else this.eFloatingFilterText.setValue("")}onSelectedColumnChanged(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}onColumnRowGroupChanged(){this.showingUnderlyingFloatingFilter||this.updateDisplayedValue()}destroy(){super.destroy()}},cte=class{constructor(){this.allSets={},this.allParents=[]}removeFromChildrenAfterGroup(e,t){const n=this.getSet(e);n.removeFromChildrenAfterGroup[t.id]=!0}isRemoveFromAllLeafChildren(e,t){return!!this.getSet(e).removeFromAllLeafChildren[t.id]}preventRemoveFromAllLeafChildren(e,t){const n=this.getSet(e);delete n.removeFromAllLeafChildren[t.id]}removeFromAllLeafChildren(e,t){const n=this.getSet(e);n.removeFromAllLeafChildren[t.id]=!0}getSet(e){return this.allSets[e.id]||(this.allSets[e.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(e)),this.allSets[e.id]}getAllParents(){return this.allParents}flush(
2025-02-18 08:35:18 +08:00
<button type="button" data-ref="eToggleButton" tabindex="-1" role="tab" aria-expanded="false" class="ag-button ag-side-button-button">
<div data-ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>
<span data-ref="eLabel" class="ag-side-button-label"></span>
</button>
2025-04-17 15:35:46 +08:00
</div>`}setLabel(){const e=this.localeService.getLocaleTextFunc(),t=this.toolPanelDef,n=e(t.labelKey,t.labelDefault);this.eLabel.innerText=n}setIcon(){this.eIconWrapper.insertAdjacentElement("afterbegin",zn(this.toolPanelDef.iconKey,this.gos))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(e){this.addOrRemoveCssClass("ag-selected",e),Du(this.eToggleButton,e)}getButtonElement(){return this.eToggleButton}},OZr=class extends vn{constructor(){super('<div class="ag-side-buttons" role="tablist"></div>'),this.buttonComps=[]}wireBeans(e){this.focusService=e.focusService,this.visibleColsService=e.visibleColsService}postConstruct(){this.addManagedElementListeners(this.getFocusableElement(),{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){if(!(e.key!==Ze.TAB||!e.shiftKey)){if(this.focusService.focusNextGridCoreContainer(!0)){e.preventDefault();return}Sp(e)}}setActiveButton(e){this.buttonComps.forEach(t=>{t.setSelected(e===t.getToolPanelId())})}addButtonComp(e){const t=this.createBean(new RZr(e));return this.buttonComps.push(t),this.appendChild(t),t.addEventListener("toggleButtonClicked",()=>{this.dispatchLocalEvent({type:"sideBarButtonClicked",toolPanelId:e.id})}),t}clearButtons(){this.buttonComps=this.destroyBeans(this.buttonComps),Zi(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},MZr={selector:"AG-SIDE-BAR-BUTTONS",component:OZr},oot={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},aot={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},v0e={columns:oot,filters:aot};function Qse(e){if(!e)return;if(e===!0)return{toolPanels:[oot,aot],defaultToolPanel:"columns"};if(typeof e=="string")return Qse([e]);if(Array.isArray(e)){const n=[];return e.forEach(r=>{const i=v0e[r];if(!i){sot(r);return}n.push(i)}),n.length===0?void 0:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:PZr(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}}function sot(e){et(`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(v0e).join(",")}`)}function PZr(e){const t=[];return e&&e.forEach(n=>{let r=null;if(typeof n=="string"){const i=v0e[n];if(!i){sot(n);return}r=i}else r=n;t.push(r)}),t}var IZr=class extends vn{constructor(){super('<div class="ag-tool-panel-horizontal-resize"></div>'),this.minWidth=100,this.maxWidth=null}wireBeans(e){this.horizontalResizeService=e.horizontalResizeService}setElementToResize(e){this.elementToResize=e}postConstruct(){const e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gos.get("enableRtl"))}dispatchResizeEvent(e,t,n){this.eventService.dispatchEvent({type:"toolPanelSizeChanged",width:n,started:e,ended:t})}onResizeStart(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)}onResizeEnd(e){return this.onResizing(e,!0)}onResizing(e,t=!1){const n=this.inverted?-1:1;let r=Math.max(this.minWidth,Math.floor(this.startingWidth-e*n));this.maxWidth!=null&&(r=Math.min(this.maxWidth,r)),this.elementToResize.style.width=`${r}px`,this.dispatchResizeEvent(!1,t,r)}setInverted(e){this.inverted=e}setMaxWidth(e){this.maxWidth=e}setMinWidth(e){e!=null?this.minWidth=e:this.minWidth=100}},TZr=class extends vn{wireBeans(e){this.userComponentFactory=e.userComponentFactory}constructor(){super('<div class="ag-tool-panel-wrapper" role="tabpanel"/>')}postConstruct(){const e=this.getGui(),t=this.resizeBar=this.createManagedBean(new IZr);e.setAttribute("id",`ag-${this.getCompId()}`),t.setElementToResize(e),this.appendChild(t)}getToolPanelId(){return this.toolPanelId}setToolPanelDef(e,t){const{id:n,minWidth:r,maxWidth:i,width:o}=e;this.toolPanelId=n,this.width=o;const a=this.userComponentFactory.getToolPanelCompDet
2025-02-18 08:35:18 +08:00
<ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons>
2025-04-17 15:35:46 +08:00
</div>`,[MZr]),this.sideBarButtons=wt,this.toolPanelWrappers=[]}wireBeans(e){this.focusService=e.focusService,this.filterManager=e.filterManager,this.sideBarService=e.sideBarService}postConstruct(){this.sideBarButtons.addEventListener("sideBarButtonClicked",this.onToolPanelButtonClicked.bind(this));const{sideBar:e}=this.gos.get("initialState")??{};this.setSideBarDef({sideBarDef:Qse(this.gos.get("sideBar")),sideBarState:e}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),this.sideBarService.registerSideBarComp(this);const t=this.getFocusableElement();this.createManagedBean(new n0(t,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),Nit(this,t,this.focusService)}onTabKeyDown(e){if(e.defaultPrevented)return;const{focusService:t,sideBarButtons:n}=this,r=this.getGui(),i=n.getGui(),o=ri(this.gos),a=r.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),s=e.target;if(!a)return t.focusNextGridCoreContainer(e.shiftKey,!0);if(i.contains(o)){t.focusInto(a,e.shiftKey)&&e.preventDefault();return}if(!e.shiftKey)return;let l=null;a.contains(o)?l=this.focusService.findNextFocusableElement(a,void 0,!0):t.isTargetUnderManagedComponent(a,s)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(a,s)),l||(l=i.querySelector(".ag-selected button")),l&&l!==e.target&&(e.preventDefault(),l.focus())}handleKeyDown(e){const t=ri(this.gos);if(!this.sideBarButtons.getGui().contains(t))return;const n=this.sideBarButtons.getGui(),r=Array.prototype.slice.call(n.querySelectorAll(".ag-side-button")),i=r.findIndex(s=>s.contains(t));let o=null;switch(e.key){case Ze.LEFT:case Ze.UP:o=Math.max(0,i-1);break;case Ze.RIGHT:case Ze.DOWN:o=Math.min(i+1,r.length-1);break}if(o===null)return;const a=r[o].querySelector("button");a&&(a.focus(),e.preventDefault())}onToolPanelButtonClicked(e){const t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")}clearDownUi(){this.sideBarButtons.clearButtons(),this.destroyToolPanelWrappers()}setSideBarDef({sideBarDef:e,sideBarState:t,existingToolPanelWrappers:n}){if(this.setDisplayed(!1),this.sideBar=e,this.sideBar&&this.sideBar.toolPanels){const r=this.sideBar.toolPanels;if(this.createToolPanelsAndSideButtons(r,t,n),!this.toolPanelWrappers.length)return;const i=t?t.visible:!this.sideBar.hiddenByDefault;if(this.setDisplayed(i),this.setSideBarPosition(t?t.position:this.sideBar.position),i)if(t){const{openToolPanel:o}=t;o&&this.openToolPanel(o,"sideBarInitializing")}else this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}}getDef(){return this.sideBar}setSideBarPosition(e){e||(e="right"),this.position=e;const t=e==="left",n=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach(r=>{r.setResizerSizerSide(n)}),this.dispatchSideBarUpdated(),this}setDisplayed(e,t){super.setDisplayed(e,t),this.dispatchSideBarUpdated()}getState(){const e={};return this.toolPanelWrappers.forEach(t=>{var n,r;e[t.getToolPanelId()]=(r=(n=t.getToolPanelInstance())==null?void 0:n.getState)==null?void 0:r.call(n)}),{visible:this.isDisplayed(),position:this.position,openToolPanel:this.openedItem(),toolPanels:e}}createToolPanelsAndSideButtons(e,t,n){var r;for(const i of e)this.createToolPanelAndSideButton(i,(r=t==null?void 0:t.toolPanels)==null?void 0:r[i.id],n==null?void 0:n[i.id])}validateDef(e){var t;if(e.id==null)return et("please review all your toolPanel components, it seems like at least one of them doesn't have an id"),!1;if(e.toolPanel==="agColumnsToolPanel"&&!this.gos.assertModuleRegistered(Qn.ColumnsToolPanelModule,"Column Tool Panel"))return!1;if(e.toolPanel==="agFiltersToolPanel"){if(!this.gos.assertModuleRegistered(Qn.FiltersToolPanelModule,"Filters Tool Panel"))return!1;if((t=this.filterManager)!=null&&t.isAdvancedFilterEnabled())return et("Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled."),!1}return!0}createToolPanelAndSide
2025-02-18 08:35:18 +08:00
<div data-ref="eExpand" class="ag-column-select-header-icon"></div>
<ag-checkbox data-ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>
<ag-input-text-field class="ag-column-select-header-filter-wrapper" data-ref="eFilterTextField"></ag-input-text-field>
2025-04-17 15:35:46 +08:00
</div>`,[T4,F4]),this.eExpand=wt,this.eSelect=wt,this.eFilterTextField=wt}wireBeans(e){this.columnModel=e.columnModel}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:t=>{t.key===Ze.SPACE&&(t.preventDefault(),this.onExpandClicked())}}),this.addManagedElementListeners(this.eSelect.getInputElement(),{click:this.onSelectClicked.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",()=>this.onFunctionsReadOnlyPropChanged()),this.eFilterTextField.setAutoComplete(!1).onValueChange(()=>this.onFilterTextChanged()),this.addManagedElementListeners(this.eFilterTextField.getInputElement(),{keydown:this.onMiniFilterKeyDown.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)});const e=this.localeService.getLocaleTextFunc();this.eSelect.setInputAriaLabel(e("ariaColumnSelectAll","Toggle All Columns Visibility")),this.eFilterTextField.setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")),this.activateTabIndex([this.eExpand])}onFunctionsReadOnlyPropChanged(){const e=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(e),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",e)}init(e){this.params=e;const t=this.gos.get("functionsReadOnly");this.eSelect.setReadOnly(t),this.eSelect.addOrRemoveCssClass("ag-column-select-column-readonly",t),this.columnModel.isReady()&&this.showOrHideOptions()}createExpandIcons(){this.eExpand.appendChild(this.eExpandChecked=zn("columnSelectOpen",this.gos)),this.eExpand.appendChild(this.eExpandUnchecked=zn("columnSelectClosed",this.gos)),this.eExpand.appendChild(this.eExpandIndeterminate=zn("columnSelectIndeterminate",this.gos)),this.setExpandState(0)}showOrHideOptions(){const e=!this.params.suppressColumnFilter,t=!this.params.suppressColumnSelectAll,n=!this.params.suppressColumnExpandAll,r=this.columnModel.isProvidedColGroupsPresent(),i=this.localeService.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(i("searchOoo","Search...")),En(this.eFilterTextField.getGui(),e),En(this.eSelect.getGui(),t),En(this.eExpand,n&&r)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=is(()=>{const e=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:e})},gPe)),this.onFilterTextChangedDebounced()}onMiniFilterKeyDown(e){e.key===Ze.ENTER&&setTimeout(()=>this.onSelectClicked(),gPe)}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===0?"collapseAll":"expandAll"})}setExpandState(e){this.expandState=e,En(this.eExpandChecked,this.expandState===0),En(this.eExpandUnchecked,this.expandState===1),En(this.eExpandIndeterminate,this.expandState===2)}setSelectionState(e){this.selectState=e,this.eSelect.setValue(this.selectState)}},NZr={selector:"AG-PRIMARY-COLS-HEADER",component:LZr},mPe=class{constructor(e,t,n,r=!1,i){this.localEventService=new I4,this.displayName=e,this.dept=n,this.group=r,r?(this.columnGroup=t,this.expanded=i,this.children=[]):this.column=t}isGroup(){return this.group}getDisplayName(){return this.displayName}getColumnGroup(){return this.columnGroup}getColumn(){return this.column}getDept(){return this.dept}isExpanded(){return!!this.expanded}getChildren(){return this.children}isPassesFilter(){return this.passesFilter}setExpanded(e){e!==this.expanded&&(this.expanded=e,this.localEventService.dispatchEvent({type:"expandedChanged"}))}setPassesFilter(e){this.passesFilter=e}addEventListener(e,t){this.localEventService.addEventListener(e,t)}removeEventListener(e,t){this.localEventService.removeEventListener(e,t)}},uot=class extends vn{constructor(e,t,n){super('<div class="ag-menu"></div>'),this.column=e,this.mouseEvent=t,this.parentEl=n,this.displayName=null}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.funcColsService=e.funcColsService,this.popupService=e.popupService,this.focusService=e.focusService}postConstruct(){
2025-02-18 08:35:18 +08:00
<span class="ag-column-group-icons" data-ref="eColumnGroupIcons" >
<span class="ag-column-group-closed-icon" data-ref="eGroupClosedIcon"></span>
<span class="ag-column-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
</span>
<ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
<span class="ag-column-select-column-label" data-ref="eLabel"></span>
2025-04-17 15:35:46 +08:00
</div>`,[T4]),this.eDragHandle=zn("columnDrag",this.gos),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");const e=this.cbSelect.getGui(),t=this.cbSelect.getInputElement();e.insertAdjacentElement("afterend",this.eDragHandle),t.setAttribute("tabindex","-1"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+this.columnDept),this.getGui().style.setProperty("--ag-indentation-level",String(this.columnDept)),this.addManagedEventListeners({columnPivotModeChanged:this.onColumnStateChanged.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.onLabelClicked.bind(this)}),this.addManagedListeners(this.cbSelect,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedListeners(this.modelItem,{expandedChanged:this.onExpandChanged.bind(this)}),this.addManagedListeners(this.focusWrapper,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),Wrt(this.columnGroup.getColGroupDef(),this.gos,null,this.columnGroup).forEach(r=>this.addOrRemoveCssClass(r,!0))}getColumns(){return this.columnGroup.getLeafColumns()}setupTooltip(){const e=this.columnGroup.getColGroupDef();if(!e)return;const t=this.gos.get("tooltipShowMode")==="whenTruncated";let n;t&&(n=()=>this.eLabel.scrollWidth>this.eLabel.clientWidth);const r=()=>{const i=e.headerTooltip;this.setTooltip({newTooltipText:i,location:"columnToolPanelColumnGroup",shouldDisplayTooltip:n})};r(),this.addManagedEventListeners({newColumnsLoaded:r})}getTooltipParams(){const e=super.getTooltipParams();return e.location="columnToolPanelColumnGroup",e}handleKeyDown(e){switch(e.key){case Ze.LEFT:e.preventDefault(),this.modelItem.setExpanded(!1);break;case Ze.RIGHT:e.preventDefault(),this.modelItem.setExpanded(!0);break;case Ze.SPACE:e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected());break}}onContextMenu(e){const{columnGroup:t,gos:n}=this;if(n.get("functionsReadOnly"))return;const r=this.createBean(new uot(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}addVisibilityListenersToAllChildren(){const e=this.onColumnStateChanged.bind(this);this.columnGroup.getLeafColumns().forEach(t=>{this.addManagedListeners(t,{visibleChanged:e,columnValueChanged:e,columnPivotChanged:e,columnRowGroupChanged:e})})}setupDragging(){if(!this.allowDragging){En(this.eDragHandle,!1);return}let e=!this.gos.get("suppressDragLeaveHidesColumns");const t={type:F8.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>e?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{e=!this.gos.get("suppressDragLeaveHidesColumns"),this.eventService.dispatchEvent({type:"columnPanelItemDragStart",column:this.columnGroup})},onDragStopped:()=>{this.eventService.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:n=>{e&&this.modelItemUtils.updateColumns({columns:this.columnGroup.getLeafColumns(),visibleState:n==null?void 0:n.visibleState,pivotState:n==null?void 0:n.pivotState,eventType:this.eventType})},onGridExit:()=>{e&&this.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(()=>this.dragAndDropService.removeDragSource(t))}createDragItem(){const e=this.columnGroup.getLeafColumns(),t={},n={};return e.forEach(r=>{const i=r.getId();t[i]=r.isVisible(),n[i]=this.modelItemUtils.createPivotState(r)}),{columns:e,visibleState:t,pivotState:n}}setupExpandContract(){this.eGroupClosedIcon.appendChild(tv("columnSelectClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(tv("columnSelectOpen",this.gos,null));const e=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(this.eGroupClosedIcon,{click:e}),this.addManagedElementListeners(this.eGroupOpenedIcon,{click:e});const t=new sp(this.eColumnGroupIcons,!0);t
2025-02-18 08:35:18 +08:00
<ag-checkbox data-ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>
<span class="ag-column-select-column-label" data-ref="eLabel"></span>
2025-04-17 15:35:46 +08:00
</div>`,[T4]),this.eDragHandle=zn("columnDrag",this.gos),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");const e=this.cbSelect.getGui(),t=this.cbSelect.getInputElement();e.insertAdjacentElement("afterend",this.eDragHandle),t.setAttribute("tabindex","-1");const n=hl(this.displayName);this.eLabel.innerHTML=n;const r=this.columnDept;this.groupsExist&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass(`ag-column-select-indent-${r}`),this.getGui().style.setProperty("--ag-indentation-level",String(r)),this.setupDragging();const i=this.onColumnStateChanged.bind(this);this.addManagedEventListeners({columnPivotModeChanged:i}),this.addManagedListeners(this.column,{columnValueChanged:i,columnPivotChanged:i,columnRowGroupChanged:i,visibleChanged:i}),this.addManagedListeners(this.focusWrapper,{keydown:this.handleKeyDown.bind(this),contextmenu:this.onContextMenu.bind(this)}),this.addManagedPropertyListener("functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListeners(this.cbSelect,{fieldValueChanged:this.onCheckboxChanged.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.onLabelClicked.bind(this)}),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),Wrt(this.column.getColDef(),this.gos,this.column,null).forEach(a=>this.addOrRemoveCssClass(a,!0))}getColumn(){return this.column}setupTooltip(){const e=this.gos.get("tooltipShowMode")==="whenTruncated";let t;e&&(t=()=>this.eLabel.scrollWidth>this.eLabel.clientWidth);const n=()=>{const r=this.column.getColDef().headerTooltip;this.setTooltip({newTooltipText:r,location:"columnToolPanelColumn",shouldDisplayTooltip:t})};n(),this.addManagedEventListeners({newColumnsLoaded:n})}getTooltipParams(){const e=super.getTooltipParams();return e.location="columnToolPanelColumn",e.colDef=this.column.getColDef(),e}onContextMenu(e){const{column:t,gos:n}=this;if(n.get("functionsReadOnly"))return;const r=this.createBean(new uot(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}handleKeyDown(e){e.key===Ze.SPACE&&(e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))}onLabelClicked(){if(this.gos.get("functionsReadOnly"))return;const e=!this.cbSelect.getValue();this.onChangeCommon(e)}onCheckboxChanged(e){this.onChangeCommon(e.selected)}onChangeCommon(e){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&this.modelItemUtils.setColumn(this.column,e,"toolPanelUi"))}refreshAriaLabel(){const e=this.localeService.getLocaleTextFunc(),t=e("ariaColumn","Column"),n=this.cbSelect.getValue()?e("ariaVisible","visible"):e("ariaHidden","hidden"),r=e("ariaToggleVisibility","Press SPACE to toggle visibility");yl(this.focusWrapper,`${this.displayName} ${t}`),this.cbSelect.setInputAriaLabel(`${r} (${n})`),Ame(this.focusWrapper,this.cbSelect.getInputElement().id)}setupDragging(){if(!this.allowDragging){En(this.eDragHandle,!1);return}let e=!this.gos.get("suppressDragLeaveHidesColumns");const t={type:F8.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,getDefaultIconName:()=>e?"hide":"notAllowed",getDragItem:()=>this.createDragItem(),onDragStarted:()=>{e=!this.gos.get("suppressDragLeaveHidesColumns"),this.eventService.dispatchEvent({type:"columnPanelItemDragStart",column:this.column})},onDragStopped:()=>{this.eventService.dispatchEvent({type:"columnPanelItemDragEnd"})},onGridEnter:n=>{e&&this.modelItemUtils.updateColumns({columns:[this.column],visibleState:n==null?void 0:n.visibleState,pivotState:n==null?void 0:n.pivotState,eventType:"toolPanelUi"})},onGridExit:()=>{e&&this.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc(()=>this.dragAndDropService.removeDragSource(t))}createDragItem(){const e=this.column.getColId(),t={[e]:this.column.isVisible()},n={[e]:this.modelItemUtils.createPivotState(this.column)};return{columns:[this.column],visibleState:t,pivotState:n}}onColumnStateChanged(){this.processingColumnStateChange=!0;const e=this.columnModel.isPivotMo
2025-02-18 08:35:18 +08:00
<ag-primary-cols-header data-ref="primaryColsHeaderPanel"></ag-primary-cols-header>
<ag-primary-cols-list data-ref="primaryColsListPanel"></ag-primary-cols-list>
2025-04-17 10:18:46 +08:00
</div>`,[NZr,VZr]),this.primaryColsHeaderPanel=wt,this.primaryColsListPanel=wt}init(e,t,n){this.allowDragging=e,this.params=t,this.eventType=n,this.primaryColsHeaderPanel.init(this.params);const r=this.params.suppressColumnFilter,i=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&r&&i&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addManagedListeners(this.primaryColsListPanel,{groupExpanded:this.onGroupExpanded.bind(this),selectionChanged:this.onSelectionChange.bind(this)}),this.primaryColsListPanel.init(this.params,this.allowDragging,this.eventType),this.addManagedListeners(this.primaryColsHeaderPanel,{expandAll:this.onExpandAll.bind(this),collapseAll:this.onCollapseAll.bind(this),selectAll:this.onSelectAll.bind(this),unselectAll:this.onUnselectAll.bind(this),filterChanged:this.onFilterChanged.bind(this)}),this.positionableFeature=new bK(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature)}toggleResizable(e){this.positionableFeature.setResizable(e?{bottom:!0}:!1)}onExpandAll(){this.primaryColsListPanel.doSetExpandedAll(!0)}onCollapseAll(){this.primaryColsListPanel.doSetExpandedAll(!1)}expandGroups(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)}collapseGroups(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)}setColumnLayout(e){this.primaryColsListPanel.setColumnLayout(e)}onFilterChanged(e){this.primaryColsListPanel.setFilterText(e.filterText)}syncLayoutWithGrid(){this.primaryColsListPanel.onColumnsChanged()}onSelectAll(){this.primaryColsListPanel.doSetSelectedAll(!0)}onUnselectAll(){this.primaryColsListPanel.doSetSelectedAll(!1)}onGroupExpanded(e){this.primaryColsHeaderPanel.setExpandState(e.state),this.params.onStateUpdated()}onSelectionChange(e){this.primaryColsHeaderPanel.setSelectionState(e.state)}getExpandedGroups(){return this.primaryColsListPanel.getExpandedGroups()}},vPe=class extends vn{constructor(){super(...arguments),this.cbPivotMode=wt}wireBeans(e){this.columnModel=e.columnModel,this.ctrlsService=e.ctrlsService}createTemplate(){return`<div class="ag-pivot-mode-panel">
2025-02-18 08:35:18 +08:00
<ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
2025-04-17 15:35:46 +08:00
</div>`}postConstruct(){this.setTemplate(this.createTemplate(),[EWr]),this.cbPivotMode.setValue(this.columnModel.isPivotMode());const e=this.localeService.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addManagedListeners(this.cbPivotMode,{fieldValueChanged:this.onBtPivotMode.bind(this)});const t=this.onPivotModeChanged.bind(this);this.addManagedEventListeners({newColumnsLoaded:t,columnPivotModeChanged:t})}onBtPivotMode(){const e=!!this.cbPivotMode.getValue();e!==this.columnModel.isPivotMode()&&(this.gos.updateGridOptions({options:{pivotMode:e},source:"toolPanelUi"}),this.ctrlsService.getHeaderRowContainerCtrls().forEach(t=>t.refresh()))}onPivotModeChanged(){const e=this.columnModel.isPivotMode();this.cbPivotMode.setValue(e)}},GZr=class extends vn{constructor(){super('<div class="ag-column-panel"></div>'),this.initialised=!1,this.childDestroyFuncs=[]}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}init(e){const t=this.gos.addGridCommonParams({suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1});if(this.params={...t,...e},this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new vPe),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel)),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new fot),this.childDestroyFuncs.push(()=>this.destroyBean(this.primaryColsPanel)),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new Yse(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.rowGroupDropZonePanel)),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new pPe(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.valuesDropZonePanel)),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new Xse(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotDropZonePanel)),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();const[n]=this.addManagedEventListeners({columnPivotModeChanged:()=>{this.resetChildrenHeight(),this.setLastVisible()}});this.childDestroyFuncs.push(()=>n())}this.initialised=!0}setPivotModeSectionVisible(e){this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(e):e&&(this.pivotModePanel=this.createBean(new vPe),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel))),this.setLastVisible())}setRowGroupsSectionVisible(e){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(e):e&&(this.rowGroupDropZonePanel=this.createManagedBean(new Yse(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())}setValuesSectionVisible(e){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(e):e&&(this.valuesDropZonePanel=this.createManagedBean(new pPe(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())}setPivotSectionVisible(e){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(e):e&&(this.pivotDropZonePanel=this.createManagedBean(new Xse(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(e)),this.setLastVisible())}setResizers(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(e=>{if(!e)return;const t=e.getGui();e.toggleResizable(!t.classList.contains("ag-last-column-drop")&&!t.classList.contains("ag-hidden"))})}setLastVi
2025-02-18 08:35:18 +08:00
<div data-ref="eExpand" class="ag-filter-toolpanel-expand"></div>
<ag-input-text-field data-ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>
2025-04-17 15:35:46 +08:00
</div>`,[F4]);const e=this.localeService.getLocaleTextFunc();this.eFilterTextField.setAutoComplete(!1).setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")).onValueChange(this.onSearchTextChanged.bind(this)),this.createExpandIcons(),this.setExpandState(0),this.addManagedElementListeners(this.eExpand,{click:this.onExpandClicked.bind(this)}),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideOptions.bind(this)})}init(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()}createExpandIcons(){this.eExpand.appendChild(this.eExpandChecked=zn("columnSelectOpen",this.gos)),this.eExpand.appendChild(this.eExpandUnchecked=zn("columnSelectClosed",this.gos)),this.eExpand.appendChild(this.eExpandIndeterminate=zn("columnSelectIndeterminate",this.gos))}showOrHideOptions(){const e=!this.params.suppressFilterSearch,t=!this.params.suppressExpandAll,n=this.localeService.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(n("searchOoo","Search..."));const r=o=>o.getOriginalParent()&&o.isFilterAllowed(),i=this.columnModel.getCols().some(r);En(this.eFilterTextField.getGui(),e),En(this.eExpand,t&&i)}onSearchTextChanged(){this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=is(()=>{this.dispatchLocalEvent({type:"searchChanged",searchText:this.eFilterTextField.getValue()})},300)),this.onSearchTextChangedDebounced()}onExpandClicked(){const e=this.currentExpandState===0?{type:"collapseAll"}:{type:"expandAll"};this.dispatchLocalEvent(e)}setExpandState(e){this.currentExpandState=e,En(this.eExpandChecked,this.currentExpandState===0),En(this.eExpandUnchecked,this.currentExpandState===1),En(this.eExpandIndeterminate,this.currentExpandState===2)}},XZr={selector:"AG-FILTERS-TOOL-PANEL-HEADER",component:KZr},hot=class extends vn{constructor(e,t){super(`
2025-02-18 08:35:18 +08:00
<div class="ag-filter-toolpanel-instance">
<div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" data-ref="eFilterToolPanelHeader" role="button" aria-expanded="false">
<div data-ref="eExpand" class="ag-filter-toolpanel-expand"></div>
<span data-ref="eFilterName" class="ag-header-cell-text"></span>
<span data-ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>
</div>
<div class="ag-filter-toolpanel-instance-body ag-filter" data-ref="agFilterToolPanelBody"></div>
2025-04-17 15:35:46 +08:00
</div>`),this.expandedCallback=t,this.eFilterToolPanelHeader=wt,this.eFilterName=wt,this.agFilterToolPanelBody=wt,this.eFilterIcon=wt,this.eExpand=wt,this.expanded=!1,this.hideHeader=e}wireBeans(e){this.filterManager=e.filterManager,this.columnNameService=e.columnNameService}postConstruct(){this.eExpandChecked=zn("columnSelectOpen",this.gos),this.eExpandUnchecked=zn("columnSelectClosed",this.gos),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)}setColumn(e){this.column=e,this.eFilterName.innerText=this.columnNameService.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListeners(this.eFilterToolPanelHeader,{click:this.toggleExpanded.bind(this),keydown:this.onKeyDown.bind(this)}),this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)}),this.addInIcon("filter",this.eFilterIcon,this.column),En(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),En(this.eExpandChecked,!1),this.hideHeader?(En(this.eFilterToolPanelHeader,!1),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListeners(this.column,{filterChanged:this.onFilterChanged.bind(this)})}onKeyDown(e){const{key:t}=e,{ENTER:n,SPACE:r,LEFT:i,RIGHT:o}=Ze;t!==n&&t!==r&&t!==i&&t!==o||(e.preventDefault(),t===n||t===r?this.toggleExpanded():t===Ze.LEFT?this.collapse():this.expand())}getColumn(){return this.column}getColumnFilterName(){return this.columnNameService.getDisplayNameForColumn(this.column,"filterToolPanel",!1)}addCssClassToTitleBar(e){this.eFilterToolPanelHeader.classList.add(e)}addInIcon(e,t,n){if(t==null)return;const r=zn(e,this.gos,n);t.appendChild(r)}isFilterActive(){var e;return!!((e=this.filterManager)!=null&&e.isFilterActive(this.column))}onFilterChanged(){En(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchLocalEvent({type:"filterChanged"})}toggleExpanded(){this.expanded?this.collapse():this.expand()}expand(){this.expanded||(this.expanded=!0,Du(this.eFilterToolPanelHeader,!0),En(this.eExpandChecked,!0),En(this.eExpandUnchecked,!1),this.addFilterElement(),this.expandedCallback())}addFilterElement(e){var r;const t=$c('<div class="ag-filter-toolpanel-instance-filter"></div>'),n=this.createManagedBean(new yK(this.column,"TOOLBAR"));this.filterWrapperComp=n,n.hasFilter()&&((r=n.getFilter())==null||r.then(i=>{this.underlyingFilter=i,i&&(t.appendChild(n.getGui()),this.agFilterToolPanelBody.appendChild(t),n.afterGuiAttached({container:"toolPanel",suppressFocus:e}))}))}collapse(){var e;this.expanded&&(this.expanded=!1,Du(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),En(this.eExpandChecked,!1),En(this.eExpandUnchecked,!0),(e=this.filterWrapperComp)==null||e.afterGuiDetached(),this.destroyBean(this.filterWrapperComp),this.expandedCallback())}removeFilterElement(){Zi(this.agFilterToolPanelBody)}isExpanded(){return this.expanded}refreshFilter(e){var n;if(!this.expanded)return;const t=this.underlyingFilter;t&&(e?typeof t.refreshVirtualList=="function"&&t.refreshVirtualList():(n=t.afterGuiDetached)==null||n.call(t))}onFilterOpened(e){e.source==="COLUMN_MENU"&&e.column===this.column&&this.expanded&&this.collapse()}},N0=class pot extends vn{constructor(t,n,r,i,o){super(),this.filterGroupComp=wt,this.columnGroup=t,this.childFilterComps=n,this.depth=i,this.expandedCallback=r,this.showingColumn=o}wireBeans(t){this.columnNameService=t.columnNameService}postConstruct(){const t={cssIdentifier:"filter-toolpanel",direction:"vertical"};this.setTemplate(`<div class="ag-filter-toolpanel-group-wrapper">
2025-02-18 08:35:18 +08:00
<ag-group-component data-ref="filterGroupComp"></ag-group-component>
2025-04-17 15:35:46 +08:00
</div>`,[KYr],{filterGroupComp:t}),this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),this.filterGroupComp.addCssClass(`ag-filter-toolpanel-group-level-${this.depth}`),this.filterGroupComp.getGui().style.setProperty("--ag-indentation-level",String(this.depth)),this.filterGroupComp.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${this.depth}-header`),this.childFilterComps.forEach(n=>{this.filterGroupComp.addItem(n),n.addCssClassToTitleBar(`ag-filter-toolpanel-group-level-${this.depth+1}-header`),n.getGui().style.setProperty("--ag-indentation-level",String(this.depth+1))}),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip(),this.addInIcon("filter")}setupTooltip(){if(!this.showingColumn)return;const t=this.gos.get("tooltipShowMode")==="whenTruncated";let n;t&&(n=()=>{const o=this.filterGroupComp.getGui().querySelector(".ag-group-title");return o?o.scrollWidth>o.clientWidth:!0});const r=()=>{const i=this.columnGroup.getColDef().headerTooltip;this.setTooltip({newTooltipText:i,location:"filterToolPanelColumnGroup",shouldDisplayTooltip:n})};r(),this.addManagedEventListeners({newColumnsLoaded:r})}getTooltipParams(){const t=super.getTooltipParams();return t.location="filterToolPanelColumnGroup",t}addCssClassToTitleBar(t){this.filterGroupComp.addCssClassToTitleBar(t)}refreshFilters(t){this.childFilterComps.forEach(n=>{n instanceof pot?n.refreshFilters(t):n.refreshFilter(t)})}isColumnGroup(){return po(this.columnGroup)}isExpanded(){return this.filterGroupComp.isExpanded()}getChildren(){return this.childFilterComps}getFilterGroupName(){return this.filterGroupName?this.filterGroupName:""}getFilterGroupId(){return this.columnGroup.getId()}hideGroupItem(t,n){this.filterGroupComp.hideItem(t,n)}hideGroup(t){this.setDisplayed(!t)}addInIcon(t){const n=zn(t,this.gos);n&&n.classList.add("ag-filter-toolpanel-group-instance-header-icon"),this.filterGroupComp.addTitleBarWidget(n)}forEachToolPanelFilterChild(t){this.childFilterComps.forEach(n=>{n instanceof hot&&t(n)})}addExpandCollapseListeners(){const t=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.expand()),n=this.isColumnGroup()?()=>this.expandedCallback():()=>this.forEachToolPanelFilterChild(r=>r.collapse());this.addManagedListeners(this.filterGroupComp,{expanded:t,collapsed:n})}getColumns(){return po(this.columnGroup)?this.columnGroup.getLeafColumns():[this.columnGroup]}addFilterChangedListeners(){this.getColumns().forEach(t=>{this.addManagedListeners(t,{filterChanged:()=>this.refreshFilterClass()})}),po(this.columnGroup)||this.addManagedEventListeners({filterOpened:this.onFilterOpened.bind(this)})}refreshFilterClass(){const t=this.getColumns(),n=()=>t.some(r=>r.isFilterActive());this.filterGroupComp.addOrRemoveCssClass("ag-has-filter",n())}onFilterOpened(t){t.source==="COLUMN_MENU"&&t.column===this.columnGroup&&this.isExpanded()&&this.collapse()}expand(){this.filterGroupComp.toggleGroupExpand(!0)}collapse(){this.filterGroupComp.toggleGroupExpand(!1)}setGroupTitle(){this.filterGroupName=po(this.columnGroup)?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")}getColumnGroupName(t){return this.columnNameService.getDisplayNameForProvidedColumnGroup(null,t,"filterToolPanel")}getColumnName(t){return this.columnNameService.getDisplayNameForColumn(t,"filterToolPanel",!1)}destroyFilters(){this.childFilterComps=this.destroyBeans(this.childFilterComps),Zi(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},YZr=class extends vn{constructor(){super('<div class="ag-filter-list-panel"></div>'),this.initialised=!1,this.hasLoadedInitialState=!1,this.isInitialState=!1,this.filterGroupComps=[],this.suppressOnColumnsChanged=!1,this.onColumnsChangedPending=!1}wireBeans(e){this.toolPanelColDefService=e.toolPanelColDefService,this.columnModel=e.columnModel}init(e){this.initialised=!0;const t=this.gos.addGridCommonParams({suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLay
2025-02-18 08:35:18 +08:00
<ag-filters-tool-panel-header data-ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>
<ag-filters-tool-panel-list data-ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>
2025-04-17 15:35:46 +08:00
</div>`,[XZr,QZr]),this.filtersToolPanelHeaderPanel=wt,this.filtersToolPanelListPanel=wt,this.initialised=!1,this.listenerDestroyFuncs=[]}init(e){this.initialised&&(this.listenerDestroyFuncs.forEach(i=>i()),this.listenerDestroyFuncs=[]),this.initialised=!0;const t=this.gos.addGridCommonParams({suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1});this.params={...t,...e},this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params);const n=this.params.suppressExpandAll,r=this.params.suppressFilterSearch;n&&r&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(...this.addManagedListeners(this.filtersToolPanelHeaderPanel,{expandAll:this.onExpandAll.bind(this),collapseAll:this.onCollapseAll.bind(this),searchChanged:this.onSearchChanged.bind(this)}),...this.addManagedListeners(this.filtersToolPanelListPanel,{filterExpanded:this.onFilterExpanded.bind(this),groupExpanded:this.onGroupExpanded.bind(this)}))}setVisible(e){super.setDisplayed(e),e&&!this.initialised&&this.init(this.params)}onExpandAll(){this.filtersToolPanelListPanel.expandFilterGroups(!0)}onCollapseAll(){this.filtersToolPanelListPanel.expandFilterGroups(!1)}onSearchChanged(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)}setFilterLayout(e){this.filtersToolPanelListPanel.setFiltersLayout(e)}onFilterExpanded(){this.params.onStateUpdated()}onGroupExpanded(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state),this.params.onStateUpdated()}expandFilterGroups(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)}collapseFilterGroups(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)}expandFilters(e){this.filtersToolPanelListPanel.expandFilters(!0,e)}collapseFilters(e){this.filtersToolPanelListPanel.expandFilters(!1,e)}syncLayoutWithGrid(){this.filtersToolPanelListPanel.syncFilterLayout()}refresh(e){return this.init(e),!0}getState(){return this.filtersToolPanelListPanel.getExpandedFiltersAndGroups()}destroy(){super.destroy()}},JZr="32.3.3",eJr={version:JZr,moduleName:Qn.FiltersToolPanelModule,beans:[],userComponents:[{name:"agFiltersToolPanel",classImp:ZZr}],dependantModules:[cot,l1,YC]};function tJr(e){var t;return((t=e.rangeService)==null?void 0:t.getCellRanges())??null}function nJr(e,t){var n;(n=e.rangeService)==null||n.addCellRange(t)}function CPe(e){var t;(t=e.rangeService)==null||t.removeAllCellRanges()}var rJr=class extends at{constructor(){super(...arguments),this.beanName="rangeService",this.cellRanges=[],this.bodyScrollListener=this.onBodyScroll.bind(this),this.dragging=!1,this.intersectionRange=!1}wireBeans(e){this.rowModel=e.rowModel,this.dragService=e.dragService,this.columnModel=e.columnModel,this.visibleColsService=e.visibleColsService,this.cellNavigationService=e.cellNavigationService,this.pinnedRowModel=e.pinnedRowModel,this.rowPositionUtils=e.rowPositionUtils,this.cellPositionUtils=e.cellPositionUtils,this.ctrlsService=e.ctrlsService,this.valueService=e.valueService}postConstruct(){const e=this.onColumnsChanged.bind(this),t=()=>this.removeAllCellRanges(),n=this.refreshLastRangeStart.bind(this);this.addManagedEventListeners({newColumnsLoaded:e,columnVisible:e,columnValueChanged:e,columnPivotModeChanged:t,columnRowGroupChanged:t,columnPivotChanged:t,columnGroupOpened:n,columnMoved:n,columnPinned:n}),this.ctrlsService.whenReady(this,r=>{const i=r.gridBodyCtrl;this.autoScrollService=new Ume({scrollContainer:i.getBodyViewportElement(),scrollAxis:"xy",getVerticalPosition:()=>i.getScrollFeature().getVScrollPosition().top,setVerticalPosition:o=>i.getScrollFeature().setVerticalScrollPosition(o),getHorizontalPosition:()=>i.getScrollFeature().getHScrollPosition().left,setHorizontalPosition:o=>i.getScrollFeature().setHorizontalScrollPosition(o),shouldSkipVerticalScroll:()=>!ss(this.gos,"normal"),shouldSkipHorizontalScroll:()=>!i.getScrollFeature().isHorizontalScrollShowing()})})}onColumnsChanged(){this.refreshLastRangeStart();const e=this.visibleColsService.getAllCols();this.cellRanges.forEach(n=>{const r=n.columns;n.columns=n.col
2025-02-18 08:35:18 +08:00
<div class="ag-set-filter-item" aria-hidden="true">
<span class="ag-set-filter-group-icons">
<span class="ag-set-filter-group-closed-icon" data-ref="eGroupClosedIcon"></span>
<span class="ag-set-filter-group-opened-icon" data-ref="eGroupOpenedIcon"></span>
<span class="ag-set-filter-group-indeterminate-icon" data-ref="eGroupIndeterminateIcon"></span>
</span>
<ag-checkbox data-ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>
</div>`:`
<div class="ag-set-filter-item">
<ag-checkbox data-ref="eCheckbox" class="ag-set-filter-item-checkbox"></ag-checkbox>
2025-04-17 15:35:46 +08:00
</div>`,[T4]),this.eCheckbox=wt,this.eGroupOpenedIcon=wt,this.eGroupClosedIcon=wt,this.eGroupIndeterminateIcon=wt,this.focusWrapper=e.focusWrapper,this.value=e.value,this.params=e.params,this.translate=e.translate,this.valueFormatter=e.valueFormatter,this.item=e.item,this.isSelected=e.isSelected,this.isTree=e.isTree,this.depth=e.depth??0,this.isGroup=e.isGroup,this.groupsExist=e.groupsExist,this.isExpanded=e.isExpanded,this.hasIndeterminateExpandState=e.hasIndeterminateExpandState}wireBeans(e){this.valueService=e.valueService,this.userComponentFactory=e.userComponentFactory}postConstruct(){this.addDestroyFunc(()=>{var e;return(e=this.destroyCellRendererComponent)==null?void 0:e.call(this)}),this.render(),this.eCheckbox.setLabelEllipsis(!0).setValue(this.isSelected,!0).setDisabled(!!this.params.readOnly).getInputElement().setAttribute("tabindex","-1"),this.refreshVariableAriaLabels(),this.isTree&&(this.depth>0&&(this.addCssClass("ag-set-filter-indent-"+this.depth),this.getGui().style.setProperty("--ag-indentation-level",String(this.depth))),this.isGroup?this.setupExpansion():this.groupsExist&&this.addCssClass("ag-set-filter-add-group-indent"),Dme(this.getAriaElement(),this.depth+1)),this.refreshAriaChecked(),!this.params.readOnly&&this.eCheckbox.onValueChange(e=>this.onCheckboxChanged(!!e))}getFocusableElement(){return this.focusWrapper}setupExpansion(){this.eGroupClosedIcon.appendChild(tv("setFilterGroupClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(tv("setFilterGroupOpen",this.gos,null));const e=this.onExpandOrContractClicked.bind(this);this.addManagedElementListeners(this.eGroupClosedIcon,{click:e}),this.addManagedElementListeners(this.eGroupOpenedIcon,{click:e}),this.hasIndeterminateExpandState&&(this.eGroupIndeterminateIcon.appendChild(tv("setFilterGroupIndeterminate",this.gos,null)),this.addManagedElementListeners(this.eGroupIndeterminateIcon,{click:e})),this.setExpandedIcons(),this.refreshAriaExpanded()}onExpandOrContractClicked(){this.setExpanded(!this.isExpanded)}setExpanded(e,t){if(this.isGroup&&e!==this.isExpanded){this.isExpanded=e;const n={type:"expandedChanged",isExpanded:!!e,item:this.item};t||this.dispatchLocalEvent(n),this.setExpandedIcons(),this.refreshAriaExpanded()}}setExpandedIcons(){En(this.eGroupClosedIcon,this.hasIndeterminateExpandState?this.isExpanded===!1:!this.isExpanded),En(this.eGroupOpenedIcon,this.isExpanded===!0),this.hasIndeterminateExpandState&&En(this.eGroupIndeterminateIcon,this.isExpanded===void 0)}onCheckboxChanged(e){this.isSelected=e;const t={type:"selectionChanged",isSelected:e,item:this.item};this.dispatchLocalEvent(t),this.refreshVariableAriaLabels(),this.refreshAriaChecked()}toggleSelected(){this.params.readOnly||this.setSelected(!this.isSelected)}setSelected(e,t){this.isSelected=e,this.eCheckbox.setValue(e,t),this.refreshAriaChecked()}refreshVariableAriaLabels(){if(!this.isTree)return;const e=this.localeService.getLocaleTextFunc(),t=this.eCheckbox.getValue(),n=t===void 0?e("ariaIndeterminate","indeterminate"):t?e("ariaVisible","visible"):e("ariaHidden","hidden"),r=e("ariaToggleVisibility","Press SPACE to toggle visibility");ES(this.eCheckbox.getInputElement(),void 0),this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}setupFixedAriaLabels(e){if(!this.isTree)return;const n=this.localeService.getLocaleTextFunc()("ariaFilterValue","Filter Value"),r=this.getAriaElement();yl(r,`${e} ${n}`),Ame(r,this.eCheckbox.getInputElement().id)}refreshAriaChecked(){const e=this.getAriaElement();jBr(e,this.eCheckbox.getValue())}refreshAriaExpanded(){Du(this.getAriaElement(),!!this.isExpanded)}refresh(e,t,n){var r,i;if(this.item=e,t!==this.isSelected&&this.setSelected(t,!0),this.setExpanded(n,!0),this.valueFunction){const o=this.valueFunction();this.setTooltipAndCellRendererParams(o,o),this.cellRendererComponent||this.renderCellWithoutCellRenderer()}if(this.cellRendererComponent&&!((i=(r=this.cellRendererComponent).refresh)==null?void 0:i.call(r,this.cellRendererParams))){const a=this.cellRendererComponent;this.renderCell(),this.destroyBean(a)}}render(){const{params:{column:e}
2025-02-18 08:35:18 +08:00
<div class="ag-set-filter">
<div data-ref="eFilterLoading" class="ag-filter-loading ag-hidden">${this.translateForSetFilter("loadingOoo")}</div>
<ag-input-text-field class="ag-mini-filter" data-ref="eMiniFilter"></ag-input-text-field>
<div data-ref="eFilterNoMatches" class="ag-filter-no-matches ag-hidden">${this.translateForSetFilter("noMatches")}</div>
<div data-ref="eSetFilterList" class="ag-set-filter-list" role="presentation"></div>
2025-04-17 15:35:46 +08:00
</div>`}getAgComponents(){return[F4]}handleKeyDown(e){if(super.handleKeyDown(e),!e.defaultPrevented)switch(e.key){case Ze.SPACE:this.handleKeySpace(e);break;case Ze.ENTER:this.handleKeyEnter(e);break;case Ze.LEFT:this.handleKeyLeft(e);break;case Ze.RIGHT:this.handleKeyRight(e);break}}handleKeySpace(e){var t;(t=this.getComponentForKeyEvent(e))==null||t.toggleSelected()}handleKeyEnter(e){if(!this.setFilterParams)return;const{excelMode:t,readOnly:n}=this.setFilterParams||{};!t||n||(e.preventDefault(),this.onBtApply(!1,!1,e),this.setFilterParams.excelMode==="mac"&&this.eMiniFilter.getInputElement().select())}handleKeyLeft(e){var t;(t=this.getComponentForKeyEvent(e))==null||t.setExpanded(!1)}handleKeyRight(e){var t;(t=this.getComponentForKeyEvent(e))==null||t.setExpanded(!0)}getComponentForKeyEvent(e){if(!this.eSetFilterList.contains(ri(this.gos))||!this.virtualList)return;const t=this.virtualList.getLastFocusedRow();if(t==null)return;const n=this.virtualList.getComponentAt(t);if(n==null)return;e.preventDefault();const{readOnly:r}=this.setFilterParams??{};if(!r)return n}getCssIdentifier(){return"set-filter"}setModel(e){var t;return e==null&&((t=this.valueModel)==null?void 0:t.getModel())==null?(this.setMiniFilter(null),fr.resolve()):super.setModel(e)}refresh(e){var r;if(this.applyExcelModeOptions(e),!super.refresh(e))return!1;const t=this.setFilterParams;return["treeList","treeListPathGetter","caseSensitive","comparator","excelMode"].some(i=>e[i]!==(t==null?void 0:t[i]))||this.haveColDefParamsChanged(e)?!1:(super.updateParams(e),this.updateSetFilterOnParamsChange(e),this.updateMiniFilter(),e.suppressSelectAll!==(t==null?void 0:t.suppressSelectAll)&&this.createVirtualListModel(e),(r=this.valueModel)==null||r.updateOnParamsChange(e).then(()=>{this.refreshFilterValues()}),!0)}haveColDefParamsChanged(e){const{colDef:t,keyCreator:n}=e,{colDef:r,keyCreator:i}=this.setFilterParams??{},o=n??t.keyCreator,a=i??(r==null?void 0:r.keyCreator),s=t.filterValueGetter!==(r==null?void 0:r.filterValueGetter),l=o!==a,c=!!this.dataTypeService&&!!o&&this.dataTypeService.getFormatValue(t.cellDataType)===o&&t.valueFormatter!==(r==null?void 0:r.valueFormatter);return s||l||c}setModelAndRefresh(e){return this.valueModel?this.valueModel.setModel(e).then(()=>{this.isAlive()&&this.checkAndRefreshVirtualList()}):fr.resolve()}resetUiToDefaults(){return this.setMiniFilter(null),this.setModelAndRefresh(null)}setModelIntoUi(e){this.setMiniFilter(null);const t=e==null?null:e.values;return this.setModelAndRefresh(t)}getModelFromUi(){if(!this.valueModel)throw new Error("Value model has not been created.");const e=this.valueModel.getModel();return e?{values:e,filterType:this.getFilterType()}:null}getFilterType(){return"set"}getValueModel(){return this.valueModel}areModelsEqual(e,t){return e==null&&t==null?!0:e!=null&&t!=null&&Nl(e.values,t.values)}setParams(e){this.applyExcelModeOptions(e),super.setParams(e),this.updateSetFilterOnParamsChange(e);const t=e.keyCreator??e.colDef.keyCreator;this.valueModel=new mJr({filterParams:e,setIsLoading:n=>this.setIsLoading(n),translate:n=>this.translateForSetFilter(n),caseFormat:n=>this.caseFormat(n),createKey:this.createKey,valueFormatter:this.valueFormatter,usingComplexObjects:!!t,gos:this.gos,funcColsService:this.funcColsService,valueService:this.valueService,treeDataTreeList:this.treeDataTreeList,groupingTreeList:this.groupingTreeList,addManagedEventListeners:n=>this.addManagedEventListeners(n)}),this.initialiseFilterBodyUi(),this.addEventListenersForDataChanges()}onAddCurrentSelectionToFilterChange(e){if(!this.valueModel)throw new Error("Value model has not been created.");this.valueModel.setAddCurrentSelectionToFilter(e)}setValueFormatter(e,t,n,r){let i=e;if(!i){if(t&&!n)throw new Error("AG Grid: Must supply a Value Formatter in Set Filter params when using a Key Creator");this.noValueFormatterSupplied=!0,r||(i=o=>ap(o.value))}this.valueFormatter=i}generateCreateKey(e,t){if(t&&!e)throw new Error("AG Grid: Must supply a Key Creator in Set Filter params when `treeList = true` on a group column, and Tree Data o
2025-02-18 08:35:18 +08:00
<div class="ag-floating-filter-input ag-set-floating-filter-input" role="presentation">
<ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
2025-04-17 15:35:46 +08:00
</div>`,[F4]),this.eFloatingFilterText=wt,this.availableValuesListenerAdded=!1,this.filterModelFormatter=new vot}wireBeans(e){this.columnNameService=e.columnNameService}destroy(){super.destroy()}init(e){this.params=e,this.eFloatingFilterText.setDisabled(!0).addGuiEventListener("click",()=>this.params.showParentFilter()),this.setParams(e)}setParams(e){const t=this.columnNameService.getDisplayNameForColumn(e.column,"header",!0),n=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setInputAriaLabel(`${t} ${n("ariaFilterInput","Filter Input")}`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}onParentModelChanged(e){this.updateFloatingFilterText(e)}parentSetFilterInstance(e){this.params.parentFilterInstance(t=>{if(!(t instanceof Cot))throw new Error("AG Grid - SetFloatingFilter expects SetFilter as its parent");e(t)})}addAvailableValuesListener(){this.parentSetFilterInstance(e=>{const t=e.getValueModel();t&&this.addManagedListeners(t,{availableValuesChanged:()=>this.updateFloatingFilterText()})}),this.availableValuesListenerAdded=!0}updateFloatingFilterText(e){this.availableValuesListenerAdded||this.addAvailableValuesListener(),this.parentSetFilterInstance(t=>{this.eFloatingFilterText.setValue(this.filterModelFormatter.getModelAsString(e,t))})}},b0e="32.3.3",yot={version:b0e,moduleName:`${Qn.SetFilterModule}-core`,userComponents:[{name:"agSetColumnFilter",classImp:Cot}],dependantModules:[l1,YC]},SJr={version:b0e,moduleName:"@ag-grid-enterprise/set-floating-filter",userComponents:[{name:"agSetColumnFloatingFilter",classImp:bJr}],dependantModules:[yot,Jrt]},wJr={version:b0e,moduleName:Qn.SetFilterModule,dependantModules:[yot,SJr]},bot=class extends at{constructor(){super(...arguments),this.loadRowDataVersion=0}wireBeans(e){this.focusService=e.focusService,this.rowPositionUtils=e.rowPositionUtils,this.environment=e.environment}init(e,t){this.params=t,this.comp=e,t.pinned==null&&(this.setAutoHeightClasses(),this.setupRefreshStrategy(),this.addThemeToDetailGrid(),this.createDetailGrid(),this.loadRowData(),this.addManagedEventListeners({fullWidthRowFocused:this.onFullWidthRowFocused.bind(this)}))}onFullWidthRowFocused(e){const t=this.params,n={rowIndex:t.node.rowIndex,rowPinned:t.node.rowPinned},r={rowIndex:e.rowIndex,rowPinned:e.rowPinned};this.rowPositionUtils.sameRow(n,r)&&this.focusService.focusInto(this.comp.getGui(),e.fromBelow)}setAutoHeightClasses(){const e=this.gos.get("detailRowAutoHeight"),t=e?"ag-details-row-auto-height":"ag-details-row-fixed-height",n=e?"ag-details-grid-auto-height":"ag-details-grid-fixed-height";this.comp.addOrRemoveCssClass(t,!0),this.comp.addOrRemoveDetailGridCssClass(n,!0)}setupRefreshStrategy(){const e=this.params.refreshStrategy;if(e=="everything"||e=="nothing"||e=="rows"){this.refreshStrategy=e;return}e!=null&&et("invalid cellRendererParams.refreshStrategy = '"+e+"' supplied, defaulting to refreshStrategy = 'rows'."),this.refreshStrategy="rows"}addThemeToDetailGrid(){for(const e of this.environment.getThemeClasses())this.comp.addOrRemoveDetailGridCssClass(e,!0)}createDetailGrid(){if(tr(this.params.detailGridOptions)){et("could not find detail grid options for master detail, please set gridOptions.detailCellRendererParams.detailGridOptions");return}const e={...this.params.detailGridOptions};this.gos.get("detailRowAutoHeight")&&(e.domLayout="autoHeight"),e.theme||(e.theme=this.gos.get("theme")),this.comp.setDetailGrid(e)}registerDetailWithMaster(e){const t=this.params.node.id,n=this.params.api,r={id:t,api:e},i=this.params.node;n.isDestroyed()||(n.addDetailGridInfo(t,r),i.detailGridInfo=r,this.addDestroyFunc(()=>{i.detailGridInfo===r&&(n.isDestroyed()||n.removeDetailGridInfo(t),i.detailGridInfo=null)}))}loadRowData(){var i,o,a;this.loadRowDataVersion++;const e=this.loadRowDataVersion;if(((i=this.params.detailGridOptions)==null?void 0:i.rowModelType)==="serverSide"){(a=(o=this.params.node.detailGridInfo)==null?void 0:o.api)==null||a.refreshServerSide({purge:!0});return}const t=this.params.getDetailRowData;if(!t){et("could not find getDetailRow
2025-02-18 08:35:18 +08:00
<div data-ref="eDetailGrid" class="ag-details-grid" role="presentation"></div>
2025-04-17 15:35:46 +08:00
</div>`)};if(tr(this.params.template))e();else if(typeof this.params.template=="string")this.setTemplate(this.params.template,[]);else if(typeof this.params.template=="function"){const t=this.params.template,n=t(this.params);this.setTemplate(n,[])}else et("detailCellRendererParams.template should be function or string"),e();this.eDetailGrid==null&&et('Reference to eDetailGrid was missing from the details template. Please add data-ref="eDetailGrid" to the template.')}setDetailGrid(e){if(!this.eDetailGrid)return;const t=this.context.getBean("frameworkComponentWrapper"),n=new xJr(t),r=this.getFrameworkOverrides(),i=RXr(this.eDetailGrid,e,{frameworkOverrides:r,providedBeanInstances:{frameworkComponentWrapper:n},modules:kd.__getGridRegisteredModules(this.params.api.getGridId())});this.detailApi=i,this.ctrl.registerDetailWithMaster(i),this.addDestroyFunc(()=>{i==null||i.destroy()})}setRowData(e){this.detailApi&&this.detailApi.setGridOption("rowData",e)}},EJr=class extends at{constructor(){super(...arguments),this.beanName="detailGridApiService",this.detailGridInfoMap={}}addDetailGridInfo(e,t){this.detailGridInfoMap[e]=t}removeDetailGridInfo(e){delete this.detailGridInfoMap[e]}getDetailGridInfo(e){return this.detailGridInfoMap[e]}forEachDetailGridInfo(e){let t=0;Rs(this.detailGridInfoMap,(n,r)=>{Dt(r)&&(e(r,t),t++)})}destroy(){this.detailGridInfoMap={},super.destroy()}};function RJr(e,t,n){var r;(r=e.detailGridApiService)==null||r.addDetailGridInfo(t,n)}function OJr(e,t){var n;(n=e.detailGridApiService)==null||n.removeDetailGridInfo(t)}function MJr(e,t){var n;return(n=e.detailGridApiService)==null?void 0:n.getDetailGridInfo(t)}function PJr(e,t){var n;(n=e.detailGridApiService)==null||n.forEachDetailGridInfo(t)}var S0e="32.3.3",Sot={version:S0e,moduleName:`${Qn.MasterDetailModule}-core`,userComponents:[{name:"agGroupRowRenderer",classImp:cz},{name:"agGroupCellRenderer",classImp:cz},{name:"agDetailCellRenderer",classImp:$Jr}],controllers:[{name:"detailCellRenderer",classImp:bot},{name:"groupCellRendererCtrl",classImp:p0e}],dependantModules:[l1]},IJr={version:S0e,moduleName:`${Qn.MasterDetailModule}-api`,beans:[EJr],apiFunctions:{addDetailGridInfo:RJr,removeDetailGridInfo:OJr,getDetailGridInfo:MJr,forEachDetailGridInfo:PJr},dependantModules:[Sot]},TJr={version:S0e,moduleName:Qn.MasterDetailModule,dependantModules:[Sot,IJr]},$I=class extends vn{constructor(){super(`<div class="ag-status-name-value">
2025-02-18 08:35:18 +08:00
<span data-ref="eLabel"></span>:&nbsp;
<span data-ref="eValue" class="ag-status-name-value-value"></span>
2025-04-17 10:18:46 +08:00
</div>`),this.eLabel=wt,this.eValue=wt}setLabel(e,t){this.setDisplayed(!1);const n=this.localeService.getLocaleTextFunc();this.eLabel.innerHTML=n(e,t)}setValue(e){this.eValue.innerHTML=e}},_Jr={selector:"AG-NAME-VALUE",component:$I},FJr=class extends vn{constructor(){super(`<div class="ag-status-panel ag-status-panel-aggregations">
2025-02-18 08:35:18 +08:00
<ag-name-value data-ref="avgAggregationComp"></ag-name-value>
<ag-name-value data-ref="countAggregationComp"></ag-name-value>
<ag-name-value data-ref="minAggregationComp"></ag-name-value>
<ag-name-value data-ref="maxAggregationComp"></ag-name-value>
<ag-name-value data-ref="sumAggregationComp"></ag-name-value>
2025-04-17 15:35:46 +08:00
</div>`,[_Jr]),this.sumAggregationComp=wt,this.countAggregationComp=wt,this.minAggregationComp=wt,this.maxAggregationComp=wt,this.avgAggregationComp=wt}wireBeans(e){this.valueService=e.valueService,this.cellNavigationService=e.cellNavigationService,this.cellPositionUtils=e.cellPositionUtils,this.rowPositionUtils=e.rowPositionUtils,this.rangeService=e.rangeService}destroy(){super.destroy()}postConstruct(){if(!Si(this.gos)&&!Bs(this.gos)){et("agAggregationComponent should only be used with the client and server side row model.");return}this.avgAggregationComp.setLabel("avg","Average"),this.countAggregationComp.setLabel("count","Count"),this.minAggregationComp.setLabel("min","Min"),this.maxAggregationComp.setLabel("max","Max"),this.sumAggregationComp.setLabel("sum","Sum"),this.addManagedEventListeners({cellSelectionChanged:this.onCellSelectionChanged.bind(this),modelUpdated:this.onCellSelectionChanged.bind(this)})}init(e){this.refresh(e)}refresh(e){return this.params=e,this.onCellSelectionChanged(),!0}setAggregationComponentValue(e,t,n){var i;const r=this.getAllowedAggregationValueComponent(e);if(Dt(r)&&r){const o=this.localeService.getLocaleTextFunc(),a=o("thousandSeparator",","),s=o("decimalSeparator",".");r.setValue(pjr(t,a,s)),r.setDisplayed(n)}else(i=this.getAggregationValueComponent(e))==null||i.setDisplayed(!1)}getAllowedAggregationValueComponent(e){const{aggFuncs:t}=this.params;return!t||t.includes(e)?this.getAggregationValueComponent(e):null}getAggregationValueComponent(e){const t=`${e}AggregationComp`;return this[t]}onCellSelectionChanged(){var c;const e=(c=this.rangeService)==null?void 0:c.getCellRanges();let t=0,n=0,r=0,i=null,o=null;const a={};if(e&&!oa(e)&&this.rangeService)for(let d=0;d<e.length;d++){const f=e[d];let h=this.rangeService.getRangeStartRow(f);const p=this.rangeService.getRangeEndRow(f);for(;!(tr(h)||!h||this.rowPositionUtils.before(p,h)||!h||!f.columns);)f.columns.forEach(m=>{if(h===null)return;const v=this.cellPositionUtils.createId({rowPinned:h.rowPinned,column:m,rowIndex:h.rowIndex});if(a[v])return;a[v]=!0;const C=this.rowPositionUtils.getRowNode(h);if(tr(C))return;let y=this.valueService.getValue(m,C);tr(y)||y===""||(n++,!(typeof y=="object"&&"value"in y&&(y=y.value,y===""))&&(typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!isNaN(y)&&(t+=y,(o===null||y>o)&&(o=y),(i===null||y<i)&&(i=y),r++)))}),h=this.cellNavigationService.getRowBelow(h)}const s=n>1,l=r>1;this.setAggregationComponentValue("count",n,s),this.setAggregationComponentValue("sum",t,l),this.setAggregationComponentValue("min",i,l),this.setAggregationComponentValue("max",o,l),this.setAggregationComponentValue("avg",t/r,l)}},AJr=class extends $I{wireBeans(e){this.rowModel=e.rowModel}postConstruct(){if(this.setLabel("filteredRows","Filtered"),!Si(this.gos)){et("agFilteredRowCountComponent should only be used with the client side row model.");return}this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-filtered-row-count"),this.setDisplayed(!0);const e=this.onDataChanged.bind(this);this.addManagedEventListeners({modelUpdated:e}),e()}onDataChanged(){const e=this.getTotalRowCountValue(),t=this.getFilteredRowCountValue(),n=this.localeService.getLocaleTextFunc(),r=n("thousandSeparator",","),i=n("decimalSeparator",".");this.setValue(A8(t,r,i)),this.setDisplayed(e!==t)}getTotalRowCountValue(){let e=0;return this.rowModel.forEachNode(()=>e+=1),e}getFilteredRowCountValue(){let e=0;return this.rowModel.forEachNodeAfterFilter(t=>{t.group||(e+=1)}),e}init(){}refresh(){return!0}destroy(){super.destroy()}},DJr=class extends $I{wireBeans(e){this.selectionService=e.selectionService}postConstruct(){if(!Si(this.gos)&&!Bs(this.gos)){et("agSelectedRowCountComponent should only be used with the client and server side row model.");return}this.setLabel("selectedRows","Selected"),this.addCssClass("ag-status-panel"),this.addCssClass("ag-status-panel-selected-row-count"),this.onRowSelectionChanged();const e=this.onRowSelectionChanged.bind(this);this.addManagedEventListeners({modelUpdated:e,selectionChanged:e})}onRowSelectionChange
2025-02-18 08:35:18 +08:00
<div data-ref="eStatusBarLeft" class="ag-status-bar-left" role="status"></div>
<div data-ref="eStatusBarCenter" class="ag-status-bar-center" role="status"></div>
<div data-ref="eStatusBarRight" class="ag-status-bar-right" role="status"></div>
2025-04-17 15:35:46 +08:00
</div>`),this.updateQueued=!1,this.panelsPromise=fr.resolve(),this.eStatusBarLeft=wt,this.eStatusBarCenter=wt,this.eStatusBarRight=wt,this.compDestroyFunctions={}}wireBeans(e){this.userComponentFactory=e.userComponentFactory,this.statusBarService=e.statusBarService}postConstruct(){this.processStatusPanels(new Map),this.addManagedPropertyListeners(["statusBar"],this.handleStatusBarChanged.bind(this))}processStatusPanels(e){var n;const t=(n=this.gos.get("statusBar"))==null?void 0:n.statusPanels;if(t){const r=t.filter(a=>a.align==="left"),i=t.filter(a=>a.align==="center"),o=t.filter(a=>!a.align||a.align==="right");this.panelsPromise=fr.all([this.createAndRenderComponents(r,this.eStatusBarLeft,e),this.createAndRenderComponents(i,this.eStatusBarCenter,e),this.createAndRenderComponents(o,this.eStatusBarRight,e)])}else this.setDisplayed(!1)}handleStatusBarChanged(){this.updateQueued||(this.updateQueued=!0,this.panelsPromise.then(()=>{this.updateStatusBar(),this.updateQueued=!1}))}updateStatusBar(){var r;const e=(r=this.gos.get("statusBar"))==null?void 0:r.statusPanels,t=Array.isArray(e)&&e.length>0;this.setDisplayed(t);const n=new Map;t&&e.forEach(i=>{const o=i.key??i.statusPanel,a=this.statusBarService.getStatusPanel(o);if(a!=null&&a.refresh){const s=this.gos.addGridCommonParams(i.statusPanelParams??{});a.refresh(s)&&(n.set(o,a),delete this.compDestroyFunctions[o],xc(a.getGui()))}}),this.resetStatusBar(),t&&this.processStatusPanels(n)}resetStatusBar(){this.eStatusBarLeft.innerHTML="",this.eStatusBarCenter.innerHTML="",this.eStatusBarRight.innerHTML="",this.destroyComponents(),this.statusBarService.unregisterAllComponents()}destroy(){this.destroyComponents(),super.destroy()}destroyComponents(){Object.values(this.compDestroyFunctions).forEach(e=>e()),this.compDestroyFunctions={}}createAndRenderComponents(e,t,n){const r=[];return e.forEach(i=>{const o=i.key||i.statusPanel,a=n.get(o);let s;if(a)s=fr.resolve(a);else{const l={};if(s=this.userComponentFactory.getStatusPanelCompDetails(i,l).newAgStackInstance(),s==null)return}r.push({key:o,promise:s})}),fr.all(r.map(i=>i.promise)).then(()=>{r.forEach(i=>{i.promise.then(o=>{const a=()=>{this.destroyBean(o)};this.isAlive()?(this.statusBarService.registerStatusPanel(i.key,o),t.appendChild(o.getGui()),this.compDestroyFunctions[i.key]=a):a()})})})}},BJr={selector:"AG-STATUS-BAR",component:kJr},HJr=class extends at{constructor(){super(),this.beanName="statusBarService",this.allComponents=new Map}registerStatusPanel(e,t){this.allComponents.set(e,t)}unregisterStatusPanel(e){this.allComponents.delete(e)}unregisterAllComponents(){this.allComponents.clear()}getStatusPanel(e){return this.allComponents.get(e)}getStatusPanelSelector(){return BJr}destroy(){this.unregisterAllComponents(),super.destroy()}},w0e="32.3.3",wot={version:w0e,moduleName:`${Qn.StatusBarModule}-core`,beans:[HJr],userComponents:[{name:"agAggregationComponent",classImp:FJr},{name:"agSelectedRowCountComponent",classImp:DJr},{name:"agTotalRowCountComponent",classImp:NJr},{name:"agFilteredRowCountComponent",classImp:AJr},{name:"agTotalAndFilteredRowCountComponent",classImp:LJr}],dependantModules:[l1]},jJr={version:w0e,moduleName:`${Qn.StatusBarModule}-api`,apiFunctions:{getStatusPanel:zJr},dependantModules:[wot]},VJr={version:w0e,moduleName:Qn.StatusBarModule,dependantModules:[wot,jJr]},GJr=class extends at{setBeans(e){this.beans=e}getFileName(e){const t=this.getDefaultFileExtension();return(e==null||!e.length)&&(e=this.getDefaultFileName()),e.indexOf(".")===-1?`${e}.${t}`:e}getData(e){const t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)}getDefaultFileName(){return`export.${this.getDefaultFileExtension()}`}},WJr=class{constructor(e){this.groupColumns=[];const{columnModel:t,funcColsService:n,columnNameService:r,valueService:i,gos:o,processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.columnModel=t,this.funcColsService=n,this.columnNameService=r,this.valueService=i,this.gos=o,this.processCellCallback=a,this.processHeaderCallback=s,thi
`,qJr=class extends WJr{constructor(e){super(e),this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:n}=e;this.suppressQuotes=t,this.columnSeparator=n}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,bPe),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((n,r)=>{r!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(n.data.value||""),n.mergeAcross&&this.appendEmptyCells(n.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,n,r){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,n){t!=0&&(this.result+=this.columnSeparator);const r=this.extractRowCellValue(e,t,t,"csv",n);this.result+=this.putInQuotes(r.valueFormatted??r.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(et("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=bPe),this.isFirstLine=!1}},KJr=class extends GJr{constructor(){super(...arguments),this.beanName="csvCreator"}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.funcColsService=e.funcColsService,this.valueService=e.valueService,this.gridSerializer=e.gridSerializer}postConstruct(){this.setBeans({gridSerializer:this.gridSerializer,gos:this.gos})}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){et("Export cancelled. Export is not allowed as per your configuration.");return}const t=this.getMergedParams(e),n=this.getData(t),r=new Blob(["\uFEFF",n],{type:"text/plain"}),i=typeof t.fileName=="function"?t.fileName(this.gos.getGridCommonParams()):t.fileName;UJr.download(this.getFileName(i),r)}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const n=t?Object.assign({},e):this.getMergedParams(e);return this.getData(n)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{columnModel:t,columnNameService:n,funcColsService:r,valueService:i,gos:o}=this,{processCellCallback:a,processHeaderCallback:s,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:d,columnSeparator:f}=e;return new qJr({columnModel:t,columnNameService:n,funcColsService:r,valueService:i,gos:o,processCellCallback:a||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:d||!1,columnSeparator:f||","})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function XJr(e,t){var n;return(n=e.csvCreator)==null?void 0:n.getDataAsCsv(t)}function YJr(e,t){var n;(n=e.csvCreator)==null||n.exportDataAsCsv(t)}var QJr=class extends at{constructor(){super(...arguments),this.beanName="gridSerializer"}wireBeans(e){this.visibleColsService=e.visibleColsService,this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.rowModel=e.rowModel,this.pinnedRowModel=e.pinnedRowModel,this.selectionService=e.selectionService,this.rowNodeSorter=e.rowNodeSorter,this.sortController=e.sortController}serialize(e,t={}){const{allColumns:n,columnKeys:r,skipRowGroups:i}=t,o=this.getColumnsToExport(n,i,r);return Kkr(this.prepareSession(o),this.prependContent(t),this.exportColumnGroups(t,o),this.exportHeaders(t,o),this.processPinnedTopRows(t,o),this.processRows(t,o),this.processPinnedBottomRows(t,o),this.appendContent(t))(e).parse()}processRow(e,t,n,r){
${wPe("readText")}`),this.navigatorApiFailed=!0,this.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()}pasteFromClipboardLegacy(){let t=!1;const n=r=>{const i=new Date().getTime();i-this.lastPasteOperationTime<50&&(t=!0,r.preventDefault()),this.lastPasteOperationTime=i};this.executeOnTempElement(r=>{r.addEventListener("paste",n),r.focus({preventScroll:!0})},r=>{const i=r.value;t?this.refocusLastFocusedCell():this.processClipboardData(i),r.removeEventListener("paste",n)})}refocusLastFocusedCell(){const t=this.focusService.getFocusedCell();t&&this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0})}getClipboardDelimiter(){const t=this.gos.get("clipboardDelimiter");return Dt(t)?t:" "}processClipboardData(t){if(t==null)return;let n=$ot.stringToArray(t,this.getClipboardDelimiter());const r=this.gos.getCallback("processDataFromClipboard");if(r&&(n=r({data:n})),n==null)return;this.gos.get("suppressLastEmptyLineOnPaste")&&this.removeLastLineIfBlank(n);const i=(o,a,s,l)=>{var f;((f=this.rangeService)==null?void 0:f.isMoreThanOneCell())&&!this.hasOnlyOneValueToPaste(n)?this.pasteIntoActiveRange(this.rangeService,n,o,a,l):this.pasteStartingFromFocusedCell(n,o,a,s,l)};this.doPasteOperation(i)}static stringToArray(t,n=","){const r=[],i=a=>a==="\r"||a===`
2025-02-18 08:35:18 +08:00
`;let o=!1;if(t==="")return[[""]];for(let a=0,s=0,l=0;l<t.length;l++){const c=t[l-1],d=t[l],f=t[l+1],h=()=>{r[a]||(r[a]=[]),r[a][s]||(r[a][s]="")};if(h(),d==='"'&&(o?f==='"'?(r[a][s]+='"',l++):o=!1:(c===void 0||c===n||i(c))&&(o=!0)),!o&&d!=='"'){if(d===n){s++,h();continue}else if(i(d)){s=0,a++,h(),d==="\r"&&f===`
2025-04-17 15:35:46 +08:00
`&&l++;continue}}r[a][s]+=d}return r}doPasteOperation(t){const n="clipboard";this.eventService.dispatchEvent({type:"pasteStart",source:n});let r;if(this.clientSideRowModel){const l=this.gos.get("aggregateOnlyChangedColumns");r=new SI(l,this.clientSideRowModel.getRootNode())}const i={},o=[],a=this.focusService.getFocusedCell();t(i,o,a,r);const s=[...o];r&&(this.clientSideRowModel.doAggregate(r),r.forEachChangedNodeDepthFirst(l=>{s.push(l)})),this.rowRenderer.refreshCells({rowNodes:s}),this.dispatchFlashCells(i),this.fireRowChanged(o),this.refocusLastFocusedCell(),this.eventService.dispatchEvent({type:"pasteEnd",source:n})}pasteIntoActiveRange(t,n,r,i,o){const a=this.getRangeSize(t)%n.length!=0;let s=0,l=0;const c=(d,f,h,p)=>{if(p-s>=n.length){if(a)return;s+=l,l=0}const m=n[p-s];i.push(f);const v=this.gos.getCallback("processCellFromClipboard");h.forEach((C,y)=>{if(!C.isCellEditable(f)||C.isSuppressPaste(f))return;y>=m.length&&(y=y%m.length);const b=this.processCell(f,C,m[y],dte,v,!0);f.setDataValue(C,b,ute),o&&o.addParentNode(f.parent,[C]);const{rowIndex:S,rowPinned:w}=d,x=this.cellPositionUtils.createIdFromValues({rowIndex:S,column:C,rowPinned:w});r[x]=!0}),l++};this.iterateActiveRanges(!1,c)}getDisplayedColumnsStartingAt(t){let n=t;const r=[];for(;n!=null;)r.push(n),n=this.visibleColsService.getColAfter(n);return r}pasteStartingFromFocusedCell(t,n,r,i,o){if(!i)return;const a={rowIndex:i.rowIndex,rowPinned:i.rowPinned},s=this.getDisplayedColumnsStartingAt(i.column);this.isPasteSingleValueIntoRange(t)?this.pasteSingleValueIntoRange(t,r,n,o):this.pasteMultipleValues(t,a,r,s,n,SPe,o)}isPasteSingleValueIntoRange(t){return this.hasOnlyOneValueToPaste(t)&&this.rangeService!=null&&!this.rangeService.isEmpty()}pasteSingleValueIntoRange(t,n,r,i){const o=t[0][0],a=(s,l,c)=>{n.push(l),c.forEach(d=>this.updateCellValue(l,d,o,r,SPe,i))};this.iterateActiveRanges(!1,a)}hasOnlyOneValueToPaste(t){return t.length===1&&t[0].length===1}copyRangeDown(){if(!this.rangeService||this.rangeService.isEmpty())return;const t=[],n=(r,i,o,a)=>{const s=this.gos.getCallback("processCellForClipboard"),l=this.gos.getCallback("processCellFromClipboard"),c=(d,f,h)=>{t.length?(i.push(f),h.forEach((p,g)=>{if(!p.isCellEditable(f)||p.isSuppressPaste(f))return;const m=this.processCell(f,p,t[g],dte,l,!0);f.setDataValue(p,m,ute),a&&a.addParentNode(f.parent,[p]);const{rowIndex:v,rowPinned:C}=d,y=this.cellPositionUtils.createIdFromValues({rowIndex:v,column:p,rowPinned:C});r[y]=!0})):h.forEach(p=>{const g=this.processCell(f,p,this.valueService.getValue(p,f),dte,s,!1,!0);t.push(g)})};this.iterateActiveRanges(!0,c)};this.doPasteOperation(n)}removeLastLineIfBlank(t){const n=Pn(t);if(n&&n.length===1&&n[0]===""){if(t.length===1)return;Ms(t,n)}}fireRowChanged(t){this.gos.get("editType")==="fullRow"&&t.forEach(n=>{this.eventService.dispatchEvent({type:"rowValueChanged",node:n,data:n.data,rowIndex:n.rowIndex,rowPinned:n.rowPinned})})}pasteMultipleValues(t,n,r,i,o,a,s){let l=n;const c=this.clientSideRowModel!=null&&!this.gos.get("enableGroupEdit")&&!this.gos.get("treeData"),d=()=>{for(;;){if(!l)return null;const f=this.rowPositionUtils.getRowNode(l);if(l=this.cellNavigationService.getRowBelow({rowPinned:l.rowPinned,rowIndex:l.rowIndex}),f==null)return null;if(!(f.detail||f.footer||c&&f.group))return f}};t.forEach(f=>{const h=d();h&&(f.forEach((p,g)=>this.updateCellValue(h,i[g],p,o,a,s)),r.push(h))})}updateCellValue(t,n,r,i,o,a){if(!t||!n||!n.isCellEditable(t)||n.isSuppressPaste(t))return;const s=this.processCell(t,n,r,o,this.gos.getCallback("processCellFromClipboard"),!0);t.setDataValue(n,s,ute);const{rowIndex:l,rowPinned:c}=t,d=this.cellPositionUtils.createIdFromValues({rowIndex:l,column:n,rowPinned:c});i[d]=!0,a&&a.addParentNode(t.parent,[n])}copyToClipboard(t={}){this.copyOrCutToClipboard(t)}cutToClipboard(t={},n="api"){this.gos.get("suppressCutToClipboard")||(this.eventService.dispatchEvent({type:"cutStart",source:n}),this.copyOrCutToClipboard(t,!0),this.eventService.dispatchEvent({type:"cutEnd",source:n}))}copyOrCutToClipboard(t,n){let{includeHeaders:r,includeGroupHeade
2025-04-17 10:18:46 +08:00
`),cellsToFlash:o}}getRangeRowPositionsAndCellsToFlash(t,n){const r=[],i={},o=t.getRangeStartRow(n),a=t.getRangeEndRow(n);let s=o;for(;s&&(r.push(s),n.columns.forEach(l=>{const{rowIndex:c,rowPinned:d}=s,f=this.cellPositionUtils.createIdFromValues({rowIndex:c,column:l,rowPinned:d});i[f]=!0}),!this.rowPositionUtils.sameRow(s,a));)s=this.cellNavigationService.getRowBelow(s);return{rowPositions:r,cellsToFlash:i}}getCellsToFlashFromRowNodes(t){const n=this.visibleColsService.getAllCols(),r={};for(let i=0;i<t.length;i++){const{rowIndex:o,rowPinned:a}=t[i];if(o!=null)for(let s=0;s<n.length;s++){const l=n[s],c=this.cellPositionUtils.createIdFromValues({rowIndex:o,column:l,rowPinned:a});r[c]=!0}}return r}copyFocusedCellToClipboard(t={}){const n=this.focusService.getFocusedCell();if(n==null)return;const r=this.cellPositionUtils.createId(n),i={rowPinned:n.rowPinned,rowIndex:n.rowIndex},o=n.column,a=this.buildExportParams({columns:[o],rowPositions:[i],includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders});this.copyDataToClipboard(a),this.dispatchFlashCells({[r]:!0})}copySelectedRowsToClipboard(t={}){const{columnKeys:n,includeHeaders:r,includeGroupHeaders:i}=t,o=this.buildExportParams({columns:n,includeHeaders:r,includeGroupHeaders:i});this.copyDataToClipboard(o);const a=this.selectionService.getSelectedNodes()||[];this.dispatchFlashCells(this.getCellsToFlashFromRowNodes(a))}buildExportParams(t){const{columns:n,rowPositions:r,includeHeaders:i=!1,includeGroupHeaders:o=!1}=t,a={columnKeys:n,rowPositions:r,skipColumnHeaders:!i,skipColumnGroupHeaders:!o,suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!r,processCellCallback:this.gos.getCallback("processCellForClipboard"),processRowGroupCallback:s=>this.processRowGroupCallback(s),processHeaderCallback:this.gos.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:this.gos.getCallback("processGroupHeaderForClipboard")};return this.csvCreator.getDataAsCsv(a,!0)}processRowGroupCallback(t){const{node:n,column:r}=t,i=this.gos.get("treeData"),o=this.gos.get("suppressGroupMaintainValueType");let s=(()=>{var d;if(i||o||!r)return n.key;const c=(d=n.groupData)==null?void 0:d[r.getId()];return!c||!n.rowGroupColumn||n.rowGroupColumn.getColDef().useValueFormatterForExport===!1?c:this.valueService.formatValue(n.rowGroupColumn,n,c)??c})();if(t.node.footer){let c="";s&&s.length&&(c=` ${s}`),s=`Total${c}`}const l=this.gos.getCallback("processCellForClipboard");if(l){let c=n.rowGroupColumn;return!c&&n.footer&&n.level===-1&&(c=this.funcColsService.getRowGroupColumns()[0]),l({value:s,node:n,column:c,type:"clipboard",formatValue:d=>this.valueService.formatValue(c,n,d)??d,parseValue:d=>this.valueService.parseValue(c,n,d,this.valueService.getValue(c,n))})}return s}dispatchFlashCells(t){window.setTimeout(()=>{this.eventService.dispatchEvent({type:"flashCells",cells:t})},0)}processCell(t,n,r,i,o,a,s){return o?o({column:n,node:t,value:r,type:i,formatValue:c=>this.valueService.formatValue(n,t??null,c)??c,parseValue:c=>this.valueService.parseValue(n,t??null,c,this.valueService.getValue(n,t))}):a&&n.getColDef().useValueParserForImport!==!1?this.valueService.parseValue(n,t??null,r,this.valueService.getValue(n,t)):s&&n.getColDef().useValueFormatterForExport!==!1?this.valueService.formatValue(n,t??null,r)??r:r}copyDataToClipboard(t){const n=this.gos.getCallback("sendToClipboard");if(n){n({data:t});return}if(!this.gos.get("suppressClipboardApi")&&navigator.clipboard){navigator.clipboard.writeText(t).catch(i=>{et(`${i}
2025-04-17 15:35:46 +08:00
${wPe("writeText")}`),this.copyDataToClipboardLegacy(t)});return}this.copyDataToClipboardLegacy(t)}copyDataToClipboardLegacy(t){this.executeOnTempElement(n=>{const r=Yi(this.gos),i=ri(this.gos);n.value=t||" ",n.select(),n.focus({preventScroll:!0}),r.execCommand("copy")||et("Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons."),i!=null&&i.focus!=null&&i.focus({preventScroll:!0})})}executeOnTempElement(t,n){const r=Yi(this.gos),i=r.createElement("textarea");i.style.width="1px",i.style.height="1px",i.style.top=r.documentElement.scrollTop+"px",i.style.left=r.documentElement.scrollLeft+"px",i.style.position="absolute",i.style.opacity="0";const o=this.gridCtrl.getGui();o.appendChild(i);try{t(i)}catch{et("Browser does not support document.execCommand('copy') for clipboard operations")}n?window.setTimeout(()=>{n(i),o.removeChild(i)},100):o.removeChild(i)}getRangeSize(t){const n=t.getCellRanges();let r=0,i=0;return n.length>0&&(r=t.getRangeStartRow(n[0]).rowIndex,i=t.getRangeEndRow(n[0]).rowIndex),r-i+1}},$0e="32.3.3",Eot={version:$0e,moduleName:`${Qn.ClipboardModule}-core`,beans:[aei],dependantModules:[l1,JJr]},sei={version:$0e,moduleName:`${Qn.ClipboardModule}-api`,apiFunctions:{copyToClipboard:eei,cutToClipboard:tei,copySelectedRowsToClipboard:nei,copySelectedRangeToClipboard:rei,copySelectedRangeDown:iei,pasteFromClipboard:oei},dependantModules:[Eot]},lei={version:$0e,moduleName:Qn.ClipboardModule,dependantModules:[Eot,sei]},cei=class Rot extends at{constructor(){super(...arguments),this.beanName="chartMenuItemMapper"}wireBeans(t){this.chartService=t.chartService}getChartItems(t){var a,s;if(!this.chartService){this.gos.assertModuleRegistered(Qn.GridChartsModule,`the Context Menu key "${t}"`);return}const n=t==="pivotChart"?new uei(this.gos,this.chartService,this.localeService):new dei(this.gos,this.chartService,this.localeService),r=this.chartService.isEnterprise();let i=n.getMenuItem();if(i&&i.subMenu&&!r){const l=c=>{var d;return{...c,subMenu:(d=c.subMenu)==null?void 0:d.filter(f=>!f._enterprise).map(f=>l(f))}};i=l(i)}const o=(s=(a=this.gos.get("chartToolPanelsDef"))==null?void 0:a.settingsPanel)==null?void 0:s.chartGroupsDef;return o&&(i=Rot.filterAndOrderChartMenu(i,o,n.getConfigLookup())),this.cleanInternals(i)}cleanInternals(t){if(!t)return t;const n=r=>{var i;return r==null||delete r._key,r==null||delete r._enterprise,(i=r==null?void 0:r.subMenu)==null||i.forEach(o=>n(o)),r};return n(t)}static buildLookup(t){const n={},r=i=>{n[i._key]=i,i.subMenu&&i.subMenu.forEach(o=>r(o))};return r(t),n}static filterAndOrderChartMenu(t,n,r){var a;const i=this.buildLookup(t),o={...t,subMenu:[]};if(Object.entries(n).forEach(([s,l])=>{var f,h;const c=r[s];if(c===null)return;if(c==null){et(`invalid chartGroupsDef config '${s}'`);return}const d=i[c._key];if(d)if(d.subMenu){const p=l.map(g=>{const m=c[g];if(m==null){et(`invalid chartGroupsDef config '${s}.${g}'`);return}return i[m]}).filter(g=>g!==void 0);p.length>0&&(d.subMenu=p,(f=o.subMenu)==null||f.push(d))}else(h=o.subMenu)==null||h.push(d)}),((a=o.subMenu)==null?void 0:a.length)!=0)return o}},uei=class{constructor(e,t,n){this.gos=e,this.chartService=t,this.localeService=n}getMenuItem(){const e=this.localeService.getLocaleTextFunc(),t=(n,r,i,o,a=!1)=>({name:e(n,r),action:()=>this.chartService.createPivotChart({chartType:i}),_key:o,_enterprise:a});return{name:e("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:e("columnChart","Column"),subMenu:[t("groupedColumn","Grouped&lrm;","groupedColumn","pivotGroupedColumn"),t("stackedColumn","Stacked&lrm;","stackedColumn","pivotStackedColumn"),t("normalizedColumn","100% Stacked&lrm;","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:e("barChart","Bar"),subMenu:[t("groupedBar","Grouped&lrm;","groupedBar","pivotGroupedBar"),t("stackedBar","Stacked&lrm;","stackedBar","pivotStackedBar"),t("normalizedBar","100% Stacked&lrm;","normalizedBar","pivo
2025-02-18 08:35:18 +08:00
<div data-ref="eColumnMenu" role="presentation" class="ag-menu ag-column-menu"></div>
2025-04-17 15:35:46 +08:00
`),this.menuItems=e,this.column=t,this.restoreFocusParams=n,this.sourceElement=r,this.eColumnMenu=wt}wireBeans(e){this.columnMenuFactory=e.columnMenuFactory,this.menuUtils=e.menuUtils,this.focusService=e.focusService}postConstruct(){this.mainMenuList=this.columnMenuFactory.createMenu(this,this.menuItems,this.column,()=>this.sourceElement??this.getGui()),this.mainMenuList.addEventListener("closeMenu",this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(e){this.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}afterGuiAttached({hidePopup:e}){e&&(this.hidePopupFunc=e,this.addDestroyFunc(e)),this.focusService.focusInto(this.mainMenuList.getGui())}};function bei(e,t){const{rowNode:n,column:r,value:i,x:o,y:a}=t||{};let{x:s,y:l}=e.menuService.getContextMenuPosition(n,r);o!=null&&(s=o),a!=null&&(l=a),e.menuService.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:s,clientY:l}),rowNode:n,column:r,value:i})}function Sei(e,t){e.menuService.showColumnChooser({chooserParams:t})}function wei(e){e.menuService.hideColumnChooser()}var xei=class extends at{constructor(){super(...arguments),this.beanName="menuItemMapper"}wireBeans(e){this.columnModel=e.columnModel,this.columnNameService=e.columnNameService,this.columnApplyStateService=e.columnApplyStateService,this.funcColsService=e.funcColsService,this.focusService=e.focusService,this.rowPositionUtils=e.rowPositionUtils,this.chartMenuItemMapper=e.chartMenuItemMapper,this.menuService=e.menuService,this.sortController=e.sortController,this.columnAutosizeService=e.columnAutosizeService,this.expansionService=e.expansionService,this.clipboardService=e.clipboardService,this.aggFuncService=e.aggFuncService,this.csvCreator=e.csvCreator,this.excelCreator=e.excelCreator}mapWithStockItems(e,t,n,r){if(!e)return[];const i=[];return e.forEach(o=>{let a;if(typeof o=="string"?a=this.getStockMenuItem(o,t,n,r):a={...o},!a)return;const s=a,{subMenu:l}=s;l&&l instanceof Array&&(s.subMenu=this.mapWithStockItems(l,t,n,r)),a!=null&&i.push(a)}),i}getStockMenuItem(e,t,n,r){const i=this.localeService.getLocaleTextFunc(),o=this.gos.get("skipHeaderOnAutoSize");switch(e){case"pinSubMenu":return{name:i("pinColumn","Pin Column"),icon:zn("menuPin",this.gos,null),subMenu:["clearPinned","pinLeft","pinRight"]};case"pinLeft":return{name:i("pinLeft","Pin Left"),action:()=>this.columnModel.setColsPinned([t],"left",r),checked:!!t&&t.isPinnedLeft()};case"pinRight":return{name:i("pinRight","Pin Right"),action:()=>this.columnModel.setColsPinned([t],"right",r),checked:!!t&&t.isPinnedRight()};case"clearPinned":return{name:i("noPin","No Pin"),action:()=>this.columnModel.setColsPinned([t],null,r),checked:!!t&&!t.isPinned()};case"valueAggSubMenu":return this.gos.assertModuleRegistered(Qn.RowGroupingModule,"Aggregation from Menu")?!(t!=null&&t.isPrimary())&&!(t!=null&&t.getColDef().pivotValueColumn)?null:{name:i("valueAggregation","Value Aggregation"),icon:zn("menuValue",this.gos,null),subMenu:this.createAggregationSubMenu(t,this.aggFuncService),disabled:this.gos.get("functionsReadOnly")}:null;case"autoSizeThis":return{name:i("autosizeThisColumn","Autosize This Column"),action:()=>this.columnAutosizeService.autoSizeColumn(t,r,o)};case"autoSizeAll":return{name:i("autosizeAllColumns","Autosize All Columns"),action:()=>this.columnAutosizeService.autoSizeAllColumns(r,o)};case"rowGroup":return{name:i("groupBy","Group by")+" "+hl(this.columnNameService.getDisplayNameForColumn(t,"header")),disabled:this.gos.get("functionsReadOnly")||(t==null?void 0:t.isRowGroupActive())||!(t!=null&&t.getColDef().enableRowGroup),action:()=>this.funcColsService.addRowGroupColumns([t],r),icon:zn("menuAddRowGroup",this.gos,null)};case"rowUnGroup":{const a=zn("menuRemoveRowGroup",this.gos,null),s=t==null?void 0:t.getColDef().showRowGroup,l=this.gos.get("groupLockGroupColumns");if(s===!0)return{name:i("ungroupAll","Un-Group All"),disabled:this.gos.get("functionsReadOnly")||l===-1||l>=this.funcColsService.getRowGroupColumns().length,action:()=>this.funcColsSer
2025-02-18 08:35:18 +08:00
Row selection state could not be parsed due to invalid data. Ensure all child state has toggledNodes or does not conform with the parent rule.
Please rebuild the selection state and reapply it.
2025-04-17 15:35:46 +08:00
`);return{selectAllChildren:i,toggledNodes:new Map(o)}};try{this.selectedState=t(e,!!e.selectAllChildren)}catch(n){br(n.message)}}deleteSelectionStateFromParent(e,t){let n=this.selectedState;const r=[...e];for(;n&&r.length;)n=n.toggledNodes.get(r.pop());if(!n)return!1;let i=!1;return t.forEach(o=>{n!=null&&n.toggledNodes.delete(o)&&(i=!0)}),i&&this.removeRedundantState(),i}overrideSelectionValue(e,t){if(!o0e(t))return e;const n=this.selectionCtx.getRoot(),r=n?this.rowModel.getRowNode(n):null;return r?r.isSelected()??!1:!0}setNodesSelected({nodes:e,newValue:t,rangeSelect:n,clearSelection:r,source:i}){if(e.length===0)return 0;if(n){if(e.length>1)throw new Error("AG Grid: cannot select multiple rows when using rangeSelect");const a=e[0],s=this.overrideSelectionValue(t,i);if(this.selectionCtx.isInRange(a.id)){const l=this.selectionCtx.truncate(a.id);return s&&this.selectRange(l.discard,!1),this.selectRange(l.keep,s),1}else if(this.selectionCtx.getRoot()!==a.id){const d=this.selectionCtx.extend(a.id,!0);return s&&this.selectRange(d.discard,!1),this.selectRange(d.keep,s),1}return 1}const o=r&&t&&!n;if(!xS(this.gos)||o){if(e.length>1)throw new Error("AG Grid: cannot select multiple rows when rowSelection.mode is set to 'singleRow'");this.deselectAllRowNodes()}return e.forEach(a=>{const s=this.getRouteToNode(a);this.recursivelySelectNode(s,this.selectedState,t)}),this.removeRedundantState(),this.selectionCtx.setRoot(Pn(e).id),1}selectRange(e,t){const n=e.map(this.getRouteToNode).sort((i,o)=>o.length-i.length),r=new Set;n.forEach(i=>{r.has(Pn(i))||(i.forEach(o=>r.add(o)),this.recursivelySelectNode(i,this.selectedState,t))}),this.removeRedundantState()}isNodeSelected(e){const t=this.getRouteToNode(e);return this.isNodePathSelected(t,this.selectedState)}isNodePathSelected([e,...t],n){if(t.length===0){const r=n.toggledNodes.has(e.id);if(e.hasChildren()){const i=n.toggledNodes.get(e.id);if(i&&i.toggledNodes.size)return}return n.selectAllChildren?!r:r}if(n.toggledNodes.has(e.id)){const r=n.toggledNodes.get(e.id);if(r)return this.isNodePathSelected(t,r)}return n.selectAllChildren}getRouteToNode(e){const t=[];let n=e;for(;n.parent;)t.push(n),n=n.parent;return t.reverse()}removeRedundantState(){var t;if((t=this.filterManager)!=null&&t.isAnyFilterPresent())return;const e=(n=this.selectedState,r,i)=>{if(n.toggledNodes.forEach((s,l)=>{e(s,l,n)}),r){const s=this.rowModel.getRowNode(r),l=s==null?void 0:s.childStore;if((l==null?void 0:l.isLastRowIndexKnown())&&n.toggledNodes.size>=l.getRowCount()){for(const f of n.toggledNodes.entries()){const[h,p]=f;if(p.toggledNodes.size>0||!this.rowModel.getRowNode(h))return}n.selectAllChildren=!n.selectAllChildren,n.toggledNodes.clear()}}const o=n.toggledNodes.size===0,a=(i==null?void 0:i.selectAllChildren)===n.selectAllChildren;o&&a&&(i==null||i.toggledNodes.delete(r))};e()}recursivelySelectNode([e,...t],n,r){if(!e)return;if(!t.length){const s=e.selectable;if(n.selectAllChildren===r||!s){n.toggledNodes.delete(e.id);return}const c={selectAllChildren:r,toggledNodes:new Map};n.toggledNodes.set(e.id,c);return}const o=n.toggledNodes.has(e.id),a=n.toggledNodes.get(e.id)??{selectAllChildren:n.selectAllChildren,toggledNodes:new Map};o||n.toggledNodes.set(e.id,a),this.recursivelySelectNode(t,a,r),n.selectAllChildren===a.selectAllChildren&&a.toggledNodes.size===0&&n.toggledNodes.delete(e.id)}getSelectedNodes(){et("`getSelectedNodes` and `getSelectedRows` functions cannot be used with `groupSelectsChildren` and the server-side row model.\n Use `api.getServerSideSelectionState()` instead.");const e=[];return this.rowModel.forEachNode(t=>{t.isSelected()&&e.push(t)}),e}processNewRow(){}getSelectedRows(){return this.getSelectedNodes().map(e=>e.data)}getSelectionCount(){return-1}isEmpty(){var e;return!this.selectedState.selectAllChildren&&!((e=this.selectedState.toggledNodes)!=null&&e.size)}selectAllRowNodes(){this.selectedState={selectAllChildren:!0,toggledNodes:new Map},this.selectionCtx.reset()}deselectAllRowNodes(){this.selectedState={selectAllChildren:!1,toggledNodes:new Map},this.selecti
2025-02-18 08:35:18 +08:00
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2025-04-17 15:35:46 +08:00
*/var pti=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],pz=pti.join(","),Hot=typeof Element>"u",OS=Hot?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,gz=!Hot&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},mz=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},gti=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},mti=function(t,n,r){if(mz(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(pz));return n&&OS.call(t,pz)&&i.unshift(t),i=i.filter(r),i},vti=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!mz(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,c=e(l,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:a,candidates:c})}else{var d=OS.call(a,pz);d&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),h=!mz(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(f&&h){var p=e(f===!0?a.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:a,candidates:p})}else o.unshift.apply(o,a.children)}}return i},jot=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Vot=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||gti(t))&&!jot(t)?0:t.tabIndex},Cti=function(t,n){var r=Vot(t);return r<0&&n&&!jot(t)?0:r},yti=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Got=function(t){return t.tagName==="INPUT"},bti=function(t){return Got(t)&&t.type==="hidden"},Sti=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},wti=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},xti=function(t){if(!t.name)return!0;var n=t.form||gz(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=wti(i,t.form);return!o||o===t},$ti=function(t){return Got(t)&&t.type==="radio"},Eti=function(t){return $ti(t)&&!xti(t)},Rti=function(t){var n,r=t&&gz(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,s,l;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var c,d,f;r=gz(i),i=(c=r)===null||c===void 0?void 0:c.host,o=!!((d=i)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return o},RPe=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Oti=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=OS.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(OS.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var l=t.parentElement,c=gz(t);if(l&&!l.shadowRoot&&i(l)===!0)return RPe(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=s}if(Rti(t))return!t.getClientRects().length;if(r!=="legacy-full")r
2025-02-18 08:35:18 +08:00
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-04-17 15:35:46 +08:00
*/var QPe;function Zni(){if(QPe)return Ux;QPe=1;var e=ce,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(s,l,c){var d,f={},h=null,p=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(d in l)r.call(l,d)&&!o.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:h,ref:p,props:f,_owner:i.current}}return Ux.Fragment=n,Ux.jsx=a,Ux.jsxs=a,Ux}hat.exports=Zni();var qx=hat.exports;const Jni=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},eri=e=>{const t=u.useRef(),[n,r]=u.useState(!1),[i,o]=u.useState();return u.useEffect(()=>{r(!0),(async()=>{try{t.current=(await Jni(Object.assign({"../icons/account-location.svg":()=>yn(()=>import("./account-location-BCNgMMMw-9VVOpXki.js"),[]),"../icons/add.svg":()=>yn(()=>import("./add-DBGs_LmH-B4gs-oWU.js"),[]),"../icons/admin-outlined.svg":()=>yn(()=>import("./admin-outlined-DXTGKZe5-BEcC9nto.js"),[]),"../icons/airport.svg":()=>yn(()=>import("./airport-DmUdZQah-7JjZyiK3.js"),[]),"../icons/align-center.svg":()=>yn(()=>import("./align-center-kIaj1t0E-BDHJ9s4d.js"),[]),"../icons/align-justify.svg":()=>yn(()=>import("./align-justify-DtkZpgWd-BC6r3bxG.js"),[]),"../icons/align-left.svg":()=>yn(()=>import("./align-left-nz355YSx-B3sFCdrs.js"),[]),"../icons/align-right.svg":()=>yn(()=>import("./align-right-CuY2aKVp-D-o9DL9l.js"),[]),"../icons/approve.svg":()=>yn(()=>import("./approve-C2CuyqjZ-CDon1SdK.js"),[]),"../icons/arrow-drop-down.svg":()=>yn(()=>import("./arrow-drop-down-C-Cm0O58-CSFHvETt.js"),[]),"../icons/blocks-group.svg":()=>yn(()=>import("./blocks-group-BnKCc4Rj-DuSa1aBP.js"),[]),"../icons/bold.svg":()=>yn(()=>import("./bold-C7Q6mc6R-WceCbTd2.js"),[]),"../icons/caret-right.svg":()=>yn(()=>import("./caret-right-Buv6m22q-C93lM323.js"),[]),"../icons/category-outline.svg":()=>yn(()=>import("./category-outline-DFeZz2a4-B2wricHl.js"),[]),"../icons/check-one.svg":()=>yn(()=>import("./check-one-DZsEj4Rc-RoX_amkd.js"),[]),"../icons/check.svg":()=>yn(()=>import("./check-CwiFW30S-Dw4RirKB.js"),[]),"../icons/config.svg":()=>yn(()=>import("./config-HpgzD5LZ-Bh2OQFQ8.js"),[]),"../icons/content.svg":()=>yn(()=>import("./content-CVv2xHwr-3ZqcajIj.js"),[]),"../icons/copy.svg":()=>yn(()=>import("./copy-CVj4__by-BOdRE4nw.js"),[]),"../icons/cube-duotone.svg":()=>yn(()=>import("./cube-duotone-C5nZlt1x-DrnF5Fj3.js"),[]),"../icons/date-time.svg":()=>yn(()=>import("./date-time-C-XupEct-kE9aHI44.js"),[]),"../icons/delete.svg":()=>yn(()=>import("./delete-B_03_u2H-Bfpqh1FE.js"),[]),"../icons/edit.svg":()=>yn(()=>import("./edit-Dt4jUBOK-Di9FL_0D.js"),[]),"../icons/error-duotone.svg":()=>yn(()=>import("./error-duotone-C1DxTjTu-BPvLxwTF.js"),[]),"../icons/error-outline.svg":()=>yn(()=>import("./error-outline-BtU6WRxh-C_TXZ2l_.js"),[]),"../icons/exit.svg":()=>yn(()=>import("./exit-BrT4707H-DJs5HxKv.js"),[]),"../icons/filter.svg":()=>yn(()=>import("./filter-DjN42YHn-CbWmDyBM.js"),[]),"../icons/fluent-person.svg":()=>yn(()=>import("./fluent-person-CxE3zAkd-CtjCmL6L.js"),[]),"../icons/get-text.svg":()=>yn(()=>import("./get-text-BQOd1CsX-D7V8rr9_.js"),[]),"../icons/group-work.svg":()=>yn(()=>import("./group-work-CMKVD9ib-duMBP2ZW.js"),[]),"../icons/health-circle.svg":()=>yn(()=>import("./health-circle-SAB-DqvX-g2Ix0I6G.js"),[]),"../icons/history.svg":()=>yn(()=>import("./history-DwvuvWV7-B1e2g8B1.js"),[]),"../icons/home.svg":()=>yn(()=>import("./home-InqRf4oC-DIYkgCWf.js"),[]),"../icons/horizontal-rule.svg":()=>yn(()=>import("./horizontal-rule-DqqTWGF1-os9i7RRu.js"),[]),"../icons/image.svg":()=>yn(()=>import("./image-CnEjCzXp-DYmB4gp7.js"),[]),"../icons/inbox.svg":()=>yn(()=>i