origin/web-dist/assets/index-De5TXRhh.js

1546 lines
6.0 MiB
JavaScript
Raw Normal View History

2025-03-02 21:11:20 +08:00
var E3t=Object.defineProperty;var jCe=e=>{throw TypeError(e)};var R3t=(e,t,n)=>t in e?E3t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>R3t(e,typeof t!="symbol"?t+"":t,n),SJ=(e,t,n)=>t.has(e)||jCe("Cannot "+n);var Ke=(e,t,n)=>(SJ(e,t,"read from private field"),n?n.call(e):t.get(e)),Un=(e,t,n)=>t.has(e)?jCe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),yn=(e,t,n,r)=>(SJ(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),gr=(e,t,n)=>(SJ(e,t,"access private method"),n);var BA=(e,t,n,r)=>({set _(i){yn(e,t,i,n)},get _(){return Ke(e,t,r)}});function yNe(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 Jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _r(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 bNe={exports:{}},VH={},SNe={exports:{}},pi={};/**
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/var PI=Symbol.for("react.element"),$3t=Symbol.for("react.portal"),O3t=Symbol.for("react.fragment"),T3t=Symbol.for("react.strict_mode"),I3t=Symbol.for("react.profiler"),M3t=Symbol.for("react.provider"),P3t=Symbol.for("react.context"),_3t=Symbol.for("react.forward_ref"),A3t=Symbol.for("react.suspense"),D3t=Symbol.for("react.memo"),L3t=Symbol.for("react.lazy"),VCe=Symbol.iterator;function F3t(e){return e===null||typeof e!="object"?null:(e=VCe&&e[VCe]||e["@@iterator"],typeof e=="function"?e:null)}var wNe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xNe=Object.assign,ENe={};function Ix(e,t,n){this.props=e,this.context=t,this.refs=ENe,this.updater=n||wNe}Ix.prototype.isReactComponent={};Ix.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")};Ix.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RNe(){}RNe.prototype=Ix.prototype;function Lfe(e,t,n){this.props=e,this.context=t,this.refs=ENe,this.updater=n||wNe}var Ffe=Lfe.prototype=new RNe;Ffe.constructor=Lfe;xNe(Ffe,Ix.prototype);Ffe.isPureReactComponent=!0;var GCe=Array.isArray,$Ne=Object.prototype.hasOwnProperty,Nfe={current:null},ONe={key:!0,ref:!0,__self:!0,__source:!0};function TNe(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)$Ne.call(t,r)&&!ONe.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:PI,type:e,key:o,ref:s,props:i,_owner:Nfe.current}}function N3t(e,t){return{$$typeof:PI,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kfe(e){return typeof e=="object"&&e!==null&&e.$$typeof===PI}function k3t(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var WCe=/\/+/g;function wJ(e,t){return typeof e=="object"&&e!==null&&e.key!=null?k3t(""+e.key):t.toString(36)}function _F(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case PI:case $3t:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+wJ(s,0):r,GCe(i)?(n="",e!=null&&(n=e.replace(WCe,"$&/")+"/"),_F(i,t,n,"",function(c){return c})):i!=null&&(kfe(i)&&(i=N3t(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(WCe,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",GCe(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+wJ(o,a);s+=_F(o,t,n,l,i)}else if(l=F3t(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+wJ(o,a++),s+=_F(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 s}function HA(e,t,n){if(e==null)return e;var r=[],i=0;return _F(e,r,"","",function(o){return t.call(n,o,i++)}),r}function z3t(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 bc={current:null},AF={transition:null},B3t={ReactCurrentDispatcher:bc,ReactCurrentBatchConfig:AF,ReactCurrentOwner:Nfe};pi.Children={map:HA,forEach:function(e,t,n){HA(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return HA(e,function(){t++}),t},toArray:function(e){return HA(e,function(t){return t})||[]},only:function(e){if(!kfe(e))throw Error("React.Children.only expected to receive a single React element child.");re
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/var H3t=d,j3t=Symbol.for("react.element"),V3t=Symbol.for("react.fragment"),G3t=Object.prototype.hasOwnProperty,W3t=H3t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,U3t={key:!0,ref:!0,__self:!0,__source:!0};function INe(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)G3t.call(t,r)&&!U3t.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:j3t,type:e,key:o,ref:s,props:i,_owner:W3t.current}}VH.Fragment=V3t;VH.jsx=INe;VH.jsxs=INe;bNe.exports=VH;var H=bNe.exports;AbortSignal.prototype.throwIfAborted||(AbortSignal.prototype.throwIfAborted=function(){if(this.aborted)throw new DOMException("The operation was aborted.","AbortError")});var Ioe={},MNe={exports:{}},Rd={},PNe={exports:{}},_Ne={};/**
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/(function(e){function t(A,N){var B=A.length;A.push(N);e:for(;0<B;){var z=B-1>>>1,j=A[z];if(0<i(j,N))A[z]=N,A[B]=j,B=z;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var N=A[0],B=A.pop();if(B!==N){A[0]=B;e:for(var z=0,j=A.length,W=j>>>1;z<W;){var G=2*(z+1)-1,K=A[G],q=G+1,X=A[q];if(0>i(K,B))q<j&&0>i(X,K)?(A[z]=X,A[q]=B,z=q):(A[z]=K,A[G]=B,z=G);else if(q<j&&0>i(X,B))A[z]=X,A[q]=B,z=q;else break e}}return N}function i(A,N){var B=A.sortIndex-N.sortIndex;return B!==0?B:A.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,f=null,h=3,g=!1,p=!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(A){for(var N=n(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=A)r(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(c)}}function S(A){if(m=!1,b(A),!p)if(n(l)!==null)p=!0,L(w);else{var N=n(c);N!==null&&I(S,N.startTime-A)}}function w(A,N){p=!1,m&&(m=!1,C(R),R=-1),g=!0;var B=h;try{for(b(N),f=n(l);f!==null&&(!(f.expirationTime>N)||A&&!M());){var z=f.callback;if(typeof z=="function"){f.callback=null,h=f.priorityLevel;var j=z(f.expirationTime<=N);N=e.unstable_now(),typeof j=="function"?f.callback=j:f===n(l)&&r(l),b(N)}else r(l);f=n(l)}if(f!==null)var W=!0;else{var G=n(c);G!==null&&I(S,G.startTime-N),W=!1}return W}finally{f=null,h=B,g=!1}}var x=!1,E=null,R=-1,O=5,T=-1;function M(){return!(e.unstable_now()-T<O)}function _(){if(E!==null){var A=e.unstable_now();T=A;var N=!0;try{N=E(!0,A)}finally{N?F():(x=!1,E=null)}}else x=!1}var F;if(typeof y=="function")F=function(){y(_)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,k=D.port2;D.port1.onmessage=_,F=function(){k.postMessage(null)}}else F=function(){v(_,0)};function L(A){E=A,x||(x=!0,F())}function I(A,N){R=v(function(){A(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){p||g||(p=!0,L(w))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(A){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var B=h;h=N;try{return A()}finally{h=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,N){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var B=h;h=A;try{return N()}finally{h=B}},e.unstable_scheduleCallback=function(A,N,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,A){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,A={id:u++,callback:N,priorityLevel:A,startTime:B,expirationTime:j,sortIndex:-1},B>z?(A.sortIndex=B,t(c,A),n(l)===null&&A===n(c)&&(m?(C(R),R=-1):m=!0,I(S,B-z))):(A.sortIndex=j,t(l,A),p||g||(p=!0,L(w))),A},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(A){var N=h;return function(){var B=h;h=N;try{return A.apply(this,arguments)}finally{h=B}}}})(_Ne);PNe.exports=_Ne;var q3t=PNe.exports;/**
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/var ANe=d,vd=q3t;function fn(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 DNe=new Set,OO={};function Ey(e,t){Dw(e,t),Dw(e+"Capture",t)}function Dw(e,t){for(OO[e]=t,e=0;e<t.length;e++)DNe.add(t[e])}var $0=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Moe=Object.prototype.hasOwnProperty,K3t=/^[: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]*$/,UCe={},qCe={};function Y3t(e){return Moe.call(qCe,e)?!0:Moe.call(UCe,e)?!1:K3t.test(e)?qCe[e]=!0:(UCe[e]=!0,!1)}function X3t(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 Q3t(e,t,n,r){if(t===null||typeof t>"u"||X3t(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 Sc(e,t,n,r,i,o,s){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=s}var cl={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cl[e]=new Sc(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cl[t]=new Sc(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cl[e]=new Sc(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cl[e]=new Sc(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){cl[e]=new Sc(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cl[e]=new Sc(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cl[e]=new Sc(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cl[e]=new Sc(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cl[e]=new Sc(e,5,!1,e.toLowerCase(),null,!1,!1)});var zfe=/[\-:]([a-z])/g;function Bfe(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-03-02 17:53:04 +08:00
`+xJ+e}var EJ=!1;function RJ(e,t){if(!e||EJ)return"";EJ=!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(`
`),o=r.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
2025-03-02 21:11:20 +08:00
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{EJ=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qR(e):""}function Z3t(e){switch(e.tag){case 5:return qR(e.type);case 16:return qR("Lazy");case 13:return qR("Suspense");case 19:return qR("SuspenseList");case 0:case 2:case 15:return e=RJ(e.type,!1),e;case 11:return e=RJ(e.type.render,!1),e;case 1:return e=RJ(e.type,!0),e;default:return""}}function Doe(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 cS:return"Fragment";case lS:return"Portal";case Poe:return"Profiler";case jfe:return"StrictMode";case _oe:return"Suspense";case Aoe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case FNe:return(e.displayName||"Context")+".Consumer";case LNe:return(e._context.displayName||"Context")+".Provider";case Vfe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gfe:return t=e.displayName||null,t!==null?t:Doe(e.type)||"Memo";case x2:t=e._payload,e=e._init;try{return Doe(e(t))}catch{}}return null}function J3t(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 Doe(t);case 8:return t===jfe?"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 L4(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kNe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e6t(e){var t=kNe(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function VA(e){e._valueTracker||(e._valueTracker=e6t(e))}function zNe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kNe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vk(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 Loe(e,t){var n=t.checked;return rs({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function YCe(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=L4(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 BNe(e,t){t=t.checked,t!=null&&Hfe(e,"checked",t,!1)}function Foe(e,t){BNe(e,t);var n=L4(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")?Noe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Noe(e,t.type,L4(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function XCe(e
`).replace(u8t,"")}function QA(e,t,n){if(t=yye(t),yye(e)!==t&&n)throw Error(fn(425))}function Rk(){}var Qoe=null,Zoe=null;function Joe(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 ese=typeof setTimeout=="function"?setTimeout:void 0,d8t=typeof clearTimeout=="function"?clearTimeout:void 0,bye=typeof Promise=="function"?Promise:void 0,f8t=typeof queueMicrotask=="function"?queueMicrotask:typeof bye<"u"?function(e){return bye.resolve(null).then(e).catch(h8t)}:ese;function h8t(e){setTimeout(function(){throw e})}function kJ(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),_O(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);_O(t)}function d4(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 Sye(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 _x=Math.random().toString(36).slice(2),Vp="__reactFiber$"+_x,NO="__reactProps$"+_x,O0="__reactContainer$"+_x,tse="__reactEvents$"+_x,g8t="__reactListeners$"+_x,p8t="__reactHandles$"+_x;function w8(e){var t=e[Vp];if(t)return t;for(var n=e.parentNode;n;){if(t=n[O0]||n[Vp]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sye(e);e!==null;){if(n=e[Vp])return n;e=Sye(e)}return t}e=n,n=e.parentNode}return null}function DI(e){return e=e[Vp]||e[O0],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hS(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(fn(33))}function KH(e){return e[NO]||null}var nse=[],gS=-1;function h3(e){return{current:e}}function Do(e){0>gS||(e.current=nse[gS],nse[gS]=null,gS--)}function Ro(e,t){gS++,nse[gS]=e.current,e.current=t}var F4={},Ul=h3(F4),uu=h3(!1),CC=F4;function Lw(e,t){var n=e.type.contextTypes;if(!n)return F4;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 du(e){return e=e.childContextTypes,e!=null}function $k(){Do(uu),Do(Ul)}function wye(e,t,n){if(Ul.current!==F4)throw Error(fn(168));Ro(Ul,t),Ro(uu,n)}function Tke(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(fn(108,J3t(e)||"Unknown",i));return rs({},n,r)}function Ok(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||F4,CC=Ul.current,Ro(Ul,e),Ro(uu,uu.current),!0}function xye(e,t,n){var r=e.stateNode;if(!r)throw Error(fn(169));n?(e=Tke(e,t,CC),r.__reactInternalMemoizedMergedChildContext=e,Do(uu),Do(Ul),Ro(Ul,e)):Do(uu),Ro(uu,n)}var J1=null,YH=!1,zJ=!1;function Ike(e){J1===null?J1=[e]:J1.push(e)}function m8t(e){YH=!0,Ike(e)}function g3(){if(!zJ&&J1!==null){zJ=!0;var e=0,t=no;try{var n=J1;for(no=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}J1=null,YH=!1}catch(i){throw J1!==null&&(J1=J1.slice(e+1)),eke(Ufe,g3),i}finally{no=t,zJ=!1}}return null}var pS=[],mS=0,Tk=null,Ik=0,xf=[],Ef=0,yC=null,a0=1,l0="";function X6(e,t){pS[mS++]=Ik,pS[mS++]=Tk,Tk=e,Ik=t}function Mke(e,t,n){xf[Ef++]=a0,xf[Ef++]=l0,xf[Ef++]=yC,yC=e;var r=a0;e=l0;var i=32-vg(r)-1;r&=~(1<<i),n+=1;var o=32-vg(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,a0=1<<32-vg(t)+i|n<<i|r,l0=o+e}else a0=1<<o|n<<i|r,l0=e}function the(e){e.return!==null&&(X6(e,1),Mke(e,1,0))}function nhe(e){for(;e===Tk;)Tk=pS[--mS],pS[mS]=null,Ik=pS[--mS],pS[mS]=null;for(;e===yC;)yC=xf[--Ef],xf[Ef]=null,l0=xf[--Ef],xf[Ef]=null,a0=xf[--Ef],xf[Ef]=null}var ld=null,nd=null,Ho=!1,Zh=null;function Pke(e,t){var n=_f(5,null,null,0);n.elementType="
2025-03-02 17:53:04 +08:00
Error generating stack: `+o.message+`
2025-03-02 21:11:20 +08:00
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function GJ(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lse(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var R8t=typeof WeakMap=="function"?WeakMap:Map;function oze(e,t,n){n=f0(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Nk||(Nk=!0,Cse=r),lse(e,t)},n}function sze(e,t,n){n=f0(-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(){lse(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){lse(e,t),typeof r!="function"&&(h4===null?h4=new Set([this]):h4.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Aye(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new R8t;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=z8t.bind(null,e,t,n),t.then(e,e))}function Dye(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 Lye(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=f0(-1,1),t.tag=2,f4(n,t,1))),n.lanes|=1),e)}var $8t=X0.ReactCurrentOwner,ou=!1;function uc(e,t,n,r){t.child=e===null?kke(t,null,n,r):Nw(t,e.child,n,r)}function Fye(e,t,n,r,i){n=n.render;var o=t.ref;return jS(t,i),r=hhe(e,t,n,r,o,i),n=ghe(),e!==null&&!ou?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,I0(e,t,i)):(Ho&&n&&the(t),t.flags|=1,uc(e,t,r,i),t.child)}function Nye(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ehe(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,aze(e,t,o,r,i)):(e=VF(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:DO,n(s,r)&&e.ref===t.ref)return I0(e,t,i)}return t.flags|=1,e=p4(o,r),e.ref=t.ref,e.return=t,t.child=e}function aze(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(DO(o,r)&&e.ref===t.ref)if(ou=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ou=!0);else return t.lanes=e.lanes,I0(e,t,i)}return cse(e,t,n,r,i)}function lze(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},Ro(yS,Uu),Uu|=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,Ro(yS,Uu),Uu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ro(yS,Uu),Uu|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ro(yS,Uu),Uu|=r;return uc(e,t,i,n),t.child}function cze(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cse(e,t,n,r,i){var o=du(n)?CC:Ul.current;return o=Lw(t,o),jS(t,i),n=hhe(e,t,n,r,o,i),r=ghe(),e!==null&&!ou?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,I0(e,t,i)):(Ho&&r&&the(t),t.flags|=1,uc(e,t,n,i),t.child)}function kye(e,t,n,r,i){if(du(n)){var o=!0;Ok(t)}else o=!1;if(jS(t,i),t.stateNode===null)BF(e,t),Fke(t,n,r),ase(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Gf(c):(c=du(n)?CC:Ul.current,c=Lw(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Iye(t,s,r,c),E2=!1;var h=t.memoizedState;s.state=h,_k(t,r,s,i),l=t.memoizedState,a!==r||h!==l||uu.current||E2?(typeof u=="function"&&(sse(t,n,u,r),l=t.memoizedState),(a=E2||Tye(t,n,a,r,h,l,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.compon
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/function ko(){return ko=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},ko.apply(this,arguments)}var Ps;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ps||(Ps={}));const Zye="popstate";function Y8t(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return GO("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:xC(i)}return Q8t(t,n,null,e)}function ni(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function X8t(){return Math.random().toString(36).substr(2,8)}function Jye(e,t){return{usr:e.state,key:e.key,idx:t}}function GO(e,t,n,r){return n===void 0&&(n=null),ko({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?p3(t):t,{state:n,key:t&&t.key||r||X8t()})}function xC(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 p3(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 Q8t(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Ps.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(ko({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function f(){a=Ps.Pop;let v=u(),C=v==null?null:v-c;c=v,l&&l({action:a,location:m.location,delta:C})}function h(v,C){a=Ps.Push;let y=GO(m.location,v,C);c=u()+1;let b=Jye(y,c),S=m.createHref(y);try{s.pushState(b,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}o&&l&&l({action:a,location:m.location,delta:1})}function g(v,C){a=Ps.Replace;let y=GO(m.location,v,C);c=u();let b=Jye(y,c),S=m.createHref(y);s.replaceState(b,"",S),o&&l&&l({action:a,location:m.location,delta:0})}function p(v){let C=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof v=="string"?v:xC(v);return y=y.replace(/ $/,"%20"),ni(C,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,C)}let m={get action(){return a},get location(){return e(i,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Zye,f),l=v,()=>{i.removeEventListener(Zye,f),l=null}},createHref(v){return t(i,v)},createURL:p,encodeLocation(v){let C=p(v);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:h,replace:g,go(v){return s.go(v)}};return m}var lo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lo||(lo={}));const Z8t=new Set(["lazy","caseSensitive","path","id","index","children"]);function J8t(e){return e.index===!0}function Hk(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,String(o)],a=typeof i.id=="string"?i.id:s.join("-");if(ni(i.index!==!0||!i.children,"Cannot specify children on an index route"),ni(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),J8t(i)){let l=ko({},i,t(i),{id:a});return r[a]=l,l}else{let l=ko({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=Hk(i.children,t,s,r)),l}})}function d8(e,t,n){return n===void 0&&(n="/"),GF(e,t,n,!1)}function GF(e,t,n,r){let i=typeof t=="string"?p3(t):t,o=M0(i.pathname||"/",n);if(o==null)return null;let s=Lze(e);eCt(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=dCt(o);a=cCt(s[l],c,r)}return a}function Dze(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 Lze(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.star
`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!qh(s))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}ni(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Ese(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Ese(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=abe(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=abe(l)}catch{return i()}let u={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(qh(u.formMethod))return{path:n,submission:u};let f=p3(n);return t&&f.search&&Phe(f.search)&&l.append("index",""),f.search="?"+l,{path:xC(f),submission:u}}function nbe(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 rbe(e,t,n,r,i,o,s,a,l,c,u,f,h,g,p,m){let v=m?Yu(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=nbe(n,Object.keys(t.errors)[0],!0):m&&Yu(m[1])&&(b=nbe(n,m[0]));let S=m?m[1].statusCode:void 0,w=s&&S&&S>=400,x=b.filter((R,O)=>{let{route:T}=R;if(T.lazy)return!0;if(T.loader==null)return!1;if(o)return xse(T,t.loaderData,t.errors);if($Ct(t.loaderData,t.matches[O],R)||l.some(F=>F===R.route.id))return!0;let M=t.matches[O],_=R;return ibe(R,ko({currentUrl:C,currentParams:M.params,nextUrl:y,nextParams:_.params},r,{actionResult:v,actionStatus:S,defaultShouldRevalidate:w?!1:a||C.pathname+C.search===y.pathname+y.search||C.search!==y.search||Bze(M,_)}))}),E=[];return f.forEach((R,O)=>{if(o||!n.some(D=>D.route.id===R.routeId)||u.has(O))return;let T=d8(g,R.path,p);if(!T){E.push({key:O,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(O),_=QR(T,R.path),F=!1;h.has(O)?F=!1:c.has(O)?(c.delete(O),F=!0):M&&M.state!=="idle"&&M.data===void 0?F=a:F=ibe(_,ko({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:a})),F&&E.push({key:O,routeId:R.routeId,path:R.path,matches:T,match:_,controller:new AbortController})}),[x,E]}function xse(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 $Ct(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Bze(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ibe(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function obe(e,t,n,r,i){var o;let s;if(e){let c=r[e];ni(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),s=c.children}else s=n;let a=t.filter(c=>!s.some(u=>Hze(c,u))),l=Hk(a,i,[e||"_","patch",String(((o=s)==null?void 0:o.length)||"0")],r);s.push(...l)}function Hze(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=>Hze(n,o))}):!1}async function OCt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];ni(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";jw(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!Z8t.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/function Gk(){return Gk=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},Gk.apply(this,arguments)}const FI=d.createContext(null),_he=d.createContext(null),Q0=d.createContext(null),Ahe=d.createContext(null),Hm=d.createContext({outlet:null,matches:[],isDataRoute:!1}),Gze=d.createContext(null);function GCt(e,t){let{relative:n}=t===void 0?{}:t;Ax()||ni(!1);let{basename:r,navigator:i}=d.useContext(Q0),{hash:o,pathname:s,search:a}=lj(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:h0([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Ax(){return d.useContext(Ahe)!=null}function jm(){return Ax()||ni(!1),d.useContext(Ahe).location}function Wze(e){d.useContext(Q0).static||d.useLayoutEffect(e)}function Gs(){let{isDataRoute:e}=d.useContext(Hm);return e?nyt():WCt()}function WCt(){Ax()||ni(!1);let e=d.useContext(FI),{basename:t,future:n,navigator:r}=d.useContext(Q0),{matches:i}=d.useContext(Hm),{pathname:o}=jm(),s=JSON.stringify(oj(i,n.v7_relativeSplatPath)),a=d.useRef(!1);return Wze(()=>{a.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let f=sj(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:h0([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,s,o,e])}const UCt=d.createContext(null);function qCt(e){let t=d.useContext(Hm).outlet;return t&&d.createElement(UCt.Provider,{value:e},t)}function Z0(){let{matches:e}=d.useContext(Hm),t=e[e.length-1];return t?t.params:{}}function lj(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(Q0),{matches:i}=d.useContext(Hm),{pathname:o}=jm(),s=JSON.stringify(oj(i,r.v7_relativeSplatPath));return d.useMemo(()=>sj(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function KCt(e,t,n,r){Ax()||ni(!1);let{navigator:i}=d.useContext(Q0),{matches:o}=d.useContext(Hm),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=jm(),u;u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let m=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(m.length).join("/")}let g=d8(e,{pathname:h});return JCt(g&&g.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:h0([l,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:h0([l,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n,r)}function YCt(){let e=Xze(),t=aj(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 d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),n?d.createElement("pre",{style:i},n):null,null)}const XCt=d.createElement(YCt,null);class QCt extends d.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?d.createElement(Hm.Provider,{value:this.props.routeContext},d.createElement(Gze.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZCt(e){let{routeContext:t,match:n,children:r}=e,i=d.useContext(FI);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Hm.Provider,{value:t},r)}function JCt(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/function Vw(){return Vw=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},Vw.apply(this,arguments)}function Qze(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 lyt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cyt(e,t){return e.button===0&&(!t||t==="_self")&&!lyt(e)}const uyt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dyt=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],fyt="6";try{window.__reactRouterVersion=fyt}catch{}function hyt(e,t){return ECt({basename:void 0,future:Vw({},void 0,{v7_prependBasename:!0}),history:Y8t({window:void 0}),hydrationData:gyt(),routes:e,mapRouteProperties:ayt,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function gyt(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Vw({},t,{errors:pyt(t.errors)})),t}function pyt(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 Vk(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 s=new o(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const Zze=d.createContext({isTransitioning:!1}),myt=d.createContext(new Map),vyt="startTransition",pbe=Mx[vyt],Cyt="flushSync",mbe=Aze[Cyt];function yyt(e){pbe?pbe(e):e()}function VE(e){mbe?mbe(e):e()}class byt{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 Syt(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=d.useState(n.state),[s,a]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[h,g]=d.useState(),[p,m]=d.useState(),v=d.useRef(new Map),{v7_startTransition:C}=r||{},y=d.useCallback(R=>{C?yyt(R):R()},[C]),b=d.useCallback((R,O)=>{let{deletedFetchers:T,flushSync:M,viewTransitionOpts:_}=O;T.forEach(D=>v.current.delete(D)),R.fetchers.forEach((D,k)=>{D.data!==void 0&&v.current.set(k,D.data)});let F=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!_||F){M?VE(()=>o(R)):y(()=>o(R));return}if(M){VE(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let D=n.window.document.startViewTransition(()=>{VE(()=>o(R))});D.finished.finally(()=>{VE(()=>{f(void 0),g(void 0),a(void 0),c({isTransitioning:!1})})}),VE(()=>g(D));return}h?(u&&u.resolve(),h.skipTransition(),m({state:R,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(a(R),c({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[n.window,h,u,v,y]);d.useLayoutEffect(()=>n.subscribe(b),[n,b]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new byt)},[l]),d.useEffect(()=>{if(u&&s&&n.window){let R=s,O=u.promise,T=n.window.document.startViewTransition(async()=>{y(()=>o(R)),await O});T.finished.finally(()=>{f(void 0),g(void 0),a(void 0),c({isTransitioning:!1})}),g(T)}},[y,s,u,n.window]),d.useEffect(()=>{u&&s&&i.location.key===s.location.key&&u.resolve()},[u,h,i.location,s]),d.useEffect(()=>{!l.isTransitioning&&p&&(a(p.state),c({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),m(void 0))},[l.isTransitioning,p]),d.useEffect(()=>{},[]);let S=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,O,T)=>n.navigate(R,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(R,O,T)=>n.navigate(R,{replace:!0,state:O,preventScrollReset:T
2025-03-02 17:53:04 +08:00
background-color: #${t==="up"?c:u};
color: ${t==="up"?"black":"white"};
padding: 2px;
2025-03-02 21:11:20 +08:00
`;a.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:s,context:e.context}:{input:s}):l.push({input:s,result:e.result,elapsedMs:e.elapsedMs,...r&&{context:e.context}}),{parts:a,args:l}}const _bt=({c:e=console,colorMode:t="css",withContext:n})=>r=>{const i=r.input,o=Mbt(i)?Object.fromEntries(i):i,{parts:s,args:a}=Pbt({...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,[s.join(" ")].concat(a))};function Abt(e={}){const{enabled:t=()=>!0}=e,n=e.colorMode??(typeof window>"u"?"ansi":"css"),r=e.withContext??n==="css",{logger:i=_bt({c:e.console,colorMode:n,withContext:r})}=e;return()=>({op:o,next:s})=>Oy(a=>{t({...o,direction:"up"})&&i({...o,direction:"up"});const l=Date.now();function c(u){const f=Date.now()-l;t({...o,direction:"down",result:u})&&i({...o,direction:"down",elapsedMs:f,result:u})}return s(o).pipe(cbt({next(u){c(u)},error(u){c(u)}})).subscribe(a)})}function _be(e){return Array.isArray(e)?e:[e]}function Dbt(e){return t=>{const n=_be(e.true).map(i=>i(t)),r=_be(e.false).map(i=>i(t));return i=>Oy(o=>{const s=e.condition(i.op)?n:r;return SBe({op:i.op,links:s}).subscribe(o)})}}const Abe=e=>typeof e=="function"?e():e,Dbe=e=>e(),Lbt=e=>e===0?0:Math.min(1e3*2**e,3e4),Fbt={enabled:!1,closeMs:0};function Nbt(e){const{WebSocket:t=WebSocket,retryDelayMs:n=Lbt,onOpen:r,onClose:i}=e,o={...Fbt,...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 s=[];const a=Object.create(null);let l=0,c,u=0,f,h=o.enabled?null:w();function g(){if(!h){h=w();return}setTimeout(()=>{if((h==null?void 0:h.state)==="open"){for(const E of Object.values(a))E.connection||(E.connection=h);s.length===1?h.ws.send(JSON.stringify(s.pop())):h.ws.send(JSON.stringify(s)),s=[],S()}})}function p(E){if(c)return;E.state="connecting";const R=n(l++);C(R)}function m(E){const R=Object.values(a);return E?R.some(O=>O.connection===E):R.length>0}function v(){if(o.enabled&&!m())return;const E=h;h=w(),E&&y(E)}function C(E){c||(c=setTimeout(v,E))}function y(E){var R;m(E)||(R=E.ws)==null||R.close()}function b(E){s.some(R=>R.id===E.op.id)||x(E.op,E.callbacks)}const S=()=>{o.enabled&&(clearTimeout(f),f=setTimeout(()=>{var E;h&&(m(h)||((E=h.ws)==null||E.close(),h=null))},o.closeMs))};function w(){const E={id:++u,state:"connecting"};clearTimeout(f);const R=()=>{E.state="closed",E===h&&p(E)};return Dbe(async()=>{let O=await Abe(e.url);if(e.connectionParams){const F=O.includes("?")?"&":"?";O+=F+"connectionParams=1"}const T=new t(O);E.ws=T,clearTimeout(c),c=void 0,T.addEventListener("open",()=>{Dbe(async()=>{/* istanbul ignore next -- @preserve */if((h==null?void 0:h.ws)===T){if(e.connectionParams){const F={method:"connectionParams",data:await Abe(e.connectionParams)};T.send(JSON.stringify(F))}l=0,E.state="open",r==null||r(),g()}}).catch(F=>{T.close(3e3,F),R()})}),T.addEventListener("error",R);const M=F=>{if(E===h&&F.method==="reconnect"){v();for(const D of Object.values(a))D.type==="subscription"&&b(D)}},_=F=>{var k,L;const D=F.id!==null&&a[F.id];if(D){if((L=(k=D.callbacks).next)==null||L.call(k,F),E===h&&D.connection!==h){const I=D.connection;D.connection=E,I&&y(I)}"result"in F&&F.result.type==="stopped"&&h===E&&D.callbacks.complete()}};T.addEventListener("message",({data:F})=>{S();const D=JSON.parse(F);"method"in D?M(D):_(D),E!==h&&y(E)}),T.addEventListener("close",({code:F})=>{var D,k,L,I;E.state==="open"&&(i==null||i({code:F})),E.state="closed",h===E&&p(E);for(const[A,N]of Object.entries(a))if(N.connection===E){if(E.state==="closed"){delete a[A],(k=(D=N.callbacks).complete)==null||k.call(D);continue}N.type==="subscription"?b(N):(delete a[A],(I=(L=N.callbacks).error)==null||I.call(L,yg.from(new Hhe("WebSocket closed prematurely"))))}})}).catch(R),E}function x(E,R){const{type:O,input:T,path:M,id:_}=E,F={id:_,
`;n.right=new zl(Ri(s,Pa(o.store,s)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Em(l)),n.right.integrate(e,0),n.forward()}DHe(e,t,n,a)},NHe=(e,t,n,r,i)=>{let o=t;const s=hu();for(;o&&(!o.countable||o.deleted);){if(!o.deleted&&o.content.constructor===sa){const c=o.content;s.set(c.key,c)}o=o.right}let a=0,l=!1;for(;t!==o;){if(n===t&&(l=!0),!t.deleted){const c=t.content;switch(c.constructor){case sa:{const{key:u,value:f}=c,h=r.get(u)??null;(s.get(u)!==c||h===f)&&(t.delete(e),a++,!l&&(i.get(u)??null)===f&&h!==f&&(h===null?i.delete(u):i.set(u,h))),!l&&!t.deleted&&Fx(i,c);break}}}t=t.right}return a},m7t=(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===sa){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},v7t=e=>{let t=0;return wo(e.doc,n=>{let r=e._start,i=e._start,o=hu();const s=Zse(o);for(;i;){if(i.deleted===!1)switch(i.content.constructor){case sa:Fx(s,i.content);break;default:t+=NHe(n,r,i,o,s),o=Zse(s),r=i;break}i=i.right}}),t},C7t=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&&bHe(e,n.store.clients.get(r),o,i,s=>{!s.deleted&&s.content.constructor===sa&&s.constructor!==Of&&t.add(s.parent)})}wo(n,r=>{aHe(e,e.deleteSet,i=>{if(i instanceof Of||!i.parent._hasFormatting||t.has(i.parent))return;const o=i.parent;i.content.constructor===sa?t.add(o):m7t(r,i)});for(const i of t)v7t(i)})},s5e=(e,t,n)=>{const r=n,i=Zse(t.currentAttributes),o=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case ev:case Iy:case Em:n<t.right.length&&U4(e,Ri(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e);break}t.forward()}o&&NHe(e,o,t.right,i,t.currentAttributes);const s=(t.left||t.right).parent;return s._searchMarker&&uT(s._searchMarker,t.index,-r+n),t};class y7t extends mj{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=[];wo(t,r=>{const i=new Map,o=new Map;let s=this.target._start,a=null;const l={};let c="",u=0,f=0;const h=()=>{if(a!==null){let g=null;switch(a){case"delete":f>0&&(g={delete:f}),f=0;break;case"insert":(typeof c=="object"||c.length>0)&&(g={insert:c},i.size>0&&(g.attributes={},i.forEach((p,m)=>{p!==null&&(g.attributes[m]=p)}))),c="";break;case"retain":u>0&&(g={retain:u},BSt(l)||(g.attributes=NSt({},l))),u=0;break}g&&n.push(g),a=null}};for(;s!==null;){switch(s.content.constructor){case ev:case Iy:this.adds(s)?this.deletes(s)||(h(),a="insert",c=s.content.getContent()[0],h()):this.deletes(s)?(a!=="delete"&&(h(),a="delete"),f+=1):s.deleted||(a!=="retain"&&(h(),a="retain"),u+=1);break;case Em:this.adds(s)?this.deletes(s)||(a!=="insert"&&(h(),a="insert"),c+=s.content.str):this.deletes(s)?(a!=="delete"&&(h(),a="delete"),f+=s.length):s.deleted||(a!=="retain"&&(h(),a="retain"),u+=s.length);break;case sa:{const{key:g,value:p}=s.content;if(this.adds(s)){if(!this.deletes(s)){const m=i.get(g)??null;J2(m,p)?p!==null&&s.delete(r):(a==="retain"&&h(),J2(p,o.get(g)??null)?delete l[g]:l[g]=p)}}else if(this.deletes(s)){o.set(g,p);const m=i.get(g)??null;J2(m,p)||(a==="retain"&&h(),l[g]=m)}else if(!s.deleted){o.set(g,p);const m=l[g];m!==void 0&&(J2(m,p)?m!==null&&s.delete(r):(a==="retain"&&h(),p===null?delete l[g]:l[g]=p))}s.deleted||(a==="insert"&&h(),Fx(i,s.content));break}}s=s.right}for(h();n.length>0;){const g=n[n.length-1];if(g.retain!==void 0&&g.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class Qw extends ol{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??Vl(),this._length}_integrate(t,n){super._integrate(t,n);try{this._pending.fo
`?s.insert.slice(0,-1):s.insert;(typeof a!="string"||a.length>0)&&lee(r,this,i,a,s.attributes||{})}else s.retain!==void 0?o5e(r,this,i,s.retain,s.attributes||{}):s.delete!==void 0&&s5e(r,i,s.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,n,r){this.doc??Vl();const i=[],o=new Map,s=this.doc;let a="",l=this._start;function c(){if(a.length>0){const f={};let h=!1;o.forEach((p,m)=>{h=!0,f[m]=p});const g={insert:a};h&&(g.attributes=f),i.push(g),a=""}}const u=()=>{for(;l!==null;){if(K5(l,t)||n!==void 0&&K5(l,n))switch(l.content.constructor){case Em:{const f=o.get("ychange");t!==void 0&&!K5(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&&!K5(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")),a+=l.content.str;break}case ev:case Iy:{c();const f={insert:l.content.getContent()[0]};if(o.size>0){const h={};f.attributes=h,o.forEach((g,p)=>{h[p]=g})}i.push(f);break}case sa:K5(l,t)&&(c(),Fx(o,l.content));break}l=l.right}c()};return t||n?wo(s,f=>{t&&eae(f,t),n&&eae(f,n),u()},"cleanup"):u(),i}insert(t,n,r){if(n.length<=0)return;const i=this.doc;i!==null?wo(i,o=>{const s=lD(o,this,t,!r);r||(r={},s.currentAttributes.forEach((a,l)=>{r[l]=a})),lee(o,this,s,n,r)}):this._pending.push(()=>this.insert(t,n,r))}insertEmbed(t,n,r){const i=this.doc;i!==null?wo(i,o=>{const s=lD(o,this,t,!r);lee(o,this,s,n,r||{})}):this._pending.push(()=>this.insertEmbed(t,n,r||{}))}delete(t,n){if(n===0)return;const r=this.doc;r!==null?wo(r,i=>{s5e(i,lD(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?wo(i,o=>{const s=lD(o,this,t,!1);s.right!==null&&o5e(o,this,s,n,r)}):this._pending.push(()=>this.format(t,n,r))}removeAttribute(t){this.doc!==null?wo(this.doc,n=>{az(n,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,n){this.doc!==null?wo(this.doc,r=>{age(r,this,t,n)}):this._pending.push(()=>this.setAttribute(t,n))}getAttribute(t){return lge(this,t)}getAttributes(){return _He(this)}_write(t){t.writeTypeRef(z7t)}}const b7t=e=>new Qw;class cee{constructor(t,n=()=>!0){this._filter=n,this._root=t,this._currentNode=t._start,this._firstCall=!0,t.doc??Vl()}[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===Zw||n.constructor===MC)&&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 MC extends ol{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 MC}clone(){const t=new MC;return t.insert(0,this.toArray().map(n=>n instanceof ol?n.clone():n)),t}get length(){return this.doc??Vl(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new cee(this,t)}querySelector(t){t=t.toUpperCase();const r=new cee(this,i=>i.nodeName&&i.nodeName.toUpperCase()===t).next();return r.done?null:r.value}querySelectorAll(t){return t=t.toUpperCase(),_0(new cee(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t))}_callObserver(t,n){Cj(this,t,new x7t(this,n,t))}toString(){return OHe(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),dT(this,o=>{i.insertBefore(o.toDOM(t,n,r),null)}),i}insert(t,n){this.doc!==null?wo(this.doc,r=>{MHe(r,this,t,n)}):this._prelimContent.splice(t,0,...n)}insertAfter(t,n){if(this.doc!==null)wo(this.doc,r=>{const i=t&&t instanceof ol?t._item:t;sz(r,th
${t}`),ZF=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qHe=(e,t,n)=>{const r=m3(t),i=Il(),o=Lr(r),s=e.messageHandlers[o];return s?s(i,r,e,n,o):console.error("Unable to compute message"),i},KHe=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=Kw();const i=qHe(e,new Uint8Array(r.data),!0);Ghe(i)>1&&n.send(zo(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,fge(e.awareness,Array.from(e.awareness.getStates().keys()).filter(i=>i!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(()=>KHe(e),Vhe(rSt(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime))},n.onopen=()=>{console.log("\x1B[32m%s\x1B[0m","WebSocket connected"),e.wsLastMessageReceived=Kw(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const r=Il();if(or(r,0),iae(r,e.doc),n.send(zo(r)),e.awareness.getLocalState()!==null){const i=Il();or(i,1),ws(i,z$(e.awareness,[e.doc.clientID])),n.send(zo(i))}},e.emit("status",[{status:"connecting"}])}},dee=(e,t)=>{e.wsconnected&&e.socket&&e.socket.send(t),!ZF()&&e.bcconnected&&q5(e.bcChannel,t,e)},YHe=class extends VBe{constructor(t,n,r,{connect:i=!0,awareness:o=new sxt(r),params:s={},protocols:a=[],resyncInterval:l=-1,maxBackoffTime:c=2500,disableBc:u=!1}={}){super();Wt(this,"serverUrl");Wt(this,"bcChannel");Wt(this,"maxBackoffTime");Wt(this,"params");Wt(this,"protocols");Wt(this,"doc");Wt(this,"roomId");Wt(this,"socket");Wt(this,"awareness");Wt(this,"wsconnected");Wt(this,"wsconnecting");Wt(this,"bcconnected");Wt(this,"disableBc");Wt(this,"wsUnsuccessfulReconnects");Wt(this,"messageHandlers");Wt(this,"_synced");Wt(this,"wsLastMessageReceived");Wt(this,"shouldConnect");Wt(this,"_resyncInterval");Wt(this,"_bcSubscriber");Wt(this,"_updateHandler");Wt(this,"_awarenessUpdateHandler");Wt(this,"_exitHandler");for(;t[t.length-1]==="/";)t=t.slice(0,t.length-1);this.serverUrl=t,this.params={...s,roomId:n},this.bcChannel=t+"/"+n,this.maxBackoffTime=c,this.protocols=a,this.doc=r,this.socket=null,this.awareness=o,this.roomId=n,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=ZF()?!0:u,this.wsUnsuccessfulReconnects=0,this.messageHandlers=GI.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=Il();or(f,0),iae(f,r),console.log(`Resyncing data on interval: ${zo(f)}`),this.socket.send(zo(f))}},l)),this._bcSubscriber=(f,h)=>{if(h!==this){const g=qHe(this,new Uint8Array(f),!1);Ghe(g)>1&&q5(this.bcChannel,zo(g),this)}},this._updateHandler=(f,h)=>{if(h!==this){const g=Il();or(g,0),ext(g,f),dee(this,zo(g))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:f,updated:h,removed:g},p)=>{const m=f.concat(h).concat(g);console.log(`update awareness from ${p}`,m);const v=Il();or(v,1),ws(v,z$(o,m)),dee(this,zo(v))},this._exitHandler=()=>{fge(this.awareness,[r.clientID],"app closed"),console.log("App closed, removing awareness states.")},W4&&typeof process<"u"&&process.on("exit",this._exitHandler),o.on("update",this._awarenessUpdateHandler),i&&this.connect()}get url(){const t=q7t(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(),W4&&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(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&OEt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},R5e=Symbol("internals");function WE(e){return e&&String(e).trim().toLowerCase()}function tN(e){return e===!1||e==null?e:Nt.isArray(e)?e.map(tN):String(e)}function IEt(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 MEt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mee(e,t,n,r,i){if(Nt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!Nt.isString(t)){if(Nt.isString(r))return t.indexOf(r)!==-1;if(Nt.isRegExp(r))return r.test(t)}}function PEt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _Et(e,t){const n=Nt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class pu{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,c){const u=WE(l);if(!u)throw new Error("header name must be a non-empty string");const f=Nt.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=tN(a))}const s=(a,l)=>Nt.forEach(a,(c,u)=>o(c,u,l));if(Nt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Nt.isString(t)&&(t=t.trim())&&!MEt(t))s(TEt(t),n);else if(Nt.isHeaders(t))for(const[a,l]of t.entries())o(l,a,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=WE(t),t){const r=Nt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return IEt(i);if(Nt.isFunction(n))return n.call(this,i,r);if(Nt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=WE(t),t){const r=Nt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||mee(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=WE(s),s){const a=Nt.findKey(r,s);a&&(!n||mee(r,r[a],a,n))&&(delete r[a],i=!0)}}return Nt.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||mee(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return Nt.forEach(this,(i,o)=>{const s=Nt.findKey(r,o);if(s){n[s]=tN(i),delete n[o];return}const a=t?PEt(o):String(o).trim();a!==o&&delete n[o],n[a]=tN(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Nt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&Nt.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[R5e]=this[R5e]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=WE(s);r[a]||(_Et(i,s),r[a]=!0)}return Nt.isArray(t)?t.forEach(o):o(t),this}}pu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Nt.reduceDescriptors(pu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Nt.freezeMethods(pu);function vee(e,t){const n=this||UI,r=t||n,i=pu.from(r.headers);let o=r.data;return Nt.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Dje(e){return!!(e&&e.__CANCEL__)}function zx(e,t,n){Hr.call(this,e??"canceled",Hr.ERR_CANCELED,t,n),this.name="CanceledError"}Nt.inherits(zx,Hr,{__CANCEL__:!0});function Lje(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Hr("Request failed with status code "+n.status,[Hr.ERR_BAD_REQUEST,Hr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function AEt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function DEt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];s||(s=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-s<t)return;const g=u&&c-u;return g?Math.round(h*1e3/g):void 0}}function LEt(e,t){let n=0,r=1e3/t,i,o;const s=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-f)))},()=>i&&s(i)]}const pz=(e,t,n=3)=>{let r=0;const i=DEt(50,250);return LEt(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,c=i(l),u=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},$5e=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},O5e=e=>(...t)=>Nt.asap(()=>e(...t)),FEt=Ll.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ll.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ll.origin),Ll.navigator&&/(msie|trident)/i.test(Ll.navigator.userAgent)):()=>!0,NEt=Ll.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];Nt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Nt.isString(r)&&s.push("path="+r),Nt.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.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 kEt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zEt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fje(e,t){return e&&!kEt(t)?zEt(e,t):t}const T5e=e=>e instanceof pu?{...e}:e;function AC(e,t){t=t||{};const n={};function r(c,u,f,h){return Nt.isPlainObject(c)&&Nt.isPlainObject(u)?Nt.merge.call({caseless:h},c,u):Nt.isPlainObject(u)?Nt.merge({},u):Nt.isArray(u)?u.slice():u}function i(c,u,f,h){if(Nt.isUndefined(u)){if(!Nt.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function o(c,u){if(!Nt.isUndefined(u))return r(void 0,u)}function s(c,u){if(Nt.isUndefined(u)){if(!Nt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseE
`+o.map(P5e).join(`
`):" "+P5e(o[0]):"as no adapter specified";throw new Hr("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:pae};function Cee(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zx(null,e)}function _5e(e){return Cee(e),e.headers=pu.from(e.headers),e.data=vee.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bje.getAdapter(e.adapter||UI.adapter)(e).then(function(r){return Cee(e),r.data=vee.call(e,e.transformResponse,r),r.headers=pu.from(r.headers),r},function(r){return Dje(r)||(Cee(e),r&&r.response&&(r.response.data=vee.call(e,e.transformResponse,r.response),r.response.headers=pu.from(r.response.headers))),Promise.reject(r)})}const Hje="1.7.9",Tj={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Tj[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A5e={};Tj.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Hje+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Hr(i(s," has been removed"+(n?" in "+n:"")),Hr.ERR_DEPRECATED);return n&&!A5e[s]&&(A5e[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};Tj.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ZEt(e,t,n){if(typeof e!="object")throw new Hr("options must be an object",Hr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Hr("option "+o+" must be "+l,Hr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Hr("Unknown option "+o,Hr.ERR_BAD_OPTION)}}const nN={assertOptions:ZEt,validators:Tj},yp=nN.validators;class tC{constructor(t){this.defaults=t,this.interceptors={request:new E5e,response:new E5e}}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=AC(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&nN.assertOptions(r,{silentJSONParsing:yp.transitional(yp.boolean),forcedJSONParsing:yp.transitional(yp.boolean),clarifyTimeoutError:yp.transitional(yp.boolean)},!1),i!=null&&(Nt.isFunction(i)?n.paramsSerializer={serialize:i}:nN.assertOptions(i,{encode:yp.function,serialize:yp.function},!0)),nN.assertOptions(n,{baseUrl:yp.spelling("baseURL"),withXsrfToken:yp.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Nt.merge(o.common,o[n.method]);o&&Nt.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=pu.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,f=0,h;if(!l){const p=[_5e.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),h=p.length,u=Promise.resolve(n);f<h;)u=u.then(p[f++],p[f++]);return u}h=a.length;let g=n;for(f=0;f<h;){const p=a[f++],m=a[f++];try{g=p(g)}catch(v){m.call(this,v);break}}try{u=_5e.call(this,g)}catch(p){return Promise.reject(p)}for(f=0,h=c.length;f<h;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=AC(this.defaults,t);const n=Fje(t.baseURL,t.url);return Pje(n,t.params,t.paramsSerializer)}}Nt.forEach(["delete","get","head","options"],function(t){tC.prototype[t]=function(n,r){return this.request(AC(r||{},{method:t,url:n,data:(r||{}).data}))}});Nt.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(AC(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}tC.prototype[t]=n(),tC.prototype[t+"Form"]=n(!0)});class $ge{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 s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new zx(o,s,a),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 $ge(function(i){t=i}),cancel:t}}}function JEt(e){return function(n){return e.apply(null,n)}}function eRt(e){return Nt.isObject(e)&&e.isAxiosError===!0}const mae={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-03-02 17:53:04 +08:00
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
2025-03-02 21:11:20 +08:00
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}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 s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wje);var St=Wje.exports;const we=Bm(St);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)}function nn(e){"@babel/helpers - typeof";return nn=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},nn(e)}var oRt=Symbol.for("react.element"),sRt=Symbol.for("react.transitional.element"),aRt=Symbol.for("react.fragment");function Uje(e){return e&&nn(e)==="object"&&(e.$$typeof===oRt||e.$$typeof===sRt)&&e.type===aRt}function Rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Rs(r)):Uje(r)&&r.props?n=n.concat(Rs(r.props.children,t)):n.push(r))}),n}var vae={},lRt=function(t){};function cRt(e,t){}function uRt(e,t){}function dRt(){vae={}}function qje(e,t,n){!t&&!vae[n]&&(e(!1,n),vae[n]=!0)}function ui(e,t){qje(cRt,e,t)}function fRt(e,t){qje(uRt,e,t)}ui.preMessage=lRt;ui.resetWarned=dRt;ui.noteOnce=fRt;function hRt(e,t){if(nn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kje(e){var t=hRt(e,"string");return nn(t)=="symbol"?t:t+""}function ie(e,t,n){return(t=Kje(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D5e(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 se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D5e(Object(n),!0).forEach(function(r){ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D5e(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vT(e){return e instanceof HTMLElement||e instanceof SVGElement}function Oge(e){return e&&nn(e)==="object"&&vT(e.nativeElement)?e.nativeElement:vT(e)?e:null}function nC(e){var t=Oge(e);if(t)return t;if(e instanceof ce.Component){var n;return(n=Hw.findDOMNode)===null||n===void 0?void 0:n.call(Hw,e)}return null}var Yje={exports:{}},ro={};/**
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/var Tge=Symbol.for("react.element"),Ige=Symbol.for("react.portal"),Ij=Symbol.for("react.fragment"),Mj=Symbol.for("react.strict_mode"),Pj=Symbol.for("react.profiler"),_j=Symbol.for("react.provider"),Aj=Symbol.for("react.context"),gRt=Symbol.for("react.server_context"),Dj=Symbol.for("react.forward_ref"),Lj=Symbol.for("react.suspense"),Fj=Symbol.for("react.suspense_list"),Nj=Symbol.for("react.memo"),kj=Symbol.for("react.lazy"),pRt=Symbol.for("react.offscreen"),Xje;Xje=Symbol.for("react.module.reference");function rh(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Tge:switch(e=e.type,e){case Ij:case Pj:case Mj:case Lj:case Fj:return e;default:switch(e=e&&e.$$typeof,e){case gRt:case Aj:case Dj:case kj:case Nj:case _j:return e;default:return t}}case Ige:return t}}}ro.ContextConsumer=Aj;ro.ContextProvider=_j;ro.Element=Tge;ro.ForwardRef=Dj;ro.Fragment=Ij;ro.Lazy=kj;ro.Memo=Nj;ro.Portal=Ige;ro.Profiler=Pj;ro.StrictMode=Mj;ro.Suspense=Lj;ro.SuspenseList=Fj;ro.isAsyncMode=function(){return!1};ro.isConcurrentMode=function(){return!1};ro.isContextConsumer=function(e){return rh(e)===Aj};ro.isContextProvider=function(e){return rh(e)===_j};ro.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tge};ro.isForwardRef=function(e){return rh(e)===Dj};ro.isFragment=function(e){return rh(e)===Ij};ro.isLazy=function(e){return rh(e)===kj};ro.isMemo=function(e){return rh(e)===Nj};ro.isPortal=function(e){return rh(e)===Ige};ro.isProfiler=function(e){return rh(e)===Pj};ro.isStrictMode=function(e){return rh(e)===Mj};ro.isSuspense=function(e){return rh(e)===Lj};ro.isSuspenseList=function(e){return rh(e)===Fj};ro.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ij||e===Pj||e===Mj||e===Lj||e===Fj||e===pRt||typeof e=="object"&&e!==null&&(e.$$typeof===kj||e.$$typeof===Nj||e.$$typeof===_j||e.$$typeof===Aj||e.$$typeof===Dj||e.$$typeof===Xje||e.getModuleId!==void 0)};ro.typeOf=rh;Yje.exports=ro;var rN=Yje.exports;function Rm(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var CT=function(t,n){typeof t=="function"?t(n):nn(t)==="object"&&t&&"current"in t&&(t.current=n)},Ws=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(s){CT(s,o)})}},Od=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Rm(function(){return Ws.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(s,a){return s!==o[a]})})},Cd=function(t){var n,r;if(!t)return!1;if(Mge(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=rN.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==rN.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==rN.ForwardRef)};function Mge(e){return d.isValidElement(e)&&!Uje(e)}var Qje=function(t){return Mge(t)&&Cd(t)},v3=function(t){if(t&&Mge(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Cae=d.createContext(null);function mRt(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),o=d.useContext(Cae),s=d.useCallback(function(a,l,c){r.current+=1;var u=r.current;i.current.push({size:a,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(a,l,c)},[n,o]);return d.createElement(Cae.Provider,{value:s},t)}var Zje=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(e){return GRt(e)||oVe(e)||Bj(e)||WRt()}var sVe=function(t){return+setTimeout(t,16)},aVe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(sVe=function(t){return window.requestAnimationFrame(t)},aVe=function(t){return window.cancelAnimationFrame(t)});var N5e=0,Pge=new Map;function lVe(e){Pge.delete(e)}var Rr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;N5e+=1;var r=N5e;function i(o){if(o===0)lVe(r),t();else{var s=sVe(function(){i(o-1)});Pge.set(r,s)}}return i(n),r};Rr.cancel=function(e){var t=Pge.get(e);return lVe(e),aVe(t)};function cVe(e){if(Array.isArray(e))return e}function URt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],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)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function uVe(){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 Ce(e,t){return cVe(e)||URt(e,t)||Bj(e,t)||uVe()}function bT(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 Bs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sae(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var k5e="data-rc-order",z5e="data-rc-priority",qRt="rc-util-key",wae=new Map;function dVe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qRt}function Hj(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function KRt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _ge(e){return Array.from((wae.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fVe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Bs())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,s=KRt(r),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(k5e,s),a&&o&&l.setAttribute(z5e,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Hj(t),u=c.firstChild;if(r){if(a){var f=(t.styles||_ge(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(k5e)))return!1;var g=Number(h.getAttribute(z5e)||0);return o>=g});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function hVe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Hj(t);return(t.styles||_ge(n)).find(function(r){return r.getAttribute(dVe(t))===e})}function n7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hVe(e,t);if(n){var r=Hj(t);r.removeChild(n)}}function YRt(e,t){var n=wae.get(e);if(!n||!Sae(document,n)){var r=fVe("",t),i=r.parentNode;wae.set(e,i),e.removeChild(r)}}function am(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Hj(n),i=_ge(r),o=se(se({},n),{},{styles:i});YRt(r,o);var s=hVe(t,o);if(s){var a,l;if((a=o.csp)!==null&&a!==void 0&&a.nonce&&s.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;s.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var u=fVe(e,o);return u.setAttribute(dVe(o),t),u}function XRt(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 on(e,t){if(e==null)return{};var n,r,i=XRt(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}function Uf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(ui(!l,"Warning: There may be circular references"),l)return!1;if(o===s)return!0;if(n&&a>1)return!1;r.add(o);var c=a+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],s[u],c))return!1;return!0}if(o&&s&&nn(o)==="object"&&nn(s)==="object"){var f=Object.keys(o);return f.length!==Object.keys(s).length?!1:f.every(function(h){return i(o[h],s[h],c)})}return!1}return i(e,t)}var QRt="%";function xae(e){return e.join(QRt)}var ZRt=function(){function e(t){qr(this,e),ie(this,"instanceId",void 0),ie(this,"cache",new Map),this.instanceId=t}return Kr(e,[{key:"get",value:function(n)
`);else if(y._keyframe)p(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(nn(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!J$t(w)){var x=!1,E=S.trim(),R=!1;(i||o)&&a?E.startsWith("@")?x=!0:E==="&"?E=q5e("",a,c):E=q5e(S,a,c):i&&!a&&(E==="&"||E==="")&&(E="",R=!0);var O=e(w,n,{root:R,injectHash:x,parentSelectors:[].concat(ut(s),[E])}),T=Ce(O,2),M=T[0],_=T[1];g=se(se({},g),_),h+="".concat(E).concat(M)}else{let k=function(L,I){var A=L.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),N=I;!SVe[L]&&typeof N=="number"&&N!==0&&(N="".concat(N,"px")),L==="animationName"&&I!==null&&I!==void 0&&I._keyframe&&(p(I),N=I.getName(a)),h+="".concat(A,":").concat(N,";")};var F,D=(F=w==null?void 0:w.value)!==null&&F!==void 0?F:w;nn(w)==="object"&&w!==null&&w!==void 0&&w[MVe]&&Array.isArray(D)?D.forEach(function(L){k(S,L)}):k(S,D)}})}}),i?l&&(h&&(h="@layer ".concat(l.name," {").concat(h,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(l.name,";")}).join(`
`))):h="{".concat(h,"}"),[h,g]};function PVe(e,t){return bT("".concat(e.join("%")).concat(t))}function tOt(){return null}var _Ve="style";function yz(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,s=e.nonce,a=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(i7),f=u.autoClear;u.mock;var h=u.defaultCache,g=u.hashPriority,p=u.container,m=u.ssrInline,v=u.transformers,C=u.linters,y=u.cache,b=u.layer,S=n._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,ut(r));var x=Eae,E=Fge(_Ve,w,function(){var _=w.join("|");if(X$t(_)){var F=Q$t(_),D=Ce(F,2),k=D[0],L=D[1];if(k)return[k,S,L,{},a,c]}var I=t(),A=eOt(I,{hashId:i,hashPriority:g,layer:b?o:void 0,path:r.join("-"),transformers:v,linters:C}),N=Ce(A,2),B=N[0],z=N[1],j=aN(B),W=PVe(w,j);return[j,S,W,z,a,c]},function(_,F){var D=Ce(_,3),k=D[2];(F||f)&&Eae&&n7(k,{mark:wg})},function(_){var F=Ce(_,4),D=F[0];F[1];var k=F[2],L=F[3];if(x&&D!==TVe){var I={mark:wg,prepend:b?!1:"queue",attachTo:p,priority:c},A=typeof s=="function"?s():s;A&&(I.csp={nonce:A});var N=[],B=[];Object.keys(L).forEach(function(j){j.startsWith("@layer")?N.push(j):B.push(j)}),N.forEach(function(j){am(aN(L[j]),"_layer-".concat(j),se(se({},I),{},{prepend:!0}))});var z=am(D,k,I);z[n4]=y.instanceId,z.setAttribute(r7,S),B.forEach(function(j){am(aN(L[j]),"_effect-".concat(j),I)})}}),R=Ce(E,3),O=R[0],T=R[1],M=R[2];return function(_){var F;if(!m||x||!h)F=d.createElement(tOt,null);else{var D;F=d.createElement("style",V({},(D={},ie(D,r7,T),ie(D,wg,M),D),{dangerouslySetInnerHTML:{__html:O}}))}return d.createElement(d.Fragment,null,F,_)}}var nOt=function(t,n,r){var i=Ce(t,6),o=i[0],s=i[1],a=i[2],l=i[3],c=i[4],u=i[5],f=r||{},h=f.plain;if(c)return null;var g=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=ST(o,s,a,p,h),l&&Object.keys(l).forEach(function(m){if(!n[m]){n[m]=!0;var v=aN(l[m]),C=ST(v,s,"_effect-".concat(m),p,h);m.startsWith("@layer")?g=C+g:g+=C}}),[u,a,g]},AVe="cssVar",DVe=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,s=t.ignore,a=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(i7),f=u.cache.instanceId,h=u.container,g=a._tokenKey,p=[].concat(ut(t.path),[r,c,g]),m=Fge(AVe,p,function(){var v=n(),C=CVe(v,r,{prefix:i,unitless:o,ignore:s,scope:c}),y=Ce(C,2),b=y[0],S=y[1],w=PVe(p,S);return[b,S,w,r]},function(v){var C=Ce(v,3),y=C[2];Eae&&n7(y,{mark:wg})},function(v){var C=Ce(v,3),y=C[1],b=C[2];if(y){var S=am(y,b,{mark:wg,prepend:"queue",attachTo:h,priority:-999});S[n4]=f,S.setAttribute(r7,r)}});return m},rOt=function(t,n,r){var i=Ce(t,4),o=i[1],s=i[2],a=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=ST(o,a,s,f,c);return[u,s,h]},UE,iOt=(UE={},ie(UE,_Ve,nOt),ie(UE,yVe,R$t),ie(UE,AVe,rOt),UE);function oOt(e){return e!==null}function sOt(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,o=n.types,s=o===void 0?["style","token","cssVar"]:o,a=new RegExp("^(".concat((typeof s=="string"?[s]:s).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(h){return a.test(h)}),c={},u={},f="";return l.map(function(h){var g=h.replace(a,"").replace(/%/g,"|"),p=h.split("%"),m=Ce(p,1),v=m[0],C=iOt[v],y=C(e.cache.get(h)[1],c,{plain:i});if(!y)return null;var b=Ce(y,3),S=b[0],w=b[1],x=b[2];return h.startsWith("style")&&(u[g]=w),[S,x]}).filter(oOt).sort(function(h,g){var p=Ce(h,1),m=p[0],v=Ce(g,1),C=v[0];return m-C}).forEach(function(h){var g=Ce(h,2),p=g[1];f+=p}),f+=ST(".".concat(V$,'{content:"').concat(K$t(u),'";}'),void 0,void 0,ie({},V$,V$),i),f}var Pr=function(){function e(t,n){qr(this,e),ie(this,"name",void 0),ie(this,"style",void 0),ie(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 aOt(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(s,a){if(a.includes("(")||a.includes(")")){var l=a.split("(").length-1,c=a.split(")")
2025-03-02 17:53:04 +08:00
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
2025-03-02 21:11:20 +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 VVe(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:s,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(i),g=n(o),p=n(s),m=n(a),v=r(c,u),C=e.colorLink||e.colorInfo,y=n(C),b=new kr(p[1]).mix(new kr(p[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:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg: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 kr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const POt=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 _Ot(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},POt(r))}const GVe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function dN(e){return(e+8)/e}function AOt(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),s=r>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:dN(n)}))}const WVe=e=>{const t=AOt(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],s=n[2],a=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:a,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(a*i),fontHeightLG:Math.round(c*s),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function DOt(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 Gd=(e,
2025-03-02 17:53:04 +08:00
:root {
${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
`)}
}
2025-03-02 21:11:20 +08:00
`.trim()}function HOt(e,t){const n=BOt(e,t);Bs()&&am(n,`${zOt}-dynamic-theme`)}const yc=d.createContext(!1),Vge=e=>{let{children:t,disabled:n}=e;const r=d.useContext(yc);return d.createElement(yc.Provider,{value:n??r},t)},LC=d.createContext(void 0),jOt=e=>{let{children:t,size:n}=e;const r=d.useContext(LC);return d.createElement(LC.Provider,{value:n||r},t)};function VOt(){const e=d.useContext(yc),t=d.useContext(LC);return{componentDisabled:e,componentSize:t}}var qVe=Kr(function e(){qr(this,e)}),KVe="CALC_UNIT",GOt=new RegExp(KVe,"g");function Oee(e){return typeof e=="number"?"".concat(e).concat(KVe):e}var WOt=function(e){hs(n,e);var t=wc(n);function n(r,i){var o;qr(this,n),o=t.call(this),ie(dn(o),"result",""),ie(dn(o),"unitlessCssVar",void 0),ie(dn(o),"lowPriority",void 0);var s=nn(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):s==="number"?o.result=Oee(r):s==="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(Oee(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(Oee(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,s=i||{},a=s.unit,l=!0;return typeof a=="boolean"?l=a:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(GOt,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(qVe),UOt=function(e){hs(n,e);var t=wc(n);function n(r){var i;return qr(this,n),i=t.call(this),ie(dn(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}(qVe),YVe=function(t,n){var r=t==="css"?WOt:UOt;return function(i){return new r(i,n)}},nSe=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 Hn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(o))},[]);return n}function FC(e){var t=d.useRef(!1),n=d.useState(e),r=Ce(n,2),i=r[0],o=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function s(a,l){l&&t.current||o(a)}return[i,s]}function Tee(e){return e!==void 0}function ir(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,s=n.postState,a=FC(function(){return Tee(i)?i:Tee(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Ce(a,2),c=l[0],u=l[1],f=i!==void 0?i:c,h=s?s(f):f,g=Hn(o),p=FC([
2025-03-02 17:53:04 +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:s-1,screenSM:s,screenSMMin:s,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new kr("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new kr("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new kr("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
2025-03-02 21:11:20 +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 sSe=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 JVe={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},rTt={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},iTt={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},eGe=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=sSe(t,["override"]);let s=Object.assign(Object.assign({},r),{override:i});return s=Gge(s),o&&Object.entries(o).forEach(a=>{let[l,c]=a;const{theme:u}=c,f=sSe(c,["theme"]);let h=f;u&&(h=eGe(Object.assign(Object.assign({},s),f),{override:f},u)),s[l]=h}),s};function za(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=ce.useContext(jge),o=`${tTt}-${t||""}`,s=n||UVe,[a,l,c]=bVe(s,[c7,e],{salt:o,override:r,getComputedToken:eGe,formatToken:Gge,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:JVe,ignore:rTt,preserve:iTt}});return[s,c,t?l:"",a,i]}const Kf={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ii=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}},C3=()=>({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"}}),$m=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),oTt=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"}}}),sTt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return r!==!1&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},a),s),{[i]:s})}},Om=(e,t)=>({outline:`${Ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Yf=(e,t)=>({"&:focus-visible":Object.assign({},Om(e,t))}),tGe=e=>({[`.${e}`]:Object.assign(Object.assign({},C3()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Wge=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"},Yf(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Yr,genComponentStyleHook:aTt,genSubStyleComponent:Hx}=ZVe({usePrefix:(
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`,SGe=function(t){var n=d.useContext(qI),r=n.csp,i=n.prefixCls,o=UTt;i&&(o=o.replace(/anticon/g,i)),d.useEffect(function(){var s=t.current,a=Gz(s);am(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:a})},[])},qTt=["icon","className","onClick","style","primaryColor","secondaryColor"],G$={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function KTt(e){var t=e.primaryColor,n=e.secondaryColor;G$.primaryColor=t,G$.secondaryColor=n||yGe(t),G$.calculated=!!n}function YTt(){return se({},G$)}var jx=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,s=t.primaryColor,a=t.secondaryColor,l=on(t,qTt),c=d.useRef(),u=G$;if(s&&(u={primaryColor:s,secondaryColor:a||yGe(s)}),SGe(c),Aae(hSe(n),"icon should be icon definiton, but got ".concat(n)),!hSe(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=se(se({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Dae(f.icon,"svg-".concat(f.name),se(se({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};jx.displayName="IconReact";jx.getTwoToneColors=YTt;jx.setTwoToneColors=KTt;function qge(e){var t=bGe(e),n=Ce(t,2),r=n[0],i=n[1];return jx.setTwoToneColors({primaryColor:r,secondaryColor:i})}function wGe(){var e=jx.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var XTt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];qge(DC.primary);var Y=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,s=e.tabIndex,a=e.onClick,l=e.twoToneColor,c=on(e,XTt),u=d.useContext(qI),f=u.prefixCls,h=f===void 0?"anticon":f,g=u.rootClassName,p=we(g,h,ie(ie({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),m=s;m===void 0&&a&&(m=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=bGe(l),y=Ce(C,2),b=y[0],S=y[1];return d.createElement("span",V({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:a,className:p}),d.createElement(jx,{icon:r,primaryColor:b,secondaryColor:S,style:v}))});Y.displayName="AntdIcon";Y.getTwoToneColor=wGe;Y.setTwoToneColor=qge;var QTt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:jTt}))},Ay=d.forwardRef(QTt),ZTt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},JTt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:ZTt}))},nv=d.forwardRef(JTt),eIt={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},tIt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:e
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
summary tabIndex target title type useMap value width wmode wrap`,aIt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lIt="".concat(sIt," ").concat(aIt).split(/[\s\n]+/),cIt="aria-",uIt="data-";function pSe(e,t){return e.indexOf(t)===0}function $o(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=se({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||pSe(i,cIt))||n.data&&pSe(i,uIt)||n.attr&&lIt.includes(i))&&(r[i]=e[i])}),r}function xGe(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const Kge=(e,t,n)=>ce.isValidElement(e)?ce.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function js(e,t){return Kge(e,e,t)}const vD=(e,t,n,r,i)=>({background:e,border:`${Ne(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),dIt=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:s,lineHeight:a,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:h,withDescriptionPadding:g,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},ii(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,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:a},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
2025-03-02 17:53:04 +08:00
padding-top ${n} ${c}, padding-bottom ${n} ${c},
2025-03-02 21:11:20 +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:g,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:s},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},fIt=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:s,colorWarningBg:a,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:h,colorInfoBg:g}=e;return{[t]:{"&-success":vD(i,r,n,e,t),"&-info":vD(g,h,f,e,t),"&-warning":vD(a,s,o,e,t),"&-error":Object.assign(Object.assign({},vD(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},hIt=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:s,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:Ne(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:s,transition:`color ${r}`,"&:hover":{color:a}}},"&-close-text":{color:s,transition:`color ${r}`,"&:hover":{color:a}}}}},gIt=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),pIt=Yr("Alert",e=>[dIt(e),fIt(e),hIt(e)],gIt);var mSe=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 mIt={success:Ay,info:YI,error:nv,warning:Vx},vIt=e=>{const{icon:t,prefixCls:n,type:r}=e,i=mIt[r]||null;return t?Kge(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:we(`${n}-icon`,t.props.className)})):d.createElement(i,{className:`${n}-icon`})},CIt=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,s=r===!0||r===void 0?d.createElement(Ug,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),s):null},EGe=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:s,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:h,showIcon:g,closable:p,closeText:m,closeIcon:v,action:C,id:y}=e,b=mSe(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,w]=d.useState(!1),x=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:x.current}));const{getPrefixCls:E,direction:R,alert:O}=d.useContext(vn),T=E("alert",r),[M,_,F]=pIt(T),D=j=>{var W;w(!0),(W=e.onClose)===null||W===void 0||W.call(e,j)},k=d.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),L=d.useMemo(()=>typeof p=="object"&&p.closeIcon||m?!0:typeof p=="boolean"?p:v!==!1&&v!==null&&v!==void 0?!0:!!(O!=null&&O.closable),[m,v,p,O==null?void 0:O.closable]),I=o&&g===void 0?!0:g,A=we(T,`${T}-${k}`,{[`${T}-with-description`]:!!n,[`${T}-no-icon`]:!I,[`${T}-banner`]:!!o,[`${T}-rtl`]:R==="rtl"},O==null?void 0:O.className,s,a,F,_),N=$o(b,{aria:!0,data:!0}),B=d.useMemo(()=>{var j,W;return typeof p=="object"&&p.closeIcon?p.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)?(W=O==null?void 0:O.closable)===null||W===void 0?void 0:W.closeIcon:O==null?void 0:O.closeIcon)},[v,p,m,O==null?void 0:O.closeIcon]),z=d.useMemo(()=>{const j=p??(O==null?void 0:O.closable);return typeof j=="object"?mSe(j,["closeIcon"]):{}},[p,O==null?void 0:O.closable]);return M(d.createElement(Hs,{visible:!S,motionName:`${
2025-03-02 17:53:04 +08:00
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},ii(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
2025-03-02 21:11:20 +08:00
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${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"})}]},kIt=e=>({zIndexPopup:e.zIndexPopupBase+Zge+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),IGe=Yr("Message",e=>{const t=yr(e,{height:150});return[NIt(t)]},kIt);var zIt=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 BIt={info:d.createElement(YI,null),success:d.createElement(Ay,null),error:d.createElement(nv,null),warning:d.createElement(Vx,null),loading:d.createElement(Tm,null)},MGe=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return d.createElement("div",{className:we(`${t}-custom-content`,`${t}-${n}`)},r||BIt[n],d.createElement("span",null,i))},HIt=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,s=zIt(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:a}=d.useContext(vn),l=t||a("message"),c=Oo(l),[u,f,h]=IGe(l,c);return u(d.createElement(Yge,Object.assign({},s,{prefixCls:l,className:we(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:d.createElement(MGe,{prefixCls:l,type:r,icon:i},o)})))};function jIt(e,t){return{motionName:t??`${e}-move-up`}}function Jge(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 VIt=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 GIt=8,WIt=3,UIt=e=>{let{children:t,prefixCls:n}=e;const r=Oo(n),[i,o,s]=IGe(n,r);return i(d.createElement(Xge,{classNames:{list:we(o,s,r)}},t))},qIt=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(UIt,{prefixCls:n,key:r},e)},KIt=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:s=WIt,rtl:a,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:h,direction:g}=d.useContext(vn),p=r||u("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??GIt}),v=()=>we({[`${p}-rtl`]:a??g==="rtl"}),C=()=>jIt(p,l),y=d.createElement("span",{className:`${p}-close-x`},d.createElement(Ug,{className:`${p}-close-icon`})),[b,S]=Qge({prefixCls:p,style:m,className:v,motion:C,closable:!1,closeIcon:y,duration:s,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:qIt});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:p,message:h})),S});let ESe=0;function PGe(e){const t=d.useRef(null);return _y(),[d.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:u,message:f}=t.current,h=`${u}-notice`,{content:g,icon:p,type:m,key:v,className:C,style:y,onClose:b}=l,S=VIt(l,["content","icon","type","key","className","style","onClose"]);let w=v;return w==null&&(ESe+=1,w=`antd-message-${ESe}`),Jge(x=>(c(Object.assign(Object.assign({},S),{key:w,content:d.createElement(MGe,{prefixCls:u,type:m,icon:p},g),placement:"top",className:we(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)}))},s={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.des
2025-03-02 17:53:04 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
2025-03-02 21:11:20 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),tPt=e=>({animationDuration:e,animationFillMode:"both"}),nPt=e=>({animationDuration:e,animationFillMode:"both"}),Qj=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
2025-03-02 17:53:04 +08:00
${o}${e}-enter,
${o}${e}-appear
2025-03-02 21:11:20 +08:00
`]:Object.assign(Object.assign({},tPt(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},nPt(r)),{animationPlayState:"paused"}),[`
2025-03-02 17:53:04 +08:00
${o}${e}-enter${e}-enter-active,
${o}${e}-appear${e}-appear-active
2025-03-02 21:11:20 +08:00
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},rPt=new Pr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),iPt=new Pr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),tpe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Qj(r,rPt,iPt,e.motionDurationMid,t),{[`
2025-03-02 17:53:04 +08:00
${i}${r}-enter,
${i}${r}-appear
2025-03-02 21:11:20 +08:00
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},oPt=new Pr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sPt=new Pr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),aPt=new Pr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lPt=new Pr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),cPt=new Pr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uPt=new Pr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dPt=new Pr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fPt=new Pr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hPt={"move-up":{inKeyframes:dPt,outKeyframes:fPt},"move-down":{inKeyframes:oPt,outKeyframes:sPt},"move-left":{inKeyframes:aPt,outKeyframes:lPt},"move-right":{inKeyframes:cPt,outKeyframes:uPt}},Uz=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=hPt[t];return[Qj(r,i,o,e.motionDurationMid),{[`
2025-03-02 17:53:04 +08:00
${r}-enter,
${r}-appear
2025-03-02 21:11:20 +08:00
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},npe=new Pr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),rpe=new Pr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ipe=new Pr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ope=new Pr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gPt=new Pr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),pPt=new Pr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),mPt=new Pr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),vPt=new Pr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),CPt={"slide-up":{inKeyframes:npe,outKeyframes:rpe},"slide-down":{inKeyframes:ipe,outKeyframes:ope},"slide-left":{inKeyframes:gPt,outKeyframes:pPt},"slide-right":{inKeyframes:mPt,outKeyframes:vPt}},Y4=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=CPt[t];return[Qj(r,i,o,e.motionDurationMid),{[`
2025-03-02 17:53:04 +08:00
${r}-enter,
${r}-appear
2025-03-02 21:11:20 +08:00
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},spe=new Pr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yPt=new Pr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_Se=new Pr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ASe=new Pr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),bPt=new Pr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),SPt=new Pr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wPt=new Pr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xPt=new Pr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),EPt=new Pr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),RPt=new Pr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),$Pt=new Pr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),OPt=new Pr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TPt={zoom:{inKeyframes:spe,outKeyframes:yPt},"zoom-big":{inKeyframes:_Se,outKeyframes:ASe},"zoom-big-fast":{inKeyframes:_Se,outKeyframes:ASe},"zoom-left":{inKeyframes:wPt,outKeyframes:xPt},"zoom-right":{inKeyframes:EPt,outKeyframes:RPt},"zoom-up":{inKeyframes:bPt,outKeyframes:SPt},"zoom-down":{inKeyframes:$Pt,outKeyframes:OPt}},Wx=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=TPt[t];return[Qj(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
2025-03-02 17:53:04 +08:00
${r}-enter,
${r}-appear
2025-03-02 21:11:20 +08:00
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},IPt=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:h,colorTextHeading:g,colorTextDisabled:p,fontSizeLG:m,lineHeight:v,lineHeightLG:C,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:w,motionDurationSlow:x,fontSizeIcon:E,contentPadding:R,fontHeight:O,fontHeightLG:T}=e,M=`${Ne(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},ii(e)),{backgroundColor:i,border:M,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:M,"&:first-child":{[`
2025-03-02 17:53:04 +08:00
&,
& > ${t}-header`]:{borderRadius:`${Ne(l)} ${Ne(l)} 0 0`}},"&:last-child":{[`
&,
2025-03-02 21:11:20 +08:00
& > ${t}-header`]:{borderRadius:`0 0 ${Ne(l)} ${Ne(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:v,cursor:"pointer",transition:`all ${x}, visibility 0s`},Yf(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},C3()),{fontSize:E,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:M,[`& > ${t}-content-box`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,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:a,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,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 ${Ne(l)} ${Ne(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},MPt=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},PPt=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-03-02 17:53:04 +08:00
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
2025-03-02 21:11:20 +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}}}},_Pt=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}}}}}},APt=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),DPt=Yr("Collapse",e=>{const t=yr(e,{collapseHeaderPaddingSM:`${Ne(e.paddingXS)} ${Ne(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ne(e.padding)} ${Ne(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[IPt(t),PPt(t),_Pt(t),MPt(t),ZI(t)]},APt),LPt=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=d.useContext(vn),{prefixCls:o,className:s,rootClassName:a,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:h="start",children:g,expandIcon:p}=e,m=fl(M=>{var _;return(_=f??M)!==null&&_!==void 0?_:"middle"}),v=n("collapse",o),C=n(),[y,b,S]=DPt(v),w=d.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),x=p??(i==null?void 0:i.expandIcon),E=d.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=typeof x=="function"?x(M):d.createElement(Xf,{rotate:M.isActive?90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return js(_,()=>{var F;return{className:we((F=_==null?void 0:_.props)===null||F===void 0?void 0:F.className,`${v}-arrow`)}})},[x,v]),R=we(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${m}`]:m!=="middle"},i==null?void 0:i.className,s,a,b,S),O=Object.assign(Object.assign({},TT(C)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),T=d.useMemo(()=>g?Rs(g).map((M,_)=>{var F,D;const k=M.props;if(k!=null&&k.disabled){const L=(F=M.key)!==null&&F!==void 0?F:String(_),I=Object.assign(Object.assign({},$i(M.props,["disabled"])),{key:L,collapsible:(D=k.collapsible)!==null&&D!==void 0?D:"disabled"});return js(M,I)}return M}):null,[g]);return y(d.createElement(Xj,Object.assign({ref:t,openMotion:O},$i(e,["rootClassName"]),{expandIcon:E,prefixCls:v,className:R,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),T))}),DSe=Object.assign(LPt,{Panel:ePt}),FPt=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),s=new Im(e.toRgbString()).onBackground(t).toHsv();return o<=.5?s.v>.5:n*.299+r*.587+i*.114>192},UGe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return yr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},qGe=e=>{var t,n,r,i,o,s;const a=(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,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:dN(a),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:dN(l),h=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:dN(c),g=FPt(new jMt(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,defau
2025-03-02 17:53:04 +08:00
#`.concat(t,`::-webkit-scrollbar {
`).concat(u,`
`).concat(f,`
2025-03-02 21:11:20 +08:00
}`),t)}catch(p){console.error(p),i=l,o=c}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),n7(t),{width:h,height:g}}function kSe(e){return typeof document>"u"?0:(jee===void 0&&(jee=ZGe()),jee.width)}function zae(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ZGe(e)}function f_t(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var h_t="rc-util-locker-".concat(Date.now()),zSe=0;function g_t(e){var t=!!e,n=d.useState(function(){return zSe+=1,"".concat(h_t,"_").concat(zSe)}),r=Ce(n,1),i=r[0];Zn(function(){if(t){var o=zae(document.body).width,s=f_t();am(`
2025-03-02 17:53:04 +08:00
html body {
overflow-y: hidden;
`.concat(s?"width: calc(100% - ".concat(o,"px);"):"",`
2025-03-02 21:11:20 +08:00
}`),i)}else n7(i);return function(){n7(i)}},[t,i])}var p_t=!1;function m_t(e){return p_t}var BSe=function(t){return t===!1?!1:!Bs()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ly=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,s=o===void 0?!0:o,a=e.children,l=d.useState(n),c=Ce(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(s||n)&&f(n)},[n,s]);var g=d.useState(function(){return BSe(i)}),p=Ce(g,2),m=p[0],v=p[1];d.useEffect(function(){var M=BSe(i);v(M??null)});var C=d_t(h&&!m),y=Ce(C,2),b=y[0],S=y[1],w=m??b;g_t(r&&n&&Bs()&&(w===b||w===document.body));var x=null;if(a&&Cd(a)&&t){var E=a;x=E.ref}var R=Od(x,t);if(!h||!Bs()||m===void 0)return null;var O=w===!1||m_t(),T=a;return t&&(T=d.cloneElement(a,{ref:R})),d.createElement(QGe.Provider,{value:S},O?T:fo.createPortal(T,w))}),JGe=d.createContext({});function v_t(){var e=se({},Mx);return e.useId}var HSe=0,jSe=v_t();const iV=jSe?function(t){var n=jSe();return t||n}:function(t){var n=d.useState("ssr-id"),r=Ce(n,2),i=r[0],o=r[1];return d.useEffect(function(){var s=HSe;HSe+=1,o("rc_unique_".concat(s))},[]),t||i};function VSe(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function GSe(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 C_t(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=GSe(i),n.top+=GSe(i,!0),n}const y_t=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var b_t={width:0,height:0,overflow:"hidden",outline:"none"},S_t={outline:"none"},cpe=ce.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,s=e.ariaId,a=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,h=e.bodyStyle,g=e.bodyProps,p=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=e.styles,R=ce.useContext(JGe),O=R.panel,T=Od(C,O),M=d.useRef(),_=d.useRef();ce.useImperativeHandle(t,function(){return{focus:function(){var j;(j=M.current)===null||j===void 0||j.focus({preventScroll:!0})},changeActive:function(j){var W=document,G=W.activeElement;j&&G===_.current?M.current.focus({preventScroll:!0}):!j&&G===M.current&&_.current.focus({preventScroll:!0})}}});var F={};S!==void 0&&(F.width=S),w!==void 0&&(F.height=w);var D=a?ce.createElement("div",{className:we("".concat(n,"-footer"),x==null?void 0:x.footer),style:se({},E==null?void 0:E.footer)},a):null,k=o?ce.createElement("div",{className:we("".concat(n,"-header"),x==null?void 0:x.header),style:se({},E==null?void 0:E.header)},ce.createElement("div",{className:"".concat(n,"-title"),id:s},o)):null,L=d.useMemo(function(){return nn(l)==="object"&&l!==null?l:l?{closeIcon:c??ce.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),I=$o(L,!0),A=nn(l)==="object"&&l.disabled,N=l?ce.createElement("button",V({type:"button",onClick:u,"aria-label":"Close"},I,{className:"".concat(n,"-close"),disabled:A}),L.closeIcon):null,B=ce.createElement("div",{className:we("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},N,k,ce.createElement("div",V({className:we("".concat(n,"-body"),x==null?void 0:x.body),style:se(se({},h),E==null?void 0:E.body)},g),f),D);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?s:null,"aria-modal":"true",ref:T,style:se(se({},i),F),className:we(n,r),onMouseDown:m,onMouseUp:v},ce.createElement("div",{ref:M,tabIndex:0,style:S_t},ce.createElement(y_t,{shouldUpdate:y||b},p?p(B):B)),ce.createElement("div",{tabIndex:0,ref:_,style:b_t}))}),eWe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,s=e.visible,a=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,g=d.useRef(),p=d.useState(),m=Ce(p,2),v=m[0],C=m[1],y={};v&&(y.transformOrigin=v);function b(){v
2025-03-02 17:53:04 +08:00
${r},
${i} > li,
${n},
${o},
${s},
${a}
2025-03-02 21:11:20 +08:00
`]:Object.assign({},wAt(e))}}},TAt=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}},Ux=Yr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=yr(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[OAt(r)]},TAt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),IAt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:s="default"}=e,{getPrefixCls:a}=d.useContext(vn),l=a("skeleton",t),[c,u,f]=Ux(l),h=$i(e,["prefixCls","className"]),g=we(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:g},d.createElement(lV,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:s},h))))},MAt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:s="default"}=e,{getPrefixCls:a}=d.useContext(vn),l=a("skeleton",t),[c,u,f]=Ux(l),h=$i(e,["prefixCls"]),g=we(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:g},d.createElement(lV,Object.assign({prefixCls:`${l}-button`,size:s},h))))},PAt="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",_At=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:s}=d.useContext(vn),a=s("skeleton",t),[l,c,u]=Ux(a),f=we(a,`${a}-element`,{[`${a}-active`]:o},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:we(`${a}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${a}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:PAt,className:`${a}-image-path`})))))},AAt=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:s="default"}=e,{getPrefixCls:a}=d.useContext(vn),l=a("skeleton",t),[c,u,f]=Ux(l),h=$i(e,["prefixCls"]),g=we(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:g},d.createElement(lV,Object.assign({prefixCls:`${l}-input`,size:s},h))))},DAt=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:s}=e,{getPrefixCls:a}=d.useContext(vn),l=a("skeleton",t),[c,u,f]=Ux(l),h=we(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:we(`${l}-image`,n),style:i},s)))},LAt=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},FAt=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=ut(new Array(i)).map((s,a)=>d.createElement("li",{key:a,style:{width:LAt(a,e)}}));return d.createElement("ul",{className:we(t,n),style:r},o)},NAt=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.cre
2025-03-02 17:53:04 +08:00
${t}-body,
2025-03-02 21:11:20 +08:00
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ZAt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},JAt=e=>{const{componentCls:t}=e,n=fWe(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${Ne(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(ut(r))}}},gWe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return yr(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()})},pWe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ne(e.paddingMD)} ${Ne(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ne(e.padding)} ${Ne(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ne(e.paddingXS)} ${Ne(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ne(e.padding*2)} ${Ne(e.padding*2)} ${Ne(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),mWe=Yr("Modal",e=>{const t=gWe(e);return[QAt(t),ZAt(t),hWe(t),Wx(t,"zoom"),JAt(t)]},pWe,{unitless:{titleLineHeight:!0}});var eDt=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 Zae;const tDt=e=>{Zae={x:e.pageX,y:e.pageY},setTimeout(()=>{Zae=null},100)};bAt()&&document.documentElement.addEventListener("click",tDt,!0);const vWe=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=d.useContext(vn),s=q=>{const{onCancel:X}=e;X==null||X(q)},a=q=>{const{onOk:X}=e;X==null||X(q)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:h,centered:g,getContainer:p,focusTriggerAfterClose:m=!0,style:v,visible:C,width:y=520,footer:b,classNames:S,styles:w,children:x,loading:E}=e,R=eDt(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",l),T=r(),M=Oo(O),[_,F,D]=mWe(O,M),k=we(h,{[`${O}-centered`]:!!g,[`${O}-wrap-rtl`]:i==="rtl"}),L=b!==null&&!E?d.createElement(dWe,Object.assign({},e,{onOk:a,onCancel:s})):null,[I,A,N]=lWe(qz(e),qz(o),{closable:!0,closeIcon:d.createElement(Ug,{className:`${O}-close-icon`}),closeIconRender:q=>uWe(O,q)}),B=jAt(`.${O}-content`),[z,j]=y3("Modal",R.zIndex),[W,G]=d.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),K=d.useMemo(()=>{const q={};return G&&Object.keys(G).forEach(X=>{const Q=G[X];Q!==void 0&&(q[`--${O}-${X}-width`]=typeof Q=="number"?`${Q}px`:Q)}),q},[G]);return _(d.createElement(kC,{form:!0,space:!0},d.createElement(Uj.Provider,{value:j},d.createElement(oV,Object.assign({width:W},R,{zIndex:z,getContainer:p===void 0?n:p,prefixCls:O,rootClassName:we(F,u,D,M),footer:L,visible:f??C,mousePosition:(t=R.mousePosition)!==null&&t!==void 0?t:Zae,o
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},rDt=Hx(["Modal","confirm"],e=>{const t=gWe(e);return[nDt(t)]},pWe,{order:-1e3});var iDt=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 CWe(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:s,okCancel:a,footer:l,locale:c}=e,u=iDt(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(s){case"info":f=d.createElement(YI,null);break;case"success":f=d.createElement(Ay,null);break;case"error":f=d.createElement(nv,null);break;default:f=d.createElement(Vx,null)}const h=a??s==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[p]=ih("Modal"),m=c||p,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:g,cancelTextLocale:C,okTextLocale:v,mergedOkCancel:h},u),b=d.useMemo(()=>y,ut(Object.values(y))),S=d.createElement(d.Fragment,null,d.createElement(LSe,null),d.createElement(FSe,null)),w=e.title!==void 0&&e.title!==null,x=`${o}-body`;return d.createElement("div",{className:`${o}-body-wrapper`},d.createElement("div",{className:we(x,{[`${x}-has-title`]:w})},f,d.createElement("div",{className:`${o}-paragraph`},w&&d.createElement("span",{className:`${o}-title`},e.title),d.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(XGe,{value:b},d.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(S,{OkBtn:FSe,CancelBtn:LSe}):S)):l,d.createElement(rDt,{prefixCls:t}))}const oDt=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:s,rootPrefixCls:a,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,h=`${o}-confirm`,g=e.width||416,p=e.style||{},m=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,C=we(h,`${h}-${e.type}`,{[`${h}-rtl`]:i==="rtl"},e.className),[,y]=za(),b=d.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+Zge,[n,y]);return d.createElement(vWe,Object.assign({},e,{className:C,wrapClassName:we({[`${h}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:Cu(a||"","zoom",e.transitionName),maskTransitionName:Cu(a||"","fade",e.maskTransitionName),mask:m,maskClosable:v,style:p,styles:Object.assign({body:l,mask:r},f),width:g,zIndex:b,closable:c}),d.createElement(CWe,Object.assign({},e,{confirmPrefixCls:h})))},yWe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return d.createElement(Wg,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},d.createElement(oDt,Object.assign({},e)))},I8=[];let bWe="";function SWe(){return bWe}const sDt=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,s=BVe(),a=d.useContext(vn),l=SWe()||a.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),ce.createElement(yWe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:o??a.direction,locale:(n=(t=a.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:s,getContainer:u}))};function tM(e){const t=vGe(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function s(){for(var u,f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];if(h.some(v=>v==null?void 0:v.triggerCancel)){var m;(u=e.onCancel)===null||u===void 0||(m=u).call.apply(m,[e,()=>{}].concat(ut(h.slice(1))))}for(let v=0;v<I8.length;v++)if(I8[v]===l){I8.splice(v,1);break}o()}function a(u){clearTimeout(i),i=setTimeout(()=>{const f=t.getPrefixCls(void 0,SWe()),h=t.getIconPrefixCls(),g=t.getTheme(),p=ce.createElement(sDt,Ob
2025-03-02 17:53:04 +08:00
`,`\r
2025-03-02 21:11:20 +08:00
`].includes(bn)})},[k]),it=d.useContext(mpe)||{},at=it.maxCount,gt=it.rawValues,yt=function(Qt,Wn,$r){if(!(ue&&tle(at)&&(gt==null?void 0:gt.size)>=at)){var Yt=!0,Jt=Qt;O==null||O(null);var sr=MLt(Qt,k,tle(at)?at-gt.size:void 0),br=$r?null:sr;return v!=="combobox"&&br&&(Jt="",D==null||D(br),$e(!1),Yt=!1),F&&be!==Jt&&F(Jt,{source:Wn?"typing":"effect"}),Yt}},st=function(Qt){!Qt||!Qt.trim()||F(Qt,{source:"submit"})};d.useEffect(function(){!nt&&!ue&&v!=="combobox"&&yt("",!1,!1)},[nt]),d.useEffect(function(){Ct&&C&&ot(!1),C&&!ke.current&&Le(!1)},[C]);var Ze=AWe(),dt=Ce(Ze,2),At=dt[0],kt=dt[1],pn=d.useRef(!1),ln=function(Qt){var Wn=At(),$r=Qt.key,Yt=$r==="Enter";if(Yt&&(v!=="combobox"&&Qt.preventDefault(),nt||$e(!0)),kt(!!be),$r==="Backspace"&&!Wn&&ue&&!be&&u.length){for(var Jt=ut(u),sr=null,br=Jt.length-1;br>=0;br-=1){var Jr=Jt[br];if(!Jr.disabled){Jt.splice(br,1),sr=Jr;break}}sr&&f(Jt,{type:"remove",values:[sr]})}for(var oi=arguments.length,Br=new Array(oi>1?oi-1:0),Pi=1;Pi<oi;Pi++)Br[Pi-1]=arguments[Pi];if(nt&&(!Yt||!pn.current)){var Bn;(Bn=Fe.current)===null||Bn===void 0||Bn.onKeyDown.apply(Bn,[Qt].concat(Br))}Yt&&(pn.current=!0),ge==null||ge.apply(void 0,[Qt].concat(Br))},Lt=function(Qt){for(var Wn=arguments.length,$r=new Array(Wn>1?Wn-1:0),Yt=1;Yt<Wn;Yt++)$r[Yt-1]=arguments[Yt];if(nt){var Jt;(Jt=Fe.current)===null||Jt===void 0||Jt.onKeyUp.apply(Jt,[Qt].concat($r))}Qt.key==="Enter"&&(pn.current=!1),le==null||le.apply(void 0,[Qt].concat($r))},xt=function(Qt){var Wn=u.filter(function($r){return $r!==Qt});f(Wn,{type:"remove",values:[Qt]})},Rt=d.useRef(!1),Ft=function(){Le(!0),C||(J&&!Rt.current&&J.apply(void 0,arguments),ee.includes("focus")&&$e(!0)),Rt.current=!0},hn=function(){ke.current=!0,Le(!1,function(){Rt.current=!1,ke.current=!1,$e(!1)}),!C&&(be&&(v==="tags"?F(be,{source:"submit"}):v==="multiple"&&F("",{source:"blur"})),oe&&oe.apply(void 0,arguments))},Mt=[];d.useEffect(function(){return function(){Mt.forEach(function(bn){return clearTimeout(bn)}),Mt.splice(0,Mt.length)}},[]);var mt=function(Qt){var Wn,$r=Qt.target,Yt=(Wn=We.current)===null||Wn===void 0?void 0:Wn.getPopupElement();if(Yt&&Yt.contains($r)){var Jt=setTimeout(function(){var oi=Mt.indexOf(Jt);if(oi!==-1&&Mt.splice(oi,1),Me(),!De&&!Yt.contains(document.activeElement)){var Br;(Br=Ve.current)===null||Br===void 0||Br.focus()}});Mt.push(Jt)}for(var sr=arguments.length,br=new Array(sr>1?sr-1:0),Jr=1;Jr<sr;Jr++)br[Jr-1]=arguments[Jr];he==null||he.apply(void 0,[Qt].concat(br))},jt=d.useState({}),tn=Ce(jt,2),Cn=tn[1];function Ln(){Cn({})}var cn;Xe&&(cn=function(Qt){$e(Qt)}),jDt(function(){var bn;return[Ge.current,(bn=We.current)===null||bn===void 0?void 0:bn.getPopupElement()]},Te,$e,!!Xe);var Dt=d.useMemo(function(){return se(se({},e),{},{notFoundContent:p,open:nt,triggerOpen:Te,id:r,showSearch:ve,multiple:ue,toggleOpen:$e})},[e,p,Te,nt,r,ve,ue,$e]),sn=!!A||y,Sn;sn&&(Sn=d.createElement(dV,{className:we("".concat(i,"-arrow"),ie({},"".concat(i,"-arrow-loading"),y)),customizeIcon:A,customizeIconProps:{loading:y,searchValue:be,open:nt,focused:Re,showSearch:ve}}));var Tn=function(){var Qt;m==null||m(),(Qt=Ve.current)===null||Qt===void 0||Qt.focus(),f([],{type:"clear",values:u}),yt("",!1,!1)},Jn=BDt(i,Tn,u,L,N,C,be,v),Ar=Jn.allowClear,Vr=Jn.clearIcon,Ui=d.createElement(B,{ref:Fe}),Bi=we(i,o,ie(ie(ie(ie(ie(ie(ie(ie(ie(ie({},"".concat(i,"-focused"),Re),"".concat(i,"-multiple"),ue),"".concat(i,"-single"),!ue),"".concat(i,"-allow-clear"),L),"".concat(i,"-show-arrow"),sn),"".concat(i,"-disabled"),C),"".concat(i,"-loading"),y),"".concat(i,"-open"),nt),"".concat(i,"-customize-input"),je),"".concat(i,"-show-search"),ve)),Gr=d.createElement(TLt,{ref:We,disabled:C,prefixCls:i,visible:Te,popupElement:Ui,animation:z,transitionName:j,dropdownStyle:W,dropdownClassName:G,direction:l,dropdownMatchSelectWidth:K,dropdownRender:q,dropdownAlign:X,placement:Q,builtinPlacements:te,getPopupContainer:ne,empty:h,getTriggerDOMNode:function(Qt){return Ue.current||Qt},onPopupVisibleChange:cn,onPopupMouseEnter:Ln},Xe?d.cloneElement(Xe,{ref:ft}):d.createElement(dLt,V({},e,{domRef:Ue,prefixCls:i,inp
2025-03-02 17:53:04 +08:00
${i}${a}bottomLeft,
${o}${a}bottomLeft
2025-03-02 21:11:20 +08:00
`]:{animationName:npe},[`
2025-03-02 17:53:04 +08:00
${i}${a}topLeft,
${o}${a}topLeft,
${i}${a}topRight,
${o}${a}topRight
2025-03-02 21:11:20 +08:00
`]:{animationName:ipe},[`${s}${a}bottomLeft`]:{animationName:rpe},[`
2025-03-02 17:53:04 +08:00
${s}${a}topLeft,
${s}${a}topRight
2025-03-02 21:11:20 +08:00
`]:{animationName:ope},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Iwe(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"},Kf),"&-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({},Iwe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Y4(e,"slide-up"),Y4(e,"slide-down"),Uz(e,"move-up"),Uz(e,"move-down")]},SFt=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:s,itemHeight:Ne(t),itemLineHeight:Ne(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},wFt=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},xFt=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:a,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:a,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({},C3()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},EFt=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,s=wFt(e),a=t?`${n}-${t}`:"",l=SFt(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},xFt(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:`${Ne(r)} 0`,lineHeight:Ne(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Ne(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ne(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
2025-03-02 17:53:04 +08:00
${n}-prefix + ${n}-selection-wrap
2025-03-02 21:11:20 +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(s).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:Ne(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 Qee(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-03-02 17:53:04 +08:00
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
2025-03-02 21:11:20 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[EFt(e,t),i]}const RFt=e=>{const{componentCls:t}=e,n=yr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=yr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Qee(e),Qee(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Qee(r,"lg")]};function Zee(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},ii(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-03-02 17:53:04 +08:00
${n}-selection-item,
${n}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:Ne(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"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
2025-03-02 21:11:20 +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 ${Ne(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:Ne(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 ${Ne(r)}`,"&:after":{display:"none"}}}}}}}function $Ft(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Zee(e),Zee(yr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Ne(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
2025-03-02 17:53:04 +08:00
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
2025-03-02 21:11:20 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Zee(yr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OFt=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:s,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:g,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:C,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,w=a*2,x=r*2,E=Math.min(i-w,i-x),R=Math.min(o-w,o-x),O=Math.min(s-w,s-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:g,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:s,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:R,multipleItemHeightLG:O,multipleSelectorBgDisabled:v,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:a}},qWe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Ne(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 ${Ne(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Mwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qWe(e,t))}),TFt=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qWe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Mwe(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Mwe(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:`${Ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),KWe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Ne(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}}}},Pwe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},KWe(e,t))}),IFt=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},KWe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Pwe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Pwe(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:`${Ne(e.lineW
2025-03-02 17:53:04 +08:00
> ${t}-item-active,
2025-03-02 21:11:20 +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"}}}},Akt=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(${Ne(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ne(n)})`}}}}},Hwe=e=>Object.assign({},Om(e)),jwe=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:s,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:g,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:C,itemHoverColor:y,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:R,dangerItemActiveBg:O,dangerItemSelectedBg:T,popupBg:M,itemHoverBg:_,itemActiveBg:F,menuSubMenuBg:D,horizontalItemSelectedColor:k,horizontalItemSelectedBg:L,horizontalItemBorderRadius:I,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},Hwe(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Hwe(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:_},"&:active":{backgroundColor:F}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:F}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${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:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${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:I,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Ne(u)} solid transparent`,transition:`border-color ${g} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:u,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Ne(h)} ${b} ${S}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ne(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} ${p}`,`opacity ${C} ${p}`].join(",")}}}}}},Vwe=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:s,itemMarginBlock:a,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Ne(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:a,width:l},[`> ${t}-item,
2025-03-02 17:53:04 +08:00
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Ne(n)},[`${t}-item-group-list ${t}-submenu-title,
2025-03-02 21:11:20 +08:00
${t}-submenu-title`]:{paddingInlineEnd:u}}},Dkt=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:s,motionEaseOut:a,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:h,paddingXS:g,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:v}=e,C={height:r,lineHeight:Ne(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Vwe(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Vwe(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${Ne(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${f} ${a}`].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:u,textAlign:"center"}}},[`> ${t}-item,
2025-03-02 17:53:04 +08:00
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ne(e.calc(v).div(2).equal())} - ${Ne(c)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
2025-03-02 21:11:20 +08:00
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Ne(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({},Kf),{paddingInline:g})}}]},Gwe=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:s,iconSize:a,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, ${s}`]:{minWidth:a,fontSize:a,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({},C3()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Wwe=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:s}=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(${Ne(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ne(s)})`}}}}},Lkt=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:s,paddingXS:a,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:m,lineType:v,groupTitleLineHeight:C,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},$m()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii(e)),$m()),{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:`${Ne(a)} ${Ne(l)}`,fontSize:y,lineHeight:C,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${s}`,`padding ${i} ${s}`].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:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Gwe(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(${Ne(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Ne(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Ne(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ne(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ne(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Fkt=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:s,colorErrorBg:a,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:h,lineWidth:g,lineWidthBold:p,controlItemBgActive:m,colorBgTextHover:v,controlHeightLG:C,lineHeight:y,colorBgElevated:b,marginXXS:S,padding:w,fontSize:x,controlHeightSM:E,fontSizeLG:R,colorTextLightSolid:O,colorErrorHover:T}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,F=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new kr(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:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:g,activeBarBorderWidth:_,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:F,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:E-x,collapsedIconSize:R,groupTitleFontSize:x,darkItemDisabledColor:new kr(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:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:M?`calc(100% + ${_}px)`:`calc(100% - ${F*2}px)`}},Nkt=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:s,fontSize:a,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:g,darkDangerItemSelectedBg:p,darkItemHoverBg:m,darkGroupTitleColor:v,darkItemHoverColor:C,darkItemDisabledColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:x,darkPopupBg:E}=i,R=i.calc(a).div(7).mul(5).equal(),O=yr(i,{menuArrowSize:R,menuHorizontalHeight:i.calc(s).mul(1.15).equal(),menuArrowOffset:i.calc(R).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:x}),T=yr(O,{itemColor:l,itemHoverColor:C,groupTitleColor:v,itemSelectedColor:h,itemBg:u,popupBg:E,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:
2025-03-02 17:53:04 +08:00
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
2025-03-02 21:11:20 +08:00
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:npe},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
2025-03-02 17:53:04 +08:00
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
2025-03-02 21:11:20 +08:00
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:ipe},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
2025-03-02 17:53:04 +08:00
&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
2025-03-02 21:11:20 +08:00
&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:rpe},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
2025-03-02 17:53:04 +08:00
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
2025-03-02 21:11:20 +08:00
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:ope}}},bpe(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({},ii(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Yf(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Ne(c)} ${Ne(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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:`${Ne(c)} ${Ne(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Yf(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:`${Ne(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:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Ne(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).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}})})},[Y4(e,"slide-up"),Y4(e,"slide-down"),Uz(e,"move-up"),Uz(e,"move-down"),Wx(e,"zoom-big")]]},Vkt=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},SV({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ype(e)),Gkt=Yr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=yr(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[jkt(o),Hkt(o)]},Vkt,{resetStyle:!1}),RV=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:s,disabled:a,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:h,open:g,onOpenChange:p,visible:m,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:b=!0,placement:S="",overlay:w,transitionName:x}=e,{getPopupContainer:E,getPrefixCls:R,direction:O,dropdown:T}=d.useContext(vn);_y();const M=d.useMemo(()=>{const J=R();return x!==void 0?x:S.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[R,S,x]),_=d.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:O==="rtl"?"bottomRight":"bottomLeft",[S,O]),F=R("dropdown",i),D=Oo(F),[k,L,I]=Gkt(F,D),[,A]=za(),N=d.Children.only(DNt(o)?d.createElement("span",null,o):o),B=js(N,{className:we(`${F}-trigger`,{[`${F}-rtl`]:O==="rtl"},N.props.className),disabled:(t=N.props.disabled)!==null&&t!==void 0?t:a}),z=a?[]:s,j=!!(z!=null&&z.includes("contextMenu")),
&:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},Om(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} ${a}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${s}`},[`${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} ${a}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${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:g,paddingInlineEnd:g}})}},rBt=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:s,motionDurationSlow:a,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:h,controlHeightLG:g,controlHeightSM:p,paddingXS:m,borderRadius:v,borderRadiusSM:C,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:w,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:R,colorPrimary:O,colorPrimaryHover:T,colorPrimaryActive:M,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:F,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:u,lineHeight:Ne(k(n).sub(k(i).mul(2)).equal()),background:f,border:`${Ne(i)} ${o} ${s}`,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:s,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ne(i)} ${o} ${s}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:g,fontSize:h,lineHeight:Ne(k(g).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:k(m).sub(i).equal(),paddingBlock:0,lineHeight:Ne(k(p).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({},Om(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:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:_,borderColor:_,"&:h
2025-03-02 17:53:04 +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-03-02 21:11:20 +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}}}})}},hBt=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,s=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({},ii(e)),aM(e)),bqe(e)),Eqe(e)),wqe(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},gBt=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 ${Ne(e.inputAffixPadding)}`}}}},pBt=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:s,iconCls:a}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},aM(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}}}),gBt(e)),{[`${a}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:s}}}),[c]:{[`${a}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},mBt=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ii(e)),Tqe(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}}},Sqe(e)),Rqe(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}}})})}},vBt=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-03-02 17:53:04 +08:00
> ${t},
2025-03-02 21:11:20 +08:00
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},CBt=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-03-02 17:53:04 +08:00
&-allow-clear > ${t},
&-affix-wrapper${r}-has-feedback ${t}
2025-03-02 21:11:20 +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}}}}}},yBt=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Lpe=Yr("Input",e=>{const t=yr(e,_V(e));return[hBt(t),CBt(t),pBt(t),mBt(t),vBt(t),yBt(t),rV(t)]},AV,{resetFont:!1});var bBt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},SBt=function(t,n){return d.createElement(Y,V({},t,{ref:n,icon:bBt}))},Zf=d.forwardRef(SBt);const LV=d.createContext(null);var wBt=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,s=o===void 0?{}:o,a=s.size,l=s.align,c=l===void 0?"center":l,u=d.useState(),f=Ce(u,2),h=f[0],g=f[1],p=d.useRef(),m=ce.useCallback(function(C){return typeof a=="function"?a(C):typeof a=="number"?a:C},[a]);function v(){Rr.cancel(p.current)}return d.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(),p.current=Rr(function(){g(C)}),v},[n,r,i,c,m]),{style:h}},t7e={width:0,height:0,left:0,top:0};function xBt(e,t,n){return d.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||t7e,s=o.left+o.width,a=0;a<e.length;a+=1){var l=e[a].key,c=t.get(l);if(!c){var u;c=t.get((u=e[a-1])===null||u===void 0?void 0:u.key)||t7e}var f=i.get(l)||se({},c);f.right=s-f.left-f.width,i.set(l,f)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function n7e(e,t){var n=d.useRef(e),r=d.useState({}),i=Ce(r,2),o=i[1];function s(a){var l=typeof a=="function"?a(n.current):a;l!==n.current&&t(l,n.current),n.current=l,o({})}return[n.current,s]}var EBt=.1,r7e=.01,mN=20,i7e=Math.pow(.995,mN);function RBt(e,t){var n=d.useState(),r=Ce(n,2),i=r[0],o=r[1],s=d.useState(0),a=Ce(s,2),l=a[0],c=a[1],u=d.useState(0),f=Ce(u,2),h=f[0],g=f[1],p=d.useState(),m=Ce(p,2),v=m[0],C=m[1],y=d.useRef();function b(O){var T=O.touches[0],M=T.screenX,_=T.screenY;o({x:M,y:_}),window.clearInterval(y.current)}function S(O){if(i){var T=O.touches[0],M=T.screenX,_=T.screenY;o({x:M,y:_});var F=M-i.x,D=_-i.y;t(F,D);var k=Date.now();c(k),g(k-l),C({x:F,y:D})}}function w(){if(i&&(o(null),C(null),v)){var O=v.x/h,T=v.y/h,M=Math.abs(O),_=Math.abs(T);if(Math.max(M,_)<EBt)return;var F=O,D=T;y.current=window.setInterval(function(){if(Math.abs(F)<r7e&&Math.abs(D)<r7e){window.clearInterval(y.current);return}F*=i7e,D*=i7e,t(F*mN,D*mN)},mN)}}var x=d.useRef();function E(O){var T=O.deltaX,M=O.deltaY,_=0,F=Math.abs(T),D=Math.abs(M);F===D?_=x.current==="x"?T:M:F>D?(_=T,x.current="x"):(_=M,x.current="y"),t(-_,-_)&&O.preventDefault()}var R=d.useRef(null);R.current={onTouchStart:b,onTouchMove:S,onTouchEnd:w,onWheel:E},d.useEffect(function(){function O(F){R.current.onTouchStart(F)}function T(F){R.current.onTouchMove(F)}function M(F){R.current.onTouchEnd(F)}function _(F){R.current.onWheel(F)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListe
2025-03-02 17:53:04 +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-03-02 21:11:20 +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:a(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ne(a(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ne(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:a(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},XBt=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 ${Ne(e.borderRadius)} ${Ne(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Ne(e.borderRadius)} ${Ne(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ne(e.borderRadius)} ${Ne(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ne(e.borderRadius)} 0 0 ${Ne(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},QBt=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:s,itemSelectedColor:a,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color: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}},Yf(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:a,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},Om(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-03-02 17:53:04 +08:00
> ${n}-typography,
> ${n}-typography-edit-content
2025-03-02 21:11:20 +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:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},sHt=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
2025-03-02 17:53:04 +08:00
${Ne(i)} 0 0 0 ${n},
0 ${Ne(i)} 0 0 ${n},
${Ne(i)} ${Ne(i)} 0 0 ${n},
${Ne(i)} 0 0 0 ${n} inset,
0 ${Ne(i)} 0 0 ${n} inset;
2025-03-02 21:11:20 +08:00
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},aHt=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${Ne(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)}`},$m()),{"& > 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:Ne(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Ne(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ne(e.lineWidth)} ${e.lineType} ${o}`}}})},lHt=e=>Object.assign(Object.assign({margin:`${Ne(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},$m()),{"&-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},Kf),"&-description":{color:e.colorTextDescription}}),cHt=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Ne(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Ne(e.padding)} ${Ne(i)}`}}},uHt=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},dHt=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:s,extraColor:a}=e;return{[t]:Object.assign(Object.assign({},ii(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:oHt(e),[`${t}-extra`]:{marginInlineStart:"auto",color:a,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:s,borderRadius:`0 0 ${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)}`},$m()),[`${t}-grid`]:sHt(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ne(e.borderRadiusLG)} ${Ne(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:aHt(e),[`${t}-meta`]:lHt(e)}),[`${t}-bordered`]:{border:`${Ne(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:`${Ne(e.borderRadiusLG)} ${Ne(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`]:cHt(e),[`${t}-loading`]:uHt(e),[`${t}-rtl`]:{direction:"rtl"}}},fHt=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Ne(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"}}}}},hHt=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPadding
2025-03-02 17:53:04 +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-03-02 21:11:20 +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 Vpe(e,t){const n=yr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Fjt(n)]}const iKe=Yr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Vpe(n,e)]}),oKe=ce.createContext(null);var Njt=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 kjt=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:s,indeterminate:a=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:h}=e,g=Njt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:m,checkbox:v}=d.useContext(vn),C=d.useContext(oKe),{isFormItemInput:y}=d.useContext(Na),b=d.useContext(yc),S=(n=(C==null?void 0:C.disabled)||h)!==null&&n!==void 0?n:b,w=d.useRef(g.value),x=d.useRef(null),E=Ws(t,x);d.useEffect(()=>{C==null||C.registerValue(g.value)},[]),d.useEffect(()=>{if(!f)return g.value!==w.current&&(C==null||C.cancelValue(w.current),C==null||C.registerValue(g.value),w.current=g.value),()=>C==null?void 0:C.cancelValue(g.value)},[g.value]),d.useEffect(()=>{var A;!((A=x.current)===null||A===void 0)&&A.input&&(x.current.input.indeterminate=a)},[a]);const R=p("checkbox",r),O=Oo(R),[T,M,_]=iKe(R,O),F=Object.assign({},g);C&&!f&&(F.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),C.toggleOption&&C.toggleOption({label:s,value:g.value})},F.name=C.name,F.checked=C.value.includes(g.value));const D=we(`${R}-wrapper`,{[`${R}-rtl`]:m==="rtl",[`${R}-wrapper-checked`]:F.checked,[`${R}-wrapper-disabled`]:S,[`${R}-wrapper-in-form-item`]:y},v==null?void 0:v.className,i,o,_,O,M),k=we({[`${R}-indeterminate`]:a},Kj,M),[L,I]=Cqe(F.onClick);return T(d.createElement(QI,{component:"Checkbox",disabled:S},d.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:L},d.createElement(tB,Object.assign({},F,{onClick:I,prefixCls:R,className:k,disabled:S,ref:E})),s!==void 0&&d.createElement("span",null,s))))},sKe=d.forwardRef(kjt);var zjt=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 Bjt=d.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:s,rootClassName:a,style:l,onChange:c}=e,u=zjt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=d.useContext(vn),[g,p]=d.useState(u.value||n||[]),[m,v]=d.useState([]);d.useEffect(()=>{"value"in u&&p(u.value||[])},[u.value]);const C=d.useMemo(()=>i.map(k=>typeof k=="string"||typeof k=="numbe
2025-03-02 17:53:04 +08:00
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ne(n)} ${r} ${T}`,transition:`all ${m} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
2025-03-02 21:11:20 +08:00
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},C3()),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},E7e(e,"lg")),E7e(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`]:{color:x}})}]},RVt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:s,borderRadiusSM:a,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Ne(n)} 0`}},aM(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:s,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Ne(u)} 0`}},"&-sm":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Ne(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()}})}},$Vt=Yr("InputNumber",e=>{const t=yr(e,_V(e));return[EVt(t),RVt(t),rV(t)]},xVt,{unitless:{handleOpacity:!0}});var OVt=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 hKe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(vn),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:s,size:a,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:g,bordered:p,readOnly:m,status:v,controls:C,variant:y}=e,b=OVt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=Oo(S),[x,E,R]=$Vt(S,w),{compactSize:O,compactItemClassnames:T}=Dy(S,r);let M=d.createElement(lKe,{className:`${S}-handler-up-inner`}),_=d.createElement(yV,{className:`${S}-handler-down-inner`});const F=typeof C=="boolean"?C:void 0;typeof C=="object"&&(M=typeof C.upIcon>"u"?M:d.createElement("span",{className:`${S}-handler-up-inner`},C.upIcon),_=typeof C.downIcon>"u"?_:d.createElement("span",{className:`${S}-handler-down-inner`},C.downIcon));const{hasFeedback:D,status:k,isFormItemInput:L,feedbackIcon:I}=d.useContext(Na),A=ky(k,v),N=fl(Q=>{var te;return(te=a??O)!==null&&te!==void 0?te:Q}),B=d.useContext(yc),z=l??B,[j,W]=rM("inputNumber",y,p),G=D&&d.createElement(d.Fragment,null,I),K=we({[`${S}-lg`]:N==="large",[`${S}-sm`]:N==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:L},E),q=`${S}-group`,X=d.createElement(fKe,Object.assign({ref:i,disabled:z,className:we(R,w,o,s,T),upHandler:M,downHandler:_,prefixCls:S,readOnly:m,controls:F,prefix:h,suffix:G||g,addonBefore:u&&d.createElement(kC,{form:!0,space:!0},u),addonAfter:f&&d.createElement(kC,{form:!0,space:!0},f),classNames:{input:K,variant:we({[`${S}-${j}`]:W},Z4(S,A,D)),affixWrapper:we({[`${S}-affix-wrapper-sm`]:N==="small",[`${S}-affix-wrapper-lg`]:N==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:C===!1},E),wrapper:we({[`${q}-rtl`]:r==="rtl"},E),groupWrapper:we({[`${S}-group-wrapper-sm`]:N==="small",[`${S}-group-wrapper-lg`]:N==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${j}`]:W},Z4(`${S}-group-wrapper`,A,D),E)}},b));return x(X)}),gKe=hKe,TVt=e=>d.createElement(Wg,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.creat
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`,YVt=["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"],lte={},Du;function XVt(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&&lte[n])return lte[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")),s=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),a=YVt.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:a,paddingSize:o,borderSize:s,boxSizing:i};return t&&n&&(lte[n]=l),l}function QVt(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;Du||(Du=document.createElement("textarea"),Du.setAttribute("tab-index","-1"),Du.setAttribute("aria-hidden","true"),Du.setAttribute("name","hiddenTextarea"),document.body.appendChild(Du)),e.getAttribute("wrap")?Du.setAttribute("wrap",e.getAttribute("wrap")):Du.removeAttribute("wrap");var i=XVt(e,t),o=i.paddingSize,s=i.borderSize,a=i.boxSizing,l=i.sizingStyle;Du.setAttribute("style","".concat(l,";").concat(KVt)),Du.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,h=Du.scrollHeight;if(a==="border-box"?h+=s:a==="content-box"&&(h-=o),n!==null||r!==null){Du.value=" ";var g=Du.scrollHeight-o;n!==null&&(c=g*n,a==="border-box"&&(c=c+o+s),h=Math.max(c,h)),r!==null&&(u=g*r,a==="border-box"&&(u=u+o+s),f=h>u?"":"hidden",h=Math.min(u,h))}var p={height:h,overflowY:f,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var ZVt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],cte=0,ute=1,dte=2,CKe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,s=n.autoSize,a=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var h=on(n,ZVt),g=ir(i,{value:o,postState:function(G){return G??""}}),p=Ce(g,2),m=p[0],v=p[1],C=function(G){v(G.target.value),f==null||f(G)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var b=d.useMemo(function(){return s&&nn(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),S=Ce(b,2),w=S[0],x=S[1],E=!!s,R=function(){try{if(document.activeElement===y.current){var G=y.current,K=G.selectionStart,q=G.selectionEnd,X=G.scrollTop;y.current.setSelectionRange(K,q),y.current.scrollTop=X}}catch{}},O=d.useState(dte),T=Ce(O,2),M=T[0],_=T[1],F=d.useState(),D=Ce(F,2),k=D[0],L=D[1],I=function(){_(cte)};Zn(function(){E&&I()},[o,w,x,E]),Zn(function(){if(M===cte)_(ute);else if(M===ute){var W=QVt(y.current,!1,w,x);_(dte),L(W)}else R()},[M]);var A=d.useRef(),N=function(){Rr.cancel(A.current)},B=function(G){M===dte&&(a==null||a(G),s&&(N(),A.current=Rr(function(){I()})))};d.useEffect(function(){return N},[]);var z=E?k:null,j=se(se({},c),z);return(M===cte||M===ute)&&(j.overflowY="hidden",j.overflowX="hidden"),d.createElement(oa,{onResize:B,disabled:!(s||a)},d.createElement("textarea",V({},h,{ref:y,style:j,className:we(r,l,ie({},"".concat(r,"-disabled"),u)),disabled:u,value:m,onChange:C})))}),JVt=["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"],Kpe=ce.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,s=e.onBlur,a=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,g=e.prefixCls,p=g===void 0?"rc-textarea":g,m=e.show
2025-03-02 17:53:04 +08:00
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
2025-03-02 21:11:20 +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)"}}}}},kGt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ne(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 ${Ne(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),A7e=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},zGt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ii(e)),kGt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},A7e(e,e.controlHeightSM)),"&-large":Object.assign({},A7e(e,e.controlHeightLG))})}},BGt=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:s,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},ii(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:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,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:u,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:spe,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},D7e=(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"}}}}},HGt=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"}}}}},ig=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$Ke=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ig(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},jGt=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-03-02 17:53:04 +08:00
${r}-col-24${n}-label,
2025-03-02 21:11:20 +08:00
${r}-col-xl-24${n}-label`]:ig(e)}},[`@media (max-width: ${Ne(e.screenXSMax)})`]:[$Ke(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ig(e)}}}],[`@media (max-width: ${Ne(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ig(e)}}},[`@media (max-width: ${Ne(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ig(e)}}},[`@media (max-width: ${Ne(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ig(e)}}}}},VGt=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-03-02 17:53:04 +08:00
${n}-col-24${t}-label,
2025-03-02 21:11:20 +08:00
${n}-col-xl-24${t}-label`]:ig(e),[`@media (max-width: ${Ne(e.screenXSMax)})`]:[$Ke(e),{[t]:{[`${n}-col-xs-24${t}-label`]:ig(e)}}],[`@media (max-width: ${Ne(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:ig(e)}},[`@media (max-width: ${Ne(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:ig(e)}},[`@media (max-width: ${Ne(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:ig(e)}}}},GGt=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}),OKe=(e,t)=>yr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Qpe=Yr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=OKe(e,n);return[zGt(r),BGt(r),NGt(r),D7e(r,r.componentCls),D7e(r,r.formItemCls),HGt(r),jGt(r),VGt(r),ZI(r),spe]},GGt,{order:-1e3}),L7e=[];function fte(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 TKe=e=>{let{help:t,helpStatus:n,errors:r=L7e,warnings:i=L7e,className:o,fieldId:s,onVisibleChanged:a}=e;const{prefixCls:l}=d.useContext(gpe),c=`${l}-item-explain`,u=Oo(l),[f,h,g]=Qpe(l,u),p=d.useMemo(()=>TT(l),[l]),m=aB(r),v=aB(i),C=d.useMemo(()=>t!=null?[fte(t,"help",n)]:[].concat(ut(m.map((S,w)=>fte(S,"error","error",w))),ut(v.map((S,w)=>fte(S,"warning","warning",w)))),[t,n,m,v]),y=d.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 s&&(b.id=`${s}_help`),f(d.createElement(Hs,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:a},S=>{const{className:w,style:x}=S;return d.createElement("div",Object.assign({},b,{className:we(c,w,g,u,o,h),style:x,role:"alert"}),d.createElement(Wj,Object.assign({keys:y},TT(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:R,error:O,errorStatus:T,className:M,style:_}=E;return d.createElement("div",{key:R,className:we(M,{[`${c}-${T}`]:T}),style:_},O)}))}))},WGt=["parentNode"],UGt="form_item";function Y$(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function IKe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:WGt.includes(n)?`${UGt}_${n}`:n}function MKe(e,t,n,r,i,o){let s=r;return o!==void 0?s=o:n.validating?s="validating":e.length?s="error":t.length?s="warning":(n.touched||i&&n.validated)&&(s="success"),s}function F7e(e){return Y$(e).join("_")}function N7e(e,t){const n=t.getFieldInstance(e),r=Oge(n);if(r)return r;const i=IKe(Y$(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function F0(e){const[t]=aV(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const s=F7e(i);o?n.current[s]=o:delete n.current[s]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=N7e(i,r);s&&$Ge(s,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const s=N7e(i,r);s&&((o=s.focus)===null||o===void 0||o.call(s))},getFieldInstance:i=>{const o=F7e(i);return n.current[o]}}),[e,t]);return[r]}var qGt=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 KGt=(e,t)=>{const n=d.useContext(yc),{getPrefixCls:r,direction:i,form:o}=d.useContext(vn),{prefixCls:s,className:a,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:g,labelWrap:p,labelCol:m,wrapperCol:v,hideRequiredMark:C,layout:y="horizontal",scrollToFirstError:b,requiredMark:S,onFinishFailed:w,name:x,style:E,feedbackIcons:R,variant:O}=e,T=qGt(e,["prefixCls","className","rootClassName","size","di
2025-03-02 17:53:04 +08:00
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
2025-03-02 21:11:20 +08:00
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Ne(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Ne(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Ne(e.itemSizeSM),input:Object.assign(Object.assign({},Dpe(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},yUt=e=>{const{componentCls:t}=e;return{[`
2025-03-02 17:53:04 +08:00
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
2025-03-02 21:11:20 +08:00
`]:{height:e.itemSizeSM,lineHeight:Ne(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:Ne(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Ne(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Ne(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:`${Ne(e.inputOutlineOffset)} 0 ${Ne(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},bUt=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-03-02 17:53:04 +08:00
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
2025-03-02 21:11:20 +08:00
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Ne(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:`${Ne(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:Ne(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},aM(e)),Ape(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},DV(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},SUt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Ne(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ne(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}}}}},wUt=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ii(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:Ne(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),SUt(e)),bUt(e)),yUt(e)),CUt(e)),vUt(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"}}},xUt=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Yf(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Om(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Om(e))}}}},qKe=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(a==="round"?y:100,",").concat(C),S="0 0 100 ".concat(l),w=0;return d.createElement("svg",V({className:we("".concat(o,"-line"),r),viewBox:S,preserveAspectRatio:"none",style:c},g),d.createElement("path",{className:"".concat(o,"-line-trail"),d:b,strokeLinecap:a,stroke:u,strokeWidth:f||l,fillOpacity:"0"}),p.map(function(x,E){var R=1;switch(a){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"},T=m[E]||m[m.length-1];return w+=x,d.createElement("path",{key:E,className:"".concat(o,"-line-path"),d:b,strokeLinecap:a,stroke:T,strokeWidth:l,fillOpacity:"0",ref:function(_){v[E]=_},style:O})}))},X7e=0,pqt=Bs();function mqt(){var e;return pqt?(e=X7e,X7e+=1):e="TEST_OR_SSR",e}const vqt=function(e){var t=d.useState(),n=Ce(t,2),r=n[0],i=n[1];return d.useEffect(function(){i("rc_progress_".concat(mqt()))},[]),e||r};var Q7e=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function Z7e(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 Cqt=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,s=e.style,a=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,h=r&&nn(r)==="object",g=h?"#FFF":void 0,p=u/2,m=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:p,cy:p,stroke:g,strokeLinecap:l,strokeWidth:c,opacity:a===0?0:1,style:s,ref:t});if(!h)return m;var v="".concat(i,"-conic"),C=f?"".concat(180+f/2,"deg"):"0deg",y=Z7e(r,(360-f)/360),b=Z7e(r,1),S="conic-gradient(from ".concat(C,", ").concat(y.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},m),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(Q7e,{bg:w},d.createElement(Q7e,{bg:S}))))}),l$=100,gte=function(t,n,r,i,o,s,a,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-s)/360),g=s===0?0:{bottom:0,top:180,left:90,right:-90}[a],p=(100-i)/100*n;c==="round"&&i!==100&&(p+=u/2,p>=n&&(p=n-.01));var m=l$/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:p+f,transform:"rotate(".concat(o+h+g,"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}},yqt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function J7e(e){var t=e??[];return Array.isArray(t)?t:[t]}var Jpe=function(t){var n=se(se({},nYe),t),r=n.id,i=n.prefixCls,o=n.steps,s=n.strokeWidth,a=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,h=n.strokeLinecap,g=n.style,p=n.className,m=n.strokeColor,v=n.percent,C=on(n,yqt),y=l$/2,b=vqt(r),S="".concat(b,"-gradient"),w=y-s/2,x=Math.PI*2*w,E=c>0?90+c/2:-90,R=x*((360-c)/360),O=nn(o)==="object"?o:{count:o,gap:2},T=O.count,M=O.gap,_=J7e(v),F=J7e(m),D=F.find(function(z){return z&&nn(z)==="object"}),k=D&&nn(D)==="object",L=k?"butt":h,I=gte(x,R,0,100,E,c,u,f,L,s),A=rYe(),N=function(){var j=0;return _.map(function(W,G){var K=F[G]||F[F.length-1],q=gte(x,R,j,W,E,c,u,K,L,s);return j+=W,d.createElement(Cqt,{key:G,color:K,ptg:W,radius:w,prefixCls:i,gradientId:S,style:q,strokeLinecap:L,strokeWidth:s,gapDegree:c,ref:function(Q){A[G]=Q},size:l$})}).reverse()},B=function(){var j=Math.round(T*(_[0]/100)),W=100/T,G=0;return new Array(T).fill(null).map(function(K,q){var X=q<=j-1?F[0]:f,Q=X&&nn(X)==="object"?"url(#".concat(S,")"):void 0,te=gte(x,R,G,W,E,c,u,X,"butt",s,M);return G+=(R-te.strokeDashoffset+M)*100/R,d.createElement("circle",{key:q,className:""
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return s=c.done,c},e:function(c){a=!0,o=c},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw o}}}}var Xx,dM;function Qc(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 w1(e,t){return(e>>>t&1)!=0}function Lu(e){if(!e)throw new Error("Assertion error")}var Xp=function(){function e(t,n){qr(this,e),ie(this,"modeBits",void 0),ie(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}();Xx=Xp;ie(Xp,"NUMERIC",new Xx(1,[10,12,14]));ie(Xp,"ALPHANUMERIC",new Xx(2,[9,11,13]));ie(Xp,"BYTE",new Xx(4,[8,16,16]));ie(Xp,"KANJI",new Xx(8,[8,10,12]));ie(Xp,"ECI",new Xx(7,[0,0,0]));var Af=Kr(function e(t,n){qr(this,e),ie(this,"ordinal",void 0),ie(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});dM=Af;ie(Af,"LOW",new dM(0,1));ie(Af,"MEDIUM",new dM(1,0));ie(Af,"QUARTILE",new dM(2,3));ie(Af,"HIGH",new dM(3,2));var aC=function(){function e(t,n,r){if(qr(this,e),ie(this,"mode",void 0),ie(this,"numChars",void 0),ie(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=A8(n),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;Qc(s,8,r)}}catch(a){i.e(a)}finally{i.f()}return new e(Xp.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);Qc(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(Xp.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)),Qc(o,11,r)}return i<n.length&&Qc(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(Xp.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)Qc(n,8,r);else if(n<16384)Qc(2,2,r),Qc(n,14,r);else if(n<1e6)Qc(6,3,r),Qc(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Xp.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=A8(n),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,l=a.mode.numCharCountBits(r);if(a.numChars>=1<<l)return 1/0;i+=4+l+a.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}();ie(aC,"NUMERIC_REGEX",/^[0-9]*$/);ie(aC,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);ie(aC,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var ov=function(){function e(t,n,r,i){qr(this,e),ie(this,"size",void 0),ie(this,"mask",void 0),ie(this,"modules",[]),ie(this,"isFunction",[]),ie(this,"version",void 0),ie(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 s=[],a=0;a<this.size;a++)s.push(!1);for(var l=0;l<this.size;l++)this.modules.push(s.slice()),this.isFunction.push(s.s
2025-03-02 17:53:04 +08:00
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
2025-03-02 21:11:20 +08:00
`]=WMn(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},qMn=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Wge(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},KMn=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:ET[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}}),YMn=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 - ${Ne(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"}}}},XMn=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),QMn=()=>({"\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"}}),ZMn=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"}},UMn(e)),{[`
2025-03-02 17:53:04 +08:00
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
2025-03-02 21:11:20 +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}}}),KMn(e)),qMn(e)),{[`
2025-03-02 17:53:04 +08:00
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
2025-03-02 21:11:20 +08:00
`]:Object.assign(Object.assign({},Wge(e)),{marginInlineStart:e.marginXXS})}),YMn(e)),XMn(e)),QMn()),{"&-rtl":{direction:"rtl"}})}},JMn=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),FXe=Yr("Typography",e=>[ZMn(e)],JMn),ePn=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:s,autoSize:a=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:h,enterIcon:g=d.createElement(OYe,null)}=e,p=d.useRef(null),m=d.useRef(!1),v=d.useRef(null),[C,y]=d.useState(l);d.useEffect(()=>{y(l)},[l]),d.useEffect(()=>{var D;if(!((D=p.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:k}=p.current.resizableTextArea;k.focus();const{length:L}=k.value;k.setSelectionRange(L,L)}},[]);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)},E=()=>{c(C.trim())},R=D=>{let{keyCode:k,ctrlKey:L,altKey:I,metaKey:A,shiftKey:N}=D;v.current!==k||m.current||L||I||A||N||(k===lt.ENTER?(E(),f==null||f()):k===lt.ESC&&u())},O=()=>{E()},[T,M,_]=FXe(t),F=we(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},r,M,_);return T(d.createElement("div",{className:F,style:i},d.createElement(yKe,{ref:p,maxLength:s,value:C,onChange:b,onKeyDown:x,onKeyUp:R,onCompositionStart:S,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:a}),g!==null?js(g,{className:`${t}-edit-content-confirm`}):null))};var tPn=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()}},nPn=tPn,Txe={"text/plain":"Text","text/html":"Url",default:"Text"},rPn="Copy to clipboard: #{key}, Enter";function iPn(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function oPn(e,t){var n,r,i,o,s,a,l=!1;t||(t={}),n=t.debug||!1;try{i=nPn(),o=document.createRange(),s=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Txe[t.format]||Txe.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(a),o.selectNodeContents(a),s.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),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=iPn("message"in t?t.message:rPn),window.prompt(r,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),a&&document.body.removeChild(a),i()}return l}var NXe=oPn;const sPn=Bm(NXe);var aPn=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const lPn=e=>{let{copyConfig:t,children:n}=e;const[r,i]=d.useState(!1),[o,s]=d.useState(!1),a=d.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},c={};t.format&&(
2025-03-02 17:53:04 +08:00
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Ne(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
2025-03-02 21:11:20 +08:00
`]:{color:e.colorTextDisabled}}}}}},kPn=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,s=`${t}-list-item`,a=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},$m()),{lineHeight:e.lineHeight,[s]:{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},[`${s}-name`]:Object.assign(Object.assign({},Kf),{padding:`0 ${Ne(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
2025-03-02 17:53:04 +08:00
${l}:focus-visible,
&.picture ${l}
2025-03-02 21:11:20 +08:00
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${s}-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}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[a]:{[`${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:'""'}}})}}},zPn=e=>{const{componentCls:t}=e,n=new Pr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Pr("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`]:tpe(e)},n,r]},BPn=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,s=`${t}-list`,a=`${s}-item`;return{[`${t}-wrapper`]:{[`
2025-03-02 17:53:04 +08:00
${s}${s}-picture,
${s}${s}-picture-card,
${s}${s}-picture-circle
2025-03-02 21:11:20 +08:00
`]:{[a]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},Kf),{width:r,height:r,lineHeight:Ne(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"}}),[`${a}-progress`]:{bottom:i,width:`calc(100% - ${Ne(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{[`svg path[fill='${DC[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${DC.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:i}}},[`${s}${s}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}},HPn=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,s=`${t}-list`,a=`${s}-item`,l=e.uploadPicCardSize;return{[`
2025-03-02 17:53:04 +08:00
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},$m()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ne(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}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ne(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ne(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
2025-03-02 21:11:20 +08:00
`]:{zIndex:10,width:r,margin:`0 ${Ne(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Ne(o(e.paddingXS).mul(2).equal())})`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Ne(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},jPn=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},VPn=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ii(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"}})}},GPn=e=>({actionsColor:e.colorTextDescription}),WPn=Yr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,s=yr(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[VPn(s),NPn(s),BPn(s),HPn(s),kPn(s),zPn(s),jPn(s),ZI(s)]},GPn);function FD(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 ND(e,t){const n=ut(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function Rte(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function UPn(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 qPn=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},zXe=e=>e.indexOf("image/")===0,KPn=e=>{if(e.type&&!e.thumbUrl)return zXe(e.type);const t=e.thumbUrl||e.url||"",n=qPn(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)},zv=200;function YPn(e){return new Promise(t=>{if(!e.type||!zXe(e.type)){t("");return}const n=document.createElement("canvas");n.width=zv,n.height=zv,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${zv}px; height: ${zv}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:s}=i;let a=zv,l=zv,c=0,u=0;o>s?(l=s*(zv/o),u=-(l-a)/2):(a=o*(zv/s),c=-(a-l)/2),r.drawImage(i,c,u,a,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 XPn=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:s,file:a,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:h,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:m,showDownloadIcon:v,previewIcon:C,removeIcon:y,downloadIcon:b,extra:S,onPreview:w,onDownload:x,onClose:E}=e;var R,O;const{status:T}=a,[M,_]=d.useState(T);d.useEffect(()=>{T!=="removed"&&_(T)},[T]);const[F,D]=d.useState(!1);d.useEffect(()=>{const J=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(J)}},[]);const k=u(a);let L=d.createElement("div",{className:`${n}-icon`},k);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(M==="uploading"||!a.thumbUrl&&!a.url){const J=we(`${
transform hover:translate-y-[-2px] transition-all duration-500 ease-out`,children:"立即学习"})})]})},e==null?void 0:e.id)}function pM({post:e}){const t=Gs();return H.jsx(Mme,{post:e,onClick:()=>{t(`/path/editor/${e==null?void 0:e.id}`),window.scrollTo({top:0,behavior:"smooth"})}})}function mM({post:e}){const t=Gs();return H.jsx(Mme,{post:e,onClick:()=>{t(`/course/${e==null?void 0:e.id}/detail`),window.scrollTo({top:0,behavior:"smooth"})}})}const x_n=()=>H.jsxs("div",{className:"min-h-screen",children:[H.jsx(l_n,{}),H.jsx(Lxe,{title:"最受欢迎的思维导图",description:"深受追捧的思维导图,点亮你的智慧人生",postType:vo.PATH,render:e=>H.jsx(pM,{post:e}),to:"path"}),H.jsx(Lxe,{title:"推荐课程",description:"最受欢迎的精品课程,助你快速成长",postType:vo.COURSE,render:e=>H.jsx(mM,{post:e}),to:"/courses"}),H.jsx(m_n,{})]}),sv=d.createContext(null);function WXe({children:e,editId:t}){const n=Gs(),{read:r}=Sge(),{user:i,hasSomePermissions:o,isAuthenticated:s}=Wi(),{lectureId:a}=Z0(),{data:l,isLoading:c}=an.post.findFirst.useQuery({where:{id:t},select:hge},{enabled:!!t}),[u,f]=d.useState(!1);d.useEffect(()=>{f(((l==null?void 0:l.studentIds)||[]).includes(i==null?void 0:i.id))},[i,l,c]);const h=d.useMemo(()=>{const b=s&&(i==null?void 0:i.id)===(l==null?void 0:l.authorId),S=o(Ki==null?void 0:Ki.MANAGE_ANY_POST);return b||S},[i,l]),[g,p]=d.useState(a||void 0),{data:m,isLoading:v}=an.post.findFirst.useQuery({where:{id:g},select:XHe},{enabled:!!t});d.useEffect(()=>{a?r.mutateAsync({data:{visitorId:(i==null?void 0:i.id)||null,postId:a,type:fz.READED}}):r.mutateAsync({data:{visitorId:(i==null?void 0:i.id)||null,postId:t,type:fz.READED}})},[t,a]),d.useEffect(()=>{a!==g&&n(`/course/${t}/detail/${g}`)},[g,t]);const[C,y]=d.useState(!0);return H.jsx(sv.Provider,{value:{editId:t,post:l,lecture:m,selectedLectureId:g,setSelectedLectureId:p,isLoading:c,lectureIsLoading:v,isHeaderVisible:C,setIsHeaderVisible:y,canEdit:h,userIsLearning:u,setUserIsLearning:f},children:e})}function E_n(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function nG(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ple=e=>Array.isArray(e);function UXe(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function zT(e){return typeof e=="string"||Array.isArray(e)}function Nxe(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pme(e,t,n,r){if(typeof t=="function"){const[i,o]=Nxe(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Nxe(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function rG(e,t,n){const r=e.getProps();return Pme(r,t,n!==void 0?n:r.custom,e)}const _me=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ame=["initial",..._me],pc=e=>e;let R_n=pc,_le=pc;function Dme(e){let t;return()=>(t===void 0&&(t=e()),t)}const VC=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},m0=e=>e*1e3,v0=e=>e/1e3,qXe=Dme(()=>window.ScrollTimeline!==void 0);class $_n{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>qXe()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll
2025-03-02 17:53:04 +08:00
[data-motion-pop-id="${n}"] {
position: absolute !important;
width: ${s}px !important;
height: ${a}px !important;
top: ${l}px !important;
left: ${c}px !important;
}
2025-03-02 21:11:20 +08:00
`),()=>{document.head.removeChild(u)}},[t]),H.jsx(VFn,{isPresent:t,childRef:r,sizeRef:i,children:d.cloneElement(e,{ref:r})})}const WFn=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=t9(UFn),l=d.useId(),c=d.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),u=d.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:f=>(a.set(f,!1),()=>a.delete(f))}),o?[Math.random(),c]:[n,c]);return d.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),d.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=H.jsx(GFn,{isPresent:n,children:e})),H.jsx(oG.Provider,{value:u,children:e})};function UFn(){return new Map}const HD=e=>e.key||"";function Z9e(e){const t=[];return d.Children.forEach(e,n=>{d.isValidElement(n)&&t.push(n)}),t}const d1e=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=d.useMemo(()=>Z9e(e),[e]),l=a.map(HD),c=d.useRef(!0),u=d.useRef(a),f=t9(()=>new Map),[h,g]=d.useState(a),[p,m]=d.useState(a);lG(()=>{c.current=!1,u.current=a;for(let y=0;y<p.length;y++){const b=HD(p[y]);l.includes(b)?f.delete(b):f.get(b)!==!0&&f.set(b,!1)}},[p,l.length,l.join("-")]);const v=[];if(a!==h){let y=[...a];for(let b=0;b<p.length;b++){const S=p[b],w=HD(S);l.includes(w)||(y.splice(b,0,S),v.push(S))}s==="wait"&&v.length&&(y=v),m(Z9e(y)),g(a);return}const{forceRender:C}=d.useContext(n1e);return H.jsx(H.Fragment,{children:p.map(y=>{const b=HD(y),S=a===p||l.includes(b),w=()=>{if(f.has(b))f.set(b,!0);else return;let x=!0;f.forEach(E=>{E||(x=!1)}),x&&(C==null||C(),m(u.current),i&&i())};return H.jsx(WFn,{isPresent:S,initial:!c.current||r?void 0:!1,custom:S?void 0:n,presenceAffectsLayout:o,mode:s,onExitComplete:S?void 0:w,children:y},b)})})};function qFn(e){const t=t9(()=>Qp(e)),{isStatic:n}=d.useContext(sG);if(n){const[,r]=d.useState(e);d.useEffect(()=>t.on("change",r),[])}return t}function yZe(e,t){const n=qFn(t()),r=()=>n.set(t());return r(),lG(()=>{const i=()=>Gi.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),Lg(r)}}),n}const KFn=e=>e&&typeof e=="object"&&e.mix,YFn=e=>KFn(e)?e.mix:void 0;function XFn(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=Jme(i,o,{mixer:YFn(o[0]),...s});return t?a(r):a}function QFn(e){X$.current=[],e();const t=yZe(X$.current,e);return X$.current=void 0,t}function ZFn(e,t,n,r){if(typeof e=="function")return QFn(e);const i=typeof t=="function"?t:XFn(t,n,r);return Array.isArray(e)?J9e(e,i):J9e([e],([o])=>i(o))}function J9e(e,t){const n=t9(()=>[]);return yZe(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function bZe(e,t){let n;const r=()=>{const{currentTime:i}=t,s=(i===null?0:i.value)/100;n!==s&&e(s),n=s};return Gi.update(r,!0),()=>Lg(r)}const wN=new WeakMap;let p2;function JFn(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function eNn({target:e,contentRect:t,borderBoxSize:n}){var r;(r=wN.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return JFn(e,n)}})})}function tNn(e){e.forEach(eNn)}function nNn(){typeof ResizeObserver>"u"||(p2=new ResizeObserver(tNn))}function rNn(e,t){p2||nNn();const n=JXe(e);return n.forEach(r=>{let i=wN.get(r);i||(i=new Set,wN.set(r,i)),i.add(t),p2==null||p2.observe(r)}),()=>{n.forEach(r=>{const i=wN.get(r);i==null||i.delete(t),i!=null&&i.size||p2==null||p2.unobserve(r)})}}const xN=new Set;let tO;function iNn(){tO=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};xN.forEach(n=>n(t))},window.addEventListener("resize",tO)}function oNn(e){return xN.add(e),tO||iNn(),()=>{xN.delete(e),!xN.size&&tO&&(tO=void 0)}}function sNn(e,t){return typeof e=="function"?oNn(e):rNn(e,t)}const aNn=50,eEe=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),lNn=(
${s||o?"opacity-100":"opacity-0 group-hover:opacity-100"}`,style:{left:`${e/t*100}%`},transition:{duration:.1}}),H.jsx(mc.div,{className:"z-10 absolute h-full bg-primary rounded-full opacity-0 group-hover:opacity-100 pointer-events-none",style:{width:`${e/t*100}%`,transform:"scaleY(2.5)",transformOrigin:"center"},transition:{duration:.1}})]})})}const YNn=()=>{const{showControls:e,setShowControls:t,isSettingsOpen:n,setIsSettingsOpen:r,playbackSpeed:i,setPlaybackSpeed:o,videoRef:s,isReady:a,setIsReady:l,isPlaying:c,setIsSpeedOpen:u,isSpeedOpen:f,setIsPlaying:h,bufferingState:g,setBufferingState:p,volume:m,setVolume:v,isMuted:C,setIsMuted:y,loadingProgress:b,setLoadingProgress:S,currentTime:w,setCurrentTime:x,duration:E,setDuration:R,brightness:O,setBrightness:T,isDragging:M,setIsDragging:_,isHovering:F,isBrightnessOpen:D,setIsBrightnessOpen:k,setIsHovering:L,progressRef:I}=d.useContext(Yg);return d.useEffect(()=>{let A;return!F&&!M&&(A=window.setTimeout(()=>{t(!1)},2e3)),()=>{A&&window.clearTimeout(A)}},[F,M]),H.jsxs(mc.div,{layoutId:"video-controls",initial:!1,animate:{opacity:e?1:0,y:e?0:20},transition:{duration:.2,ease:"easeInOut"},className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4",children:[H.jsx(KNn,{}),H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs("div",{className:"flex items-center space-x-4",children:[H.jsx(UNn,{}),E&&H.jsxs("span",{className:"text-white text-xl",children:[sEe(w)," / ",sEe(E)]})]}),H.jsxs("div",{className:"flex items-center space-x-4",children:[H.jsx(VNn,{}),H.jsx(GNn,{}),H.jsx(WNn,{}),H.jsx(qNn,{})]})]})]})};function XNn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xZe={exports:{}};(function(e,t){(function(n){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(l,c,u){if(u=u||{},l=l.trim(),c=c.trim(),!c){if(!u.alwaysNormalize)return l;var f=a.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");return f.path=a.normalizePath(f.path),a.buildURLFromParts(f)}var h=a.parseURL(c);if(!h)throw new Error("Error trying to parse relative URL.");if(h.scheme)return u.alwaysNormalize?(h.path=a.normalizePath(h.path),a.buildURLFromParts(h)):c;var g=a.parseURL(l);if(!g)throw new Error("Error trying to parse base URL.");if(!g.netLoc&&g.path&&g.path[0]!=="/"){var p=i.exec(g.path);g.netLoc=p[1],g.path=p[2]}g.netLoc&&!g.path&&(g.path="/");var m={scheme:g.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(m.netLoc=g.netLoc,h.path[0]!=="/"))if(!h.path)m.path=g.path,h.params||(m.params=g.params,h.query||(m.query=g.query));else{var v=g.path,C=v.substring(0,v.lastIndexOf("/")+1)+h.path;m.path=a.normalizePath(C)}return m.path===null&&(m.path=u.alwaysNormalize?a.normalizePath(h.path):h.path),a.buildURLFromParts(m)},parseURL:function(l){var c=r.exec(l);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(o,"");l.length!==(l=l.replace(s,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};e.exports=a})()})(xZe);var h1e=xZe.exports;function aEe(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 ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aEe(Object(n),!0).forEach(function(r){JNn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aEe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QNn(e,t){i
2025-03-02 17:53:04 +08:00
Time to underbuffer: ${m.toFixed(3)} s
Estimated load time for current fragment: ${R.toFixed(3)} s
Estimated load time for down switch fragment: ${T.toFixed(3)} s
TTFB estimate: ${v|0} ms
Current BW estimate: ${kn(y)?y|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
2025-03-02 21:11:20 +08:00
Switching to level ${M} @ ${_|0} bps`),i.trigger(Se.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:l})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(bt.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new yzn(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.FRAG_LOADING,this.onFragLoading,this),t.on(Se.FRAG_LOADED,this.onFragLoaded,this),t.on(Se.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Se.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Se.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Se.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.FRAG_LOADING,this.onFragLoading,this),t.off(Se.FRAG_LOADED,this.onFragLoaded,this),t.off(Se.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Se.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Se.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Se.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Se.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,this.partCurrent=(i=n.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,n){this.clearTimer()}onError(t,n){if(!n.fatal)switch(n.details){case _t.BUFFER_ADD_CODEC_ERROR:case _t.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case _t.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:i,partCurrent:o}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const s=performance.now(),a=o?o.stats:r.stats,l=s-a.loading.start,c=a.loading.first?a.loading.first-a.loading.start:-1;if(a.loaded&&c>-1){const f=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(l-Math.min(f,c),a.loaded)}else this.bwEstimator.sampleTTFB(l)}break}}}getTimeToLoadFrag(t,n,r,i){const o=t+r/n,s=i?this.lastLevelLoadSec:0;return o+s}onLevelLoaded(t,n){const r=this.hls.config,{loading:i}=n.stats,o=i.end-i.start;kn(o)&&(this.lastLevelLoadSec=o/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(t,{frag:n,part:r}){const i=r?r.stats:n.stats;if(n.type===fr.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const o=r?r.duration:n.duration,s=this.hls.levels[n.level],a=(s.loaded?s.loaded.bytes:0)+i.loaded,l=(s.loaded?s.loaded.duration:0)+o;s.loaded={bytes:a,duration:l},s.realBitrate=Math.round(8*a/l)}if(n.bitrateTest){const o={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(Se.FRAG_BUFFERED,o),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(t,n){const{frag:r,part:i}=n,o=i!=null&&i.stats.loaded?i.stats:r.stats;if(o.aborted||this.ignoreFragment(r))return;const s=o.parsing.end-o.loading.start-Math.min(o.loading.first-o.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.samp
2025-03-02 17:53:04 +08:00
discontinuity: ${C}
trackSwitch: ${y}
contiguous: ${x}
accurateTimeOffset: ${l}
timeOffset: ${p}
2025-03-02 21:11:20 +08:00
initSegmentChange: ${R}`);const T=new RBn(r,i,n,a,u);this.configureTransmuxer(T)}if(this.frag=o,this.part=s,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:t,decryptdata:m,chunkMeta:c,state:O},t instanceof ArrayBuffer?[t]:[]);else if(g){const T=g.push(t,m,c,O);IN(T)?(g.async=!0,T.then(M=>{this.handleTransmuxComplete(M)}).catch(M=>{this.transmuxerError(M,c,"transmuxer-interface push error")})):(g.async=!1,this.handleTransmuxComplete(T))}}flush(t){t.transmuxing.start=self.performance.now();const{transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:t});else if(n){let r=n.flush(t);IN(r)||n.async?(IN(r)||(r=Promise.resolve(r)),r.then(o=>{this.handleFlushResult(o,t)}).catch(o=>{this.transmuxerError(o,t,"transmuxer-interface flush error")})):this.handleFlushResult(r,t)}}transmuxerError(t,n,r){this.hls&&(this.error=t,this.hls.trigger(Se.ERROR,{type:wr.MEDIA_ERROR,details:_t.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,fatal:!1,error:t,err:t,reason:r}))}handleFlushResult(t,n){t.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}onWorkerMessage(t){const n=t.data;if(!(n!=null&&n.event)){bt.warn(`worker message received with no ${n?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(n.event){case"init":{var i;const o=(i=this.workerContext)==null?void 0:i.objectURL;o&&self.URL.revokeObjectURL(o);break}case"transmuxComplete":{this.handleTransmuxComplete(n.data);break}case"flush":{this.onFlush(n.data);break}case"workerLog":bt[n.data.logType]&&bt[n.data.logType](n.data.message);break;default:{n.data=n.data||{},n.data.frag=this.frag,n.data.id=this.id,r.trigger(n.event,n.data);break}}}configureTransmuxer(t){const{transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:t}):n&&n.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}function dJe(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!C7(e[n].attrs,t[n].attrs))return!1;return!0}function C7(e,t,n){const r=e["STABLE-RENDITION-ID"];return r&&!n?r===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(i=>e[i]!==t[i])}function ice(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}const qEe=100;class TBn extends S1e{constructor(t,n,r){super(t,n,r,"[audio-stream-controller]",fr.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:t}=this;t.on(Se.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Se.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Se.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Se.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Se.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Se.ERROR,this.onError,this),t.on(Se.BUFFER_RESET,this.onBufferReset,this),t.on(Se.BUFFER_CREATED,this.onBufferCreated,this),t.on(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Se.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Se.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Se.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:t}=this;t.off(Se.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Se.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Se.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Se.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(
`)),r}getTextAndFormat(){return this.rows}}class QEe{constructor(t,n,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new Jte(r),this.nonDisplayedMemory=new Jte(r),this.lastOutputScreen=new Jte(r),this.currRollUpRow=this.displayedMemory.rows[kh-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[kh-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let r=0;r<t.length;r++)this.writeScreen.insertChar(t[r]);const n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>n+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const n={flash:!1};if(n.underline=t%2===1,n.italics=t>=46,n.italics)n.foreground="white";else{const r=Math.floor(t/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=i[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(n)),this.writeScreen.setPen(n)}outputDataUpdate(t=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.out
`)}class XBn{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new qBn,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const n=this;t&&(n.buffer+=n.decoder.decode(t,{stream:!0}));function r(){let o=n.buffer,s=0;for(o=mJe(o);s<o.length&&o[s]!=="\r"&&o[s]!==`
2025-03-02 17:53:04 +08:00
`;)++s;const a=o.slice(0,s);return o[s]==="\r"&&++s,o[s]===`
2025-03-02 21:11:20 +08:00
`&&++s,n.buffer=o.slice(s),a}function i(o){pJe(o,function(s,a){},/:/)}try{let o="";if(n.state==="INITIAL"){if(!/\r\n|\n/.test(n.buffer))return this;o=r();const a=o.match(/^()?WEBVTT([ \t].*)?$/);if(!(a!=null&&a[0]))throw new Error("Malformed WebVTT signature.");n.state="HEADER"}let s=!1;for(;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(s?s=!1:o=r(),n.state){case"HEADER":/:/.test(o)?i(o):o||(n.state="ID");continue;case"NOTE":o||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(o)){n.state="NOTE";break}if(!o)continue;if(n.cue=new O1e(0,0,""),n.state="CUE",o.indexOf("-->")===-1){n.cue.id=o;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{YBn(o,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const a=o.indexOf("-->")!==-1;if(!o||a&&(s=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=`
2025-03-02 17:53:04 +08:00
`),n.cue.text+=o}continue;case"BADCUE":o||(n.state="ID")}}}catch{n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||t.state==="HEADER")&&(t.buffer+=`
2025-03-02 21:11:20 +08:00
`,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){t.onparsingerror&&t.onparsingerror(n)}return t.onflush&&t.onflush(),this}}const QBn=/\r\n|\n\r|\n|\r/g,ene=function(t,n,r=0){return t.slice(r,r+n.length)===n},ZBn=function(t){let n=parseInt(t.slice(-3));const r=parseInt(t.slice(-6,-4)),i=parseInt(t.slice(-9,-7)),o=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!kn(n)||!kn(r)||!kn(i)||!kn(o))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*i,n+=60*60*1e3*o,n},tne=function(t){let n=5381,r=t.length;for(;r;)n=n*33^t.charCodeAt(--r);return(n>>>0).toString()};function T1e(e,t,n){return tne(e.toString())+tne(t.toString())+tne(n)}const JBn=function(t,n,r){let i=t[n],o=t[i.prevCC];if(!o||!o.new&&i.new){t.ccOffset=t.presentationOffset=i.start,i.new=!1;return}for(;(s=o)!=null&&s.new;){var s;t.ccOffset+=i.start-o.start,i.new=!1,i=o,o=t[i.prevCC]}t.presentationOffset=r};function eHn(e,t,n,r,i,o,s){const a=new XBn,l=um(new Uint8Array(e)).trim().replace(QBn,`
2025-03-02 17:53:04 +08:00
`).split(`
2025-03-02 21:11:20 +08:00
`),c=[],u=t?vBn(t.baseTime,t.timescale):0;let f="00:00.000",h=0,g=0,p,m=!0;a.oncue=function(v){const C=n[r];let y=n.ccOffset;const b=(h-u)/9e4;if(C!=null&&C.new&&(g!==void 0?y=n.ccOffset=C.start:JBn(n,r,b)),b){if(!t){p=new Error("Missing initPTS for VTT MPEGTS");return}y=b-n.presentationOffset}const S=v.endTime-v.startTime,w=vf((v.startTime+y-g)*9e4,i*9e4)/9e4;v.startTime=Math.max(w,0),v.endTime=Math.max(w+S,0);const x=v.text.trim();v.text=decodeURIComponent(encodeURIComponent(x)),v.id||(v.id=T1e(v.startTime,v.endTime,x)),v.endTime>0&&c.push(v)},a.onparsingerror=function(v){p=v},a.onflush=function(){if(p){s(p);return}o(c)},l.forEach(v=>{if(m)if(ene(v,"X-TIMESTAMP-MAP=")){m=!1,v.slice(16).split(",").forEach(C=>{ene(C,"LOCAL:")?f=C.slice(6):ene(C,"MPEGTS:")&&(h=parseInt(C.slice(7)))});try{g=ZBn(f)/1e3}catch(C){p=C}return}else v===""&&(m=!1);a.parse(v+`
`)}),a.flush()}const nne="stpp.ttml.im1t",vJe=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,CJe=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,tHn={left:"start",center:"center",right:"end",start:"start",end:"end"};function JEe(e,t,n,r){const i=Nr(new Uint8Array(e),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const o=i.map(a=>um(a)),s=mBn(t.baseTime,1,t.timescale);try{o.forEach(a=>n(nHn(a,s)))}catch(a){r(a)}}function nHn(e,t){const i=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const o={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(o).reduce((f,h)=>(f[h]=i.getAttribute(`ttp:${h}`)||o[h],f),{}),a=i.getAttribute("xml:space")!=="preserve",l=eRe(rne(i,"styling","style")),c=eRe(rne(i,"layout","region")),u=rne(i,"body","[begin]");return[].map.call(u,f=>{const h=yJe(f,a);if(!h||!f.hasAttribute("begin"))return null;const g=one(f.getAttribute("begin"),s),p=one(f.getAttribute("dur"),s);let m=one(f.getAttribute("end"),s);if(g===null)throw tRe(f);if(m===null){if(p===null)throw tRe(f);m=g+p}const v=new O1e(g-t,m-t,h);v.id=T1e(v.startTime,v.endTime,v.text);const C=c[f.getAttribute("region")],y=l[f.getAttribute("style")],b=rHn(C,y,l),{textAlign:S}=b;if(S){const w=tHn[S];w&&(v.lineAlign=w),v.align=S}return Vs(v,b),v}).filter(f=>f!==null)}function rne(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function eRe(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function yJe(e,t){return[].slice.call(e.childNodes).reduce((n,r,i)=>{var o;return r.nodeName==="br"&&i?n+`
`:(o=r.childNodes)!=null&&o.length?yJe(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function rHn(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const o=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=e!=null&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&n.hasOwnProperty(s)&&(i=n[s]),o.reduce((a,l)=>{const c=ine(t,r,l)||ine(e,r,l)||ine(i,r,l);return c&&(a[l]=c),a},{})}function ine(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function tRe(e){return new Error(`Could not parse ttml timestamp ${e}`)}function one(e,t){if(!e)return null;let n=gJe(e);return n===null&&(vJe.test(e)?n=iHn(e,t):CJe.test(e)&&(n=oHn(e,t))),n}function iHn(e,t){const n=vJe.exec(e),r=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/t.frameRate}function oHn(e,t){const n=CJe.exec(e),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}class sHn{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=rRe(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(Se.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Se.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Se.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Se.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Se.FRAG_LOADING,this.onFragLoading,this),t.on(Se.FRAG_LOADED,this.onFragLoaded,this),t.on(Se.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Se.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Se.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Se.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Se.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Se.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Se.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Se.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Se.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Se.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Se.FRAG_LOADING,this.onFragLoading,this),t.off(Se.FRAG_LOADED,this.onFragLoaded,this),t.off(Se.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Se.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Se.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Se.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Se.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const t=new YD(this,"textTrack1"),n=new YD(this,"textTrack2"),r=new YD(this,"textTrack3"),i=new YD(this,"textTrack4");this.cea608Parser1=new ZEe(1,t,n),this.cea608Parser2=new ZEe(3,r,i)}}addCues(t,n,r,i,o){let s=!1;for(let a=o.length;a--;){const l=o[a],c=aHn(l[0],l[1],n,r);if(c>=0&&(l[0]=Math.min(l[0],n),l[1]=Math.max(l[1],r),s=!0,c/(r-n)>.5))return}if(s||o.push([n,r]),this.config.renderTextTracksNatively){const a=this.captionsTracks[t];this.Cues.newCue(a,n,r,i)}else{const a=this.Cues.newCue(null,n,r,i);this.hls.trigger(Se.CUES_PARSED,{type:"captions",cues:a,track:t})}}onInitPtsFound(t
} (data length: ${n&&n.byteLength})`),i.update(n)}selectKeySystemFormat(t){const n=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(t){return new Promise((n,r)=>{const i=Hte(this.config),o=t.map(cEe).filter(s=>!!s&&i.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(o).then(({keySystem:s})=>{const a=dEe(s);a?n(a):r(new Error(`Unable to find format for key-system "${s}"`))}).catch(r)})}loadKey(t){const n=t.keyInfo.decryptdata,r=this.getKeyIdString(n),i=`(keyId: ${r} format: "${n.keyFormat}" method: ${n.method} uri: ${n.uri})`;this.log(`Starting session for key ${i}`);let o=this.keyIdToKeySessionPromise[r];return o||(o=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(n).then(({keySystem:s,mediaKeys:a})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${i}`),this.attemptSetMediaKeys(s,a).then(()=>{this.throwIfDestroyed();const l=this.createMediaKeySessionContext({keySystem:s,mediaKeys:a,decryptdata:n});return this.generateRequestWithPreferredKeySession(l,"cenc",n.pssh,"playlist-key")}))),o.catch(s=>this.handleError(s))),o}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t){this.hls&&(this.error(t.message),t instanceof Yd?this.hls.trigger(Se.ERROR,t.data):this.hls.trigger(Se.ERROR,{type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0}))}getKeySystemForKeyPromise(t){const n=this.getKeyIdString(t),r=this.keyIdToKeySessionPromise[n];if(!r){const i=cEe(t.keyFormat),o=i?[i]:Hte(this.config);return this.attemptKeySystemAccess(o)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=Hte(this.config)),t.length===0)throw new Yd({type:wr.KEY_SYSTEM_ERROR,details:_t.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}_onMediaEncrypted(t){const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r===null)return;let o,s;if(n==="sinf"&&this.config.drmSystems[Eo.FAIRPLAY]){const f=Qs(new Uint8Array(r));try{const h=g1e(JSON.parse(f).sinf),g=DZe(new Uint8Array(h));if(!g)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");o=g.subarray(8,24),s=Eo.FAIRPLAY}catch(h){this.warn(`${i} Failed to parse sinf: ${h}`);return}}else{const f=zkn(r),h=f.filter(g=>g.systemId===h$.WIDEVINE)[0];if(!h){f.length===0||f.some(g=>!g.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${f.map(g=>uEe(g.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(s=uEe(h.systemId),h.version===0&&h.data){const g=h.data.length-22;o=h.data.subarray(g,g+16)}}if(!s||!o)return;const a=Lp.hexDump(o),{keyIdToKeySessionPromise:l,mediaKeySessions:c}=this;let u=l[a];for(let f=0;f<c.length;f++){const h=c[f],g=h.decryptdata;if(!g.keyId)continue;const p=Lp.hexDump(g.keyId);if(a===p||g.uri.replace(/-/g,"").indexOf(a)!==-1){if(u=l[p],g.pssh)break;delete l[p],g.pssh=new Uint8Array(r),g.keyId=o,u=l[a]=u.then(()=>this.generateRequestWithPreferredKeySession(h,n,r,"encrypted-event-key-match"));break}}u||(u=l[a]=this.getKeySystemSelectionPromise([s]).then(({keySystem:f,mediaKeys:h})=>{var g;this.throwIfDestroyed();const p=new GT("ISO-23001-7",a,(g=dEe(f))!=null?g:"");return p.pssh=new Uint8Array(r),p.keyId=o,this.attemptSetMediaKeys(f,h).then(()=>{this.throwIfDestroyed();const m=this.createMediaKeySessionContext({decryptdata:p,keySystem:f,mediaKeys:h});return this.generateRequestWithPreferredKeySession(m,n,r,"encrypted-event-no-match")})})),u.catch(f=>this.handleError(f))}_onWaitingForKey(t){this.log(`"${t.type}" event`)}attemptSetMediaKeys(t,n){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const i=Promise.all(r).then(()=>{if(!this.medi
2025-03-02 17:53:04 +08:00
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
2025-03-02 21:11:20 +08:00
}`,Vjn=k0`
2025-03-02 17:53:04 +08:00
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
2025-03-02 21:11:20 +08:00
}`,Gjn=k0`
2025-03-02 17:53:04 +08:00
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
2025-03-02 21:11:20 +08:00
}`,Wjn=R3("div")`
2025-03-02 17:53:04 +08:00
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
2025-03-02 21:11:20 +08:00
animation: ${jjn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
2025-03-02 17:53:04 +08:00
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
2025-03-02 21:11:20 +08:00
animation: ${Vjn} 0.15s ease-out forwards;
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
animation: ${Gjn} 0.15s ease-out forwards;
2025-03-02 17:53:04 +08:00
animation-delay: 180ms;
transform: rotate(90deg);
}
2025-03-02 21:11:20 +08:00
`,Ujn=k0`
2025-03-02 17:53:04 +08:00
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
2025-03-02 21:11:20 +08:00
`,qjn=R3("div")`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
animation: ${Ujn} 1s linear infinite;
`,Kjn=k0`
2025-03-02 17:53:04 +08:00
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
2025-03-02 21:11:20 +08:00
}`,Yjn=k0`
2025-03-02 17:53:04 +08:00
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
2025-03-02 21:11:20 +08:00
}`,Xjn=R3("div")`
2025-03-02 17:53:04 +08:00
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
2025-03-02 21:11:20 +08:00
animation: ${Kjn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
2025-03-02 17:53:04 +08:00
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
2025-03-02 21:11:20 +08:00
animation: ${Yjn} 0.2s ease-out forwards;
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`,Qjn=R3("div")`
2025-03-02 17:53:04 +08:00
position: absolute;
2025-03-02 21:11:20 +08:00
`,Zjn=R3("div")`
2025-03-02 17:53:04 +08:00
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
2025-03-02 21:11:20 +08:00
`,Jjn=k0`
2025-03-02 17:53:04 +08:00
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
2025-03-02 21:11:20 +08:00
}`,eVn=R3("div")`
2025-03-02 17:53:04 +08:00
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
2025-03-02 21:11:20 +08:00
animation: ${Jjn} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
2025-03-02 17:53:04 +08:00
forwards;
2025-03-02 21:11:20 +08:00
`,tVn=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?d.createElement(eVn,null,t):t:n==="blank"?null:d.createElement(Zjn,null,d.createElement(qjn,{...r}),n!=="loading"&&d.createElement(Qjn,null,n==="error"?d.createElement(Wjn,{...r}):d.createElement(Xjn,{...r})))},nVn=e=>`
2025-03-02 17:53:04 +08:00
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
2025-03-02 21:11:20 +08:00
`,rVn=e=>`
2025-03-02 17:53:04 +08:00
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
2025-03-02 21:11:20 +08:00
`,iVn="0%{opacity:0;} 100%{opacity:1;}",oVn="0%{opacity:1;} 100%{opacity:0;}",sVn=R3("div")`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`,aVn=R3("div")`
2025-03-02 17:53:04 +08:00
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
2025-03-02 21:11:20 +08:00
`,lVn=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=NJe()?[iVn,oVn]:[nVn(n),rVn(n)];return{animation:t?`${k0(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${k0(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},cVn=d.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?lVn(e.position||t||"top-center",e.visible):{opacity:0},o=d.createElement(tVn,{toast:e}),s=d.createElement(aVn,{...e.ariaProps},LB(e.message,e));return d.createElement(sVn,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:s}):d.createElement(d.Fragment,null,o,s))});Mjn(d.createElement);var uVn=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=d.useCallback(s=>{if(s){let a=()=>{let l=s.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return d.createElement("div",{ref:o,className:t,style:n},i)},dVn=(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:NJe()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},fVn=fG`
2025-03-02 17:53:04 +08:00
z-index: 9999;
> * {
pointer-events: auto;
}
2025-03-02 21:11:20 +08:00
`,JD=16,hVn=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:s})=>{let{toasts:a,handlers:l}=Hjn(n);return d.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:JD,left:JD,right:JD,bottom:JD,pointerEvents:"none",...o},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(c=>{let u=c.position||t,f=l.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),h=dVn(u,f);return d.createElement(uVn,{id:c.id,key:c.id,onHeightUpdate:l.updateHeight,className:c.visible?fVn:"",style:h},c.type==="custom"?LB(c.message,c):i?i(c):d.createElement(cVn,{toast:c,position:u}))}))},sl=dc;function zJe(){const{isAuthenticated:e,user:t}=Wi();Gs();const{post:n,canEdit:r,userIsLearning:i,setUserIsLearning:o}=d.useContext(sv),{update:s}=Nx(),[a,l]=d.useState(!1),c=async()=>{i?(await s.mutateAsync({where:{id:t==null?void 0:t.id},data:{learningPosts:{disconnect:{id:n.id}}}}),sl.success("退出学习成功"),o(!1)):(await s.mutateAsync({where:{id:t==null?void 0:t.id},data:{learningPosts:{connect:{id:n.id}}}}),o(!0),sl.success("加入学习成功"))};return H.jsx(H.Fragment,{children:e&&H.jsxs("div",{onClick:c,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:`flex px-1 py-0.5 gap-1 hover:cursor-pointer transition-all ${i?a?"text-red-500 border-red-500 rounded-md ":"text-green-500 ":"text-primary "}`,children:[i?a?H.jsx(wYe,{}):H.jsx(cme,{}):H.jsx(jYe,{}),H.jsx("span",{children:i?a?"退出学习":"正在学习":"加入学习"})]})})}function gVn(){const e=Gs(),{post:t,canEdit:n,userIsLearning:r,setUserIsLearning:i}=d.useContext(sv);return H.jsxs(H.Fragment,{children:[H.jsx(zJe,{}),n&&H.jsxs("div",{className:"flex gap-1 px-1 py-0.5 text-primary hover:cursor-pointer",onClick:()=>{const o=t!=null&&t.id?`/course/${t==null?void 0:t.id}/editor`:"/course/editor";e(o)},children:[H.jsx($Ye,{}),"编辑课程"]})]})}function pVn(){var r,i,o,s,a;const{post:e,lecture:t,selectedLectureId:n}=d.useContext(sv);return H.jsxs("div",{className:"flex justify-center flex-col items-center gap-2 w-full my-2 px-6",children:[H.jsx("div",{className:"flex justify-start w-full text-2xl font-bold",children:n?t==null?void 0:t.title:e==null?void 0:e.title}),H.jsxs("div",{className:"text-gray-600 flex w-full justify-start items-center gap-5",children:[((r=e==null?void 0:e.author)==null?void 0:r.showname)&&H.jsxs("div",{children:["发布者:",(i=e==null?void 0:e.author)==null?void 0:i.showname]}),(e==null?void 0:e.depts)&&((o=e==null?void 0:e.depts)==null?void 0:o.length)>0&&H.jsxs("div",{children:["发布单位:",(s=e==null?void 0:e.depts)==null?void 0:s.map(l=>l.name)]})]}),H.jsxs("div",{className:"text-gray-600 flex w-full justify-start items-center gap-5",children:[H.jsxs("div",{className:"flex gap-1",children:[H.jsx(SKe,{}),"发布于:",_C(n?t==null?void 0:t.createdAt:e==null?void 0:e.createdAt).format("YYYY年M月D日")]}),H.jsxs("div",{className:"flex gap-1",children:["最后更新:",_C(n?t==null?void 0:t.updatedAt:e==null?void 0:e.updatedAt).format("YYYY年M月D日")]}),H.jsxs("div",{className:"flex gap-1",children:[H.jsx(w3,{}),H.jsx("div",{children:`观看次数${n?(t==null?void 0:t.views)||0:(e==null?void 0:e.views)||0}`})]}),H.jsxs("div",{className:"flex gap-1",children:[H.jsx(GV,{}),H.jsx("div",{children:`学习人数${((a=e==null?void 0:e.studentIds)==null?void 0:a.length)||0}`})]}),H.jsx(gVn,{})]})]})}const mVn=()=>{var a,l,c;const{isLoading:e,canEdit:t,lecture:n,lectureIsLoading:r,selectedLectureId:i}=d.useContext(sv);Gs();const{scrollY:o}=$Nn(),s=ZFn(o,[0,200],[1,.8]);return H.jsxs("div",{className:"min-h-screen bg-gray-50",children:[r&&H.jsx(yu,{active:!0,paragraph:{rows:4},title:!1}),H.jsx(pVn,{}),i&&!r&&((a=n==null?void 0:n.meta)==null?void 0:a.type)===rg.VIDEO&&H.jsx("div",{className:"flex justify-center flex-col items-center gap-2 w-full mt-2 px-4",children:H.jsx(mc.div,{style:{opacity:s},className:"w-full bg-black rounded-lg ",children:H.jsx("div",{className:" w-full ",children:H.jsx(PJe,{src:(l=n==null?void 0:n.meta)==null?void 0:l.videoUrl}
${r?"bg-blue-50 border-l-4 border-blue-500 hover:bg-blue-50":"hover:bg-gray-200"}`,onClick:()=>t(e.id),children:[((i=e==null?void 0:e.meta)==null?void 0:i.type)===rg.VIDEO&&H.jsxs("div",{className:"text-blue-500 flex items-center",children:[H.jsx(YYe,{className:"w-5 h-5 flex-shrink-0"}),H.jsx("span",{children:hz[(o=e==null?void 0:e.meta)==null?void 0:o.type]})]}),((s=e==null?void 0:e.meta)==null?void 0:s.type)===rg.ARTICLE&&H.jsxs("div",{className:"text-blue-500 flex items-center",children:[H.jsx(Xpe,{className:"w-5 h-5 text-blue-500 flex-shrink-0"})," ",H.jsx("span",{children:hz[(a=e==null?void 0:e.meta)==null?void 0:a.type]})]}),H.jsxs("div",{className:"flex-grow flex justify-between items-center w-2/3 realative",children:[H.jsx("h4",{className:"font-medium text-gray-800 w-4/5",children:e.title}),e.subTitle&&H.jsx("span",{className:"text-sm text-gray-500 mt-1 w-4/5",children:e.subTitle}),H.jsxs("div",{className:"text-gray-500 whitespace-normal",children:[H.jsx(w3,{}),H.jsx("span",{className:"ml-2",children:e!=null&&e.views?e==null?void 0:e.views:0})]})]})]})},$Vn=ce.forwardRef(({section:e,index:t,isExpanded:n,onToggle:r,onLectureClick:i},o)=>{var l;const{lectureId:s}=Z0(),a=d.useMemo(()=>{var c;return(c=(e==null?void 0:e.lectures)||[])==null?void 0:c.map(u=>u==null?void 0:u.id).includes(s)},[s,e]);return H.jsxs("div",{ref:o,className:"border rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[H.jsxs("div",{className:"w-full flex items-center justify-between p-4 hover:bg-gray-50 transition-colors",onClick:()=>r(e.id),children:[H.jsxs("div",{className:"flex items-center gap-4",children:[H.jsxs("span",{className:"text-lg font-medium text-gray-700",children:["第",t,"章"]}),H.jsxs("div",{className:"flex flex-col items-start",children:[H.jsx("h3",{className:"text-left font-medium text-gray-900",children:e.title}),H.jsxs("p",{className:"text-sm text-gray-500",children:[(l=e==null?void 0:e.lectures)==null?void 0:l.length,"节课 ·"]})]})]}),H.jsxs("div",{className:" flex justify-end gap-2",children:[a&&H.jsx("span",{className:"text-primary text-sm",children:"正在学习中"}),H.jsx(mc.div,{animate:{rotate:n?180:0},transition:{duration:.2},children:H.jsx(yVn,{className:"w-5 h-5 text-gray-500"})})]})]}),H.jsx(d1e,{children:n&&H.jsx(mc.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"border-t",children:e.lectures.map(c=>H.jsx(RVn,{lecture:c,onClick:i},c.id))})})]})}),OVn=({onToggle:e})=>H.jsx(mc.button,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:e,className:"p-2 bg-white rounded-l-lg shadow-lg hover:bg-gray-100",children:H.jsx(BJe,{className:"w-6 h-6 text-gray-600"})}),TVn=({sections:e,onLectureClick:t,isOpen:n,onToggle:r})=>{const{isHeaderVisible:i}=d.useContext(sv),[o,s]=d.useState(e.map(c=>c.id)),a=d.useRef({}),l=c=>{var u;s(f=>f.includes(c)?f.filter(h=>h!==c):[...f,c]),(u=a.current[c])==null||u.scrollIntoView({behavior:"smooth",block:"start"})};return H.jsxs(H.Fragment,{children:[!n&&H.jsx("div",{className:"fixed top-1/3 right-0 -translate-y-1/2 z-20",children:H.jsx(OVn,{onToggle:r})}),H.jsx("div",{style:{width:n?"25%":"0",right:0,top:i?"56px":"0"},className:"fixed top-0 bottom-0 z-20 bg-white shadow-xl",children:n&&H.jsxs("div",{className:"h-full flex flex-col",children:[H.jsx(EVn,{onToggle:r}),H.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:H.jsx("div",{className:"space-y-4",children:e.map((c,u)=>H.jsx($Vn,{ref:f=>a.current[c.id]=f,index:u+1,section:c,isExpanded:o.includes(c.id),onToggle:l,onLectureClick:t},c.id))})})]})})]})};function IVn(){const{post:e,setSelectedLectureId:t}=d.useContext(sv),n=o=>{t(o)},[r,i]=d.useState(!0);return H.jsx("div",{className:"relative",children:H.jsxs("div",{className:"pt-12 px-32",children:[" ",H.jsx(mc.div,{initial:{width:"75%"},animate:{width:r?"75%":"100%"},transition:{type:"spring",stiffness:300,damping:30},className:"relative",children:H.jsx(mVn,{})}),H.jsx(TVn,{sections:(e==null?void 0:e.sections)||[],onLectureClick:n,isOpen
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SGn(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}function wGn(e){if(Array.isArray(e))return e}function WC(e){"@babel/helpers - typeof";return WC=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},WC(e)}function xGn(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=aet(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,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function aet(e,t){if(e){if(typeof e=="string")return bRe(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 bRe(e,t)}}function bRe(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 SRe(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 C5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SRe(Object(n),!0).forEach(function(r){EGn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SRe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EGn(e,t,n){return t=cet(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RGn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wRe(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,cet(r.key),r)}}function $Gn(e,t,n){return wRe(e.prototype,t),wRe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cet(e){var t=OGn(e,"string");return WC(t)=="symbol"?t:t+""}function OGn(e,t){if(WC(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(WC(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cce="tus-v1",LN="ietf-draft-03",TGn={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:uet,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:Cce},FB=function(){function e(t,n){RGn(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 $Gn(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(![Cce,LN].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})(Eet);var OWn=Eet.exports;(function(e){var t=$Wn,n=wet,r=z1e,i=OWn;function o(s){return t(s)||n(s)||r(s)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(met);var zr=met.exports,xu={};Object.defineProperty(xu,"__esModule",{value:!0});xu.default=void 0;var Ret=function(t){return+setTimeout(t,16)},$et=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Ret=function(t){return window.requestAnimationFrame(t)},$et=function(t){return window.cancelAnimationFrame(t)});var DRe=0,B1e=new Map;function Oet(e){B1e.delete(e)}var Tet=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;DRe+=1;var r=DRe;function i(o){if(o===0)Oet(r),t();else{var s=Ret(function(){i(o-1)});B1e.set(r,s)}}return i(n),r};Tet.cancel=function(e){var t=B1e.get(e);return Oet(e),$et(t)};xu.default=Tet;var Iet=pe.default;Object.defineProperty(r9,"__esModule",{value:!0});r9.default=void 0;var TWn=Iet(zr),LRe=Iet(xu);function IWn(e){let t;const n=i=>()=>{t=null,e.apply(void 0,(0,TWn.default)(i))},r=function(){if(t==null){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];t=(0,LRe.default)(n(o))}};return r.cancel=()=>{LRe.default.cancel(t),t=null},r}r9.default=IWn;var Bt={},Met={exports:{}},Pet={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})(Pet);var ua=Pet.exports;(function(e){var t=ua.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,s=new WeakMap;return(n=function(l){return l?s: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 s=n(o);if(s&&s.has(i))return s.get(i);var a={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&{}.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(a,c,u):a[c]=i[c]}return a.default=i,s&&s.set(i,a),a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Met);var _e=Met.exports;const Kt=_r(hOt);var i9={};Object.defineProperty(i9,"__esModule",{value:!0});i9.default=void 0;var MWn=d,PWn=(0,MWn.createContext)({});i9.default=PWn;var RM={},_Wn=_e.default;Object.defineProperty(RM,"__esModule",{value:!0});RM.default=DWn;var AWn=_Wn(d);function DWn(e,t,n){var r=AWn.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var mG={},_et={exports:{}},Aet={exports:{}},Det={exports:{}},Let={exports:{}};(function(e){var t=ua.default;function n(r,i){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var s=o.call(r,i||"default");if(t(s)!="object")return s;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})(Let);var LWn=Let.exports;(function(e){var t=ua.default,n=LWn;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})(Det);var Fet=Det.exports;(function(e){var t=Fet;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})(Aet);var $M=Aet.exports;(function(e){var t=$M;function n(i,o){var s=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),s.push.apply(s,a)}return s}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})(Bet);var Het=Bet.exports;(function(e){var t=zet,n=wet,r=z1e,i=Het;function o(s){return t(s)||n(s)||r(s)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(Net);var FWn=Net.exports,H1e={};Object.defineProperty(H1e,"__esModule",{value:!0});H1e.default=NWn;function NWn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var OM=pe.default;Object.defineProperty(mG,"__esModule",{value:!0});mG.default=FN;mG.merge=jWn;var jet=OM(ua),kWn=OM(Eu),Vet=OM(zr),zWn=OM(FWn),xce=OM(H1e);function Get(e,t,n,r){if(!t.length)return n;var i=(0,zWn.default)(t),o=i[0],s=i.slice(1),a;return!e&&typeof o=="number"?a=[]:Array.isArray(e)?a=(0,Vet.default)(e):a=(0,kWn.default)({},e),r&&n===void 0&&s.length===1?delete a[o][s[0]]:a[o]=Get(a[o],s,n,r),a}function FN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,xce.default)(e,t.slice(0,-1))?e:Get(e,t,n,r)}function BWn(e){return(0,jet.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function FRe(e){return Array.isArray(e)?[]:{}}var HWn=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function jWn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=FRe(t[0]);return t.forEach(function(i){function o(s,a){var l=new Set(a),c=(0,xce.default)(i,s),u=Array.isArray(c);if(u||BWn(c)){if(!l.has(c)){l.add(c);var f=(0,xce.default)(r,s);u?r=FN(r,s,[]):(!f||(0,jet.default)(f)!=="object")&&(r=FN(r,s,FRe(c))),HWn(c).forEach(function(h){o([].concat((0,Vet.default)(s),[h]),l)})}}else r=FN(r,s,c)}o([])}),r}var Lo={},da={};Object.defineProperty(da,"__esModule",{value:!0});da.call=j1e;da.default=void 0;da.note=Uet;da.noteOnce=Ket;da.preMessage=void 0;da.resetWarned=qet;da.warning=Wet;da.warningOnce=TM;var Ece={},VWn=da.preMessage=function(t){};function Wet(e,t){}function Uet(e,t){}function qet(){Ece={}}function j1e(e,t,n){!t&&!Ece[n]&&(e(!1,n),Ece[n]=!0)}function TM(e,t){j1e(Wet,e,t)}function Ket(e,t){j1e(Uet,e,t)}TM.preMessage=VWn;TM.resetWarned=qet;TM.noteOnce=Ket;da.default=TM;var Yet=_e.default;Object.defineProperty(Lo,"__esModule",{value:!0});Lo.devUseWarning=Lo.default=Lo.WarningContext=void 0;Lo.noop=V1e;Lo.resetWarned=UWn;var GWn=Yet(d),WWn=Yet(da);function V1e(){}function UWn(){(0,WWn.resetWarned)()}let qWn=V1e;Lo.WarningContext=GWn.createContext({});Lo.devUseWarning=()=>{const e=()=>{};return e.deprecated=V1e,e};Lo.default=qWn;var IM={};Object.defineProperty(IM,"__esModule",{value:!0});IM.default=void 0;var KWn=d;IM.default=(0,KWn.createContext)(void 0);var Os={},o9={},Ec={},MM={};Object.defineProperty(MM,"__esModule",{value:!0});MM.default=void 0;var YWn={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"};MM.default=YWn;var PM={},Uy={},vG={},_M={};Object.defineProperty(_M,"__esModule",{value:!0});_M.commonLocale=void 0;_M.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var XWn=pe.default;Object.defineProperty(vG,"__esModule",{value:!0});vG.default=void 0;var NRe=XWn(Eu),QWn=_M,ZWn=(0,NRe.default)((0,NRe.default)({},QWn.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"});vG.default=ZWn;var AM={};Object.defineProperty(AM,"_
2025-03-02 17:53:04 +08:00
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
2025-03-02 21:11:20 +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});eh.default=yUn;var yG={};const Us=_r(xOt);Object.defineProperty(yG,"__esModule",{value:!0});yG.default=bUn;var cne=Us;function bUn(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:s,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(i),g=n(o),p=n(s),m=n(a),v=r(c,u),C=e.colorLink||e.colorInfo,y=n(C),b=new cne.FastColor(p[1]).mix(new cne.FastColor(p[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:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg: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 cne.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var W1e={},bG={};Object.defineProperty(bG,"__esModule",{value:!0});bG.default=void 0;const SUn=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}};bG.default=SUn;var wUn=pe.default;Object.defineProperty(W1e,"__esModule",{value:!0});W1e.default=EUn;var xUn=wUn(bG);function EUn(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,xUn.default)(r))}var DM={};Object.defineProperty(DM,"__esModule",{value:!0});DM.default=void 0;const RUn=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};DM.default=RUn;var LM={},FM={};Object.defineProperty(FM,"__esModule",{value:!0});FM.default=$Un;FM.getLineHeight=Zet;function Zet(e){return(e+8)/e}function $Un(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),s=r>1?Math.floor(o):Math.ceil(o);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Zet(n)}))}var OUn=pe.default;Object.defineProperty(LM,"__esModule",{value:!0});LM.default=void 0;var TUn=OUn(FM);const IUn=e=>{const t=(0,TUn.default)(e),n=t.map(u=>u.size),r=t.
2025-03-02 17:53:04 +08:00
:root {
${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
`)}
}
2025-03-02 21:11:20 +08:00
`.trim()}function fqn(e,t){const n=rtt(e,t);(0,cqn.default)()&&(0,uqn.updateCSS)(n,`${dqn}-dynamic-theme`)}var Co={},hqn=_e.default;Object.defineProperty(Co,"__esModule",{value:!0});Co.default=Co.DisabledContextProvider=void 0;var Rce=hqn(d);const $ce=Rce.createContext(!1),gqn=e=>{let{children:t,disabled:n}=e;const r=Rce.useContext($ce);return Rce.createElement($ce.Provider,{value:n??r},t)};Co.DisabledContextProvider=gqn;Co.default=$ce;var xG={},z0={},pqn=_e.default;Object.defineProperty(z0,"__esModule",{value:!0});z0.default=z0.SizeContextProvider=void 0;var Oce=pqn(d);const Tce=Oce.createContext(void 0),mqn=e=>{let{children:t,size:n}=e;const r=Oce.useContext(Tce);return Oce.createElement(Tce.Provider,{value:n||r},t)};z0.SizeContextProvider=mqn;z0.default=Tce;var itt=pe.default;Object.defineProperty(xG,"__esModule",{value:!0});xG.default=void 0;var qRe=d,vqn=itt(Co),Cqn=itt(z0);function yqn(){const e=(0,qRe.useContext)(vqn.default),t=(0,qRe.useContext)(Cqn.default);return{componentDisabled:e,componentSize:t}}xG.default=yqn;var Z1e={},kM={},ott=pe.default;Object.defineProperty(kM,"__esModule",{value:!0});kM.default=void 0;var KRe=ott(ua),bqn=ott(da);function Sqn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if((0,bqn.default)(!l,"Warning: There may be circular references"),l)return!1;if(o===s)return!0;if(n&&a>1)return!1;r.add(o);var c=a+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],s[u],c))return!1;return!0}if(o&&s&&(0,KRe.default)(o)==="object"&&(0,KRe.default)(s)==="object"){var f=Object.keys(o);return f.length!==Object.keys(s).length?!1:f.every(function(h){return i(o[h],s[h],c)})}return!1}return i(e,t)}kM.default=Sqn;var Zt={};const stt=_r(eTt);var l9={},EG={};Object.defineProperty(EG,"__esModule",{value:!0});EG.PresetColors=void 0;EG.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=EG})(l9);var mu={},zM={},RG={};Object.defineProperty(RG,"__esModule",{value:!0});RG.default=void 0;RG.default="5.23.0";var wqn=pe.default;Object.defineProperty(zM,"__esModule",{value:!0});zM.default=void 0;var xqn=wqn(RG);zM.default=xqn.default;var $G={},OG={};Object.defineProperty(OG,"__esModule",{value:!0});OG.default=void 0;var nL=Us;function dne(e){return e>=0&&e<=255}function Eqn(e,t){const{r:n,g:r,b:i,a:o}=new nL.FastColor(e).toRgb();if(o<1)return e;const{r:s,g:a,b:l}=new nL.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-s*(1-c))/c),f=Math.round((r-a*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(dne(u)&&dne(f)&&dne(h))return new nL.FastColor({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new nL.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}OG.default=Eqn;var att=pe.default;Object.defineProperty($G,"__esModule",{value:!0});$G.default=Oqn;var fne=Us,Rqn=att(eh),rL=att(OG),$qn=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 Oqn(e){const{override:t}=e,n=$qn(e,["override"]),r=Object.assign({},t);Object.keys(Rqn.default).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,s=576,a=768,l=992,c=1200,u=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,rL.default)(i.colorBorderSeconda
2025-03-02 17:53:04 +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:s-1,screenSM:s,screenSMMin:s,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
2025-03-02 21:11:20 +08:00
0 1px 2px -2px ${new fne.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new fne.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new fne.FastColor("rgba(0, 0, 0, 0.09)").toRgbString()}
2025-03-02 17:53:04 +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-03-02 21:11:20 +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 TG=pe.default;Object.defineProperty(mu,"__esModule",{value:!0});mu.default=Lqn;mu.unitless=mu.ignore=mu.getComputedToken=void 0;var Tqn=TG(d),Iqn=Kt,Mqn=TG(zM),YRe=fm,Pqn=TG(eh),ltt=TG($G),XRe=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 _qn=mu.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},Aqn=mu.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},Dqn={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},J1e=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=XRe(t,["override"]);let s=Object.assign(Object.assign({},r),{override:i});return s=(0,ltt.default)(s),Object.entries(o).forEach(a=>{let[l,c]=a;const{theme:u}=c,f=XRe(c,["theme"]);let h=f;u&&(h=J1e(Object.assign(Object.assign({},s),f),{override:f},u)),s[l]=h}),s};mu.getComputedToken=J1e;function Lqn(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Tqn.default.useContext(YRe.DesignTokenContext),o=`${Mqn.default}-${t||""}`,s=n||YRe.defaultTheme,[a,l,c]=(0,Iqn.useCacheToken)(s,[Pqn.default,e],{salt:o,override:r,getComputedToken:J1e,formatToken:ltt.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:_qn,ignore:Aqn,preserve:Dqn}});return[s,c,t?l:"",a,i]}var b4={},gn={};Object.defineProperty(gn,"__esModule",{value:!0});gn.textEllipsis=gn.resetIcon=gn.resetComponent=gn.operationUnit=gn.genLinkStyle=gn.genIconStyle=gn.genFocusStyle=gn.genFocusOutline=gn.genCommonStyle=gn.clearFix=void 0;var Fqn=Kt;gn.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const Nqn=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}};gn.resetComponent=Nqn;const ctt=()=>({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"}});gn.resetIcon=ctt;const kqn=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});gn.clearFix=kqn;const zqn=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"}}});gn.genLinkStyle=zqn;const Bqn=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return r!==!1&&(a={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},a),s),{[i]:s})}}
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`;Kl.useInsertStyles=function(t){var n=(0,zB.useContext)(LKn.default),r=n.csp,i=n.prefixCls,o=HKn;i&&(o=o.replace(/anticon/g,i)),(0,zB.useEffect)(function(){var s=t.current,a=(0,AKn.getShadowRoot)(s);(0,_Kn.updateCSS)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:a})},[])};var Stt=pe.default,jKn=_e.default;Object.defineProperty(jM,"__esModule",{value:!0});jM.default=void 0;var VKn=Stt(Qy),p$=Stt(Eu),GKn=jKn(d),t8=Kl,WKn=["icon","className","onClick","style","primaryColor","secondaryColor"],iO={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UKn(e){var t=e.primaryColor,n=e.secondaryColor;iO.primaryColor=t,iO.secondaryColor=n||(0,t8.getSecondaryColor)(t),iO.calculated=!!n}function qKn(){return(0,p$.default)({},iO)}var FG=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,s=t.primaryColor,a=t.secondaryColor,l=(0,VKn.default)(t,WKn),c=GKn.useRef(),u=iO;if(s&&(u={primaryColor:s,secondaryColor:a||(0,t8.getSecondaryColor)(s)}),(0,t8.useInsertStyles)(c),(0,t8.warning)((0,t8.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,t8.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,p$.default)((0,p$.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,t8.generate)(f.icon,"svg-".concat(f.name),(0,p$.default)((0,p$.default)({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};FG.displayName="IconReact";FG.getTwoToneColors=qKn;FG.setTwoToneColors=UKn;jM.default=FG;var NG={},wtt=pe.default;Object.defineProperty(NG,"__esModule",{value:!0});NG.getTwoToneColor=QKn;NG.setTwoToneColor=XKn;var KKn=wtt(Xy),xtt=wtt(jM),YKn=Kl;function XKn(e){var t=(0,YKn.normalizeTwoToneColors)(e),n=(0,KKn.default)(t,2),r=n[0],i=n[1];return xtt.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function QKn(){var e=xtt.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Zy=pe.default,ZKn=_e.default;Object.defineProperty(cr,"__esModule",{value:!0});cr.default=void 0;var JKn=Zy(lr),eYn=Zy(Xy),c$e=Zy($M),tYn=Zy(Qy),iL=ZKn(d),nYn=Zy(St),rYn=Xg,iYn=Zy(i9),oYn=Zy(jM),i0e=NG,sYn=Kl,aYn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,i0e.setTwoToneColor)(rYn.blue.primary);var kG=iL.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,s=e.tabIndex,a=e.onClick,l=e.twoToneColor,c=(0,tYn.default)(e,aYn),u=iL.useContext(iYn.default),f=u.prefixCls,h=f===void 0?"anticon":f,g=u.rootClassName,p=(0,nYn.default)(g,h,(0,c$e.default)((0,c$e.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),m=s;m===void 0&&a&&(m=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=(0,sYn.normalizeTwoToneColors)(l),y=(0,eYn.default)(C,2),b=y[0],S=y[1];return iL.createElement("span",(0,JKn.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:a,className:p}),iL.createElement(oYn.default,{icon:r,primaryColor:b,secondaryColor:S,style:v}))});kG.displayName="AntdIcon";kG.getTwoToneColor=i0e.getTwoToneColor;kG.setTwoToneColor=i0e.setTwoToneColor;cr.default=kG;var lYn=_e.default,o0e=pe.default;Object.defineProperty(AG,"__esModule",{value:!0});AG.default=void 0;var cYn=o0e(lr),Ett=lYn(d),uYn=o0e(r0e),dYn=o0e(cr),fYn=function(t,n){return Ett.createElement(dYn.default,(0,cYn.default)({},t,{ref:n,icon:uYn.default}))},hYn=Ett.forwardRef(fYn);AG.default=hYn;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(AG);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(Ice,Ice.exports);var Jy=Ice.exports,_ce={exports:{}},zG={},s0e={};Object.defineProperty(s0e,"__esModule",{value:!0});var gYn={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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
summary tabIndex target title type useMap value width wmode wrap`,WYn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,UYn="".concat(GYn," ").concat(WYn).split(/[\s\n]+/),qYn="aria-",KYn="data-";function u$e(e,t){return e.indexOf(t)===0}function YYn(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,VYn.default)({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||u$e(i,qYn))||n.data&&u$e(i,KYn)||n.attr&&UYn.includes(i))&&(r[i]=e[i])}),r}var Vi={},GG={},XYn=pe.default;Object.defineProperty(GG,"__esModule",{value:!0});GG.default=tXn;var QYn=XYn(ua),ZYn=Symbol.for("react.element"),JYn=Symbol.for("react.transitional.element"),eXn=Symbol.for("react.fragment");function tXn(e){return e&&(0,QYn.default)(e)==="object"&&(e.$$typeof===ZYn||e.$$typeof===JYn)&&e.type===eXn}var g0e=pe.default;Object.defineProperty(Vi,"__esModule",{value:!0});Vi.useComposeRef=Vi.supportRef=Vi.supportNodeRef=Vi.getNodeRef=Vi.fillRef=Vi.composeRef=void 0;var nXn=g0e(ua),rXn=d,mne=rN,iXn=g0e(RM),oXn=g0e(GG),sXn=Vi.fillRef=function(t,n){typeof t=="function"?t(n):(0,nXn.default)(t)==="object"&&t&&"current"in t&&(t.current=n)},aXn=Vi.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(s){sXn(s,o)})}};Vi.useComposeRef=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,iXn.default)(function(){return aXn.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(s,a){return s!==o[a]})})};var lXn=Vi.supportRef=function(t){var n,r;if(!t)return!1;if(p0e(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=(0,mne.isMemo)(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==mne.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==mne.ForwardRef)};function p0e(e){return(0,rXn.isValidElement)(e)&&!(0,oXn.default)(e)}Vi.supportNodeRef=function(t){return p0e(t)&&lXn(t)};Vi.getNodeRef=function(t){if(t&&p0e(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};var Xi={},cXn=pe.default;Object.defineProperty(Xi,"__esModule",{value:!0});Xi.cloneElement=dXn;Xi.isFragment=uXn;Xi.replaceElement=void 0;var BB=cXn(d);function uXn(e){return e&&BB.default.isValidElement(e)&&e.type===BB.default.Fragment}const Itt=(e,t,n)=>BB.default.isValidElement(e)?BB.default.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;Xi.replaceElement=Itt;function dXn(e,t){return Itt(e,e,t)}var If={};Object.defineProperty(If,"__esModule",{value:!0});If.prepareComponentToken=If.genTypeStyle=If.genBaseStyle=If.genActionStyle=If.default=void 0;var Mtt=Kt,fXn=gn,hXn=Zt;const oL=(e,t,n,r,i)=>({background:e,border:`${(0,Mtt.unit)(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),Ptt=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:s,lineHeight:a,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:h,withDescriptionPadding:g,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},(0,fXn.resetComponent)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,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:a},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
2025-03-02 17:53:04 +08:00
padding-top ${n} ${c}, padding-bottom ${n} ${c},
2025-03-02 21:11:20 +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:g,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:s},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}};If.genBaseStyle=Ptt;const _tt=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:s,colorWarningBg:a,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:h,colorInfoBg:g}=e;return{[t]:{"&-success":oL(i,r,n,e,t),"&-info":oL(g,h,f,e,t),"&-warning":oL(a,s,o,e,t),"&-error":Object.assign(Object.assign({},oL(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}};If.genTypeStyle=_tt;const Att=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:s,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:(0,Mtt.unit)(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:s,transition:`color ${r}`,"&:hover":{color:a}}},"&-close-text":{color:s,transition:`color ${r}`,"&:hover":{color:a}}}}};If.genActionStyle=Att;const Dtt=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`});If.prepareComponentToken=Dtt;If.default=(0,hXn.genStyleHooks)("Alert",e=>[Ptt(e),_tt(e),Att(e)],Dtt);var lv=pe.default,gXn=_e.default;Object.defineProperty(HM,"__esModule",{value:!0});HM.default=void 0;var Cs=gXn(d),pXn=lv(Jy),mXn=lv(av),vXn=lv(Td),CXn=lv($3),yXn=lv(VG),Fce=lv(St),bXn=lv(Qg),SXn=lv(oh),wXn=Vi,xXn=Xi,EXn=Bt,RXn=lv(If),d$e=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 $Xn={success:pXn.default,info:yXn.default,error:mXn.default,warning:CXn.default},OXn=e=>{const{icon:t,prefixCls:n,type:r}=e,i=$Xn[r]||null;return t?(0,xXn.replaceElement)(t,Cs.createElement("span",{className:`${n}-icon`},t),()=>({className:(0,Fce.default)(`${n}-icon`,t.props.className)})):Cs.createElement(i,{className:`${n}-icon`})},TXn=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,s=r===!0||r===void 0?Cs.createElement(vXn.default,null):r;return t?Cs.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),s):null},IXn=Cs.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:s,rootClassName:a,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:h,showIcon:g,closable:p,closeText:m,closeIcon:v,action:C,id:y}=e,b=d$e(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,w]=Cs.useState(!1),x=Cs.useRef(null);Cs.useImperativeHandle(t,()=>({nativeElement:x.current}));const{getPrefixCls:E,direction:R,alert:O}=Cs.useContext(EXn.ConfigContext),T=E("alert",r),[M,_,F]=(0,RXn.default)(T),D=j=>{var W;w(!0),(W=e.onClose)===null||W===void 0||W.call(e,j)},k=Cs.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),L=Cs.useMemo(()=>typeof p=="object"&&p.closeIcon||m?!0:typeof p=="boolean"?p:v!==!1&&v!==null&&v!==void 0?!0:!!(O!=null&&O.closable),[m,v,p,O==null?void 0:O.closable]),I=o&&g===void 0?!0:g,A=(0,Fce.default)(T,`${T}-${k}`,{[`${T}-with-description`]:!!n,[`${T}-no-icon`]:!I,[`${T}-banner`]:!!o,[`${T}-rtl`]:R==="rtl"},O==null?void 0:O.className,s,a,F,_),N=(0,SXn.default)(b,{aria:!0,data:!0}),B=Cs.useMemo(
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,GQn.resetComponent)(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
2025-03-02 17:53:04 +08:00
${t}-move-up-appear,
${t}-move-up-enter
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
${t}-move-up-appear${t}-move-up-appear-active,
${t}-move-up-enter${t}-move-up-enter-active
2025-03-02 21:11:20 +08:00
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${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"})}]},tnt=e=>({zIndexPopup:e.zIndexPopupBase+VQn.CONTAINER_MAX_OFFSET+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});qC.prepareComponentToken=tnt;qC.default=(0,S$e.genStyleHooks)("Message",e=>{const t=(0,S$e.mergeToken)(e,{height:150});return[WQn(t)]},tnt);var T3=pe.default,UQn=_e.default;Object.defineProperty(C0,"__esModule",{value:!0});C0.default=C0.TypeIcon=C0.PureContent=void 0;var Up=UQn(d),qQn=T3(Jy),KQn=T3(av),YQn=T3($3),XQn=T3(VG),QQn=T3(Jg),nnt=T3(St),ZQn=YG,JQn=Bt,eZn=T3(Xr),tZn=T3(qC),nZn=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 rZn=C0.TypeIcon={info:Up.createElement(XQn.default,null),success:Up.createElement(qQn.default,null),error:Up.createElement(KQn.default,null),warning:Up.createElement(YQn.default,null),loading:Up.createElement(QQn.default,null)},rnt=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return Up.createElement("div",{className:(0,nnt.default)(`${t}-custom-content`,`${t}-${n}`)},r||rZn[n],Up.createElement("span",null,i))};C0.PureContent=rnt;const iZn=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,s=nZn(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:a}=Up.useContext(JQn.ConfigContext),l=t||a("message"),c=(0,eZn.default)(l),[u,f,h]=(0,tZn.default)(l,c);return u(Up.createElement(ZQn.Notice,Object.assign({},s,{prefixCls:l,className:(0,nnt.default)(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:Up.createElement(rnt,{prefixCls:l,type:r,icon:i},o)})))};C0.default=iZn;var qM={};Object.defineProperty(qM,"__esModule",{value:!0});qM.getMotion=oZn;qM.wrapPromiseFn=sZn;function oZn(e,t){return{motionName:t??`${e}-move-up`}}function sZn(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 QG=pe.default,aZn=_e.default;Object.defineProperty(UM,"__esModule",{value:!0});UM.default=bZn;UM.useInternalMessage=snt;var og=aZn(d),lZn=QG(Td),b0e=QG(St),int=YG,cZn=Lo,uZn=Bt,dZn=QG(Xr),fZn=C0,hZn=QG(qC),ont=qM,gZn=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 pZn=8,mZn=3,vZn=e=>{let{children:t,prefixCls:n}=e;const r=(0,dZn.default)(n),[i,o,s]=(0,hZn.default)(n,r);return i(og.createElement(int.NotificationProvider,{classNames:{list:(0,b0e.default)(o,s,r)}},t))},CZn=(e,t)=>{let{prefixCls:n,key:r}=t;return og.createElement(vZn,{prefixCls:n,key:r},e)},yZn=og.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:s=mZn,rtl:a,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:h,direction:g}=og.useContext(uZn.ConfigContext),p=r||u("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??pZn}),v=()=>(0,b0e.default)({[`${p}-rtl`]:a??g==="rtl"}),C=()=>(0,ont.getMotion)(p,l),y=og.createElement("span",{className:`${p}-close-x`},og.createElement(lZn.default,{className:`${p}-close-icon`})),[b,S]=(0,int.useNotification)({prefixCls:p,style:m,className:v,motion:C,closable:!1,closeIcon:y,duration:s,getContainer:()=>(i==null?void 0:i())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:c
2025-03-02 17:53:04 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
2025-03-02 21:11:20 +08:00
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});CW.default=Ler;var y0={},_3={};Object.defineProperty(_3,"__esModule",{value:!0});_3.initMotion=void 0;const Fer=e=>({animationDuration:e,animationFillMode:"both"}),Ner=e=>({animationDuration:e,animationFillMode:"both"}),ker=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
2025-03-02 17:53:04 +08:00
${o}${e}-enter,
${o}${e}-appear
2025-03-02 21:11:20 +08:00
`]:Object.assign(Object.assign({},Fer(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ner(r)),{animationPlayState:"paused"}),[`
2025-03-02 17:53:04 +08:00
${o}${e}-enter${e}-enter-active,
${o}${e}-appear${e}-appear-active
2025-03-02 21:11:20 +08:00
`]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}};_3.initMotion=ker;Object.defineProperty(y0,"__esModule",{value:!0});y0.initFadeMotion=y0.fadeOut=y0.fadeIn=void 0;var Rnt=Kt,zer=_3;const Ber=y0.fadeIn=new Rnt.Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Her=y0.fadeOut=new Rnt.Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),jer=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,zer.initMotion)(r,Ber,Her,e.motionDurationMid,t),{[`
2025-03-02 17:53:04 +08:00
${i}${r}-enter,
${i}${r}-appear
2025-03-02 21:11:20 +08:00
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]};y0.initFadeMotion=jer;var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.moveUpOut=Ds.moveUpIn=Ds.moveRightOut=Ds.moveRightIn=Ds.moveLeftOut=Ds.moveLeftIn=Ds.moveDownOut=Ds.moveDownIn=Ds.initMoveMotion=void 0;var A3=Kt,Ver=_3;const Ger=Ds.moveDownIn=new A3.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Wer=Ds.moveDownOut=new A3.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Uer=Ds.moveLeftIn=new A3.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qer=Ds.moveLeftOut=new A3.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ker=Ds.moveRightIn=new A3.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Yer=Ds.moveRightOut=new A3.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Xer=Ds.moveUpIn=new A3.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Qer=Ds.moveUpOut=new A3.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Zer={"move-up":{inKeyframes:Xer,outKeyframes:Qer},"move-down":{inKeyframes:Ger,outKeyframes:Wer},"move-left":{inKeyframes:Uer,outKeyframes:qer},"move-right":{inKeyframes:Ker,outKeyframes:Yer}},Jer=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=Zer[t];return[(0,Ver.initMotion)(r,i,o,e.motionDurationMid),{[`
2025-03-02 17:53:04 +08:00
${r}-enter,
${r}-appear
2025-03-02 21:11:20 +08:00
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};Ds.initMoveMotion=Jer;var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.slideUpOut=Ls.slideUpIn=Ls.slideRightOut=Ls.slideRightIn=Ls.slideLeftOut=Ls.slideLeftIn=Ls.slideDownOut=Ls.slideDownIn=Ls.initSlideMotion=void 0;var D3=Kt,etr=_3;const ttr=Ls.slideUpIn=new D3.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ntr=Ls.slideUpOut=new D3.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),rtr=Ls.slideDownIn=new D3.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),itr=Ls.slideDownOut=new D3.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),otr=Ls.slideLeftIn=new D3.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),str=Ls.slideLeftOut=new D3.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),atr=Ls.slideRightIn=new D3.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ltr=Ls.slideRightOut=new D3.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ctr={"slide-up":{inKeyframes:ttr,outKeyframes:ntr},"slide-down":{inKeyframes:rtr,outKeyframes:itr},"slide-left":{inKeyframes:otr,outKeyframes:str},"slide-right":{inKeyframes:atr,outKeyframes:ltr}},utr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=ctr[t];return[(0,etr.initMotion)(r,i,o,e.motionDurationMid),{[`
2025-03-02 17:53:04 +08:00
${r}-enter,
${r}-appear
2025-03-02 21:11:20 +08:00
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};Ls.initSlideMotion=utr;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});ao.zoomUpOut=ao.zoomUpIn=ao.zoomRightOut=ao.zoomRightIn=ao.zoomOut=ao.zoomLeftOut=ao.zoomLeftIn=ao.zoomIn=ao.zoomDownOut=ao.zoomDownIn=ao.zoomBigOut=ao.zoomBigIn=ao.initZoomMotion=void 0;var sh=Kt,dtr=_3;const ftr=ao.zoomIn=new sh.Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),htr=ao.zoomOut=new sh.Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),G$e=ao.zoomBigIn=new sh.Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),W$e=ao.zoomBigOut=new sh.Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),gtr=ao.zoomUpIn=new sh.Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),ptr=ao.zoomUpOut=new sh.Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),mtr=ao.zoomLeftIn=new sh.Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),vtr=ao.zoomLeftOut=new sh.Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ctr=ao.zoomRightIn=new sh.Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ytr=ao.zoomRightOut=new sh.Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),btr=ao.zoomDownIn=new sh.Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Str=ao.zoomDownOut=new sh.Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wtr={zoom:{inKeyframes:ftr,outKeyframes:htr},"zoom-big":{inKeyframes:G$e,outKeyframes:W$e},"zoom-big-fast":{inKeyframes:G$e,outKeyframes:W$e},"zoom-left":{inKeyframes:mtr,outKeyframes:vtr},"zoom-right":{inKeyframes:Ctr,outKeyframes:ytr},"zoom-up":{inKeyframes:gtr,outKeyframes:ptr},"zoom-down":{inKeyframes:btr,outKeyframes:Str}},xtr=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=wtr[t];return[(0,dtr.initMotion)(r,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
2025-03-02 17:53:04 +08:00
${r}-enter,
${r}-appear
2025-03-02 21:11:20 +08:00
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};ao.initZoomMotion=xtr;(function(e){var t=pe.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 s.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 s.zoomBigIn}}),Object.defineProperty(e,"zoomBigOut",{enumerable:!0,get:function(){return s.zoomBigOut}}),Object.defineProperty(e,"zoomDownIn",{enumerable:!0,get:function(){return s.zoomDownIn}}),Object.defineProperty(e,"zoomDownOut",{enumerable:!0,get:function(){return s.zoomDownOut}}),Object.defineProperty(e,"zoomIn",{enumerable:!0,get:function(){return s.zoomIn}}),Object.defineProperty(e,"zoomLeftIn",{enumerable:!0,get:function(){return s.zoomLeftIn}}),Object.defineProperty(e,"zoomLeftOut",{enumerable:!0,get:function(){return s.zoomLeftOut}}),Object.defineProperty(e,"zoomOut",{enumerable:!0,get:function(){return s.zoomOut}}),Object.defineProperty(e,"zoomRightIn",{enumerable:!0,get:function(){return s.zoomRightIn}}),Object.defineProperty(e,"zoomRightOut",{enumerable:!0,get:function(){return s.zoomRightOut}}),Object.defineProperty(e,"zoomUpIn",{enumerable:!0,get:function(){return s.zoomUpIn}}),Object.defineProperty(e,"zoomUpOut",{enumerable:!0,get:function(){return s.zoomUpOut}});var n=t(CW),r=y0,i=Ds,o=Ls,s=ao})(Rc);Object.defineProperty(S4,"__esModule",{value:!0});S4.prepareComponentToken=S4.genBaseStyle=S4.default=void 0;var Yh=Kt,Mne=gn,Etr=Rc,U$e=Zt;const $nt=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:h,colorTextHeading:g,colorTextDisabled:p,fontSizeLG:m,lineHeight:v,lineHeightLG:C,marginSM:y,paddingSM:b,paddingLG:S,paddingXS:w,motionDurationSlow:x,fontSizeIcon:E,contentPadding:R,fontHeight:O,fontHeightLG:T}=e,M=`${(0,Yh.unit)(c)} ${
2025-03-02 17:53:04 +08:00
&,
& > ${t}-header`]:{borderRadius:`${(0,Yh.unit)(l)} ${(0,Yh.unit)(l)} 0 0`}},"&:last-child":{[`
&,
2025-03-02 21:11:20 +08:00
& > ${t}-header`]:{borderRadius:`0 0 ${(0,Yh.unit)(l)} ${(0,Yh.unit)(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:v,cursor:"pointer",transition:`all ${x}, visibility 0s`},(0,Mne.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,Mne.resetIcon)()),{fontSize:E,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:M,[`& > ${t}-content-box`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s,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:a,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,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,Yh.unit)(l)} ${(0,Yh.unit)(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}};S4.genBaseStyle=$nt;const Rtr=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},$tr=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-03-02 17:53:04 +08:00
> ${t}-item:last-child,
> ${t}-item:last-child ${t}-header
2025-03-02 21:11:20 +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}}}},Otr=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}}}}}},Ont=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer});S4.prepareComponentToken=Ont;S4.default=(0,U$e.genStyleHooks)("Collapse",e=>{const t=(0,U$e.mergeToken)(e,{collapseHeaderPaddingSM:`${(0,Yh.unit)(e.paddingXS)} ${(0,Yh.unit)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,Yh.unit)(e.padding)} ${(0,Yh.unit)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[$nt(t),$tr(t),Otr(t),Rtr(t),(0,Etr.genCollapseMotion)(t)]},Ont);var uv=pe.default,Ttr=_e.default;Object.defineProperty(pW,"__esModule",{value:!0});pW.default=void 0;var I6=Ttr(d),Itr=uv(P3),q$e=uv(St),Mtr=uv(xnt),Ptr=uv(qs),K$e=uv(mi),_tr=uv($s),Y$e=Xi,Atr=Bt,Dtr=uv(io),Ltr=uv(vW),Ftr=uv(S4);const Ntr=I6.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=I6.useContext(Atr.ConfigContext),{prefixCls:o,className:s,rootClassName:a,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:h="start",children:g,expandIcon:p}=e,m=(0,Dtr.default)(M=>{var _;return(_=f??M)!==null&&_!==void 0?_:"middle"}),v=n("collapse",o),C=n(),[y,b,S]=(0,Ftr.default)(v),w=I6.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),x=p??(i==null?void 0:i.expandIcon),E=I6.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const _=typeof x=="function"?x(M):I6.createElement(Itr.default,{rotate:M.isActive?90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return(0,Y$e.cloneElement)(_,()=>{var F;return{className:(0,q$e.default)((F=_==null?void 0:_.props)===null||F===void 0?void 0:F.className,`${v}-arrow`)}})},[x,v]),R=(0,q$e.default)(`${v}-icon-position-${w}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${m}`]:m!=="middle"},i==null?void 0:i.className,s,a,b,S),O=Object.assign(Object.assign({},(0,_tr.default)(C)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),T=I6.useMemo(()=>g?(0,Ptr.default)(g).map((M,_)=>{var F,D;const k=M.props;if(k!=null&&k.disabled){const L=(F=M.key)!==null&&F!==void 0?F:String(_),I=Object.assign(Object.assign({},(0,K$e.default)(M.props,["disabled"])),{key:L,collapsible:(D=k.collapsible)!==null&&D!==void 0?D:"disabled"});return(0,Y$e.cloneElement)(M,I)}return M}):null,[g]);return y(I6.createElement(Mtr.default,Object.assign({ref:t,openMotion:O},(0,K$e.default)(e,["rootClassName"]),{expandIcon:E,prefixCls:v,className:R,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),T))});pW.default=Object.assign(Ntr,{Panel:Ltr.default});var ktr=pe.default;Object.defineProperty(eP,"__esModule",{value:!0});eP.default=void 0;var ztr=ktr(pW);eP.default=ztr.default;var ts={},Btr=pe.default;Object.defineProperty(ts,"__esModule",{value:!0});ts.getRoundNumber=ts.getGradientPercentColor=ts.getColorAlpha=ts.generateColor=ts.genAlphaColor=void 0;var Htr=Btr(zr),X$e=JM,Q$e=hd;const Uce=e=>e instanceof Q$e.AggregationColor?e:new Q$e.AggregationColor(e);ts.generateColor=Uce;const Tnt=e=>Math.round(Number(e||0));ts.getRoundNumber=Tnt;const jtr=e=>Tnt(e.toHsb().a*100);ts.getColorAlpha=jtr;const Vtr=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=t||1,Uce(r)}return n.a=t||1,Uce(n)};ts.genAlphaColor=Vtr;const Gtr=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat((0,Htr.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,s=n[r].color,a=n[r+1].color;if(i<=t&&t<=o){const l=o-i;if(l===0)return s;const c=(t-i)/l*100,u=new X$e.Color(s),f=new X$e.Color(a);return u.mix(f,c).toRgbString()}}return""};ts.getGradientPercentColor=Gtr;var $0e=pe.default,Wtr=_e.
2025-03-02 17:53:04 +08:00
${r},
${i} > li,
${n},
${o},
${s},
${a}
2025-03-02 21:11:20 +08:00
`]:Object.assign({},Arr(e))}}},znt=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}};Ng.prepareComponentToken=znt;Ng.default=(0,uOe.genStyleHooks)("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=(0,uOe.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[krr(r)]},znt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var MW=pe.default,zrr=_e.default;Object.defineProperty(TW,"__esModule",{value:!0});TW.default=void 0;var kne=zrr(d),Brr=MW(St),Hrr=MW(mi),jrr=Bt,Vrr=MW(rb),Grr=MW(Ng);const Wrr=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:s="default"}=e,{getPrefixCls:a}=kne.useContext(jrr.ConfigContext),l=a("skeleton",t),[c,u,f]=(0,Grr.default)(l),h=(0,Hrr.default)(e,["prefixCls","className"]),g=(0,Brr.default)(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(kne.createElement("div",{className:g},kne.createElement(Vrr.default,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:s},h))))};TW.default=Wrr;var PW={},_W=pe.default,Urr=_e.default;Object.defineProperty(PW,"__esModule",{value:!0});PW.default=void 0;var zne=Urr(d),qrr=_W(St),Krr=_W(mi),Yrr=Bt,Xrr=_W(rb),Qrr=_W(Ng);const Zrr=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:s="default"}=e,{getPrefixCls:a}=zne.useContext(Yrr.ConfigContext),l=a("skeleton",t),[c,u,f]=(0,Qrr.default)(l),h=(0,Krr.default)(e,["prefixCls"]),g=(0,qrr.default)(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(zne.createElement("div",{className:g},zne.createElement(Xrr.default,Object.assign({prefixCls:`${l}-button`,size:s},h))))};PW.default=Zrr;var AW={},Bnt=pe.default,Jrr=_e.default;Object.defineProperty(AW,"__esModule",{value:!0});AW.default=void 0;var y5=Jrr(d),fOe=Bnt(St),eir=Bt,tir=Bnt(Ng);const nir="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",rir=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:s}=y5.useContext(eir.ConfigContext),a=s("skeleton",t),[l,c,u]=(0,tir.default)(a),f=(0,fOe.default)(a,`${a}-element`,{[`${a}-active`]:o},n,r,c,u);return l(y5.createElement("div",{className:f},y5.createElement("div",{className:(0,fOe.default)(`${a}-image`,n),style:i},y5.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${a}-image-svg`},y5.createElement("title",null,"Image placeholder"),y5.createElement("path",{d:nir,className:`${a}-image-path`})))))};AW.default=rir;var DW={},LW=pe.default,iir=_e.default;Object.defineProperty(DW,"__esModule",{value:!0});DW.default=void 0;var Bne=iir(d),oir=LW(St),sir=LW(mi),air=Bt,lir=LW(rb),cir=LW(Ng);const uir=e=>{const{prefixCls:t,class
2025-03-02 17:53:04 +08:00
${t}-body,
2025-03-02 21:11:20 +08:00
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Sor=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},wor=e=>{const{componentCls:t}=e,n=(0,yor.getMediaSize)(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${(0,_s.unit)(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat((0,Cor.default)(r))}}},Xnt=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,Knt.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()})};od.prepareToken=Xnt;const Qnt=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,_s.unit)(e.paddingMD)} ${(0,_s.unit)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,_s.unit)(e.padding)} ${(0,_s.unit)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,_s.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,_s.unit)(e.paddingXS)} ${(0,_s.unit)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,_s.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,_s.unit)(e.borderRadiusLG)} ${(0,_s.unit)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,_s.unit)(e.padding*2)} ${(0,_s.unit)(e.padding*2)} ${(0,_s.unit)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM});od.prepareComponentToken=Qnt;od.default=(0,Knt.genStyleHooks)("Modal",e=>{const t=Xnt(e);return[bor(t),Sor(t),Ynt(t),(0,qnt.initZoomMotion)(t,"zoom"),wor(t)]},Qnt,{unitless:{titleLineHeight:!0}});var F3=pe.default,Znt=_e.default;Object.defineProperty(tP,"__esModule",{value:!0});tP.default=void 0;var O1=Znt(d),xor=F3(Td),lL=F3(St),Eor=F3(Fnt),Ror=F3(ah),Vne=Znt(nb),$or=ho,wOe=$s,Oor=_0e,Tor=F3(cv),Ior=Bt,Mor=F3(Xr),Por=F3(L3),_or=ib,xOe=g9,Aor=F3(od),Dor=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 Qce;const Lor=e=>{Qce={x:e.pageX,y:e.pageY},setTimeout(()=>{Qce=null},100)};(0,Oor.canUseDocElement)()&&document.documentElement.addEventListener("click",Lor,!0);const For=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=O1.useContext(Ior.ConfigContext),s=q=>{const{onCancel:X}=e;X==null||X(q)},a=q=>{const{onOk:X}=e;X==null||X(q)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:h,centered:g,getContainer:p,focusTriggerAfterClose:m=!0,style:v,visible:C,width:y=520,footer:b,classNames:S,styles:w,children:x,loading:E}=e,R=Dor(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),O=r("modal",l),T=r(),M=(0,Mor.default)(O),[_,F,D]=(0,Aor.default)(O,M),k=(0,lL.default)(h,{[`${O}-centered`]:!!g,[`${O}-wrap-rtl`]:i==="rtl"}),L=b!==null&&!E?O1.createElement(xOe.Footer,Object.assign({},e,{onOk:a,onCancel:s})):null,[I,A,N]=(0,Vne.default)((0,Vne.pickClosable)(e),(0,Vne.pickClosable)(o),{closable
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}};HW.default=(0,kor.genSubStyleComponent)(["Modal","confirm"],e=>{const t=(0,ROe.prepareToken)(e);return[zor(t)]},ROe.prepareComponentToken,{order:-1e3});var Bor=_e.default,lh=pe.default;Object.defineProperty(eb,"__esModule",{value:!0});eb.ConfirmContent=Jnt;eb.default=void 0;var Hor=lh(zr),ss=Bor(d),jor=lh(Jy),Vor=lh(av),Gor=lh($3),Wor=lh(VG),Zce=lh(St),Uor=ho,$Oe=$s,qor=lh(Bt),Kor=Os,Yor=lh(mu),OOe=lh(eW),TOe=lh($W),Xor=Fg,Qor=lh(tP),Zor=lh(HW),Jor=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 Jnt(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:s,okCancel:a,footer:l,locale:c}=e,u=Jor(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(s){case"info":f=ss.createElement(Wor.default,null);break;case"success":f=ss.createElement(jor.default,null);break;case"error":f=ss.createElement(Vor.default,null);break;default:f=ss.createElement(Gor.default,null)}const h=a??s==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[p]=(0,Kor.useLocale)("Modal"),m=c||p,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:g,cancelTextLocale:C,okTextLocale:v,mergedOkCancel:h},u),b=ss.useMemo(()=>y,(0,Hor.default)(Object.values(y))),S=ss.createElement(ss.Fragment,null,ss.createElement(OOe.default,null),ss.createElement(TOe.default,null)),w=e.title!==void 0&&e.title!==null,x=`${o}-body`;return ss.createElement("div",{className:`${o}-body-wrapper`},ss.createElement("div",{className:(0,Zce.default)(x,{[`${x}-has-title`]:w})},f,ss.createElement("div",{className:`${o}-paragraph`},w&&ss.createElement("span",{className:`${o}-title`},e.title),ss.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?ss.createElement(Xor.ModalContextProvider,{value:b},ss.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(S,{OkBtn:TOe.default,CancelBtn:OOe.default}):S)):l,ss.createElement(Zor.default,{prefixCls:t}))}const esr=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:s,rootPrefixCls:a,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,h=`${o}-confirm`,g=e.width||416,p=e.style||{},m=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,C=(0,Zce.default)(h,`${h}-${e.type}`,{[`${h}-rtl`]:i==="rtl"},e.className),[,y]=(0,Yor.default)(),b=ss.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+Uor.CONTAINER_MAX_OFFSET,[n,y]);return ss.createElement(Qor.default,Object.assign({},e,{className:C,wrapClassName:(0,Zce.default)({[`${h}-centered`]:!!e.centered},s),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:(0,$Oe.getTransitionName)(a||"","zoom",e.transitionName),maskTransitionName:(0,$Oe.getTransitionName)(a||"","fade",e.maskTransitionName),mask:m,maskClosable:v,style:p,styles:Object.assign({body:l,mask:r},f),width:g,zIndex:b,closable:c}),ss.createElement(Jnt,Object.assign({},e,{confirmPrefixCls:h})))},tsr=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return ss.createElement(qor.default,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},ss.createElement(esr,Object.assign({},e)))};eb.default=tsr;var p9={};Object.defineProperty(p9,"__esModule",{value:!0});p9.default=void 0;const nsr=[];p9.default=nsr;var ert=_e.default,jW=pe.default;Object.defineProperty(Um,"__esModule",{value:!0});Um.default=lsr;Um.modalGlobalConfig=gsr;Um.withConfirm=hsr;Um.withError=fsr;Um.withInfo=usr;Um.withSuccess=dsr;Um.withWarn=csr;var rsr=jW(zr),VB=ert(d);jW(Lo);var Jce=ert(Bt),
2025-03-02 17:53:04 +08:00
${i}${a}bottomLeft,
${o}${a}bottomLeft
`]:{animationName:jv.slideUpIn},[`
${i}${a}topLeft,
${o}${a}topLeft,
${i}${a}topRight,
${o}${a}topRight
`]:{animationName:jv.slideDownIn},[`${s}${a}bottomLeft`]:{animationName:jv.slideUpOut},[`
${s}${a}topLeft,
${s}${a}topRight
2025-03-02 21:11:20 +08:00
`]:{animationName:jv.slideDownOut},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},FOe(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"},LOe.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({},FOe(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,jv.initSlideMotion)(e,"slide-up"),(0,jv.initSlideMotion)(e,"slide-down"),(0,jv.initMoveMotion)(e,"move-up"),(0,jv.initMoveMotion)(e,"move-down")]};nU.default=alr;var S0={};Object.defineProperty(S0,"__esModule",{value:!0});S0.getMultipleSelectorUnit=S0.genOverflowStyle=S0.default=void 0;var m8=Kt,llr=gn,NOe=Zt;const Ort=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(n).sub(r).equal(),0),s=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:s,itemHeight:(0,m8.unit)(t),itemLineHeight:(0,m8.unit)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}};S0.getMultipleSelectorUnit=Ort;const clr=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},Trt=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:a,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:a,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,llr.resetIcon)()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}};S0.genOverflowStyle=Trt;const ulr=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,s=clr(e),a=t?`${n}-${t}`:"",l=Ort(e);return{[`${n}-multiple${a}`]:Object.assign(Object.assign({},Trt(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,m8.unit)(r)} 0`,lineHeight:(0,m8.unit)(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:(0,m8.unit)(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,m8.unit)(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHoriz
2025-03-02 17:53:04 +08:00
${n}-prefix + ${n}-selection-wrap
2025-03-02 21:11:20 +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(s).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:(0,m8.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 qne(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-03-02 17:53:04 +08:00
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
2025-03-02 21:11:20 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ulr(e,t),i]}const dlr=e=>{const{componentCls:t}=e,n=(0,NOe.mergeToken)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,NOe.mergeToken)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[qne(e),qne(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},qne(r,"lg")]};S0.default=dlr;var N0e={};Object.defineProperty(N0e,"__esModule",{value:!0});N0e.default=hlr;var m$=Kt,flr=gn,kOe=Zt;function Kne(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,flr.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-03-02 17:53:04 +08:00
${n}-selection-item,
${n}-selection-placeholder
`]:{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"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-search,
&${n}-show-arrow ${n}-selection-placeholder
2025-03-02 21:11:20 +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 hlr(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Kne(e),Kne((0,kOe.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-03-02 17:53:04 +08:00
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
2025-03-02 21:11:20 +08:00
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Kne((0,kOe.mergeToken)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var rU={};Object.defineProperty(rU,"__esModule",{value:!0});rU.prepareComponentToken=void 0;const glr=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:s,paddingXXS:a,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:g,colorBgContainer:p,colorFillSecondary:m,colorBgContainerDisabled:v,colorTextDisabled:C,colorPrimaryHover:y,colorPrimary:b,controlOutline:S}=e,w=a*2,x=r*2,E=Math.min(i-w,i-x),R=Math.min(o-w,o-x),O=Math.min(s-w,s-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:g,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:p,clearBg:p,singleItemHeightLG:s,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:R,multipleItemHeightLG:O,multipleSelectorBgDisabled:v,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:a}};rU.prepareComponentToken=glr;var iU={};Object.defineProperty(iU,"__esModule",{value:!0});iU.default=void 0;var QC=Kt;const Irt=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,QC.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,QC.unit)(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},zOe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Irt(e,t))}),plr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Irt(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),zOe(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),zOe(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,QC.unit)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Mrt=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,QC.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}}}},BOe=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Mrt(e,t))}),mlr=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Mrt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),BOe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),BOe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.co
2025-03-02 17:53:04 +08:00
> ${t}-item-active,
2025-03-02 21:11:20 +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"}}}};MU.default=ngr;var PU={};Object.defineProperty(PU,"__esModule",{value:!0});PU.default=void 0;var pTe=Kt;const rgr=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,pTe.unit)(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,pTe.unit)(n)})`}}}}};PU.default=rgr;var _U={};Object.defineProperty(_U,"__esModule",{value:!0});_U.default=void 0;var tre=Kt,igr=gn;const mTe=e=>Object.assign({},(0,igr.genFocusOutline)(e)),ogr=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:s,itemBg:a,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:g,motionEaseInOut:p,motionEaseOut:m,itemPaddingInline:v,motionDurationMid:C,itemHoverColor:y,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:R,dangerItemActiveBg:O,dangerItemSelectedBg:T,popupBg:M,itemHoverBg:_,itemActiveBg:F,menuSubMenuBg:D,horizontalItemSelectedColor:k,horizontalItemSelectedBg:L,horizontalItemBorderRadius:I,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},mTe(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:s}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},mTe(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:_},"&:active":{backgroundColor:F}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:F}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${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:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${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:I,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${(0,tre.unit)(u)} solid transparent`,transition:`border-color ${g} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:u,borderBottomColor:k}},"&-selected":{color:k,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:u,borderBottomColor:k}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,tre.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,tre.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} ${p}`,`opacity ${C} ${p}`].join(",")}}}}}};_U.default=ogr;var AU={};Object.defineProperty(AU,"__esModule",{value:!0});AU.default=void 0;var v8=Kt,sgr=gn;const vTe=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:s,itemMarginBlock:a,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(s).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,v8.unit)(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:a,width:l},[`> ${t}-item,
2025-03-02 17:53:04 +08:00
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,v8.unit)(n)},[`${t}-item-group-list ${t}-submenu-title,
2025-03-02 21:11:20 +08:00
${t}-submenu-title`]:{paddingInlineEnd:u}}},agr=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:s,motionEaseOut:a,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:h,paddingXS:g,boxShadowSecondary:p,collapsedWidth:m,collapsedIconSize:v}=e,C={height:r,lineHeight:(0,v8.unit)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},vTe(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},vTe(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${(0,v8.unit)(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${f} ${a}`].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:u,textAlign:"center"}}},[`> ${t}-item,
2025-03-02 17:53:04 +08:00
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,v8.unit)(e.calc(v).div(2).equal())} - ${(0,v8.unit)(c)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
2025-03-02 21:11:20 +08:00
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:(0,v8.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({},sgr.textEllipsis),{paddingInline:g})}}]};AU.default=agr;var DU=pe.default;Object.defineProperty(I7,"__esModule",{value:!0});I7.prepareComponentToken=I7.default=void 0;var zh=Kt,CTe=Us,VN=gn,mL=Rc,nre=Zt,lgr=DU(MU),cgr=DU(PU),yTe=DU(_U),ugr=DU(AU);const bTe=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:s,iconSize:a,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, ${s}`]:{minWidth:a,fontSize:a,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,VN.resetIcon)()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},STe=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:s}=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,zh.unit)(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,zh.unit)(s)})`}}}}},dgr=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:s,paddingXS:a,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:g,menuArrowSize:p,menuArrowOffset:m,lineType:v,groupTitleLineHeight:C,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,VN.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,VN.resetComponent)(e)),(0,VN.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,zh.unit)(a)} ${(0,zh.unit)(l)}`,fontSize:y,lineHeight:C,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${s}`,`background ${i} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${s}`,`padding ${i} ${s}`].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:"a
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,zh.unit)(m)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,zh.unit)(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,zh.unit)(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,zh.unit)(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,zh.unit)(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},dit=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:s,colorErrorBg:a,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:h,lineWidth:g,lineWidthBold:p,controlItemBgActive:m,colorBgTextHover:v,controlHeightLG:C,lineHeight:y,colorBgElevated:b,marginXXS:S,padding:w,fontSize:x,controlHeightSM:E,fontSizeLG:R,colorTextLightSolid:O,colorErrorHover:T}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,F=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new CTe.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:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:m,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:g,activeBarBorderWidth:_,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:F,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:E-x,collapsedIconSize:R,groupTitleFontSize:x,darkItemDisabledColor:new CTe.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:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:M?`calc(100% + ${_}px)`:`calc(100% - ${F*2}px)`}};I7.prepareComponentToken=dit;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,nre.genStyleHooks)("Menu",o=>{const{colorBgElevated:s,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:f,darkSubMenuItemBg:h,darkItemSelectedColor:g,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:v,darkGroupTitleColor:C,darkItemHoverColor:y,darkItemDisabledColor:b,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:x,popupBg:E,darkPopupBg:R}=o,O=o.calc(l).div(7).mul(5).equal(),T=(0,nre.mergeToken)(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:s,calc:o.calc,popupBg:E}),M=(0,nre.mergeToken)(T,{itemColor:c,itemHoverColor:y,groupTitleColor:C,itemSelectedColor:g,itemBg:f,popupBg:R,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:p,activeBa
2025-03-02 17:53:04 +08:00
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft,
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom,
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom,
&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight,
&${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:P1.slideUpIn},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft,
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft,
&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top,
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top,
&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight,
&${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:P1.slideDownIn},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft,
&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom,
&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:P1.slideUpOut},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft,
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top,
2025-03-02 21:11:20 +08:00
&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:P1.slideDownOut}}},(0,hit.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,ire.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,ire.genFocusStyle)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,b5.unit)(c)} ${(0,b5.unit)(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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,b5.unit)(c)} ${(0,b5.unit)(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,ire.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,b5.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:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,b5.unit)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).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,P1.initSlideMotion)(e,"slide-up"),(0,P1.initSlideMotion)(e,"slide-down"),(0,P1.initMoveMotion)(e,"move-up"),(0,P1.initMoveMotion)(e,"move-down"),(0,P1.initZoomMotion)(e,"zoom-big")]]},git=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,hit.getArrowOffsetToken)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,Ggr.getArrowToken)(e));M7.prepareComponentToken=git;M7.default=(0,OTe.genStyleHooks)("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=(0,OTe.mergeToken)(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Ugr(o),(0,Wgr.default)(o)]},git,{resetStyle:!1});var Pd=pe.default,qgr=_e.default;Object.defineProperty($9,"__esModule",{value:!0});$9.default=void 0;var El=qgr(d),Kgr=Pd(P3),ore=Pd(St),Ygr=Pd(jfr),Xgr=Pd(hl),Qgr=Pd(fa),Zgr=Pd(mi),Jgr=ho,epr=Pd(xU),tpr=Pd(R9),npr=Pd($c),rpr=Xi,ipr=Lo,opr=Pd(cv),spr=Bt,apr=Pd(Xr),lpr=Pd(O9),cpr=r3,upr=Zt,dpr=Pd(M7);const ive=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:s,disabled:a,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:h,open:g,onOpenChange:p,visible:m,onVisibleChange:v,mouseEnterDelay:C=.15,mouseLeaveDelay:y=.1,autoAdjustOver
2025-03-02 17:53:04 +08:00
> ${n} + span,
> ${n} + a
2025-03-02 21:11:20 +08:00
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${(0,PTe.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"}})}},bit=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS});P7.prepareComponentToken=bit;P7.default=(0,ATe.genStyleHooks)("Breadcrumb",e=>{const t=(0,ATe.mergeToken)(e,{});return Opr(t)},bit);var sve={};Object.defineProperty(sve,"__esModule",{value:!0});sve.default=Mpr;var Tpr=d,DTe=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 Ipr(e){const{breadcrumbName:t,children:n}=e,r=DTe(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:s}=o,a=DTe(o,["breadcrumbName"]);return Object.assign(Object.assign({},a),{title:s})})}),i}function Mpr(e,t){return(0,Tpr.useMemo)(()=>e||(t?t.map(Ipr):null),[e,t])}var ub=pe.default,Sit=_e.default;Object.defineProperty(wU,"__esModule",{value:!0});wU.default=void 0;var hR=Sit(d),Ppr=ub(St),LTe=ub(qs),_pr=ub(oh),Apr=Xi,Dpr=Bt,wit=Sit(T7),xit=ub(bP),Lpr=ub(P7),Fpr=ub(SP),Npr=ub(sve),kpr=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 zpr=(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},ave=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:s,items:a,children:l,itemRender:c,params:u={}}=e,f=kpr(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:g,breadcrumb:p}=hR.useContext(Dpr.ConfigContext);let m;const v=h("breadcrumb",t),[C,y,b]=(0,Lpr.default)(v),S=(0,Npr.default)(a,s),w=(0,Fpr.default)(v,c);if(S&&S.length>0){const R=[],O=a||s;m=S.map((T,M)=>{const{path:_,key:F,type:D,menu:k,overlay:L,onClick:I,className:A,separator:N,dropdownProps:B}=T,z=zpr(u,_);z!==void 0&&R.push(z);const j=F??M;if(D==="separator")return hR.createElement(xit.default,{key:j},N);const W={},G=M===S.length-1;k?W.menu=k:L&&(W.overlay=L);let{href:K}=T;return R.length&&z!==void 0&&(K=`#/${R.join("/")}`),hR.createElement(wit.InternalBreadcrumbItem,Object.assign({key:j},W,(0,_pr.default)(T,{data:!0,aria:!0}),{className:A,dropdownProps:B,href:K,separator:G?"":n,onClick:I,prefixCls:v}),w(T,u,O,R,K))})}else if(l){const R=(0,LTe.default)(l).length;m=(0,LTe.default)(l).map((O,T)=>{if(!O)return O;const M=T===R-1;return(0,Apr.cloneElement)(O,{separator:M?"":n,key:T})})}const x=(0,Ppr.default)(v,p==null?void 0:p.className,{[`${v}-rtl`]:g==="rtl"},i,o,y,b),E=Object.assign(Object.assign({},p==null?void 0:p.style),r);return C(hR.createElement("nav",Object.assign({className:x,style:E},f),hR.createElement("ol",null,m)))};ave.Item=wit.default;ave.Separator=xit.default;wU.default=ave;var Bpr=pe.default;Object.defineProperty(SU,"__esModule",{value:!0});SU.default=void 0;var Hpr=Bpr(wU);SU.default=Hpr.default;var NU={},wP={},db=pe.default;Object.defineProperty(wP,"__esModule",{value:!0});wP.default=void 0;var Jc=db(gge),jpr=db(qkt),Vpr=db(Kkt),Gpr=db(Ykt),Wpr=db(Xkt),Upr=db(Qkt),qpr=db(Zkt);Jc
&:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},(0,sO.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} ${a}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${s}`},[`${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} ${a}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${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:g,paddingInlineEnd:g}})}},nmr=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:s,motionDurationSlow:a,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:h,controlHeightLG:g,controlHeightSM:p,paddingXS:m,borderRadius:v,borderRadiusSM:C,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:S,colorTextDisabled:w,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:R,colorPrimary:O,colorPrimaryHover:T,colorPrimaryActive:M,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:F,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:u,lineHeight:(0,C8.unit)(k(n).sub(k(i).mul(2)).equal()),background:f,border:`${(0,C8.unit)(i)} ${o} ${s}`,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:s,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,C8.unit)(i)} ${o} ${s}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:g,fontSize:h,lineHeight:(0,C8.unit)(k(g).sub(k(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:p,paddingInline:k(m).sub(i).equal(),paddingBlock:0,lineHeight:(0,C8.unit)(k(p).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,sO.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:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${r}-group-solid &
2025-03-02 17:53:04 +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 g=S=>{const{componentCls:w,controlHeightSM:x,lineWidth:E,calc:R}=S,T=R(x).sub(R(E).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,s.genOutlinedStyle)(S)),(0,s.genFilledStyle)(S)),(0,s.genBorderlessStyle)(S)),{'&[type="color"]':{height:S.controlHeight,[`&${w}-lg`]:{height:S.controlHeightLG},[`&${w}-sm`]:{height:x,paddingTop:T,paddingBottom:T}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},p=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:E,motionDurationSlow:R,colorIcon:O,colorIconHover:T,iconCls:M}=S,_=`${w}-affix-wrapper`,F=`${w}-affix-wrapper-disabled`;return{[_]: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:E},"&-show-count-has-suffix":{marginInlineEnd:S.paddingXXS},"&-prefix":{marginInlineEnd:x},"&-suffix":{marginInlineStart:x}}}),p(S)),{[`${M}${w}-password-icon`]:{color:O,cursor:"pointer",transition:`all ${R}`,"&:hover":{color:T}}}),[F]:{[`${M}${w}-password-icon`]:{color:O,cursor:"not-allowed","&:hover":{color:O}}}}},v=S=>{const{componentCls:w,borderRadiusLG:x,borderRadiusSM:E}=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:E}}},(0,s.genOutlinedGroupStyle)(S)),(0,s.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,E=`${w}-search`;return{[E]:{[w]:{"&:hover, &:focus":{[`+ ${w}-group-addon ${E}-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,E=`${w}-textarea`;return{[E]:{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${E}-has-feedback ${w}
2025-03-02 21:11:20 +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},[`${E}-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[g(w),y(w),m(w),v(w),C(w),b(w),(0,r.genCompactItemStyle)(w)]},o.initComponentToken,{resetFont:!1})})(H3);var WU={};Object.defineProperty(WU,"__esModule",{value:!0});WU.default=void 0;var n1r=Kt,Dit=S0,KTe=Zt;const are=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=(0,Dit.getMultipleSelectorUnit)(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:(0,n1r.unit)(o.itemLineHeight)}}}]},r1r=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=(0,KTe.mergeToken)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=(0,KTe.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[are(i,"small"),are(e),are(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,Dit.genOverflowStyle)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};WU.default=r1r;var _7={};Object.defineProperty(_7,"__esModule",{value:!0});_7.genPanelStyle=_7.default=void 0;var Ji=Kt,YTe=Us;const i1r=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:s,lineWidth:a,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:h,cellBgDisabled:g,colorFillSecondary:p}=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,Ji.unit)(r),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
2025-03-02 17:53:04 +08:00
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:s}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,Ji.unit)(a)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
2025-03-02 21:11:20 +08:00
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:p}},[`&-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:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},o1r=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:s,paddingSM:a,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:h,borderRadiusLG:g,colorPrimary:p,colorTextHeading:m,colorSplit:v,pickerControlIconBorderWidth:C,colorIcon:y,textHeight:b,motionDurationMid:S,colorIconHover:w,fontWeightStrong:x,cellHeight:E,pickerCellPaddingVertical:R,colorTextDisabled:O,colorText:T,fontSize:M,motionDurationSlow:_,withoutTimeCellHeight:F,pickerQuarterPanelContentHeight:D,borderRadiusSM:k,colorTextLightSolid:L,cellHoverBg:I,timeColumnHeight:A,timeColumnWidth:N,timeCellHeight:B,controlItemBgActive:z,marginXXS:j,pickerDatePanelPaddingHorizontal:W,pickerControlIconMargin:G}=e,K=e.calc(s).mul(7).add(e.calc(W).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:g,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon,
2025-03-02 17:53:04 +08:00
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
2025-03-02 21:11:20 +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:K},"&-header":{display:"flex",padding:`0 ${(0,Ji.unit)(l)}`,color:m,borderBottom:`${(0,Ji.unit)(f)} ${h} ${v}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:(0,Ji.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:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:(0,Ji.unit)(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},"&-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,Ji.unit)(C)} 0`,borderInlineWidth:`${(0,Ji.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,Ji.unit)(C)} 0`,borderInlineWidth:`${(0,Ji.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:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(R).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,Ji.unit)(R)} 0`,color:O,cursor:"pointer","&-in-view":{color:T}},i1r(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(F).mul(4).equal()},[r]:{padding:`0 ${(0,Ji.unit)(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${(0,Ji.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,Ji.unit)(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,Ji.unit)(l)} ${(0,Ji.unit)(W)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
2025-03-02 17:53:04 +08:00
&-selected ${r},
2025-03-02 21:11:20 +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:I},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new YTe.FastColor(L).setA(.5).toHexString()},[r]:{color:L}}},"&-range-hover td:before":{background:z}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${(0,Ji.unit)(l)} ${(0,Ji.unit)(a)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,Ji.unit)(f)} ${h} ${v}`},[`${t}-date-panel,
2025-03-02 17:53:04 +08:00
${t}-time-panel`]:{transition:`opacity ${_}`},"&-active":{[`${t}-date-panel,
2025-03-02 21:11:20 +08:00
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:A},"&-column":{flex:"1 0 auto",width:N,margin:`${(0,Ji.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,Ji.unit)(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,Ji.unit)(f)} ${h} ${v}`},"&-active":{background:new YTe.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(N).sub(e.calc(j).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(N).sub(B).div(2).equal(),color:T,lineHeight:(0,Ji.unit)(B),borderRadius:k,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:I}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}};_7.genPanelStyle=o1r;const s1r=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:s,cellActiveWithRangeBg:a,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,Ji.unit)(r)} ${c} ${u}`,"&-extra":{padding:`0 ${(0,Ji.unit)(i)}`,lineHeight:(0,Ji.unit)(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,Ji.unit)(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,Ji.unit)(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,Ji.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:s,background:a,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};_7.default=s1r;var x4={};Object.defineProperty(x4,"__esModule",{value:!0});x4.prepareComponentToken=x4.initPickerPanelToken=x4.initPanelComponentToken=void 0;var XTe=Us,a1r=j3,l1r=tp;const c1r=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()}};x4.initPickerPanelToken=c1r;const Lit=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:s}=e,a=o*2,l=s*2,c=Math.min(n-a,n-l),u=Math.min(r-a,r-l),f=Math.min(i-a,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new XTe.FastColor(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new XTe.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:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}};x4.initPanelComponentToken=Lit;cons
2025-03-02 17:53:04 +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:a.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:a.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:a.slideDownOut},[`&${b}-slide-up-leave${b}-slide-up-leave-active${y}-dropdown-placement-bottomLeft,
2025-03-02 21:11:20 +08:00
&${b}-slide-up-leave${b}-slide-up-leave-active${y}-dropdown-placement-bottomRight`]:{animationName:a.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:X,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:I,borderInlineEnd:`${(0,r.unit)(x)} ${E} ${ne}`,li:Object.assign(Object.assign({},o.textEllipsis),{borderRadius:te,paddingInline:I,paddingBlock:C.calc(k).sub(le).div(2).equal(),cursor:"pointer",transition:`all ${j}`,"+ li":{marginTop:A},"&: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(K).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${y}-separator`]:{transform:"rotate(180deg)"},[`${y}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,a.initSlideMotion)(C,"slide-up"),(0,a.initSlideMotion)(C,"slide-down"),(0,a.initMoveMotion)(C,"move-up"),(0,a.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,g.default)(y),m(y),(0,u.default)(y),(0,s.genCompactItemStyle)(C,{focusElCls:`${C.componentCls}-focused`})]},h.prepareComponentToken)})(VU);Object.defineProperty(w4,"__esModule",{value:!0});w4.prepareComponentToken=w4.genCalendarStyles=w4.default=void 0;var nc=Kt,uve=VU,f1r=gn,QTe=Zt;const Fit=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:o}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,uve.genPanelStyle)(e)),(0,f1r.resetComponent)(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${(0,nc.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,nc.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${(0,nc.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,nc.unit)(e.borderRadiusLG)} ${(0,nc.unit)(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:(0,nc.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,nc.unit)(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${(0,nc.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-03-02 17:53:04 +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-03-02 21:11:20 +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:a(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,Ei.unit)(a(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,Ei.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:a(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,Ei.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},q1r=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,Ei.unit)(e.borderRadius)} ${(0,Ei.unit)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,Ei.unit)(e.borderRadius)} ${(0,Ei.unit)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,Ei.unit)(e.borderRadius)} ${(0,Ei.unit)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,Ei.unit)(e.borderRadius)} 0 0 ${(0,Ei.unit)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},K1r=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:s,itemSelectedColor:a,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color: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,E4.genFocusStyle)(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:a,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},(0,E4.genFocusOutline)(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,curs
2025-03-02 17:53:04 +08:00
> ${n}-typography,
> ${n}-typography-edit-content
2025-03-02 21:11:20 +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,to.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},C0r=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
2025-03-02 17:53:04 +08:00
${(0,to.unit)(i)} 0 0 0 ${n},
0 ${(0,to.unit)(i)} 0 0 ${n},
${(0,to.unit)(i)} ${(0,to.unit)(i)} 0 0 ${n},
${(0,to.unit)(i)} 0 0 0 ${n} inset,
0 ${(0,to.unit)(i)} 0 0 ${n} inset;
2025-03-02 21:11:20 +08:00
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},y0r=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${(0,to.unit)(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${(0,to.unit)(e.borderRadiusLG)} ${(0,to.unit)(e.borderRadiusLG)}`},(0,ny.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,to.unit)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:(0,to.unit)(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,to.unit)(e.lineWidth)} ${e.lineType} ${o}`}}})},b0r=e=>Object.assign(Object.assign({margin:`${(0,to.unit)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,ny.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},ny.textEllipsis),"&-description":{color:e.colorTextDescription}}),S0r=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${(0,to.unit)(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,to.unit)(e.padding)} ${(0,to.unit)(i)}`}}},w0r=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},x0r=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:s,extraColor:a}=e;return{[t]:Object.assign(Object.assign({},(0,ny.resetComponent)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:v0r(e),[`${t}-extra`]:{marginInlineStart:"auto",color:a,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:s,borderRadius:`0 0 ${(0,to.unit)(e.borderRadiusLG)} ${(0,to.unit)(e.borderRadiusLG)}`},(0,ny.clearFix)()),[`${t}-grid`]:C0r(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${(0,to.unit)(e.borderRadiusLG)} ${(0,to.unit)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:y0r(e),[`${t}-meta`]:b0r(e)}),[`${t}-bordered`]:{border:`${(0,to.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,to.unit)(e.borderRadiusLG)} ${(0,to.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`]:S0r(e),[`${t}-loading`]:w0r(e),[`${t}-rtl`]:{direction:"rtl"}}},E0r=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${(0,to.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"}}}}},Wit=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:
2025-03-02 17:53:04 +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-03-02 21:11:20 +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}}}]};kg.genCheckboxStyle=Xit;function Qit(e,t){const n=(0,Yit.mergeToken)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Xit(n)]}kg.default=(0,Yit.genStyleHooks)("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Qit(n,e)]});Object.defineProperty(IP,"__esModule",{value:!0});IP.default=void 0;var pvr=Kt,mvr=kg,vvr=gn;const Cvr=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
2025-03-02 17:53:04 +08:00
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
2025-03-02 21:11:20 +08:00
`;return[(0,mvr.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,pvr.unit)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},vvr.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}})}}}]};IP.default=Cvr;var yvr=pe.default;Object.defineProperty(i3,"__esModule",{value:!0});i3.prepareComponentToken=i3.default=void 0;var bvr=dv,Svr=Zt,wvr=yvr(IP);const xvr=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},(0,wvr.default)(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,bvr.genCompactItemStyle)(e)]},Zit=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}};i3.prepareComponentToken=Zit;i3.default=(0,Svr.genStyleHooks)("Cascader",e=>[xvr(e)],Zit);var rq={},Evr=pe.default;Object.defineProperty(rq,"__esModule",{value:!0});rq.default=void 0;var Rvr=Kt,$vr=i3,Ovr=Zt,Tvr=Evr(IP);const Ivr=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[(0,Tvr.default)(e),{display:"inline-flex",border:`${(0,Rvr.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}}]}};rq.default=(0,Ovr.genComponentStyleHook)(["Cascader","Panel"],e=>Ivr(e),$vr.prepareComponentToken);var gv=pe.default,Mvr=_e.default;Object.defineProperty(nq,"__esModule",{value:!0});nq.default=void 0;var fre=Mvr(d),Pvr=gv(St),_vr=Kit,Avr=gv(ep),Dvr=gv(Co),Lvr=gv(Xr),Fvr=gv(OP),Nvr=gv(tq),kvr=gv(TP),zvr=gv(i3),Bvr=gv(rq);function Hvr(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:s,expandIcon:a,disabled:l}=e,c=fre.useContext(Dvr.default),u=l??c,[f,h,g,p]=(0,Fvr.default)(t,s),m=(0,Lvr.default)(h),[v,C,y]=(0,zvr.default)(h,m);(0,Bvr.default)(h);const b=g==="rtl",[S,w]=(0,kvr.default)(f,b,a),x=o||(p==null?void 0:p("Cascader"))||fre.createElement(Avr.default,{componentName:"Cascader"}),E=(0,Nvr.default)(h,r);return v(fre.createElement(_vr.Panel,Object.assign({},e,{checkable:E,prefixCls:h,className:(0,Pvr.default)(n,C,i,y,m),notFoundContent:x,direction:g,expandIcon:S,loadingIcon:w,disabled:u})))}nq.default=Hvr;var jvr=_e.default,ha=pe.default;Object.defineProperty(eq,"__esModule",{value:!0});eq.default=void 0;var Vvr=ha(zr),W1=jvr(d),uIe=ha(St),Jit=ha(Kit),eot=ha(mi),Gvr=ho,dIe=$s,Wvr=ha($c),fIe=Ql,Uvr=Bt,qvr=ha(ep),Kvr=ha(Co),hIe=ha(Xr),Yvr=ha(io),Xvr=Ir,Qvr=ha(Id),Zvr=ha(v9),Jvr=ha(C9),e2r=ha(y9),t2r=ha(sP),n2r=ds,r2r=ha(OP),i2r=ha(tq),o2r=ha(TP),s2r=ha(nq),a2r=ha(i3),l2r=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(va
2025-03-02 17:53:04 +08:00
${t}-handler-up-inner,
${t}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,cf.unit)(n)} ${r} ${T}`,transition:`all ${m} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
${t}-handler-up-inner,
${t}-handler-down-inner
2025-03-02 21:11:20 +08:00
`]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,SL.resetIcon)()),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},wue(e,"lg")),wue(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`]:{color:x}})}]},N4r=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:s,borderRadiusSM:a,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,cf.unit)(n)} 0`}},(0,lO.genBasicInputStyle)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:s,paddingInlineStart:l,[`input${t}-input`]:{padding:`${(0,cf.unit)(u)} 0`}},"&-sm":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,cf.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,xIe.genStyleHooks)("InputNumber",e=>{const t=(0,xIe.mergeToken)(e,(0,lO.initInputToken)(e));return[F4r(t),N4r(t),(0,D4r.genCompactItemStyle)(t)]},L4r.prepareComponentToken,{unitless:{handleOpacity:!0}});var Qm=pe.default,fot=_e.default;Object.defineProperty(NP,"__esModule",{value:!0});NP.default=void 0;var Ua=fot(d),k4r=Qm(b9),z4r=Qm(dot),w5=Qm(St),B4r=Qm(M4r),EIe=Qm(ah),hre=Ql,hot=fot(Bt),H4r=Qm(Co),j4r=Qm(Xr),V4r=Qm(io),G4r=Ir,W4r=Qm(Id),U4r=ds,q4r=Qm(k7),K4r=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 got=Ua.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=Ua.useContext(hot.ConfigContext),i=Ua.useRef(null);Ua.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:s,size:a,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:g,bordered:p,readOnly:m,status:v,controls:C,variant:y}=e,b=K4r(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=(0,j4r.default)(S),[x,E,R]=(0,q4r.default)(S,w),{compactSize:O,compactItemClassnames:T}=(0,U4r.useCompactItemContext)(S,r);let M=Ua.createElement(z4r.default,{className:`${S}-handler-up-inner`}),_=Ua.createElement(k4r.default,{className:`${S}-handler-down-inner`});const F=typeof C=="boolean"?C:void 0;typeof C=="object"&&(M=typeof C.upIcon>"u"?M:Ua.createElement("span",{className:`${S}-handler-up-inner`},C.upIcon),_=typeof C.downIcon>"u"?_:Ua.createElement("span",{className:`${S}-handler-down-inner`},C.downIcon));const{hasFeedback:D,status:k,isFormItemInput:L,feedbackIcon:I}=Ua.useContext(G4r.FormItemInputContext),A=(0,hre.getMergedStatus)(k,v),N=(0,V4r.default)(Q=>{var te;return(te=a??O)!==null&&te!==void 0?te:Q}),B=Ua.useContext(H4r.default),z=l??B,[j,W]=(0,W4r.default)("inputNumber",y,p),G=D&&Ua.createElement(Ua.Fragment,null,I),K=(0,w5.default)({[`${S}-lg`]:N==="large",[`${S}-sm`]:N==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:L},E),q=`${S}-group`,X=Ua.createElement(B4r.default,Object.assign({ref:i,disabled:z,className:(0,w5.default)(R,w,o,s,T),upHandler:M,downHandler:_,prefixCls:S,readOnly:m,controls:F,prefix:h,suffix:G||g,addonBefore:u&&Ua.createElement(EIe.default,{form:!0,space:!0},u),addonAfter:f&
2025-03-02 17:53:04 +08:00
inset-inline-start ${v},
inset-block-start ${v},
width ${v},
height ${v},
box-shadow ${v},
outline ${v}
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(m).mul(-1).equal(),insetBlockStart:c(f).sub(u).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,Wu.unit)(m)} ${h}`,outline:`6px solid ${g}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).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,Wu.unit)(p)} 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`},[`
${t}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${(0,Wu.unit)(p)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
${t}-mark-text,
${t}-dot
2025-03-02 21:11:20 +08:00
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Rot=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:s,calc:a}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",g=a(r).mul(3).sub(i).div(2).equal(),p=a(i).sub(r).div(2).equal(),m=t?{borderWidth:`${(0,Wu.unit)(p)} 0`,transform:`translateY(${(0,Wu.unit)(a(p).mul(-1).equal())})`}:{borderWidth:`0 ${(0,Wu.unit)(p)}`,transform:`translateX(${(0,Wu.unit)(e.calc(p).mul(-1).equal())})`};return{[l]:r,[u]:a(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:a(r).mul(3).add(t?0:s).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:a(r).sub(o).div(2).equal()}}},y8r=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Rot(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},b8r=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Rot(e,!1)),{height:"100%"})}},$ot=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,s=e.colorPrimary,a=new NIe.FastColor(s).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:s,handleActiveOutlineColor:a,handleColorDisabled:new NIe.FastColor(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}};z7.prepareComponentToken=$ot;z7.default=(0,kIe.genStyleHooks)("Slider",e=>{const t=(0,kIe.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[C8r(t),y8r(t),b8r(t)]},$ot);var Tve={},S8r=pe.default,w8r=_e.default;Object.defineProperty(Tve,"__esModule",{value:!0});Tve.default=x8r;var Sre=w8r(d),zIe=S8r(xu);function x8r(){const[e,t]=Sre.useState(!1),n=Sre.useRef(null),r=()=>{zIe.default.cancel(n.current)},i=o=>{r(),o?t(o):n.current=(0,zIe.default)(()=>{t(o)})};return Sre.useEffect(()=>r,[]),[e,i]}var pv=pe.default;Object.defineProperty(BP,"__esModule",{value:!0});BP.default=void 0;var wp=pv(d),CR=pv(St),E8r=pv(xot),R8r=pv(xu),$8r=Bt,O8r=pv(Co),T8r=pv(HP),BIe=pv(Oq),I8r=pv(z7),wre=pv(Tve),M8r=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 P8r(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const _8r=wp.default.forwardRef((e,t)=>{var n,r,i,o,s,a,l,c,u,f;const{prefixCls:h,range:g,className:p,rootClassName:m,style:v,disabled:C,tooltipPrefixCls:y,tipFormatter:b,tooltipVisible:S,getTooltipPopupContainer:w,tooltipPlacement:x,tooltip:E={},onChangeComplete:R,classNames:O,styles:T}=e,M=M8r(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:_}=e,{direction:F,slider:D,getPrefixCls:k,getPopupContainer:L}=wp.default.useContext($8r.ConfigContext),I=wp.default.useContext(O8r.default),A=C??I,{handleRender:N,direction:B}=wp.default.useContext(T8r.default),j=(B||F)==="rtl",[W,G]=(0,wre.default)(),[K,q]=(0,wre.default)(),X=Object.assign({},E
2025-03-02 17:53:04 +08:00
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
2025-03-02 21:11:20 +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)"}}}}};fK.default=Dwr;var Lwr=pe.default;Object.defineProperty($g,"__esModule",{value:!0});$g.prepareToken=$g.prepareComponentToken=$g.default=void 0;var tm=Kt,hst=gn,Pue=Rc,gst=Zt,Fwr=Lwr(fK);const Nwr=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,tm.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,tm.unit)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),EMe=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},kwr=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,hst.resetComponent)(e)),Nwr(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},EMe(e,e.controlHeightSM)),"&-large":Object.assign({},EMe(e,e.controlHeightLG))})}},zwr=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:s,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},(0,hst.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:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,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:u,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:Pue.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}}})}},RMe=(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"}}}}},Bwr=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"}}}}},ag=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pst=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ag(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Hwr=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-03-02 17:53:04 +08:00
${r}-col-24${n}-label,
2025-03-02 21:11:20 +08:00
${r}-col-xl-24${n}-label`]:ag(e)}},[`@media (max-width: ${(0,tm.unit)(e.screenXSMax)})`]:[pst(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ag(e)}}}],[`@media (max-width: ${(0,tm.unit)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ag(e)}}},[`@media (max-width: ${(0,tm.unit)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ag(e)}}},[`@media (max-width: ${(0,tm.unit)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ag(e)}}}}},jwr=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-03-02 17:53:04 +08:00
${n}-col-24${t}-label,
2025-03-02 21:11:20 +08:00
${n}-col-xl-24${t}-label`]:ag(e),[`@media (max-width: ${(0,tm.unit)(e.screenXSMax)})`]:[pst(e),{[t]:{[`${n}-col-xs-24${t}-label`]:ag(e)}}],[`@media (max-width: ${(0,tm.unit)(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:ag(e)}},[`@media (max-width: ${(0,tm.unit)(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:ag(e)}},[`@media (max-width: ${(0,tm.unit)(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:ag(e)}}}},mst=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});$g.prepareComponentToken=mst;const vst=(e,t)=>(0,gst.mergeToken)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});$g.prepareToken=vst;$g.default=(0,gst.genStyleHooks)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=vst(e,n);return[kwr(r),zwr(r),(0,Fwr.default)(r),RMe(r,r.componentCls),RMe(r,r.formItemCls),Bwr(r),Hwr(r),jwr(r),(0,Pue.genCollapseMotion)(r),Pue.zoomIn]},mst,{order:-1e3});var Cst=_e.default,W9=pe.default;Object.defineProperty(YP,"__esModule",{value:!0});YP.default=void 0;var $Me=W9(zr),Qv=Cst(d),OMe=W9(St),TMe=Cst(Qg),IMe=W9($s),Vwr=W9(Xr),Gwr=Ir,MMe=W9(dK),Wwr=W9($g);const PMe=[];function _re(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 Uwr=e=>{let{help:t,helpStatus:n,errors:r=PMe,warnings:i=PMe,className:o,fieldId:s,onVisibleChanged:a}=e;const{prefixCls:l}=Qv.useContext(Gwr.FormItemPrefixContext),c=`${l}-item-explain`,u=(0,Vwr.default)(l),[f,h,g]=(0,Wwr.default)(l,u),p=Qv.useMemo(()=>(0,IMe.default)(l),[l]),m=(0,MMe.default)(r),v=(0,MMe.default)(i),C=Qv.useMemo(()=>t!=null?[_re(t,"help",n)]:[].concat((0,$Me.default)(m.map((S,w)=>_re(S,"error","error",w))),(0,$Me.default)(v.map((S,w)=>_re(S,"warning","warning",w)))),[t,n,m,v]),y=Qv.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 s&&(b.id=`${s}_help`),f(Qv.createElement(TMe.default,{motionDeadline:p.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:a},S=>{const{className:w,style:x}=S;return Qv.createElement("div",Object.assign({},b,{className:(0,OMe.default)(c,w,g,u,o,h),style:x,role:"alert"}),Qv.createElement(TMe.CSSMotionList,Object.assign({keys:y},(0,IMe.default)(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:R,error:O,errorStatus:T,className:M,style:_}=E;return Qv.createElement("div",{key:R,className:(0,OMe.default)(M,{[`${c}-${T}`]:T}),style:_},O)}))}))};YP.default=Uwr;var yst={},Wve={},XP={},Uve=pe.default;Object.defineProperty(XP,"__esModule",{value:!0});XP.default=Ywr;XP.getDOM=bst;XP.isDOM=_ue;var qwr=Uve(ua),Kwr=Uve(d),_Me=Uve(fo);function _ue(e){return e instanceof HTMLElement||e instanceof SVGElement}function bst(e){return e&&(0,qwr.default)(e)==="object"&&_ue(e.nativeElement)?e.nativeElement:_ue(e)?e:null}function Ywr(e){var t=bst(e);if(t)return t;if(e instanceof Kwr.default.Component){var n;return(n=_Me.default.findDOMNode)===null||n===void 0?void 0:n.call(_Me.default,e)}return null}var Y3={};Object.defineProperty(Y3,"__esModule",{value:!0});Y3.getFieldId=Jwr;Y3.getStatus=e7r;Y3.toArray=Zwr;const Xwr=["parentNode"],Qwr="form_item";function Zwr(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Jwr(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Xwr.includes(n)?`${Qwr}_${n}`:n}function e7r(e,t,n,r,i,o){let s=r;return o!==void 0?s=o:n.validating?s="validating":e.length?s="error":t.length?s="warning":(n.touched||i&&n.validated)&&(s="success"),s}var t7r=pe.default,n7r=_e.default;Object.defineProperty(Wve,"__esModule",{value:!0});Wve.default=s7r;var AMe=n7r(d),r7r=nP,i7r=XP,o7r=t7r(Ktt),Aue=Y3;function DMe(e){return(0,Aue.toArray)(e).join("_")}function LMe(e,t){const n=t.getF
2025-03-02 17:53:04 +08:00
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
2025-03-02 21:11:20 +08:00
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,ea.unit)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,ea.unit)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,ea.unit)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,DK.genInputSmallStyle)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},VEr=e=>{const{componentCls:t}=e;return{[`
2025-03-02 17:53:04 +08:00
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
2025-03-02 21:11:20 +08:00
`]:{height:e.itemSizeSM,lineHeight:(0,ea.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,ea.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,ea.unit)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,ea.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,ea.unit)(e.inputOutlineOffset)} 0 ${(0,ea.unit)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},GEr=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-03-02 17:53:04 +08:00
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
2025-03-02 21:11:20 +08:00
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,ea.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,ea.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,ea.unit)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,DK.genBasicInputStyle)(e)),(0,XMe.genBaseOutlinedStyle)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,XMe.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})}}}},WEr=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,ea.unit)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,ea.unit)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,ea.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}}}}},UEr=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,YN.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,ea.unit)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),WEr(e)),GEr(e)),VEr(e)),jEr(e)),HEr(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"}}},qEr=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,YN.genFocusStyle)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,YN.genFocusOutline)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,YN.genFocusOutline)(e))}}}},Xst=e=>Object.assign({itemB
2025-03-02 17:53:04 +08:00
${(0,G6.unit)(l(l(g).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,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> 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,G6.unit)(l(s).mul(-1).equal())} ${(0,G6.unit)(l(l(a).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":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
2025-03-02 21:11:20 +08:00
`]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("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,G6.unit)(n)} 0 ${(0,G6.unit)(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}};WY.default=nFr;var UY={};Object.defineProperty(UY,"__esModule",{value:!0});UY.default=void 0;var rFr=gn;const iFr=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},rFr.textEllipsis),{wordBreak:"keep-all",[`
2025-03-02 17:53:04 +08:00
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
2025-03-02 21:11:20 +08:00
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};UY.default=iFr;var qY={};Object.defineProperty(qY,"__esModule",{value:!0});qY.default=void 0;const oFr=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}}}}};qY.default=oFr;var KY={};Object.defineProperty(KY,"__esModule",{value:!0});KY.default=void 0;var N5=Kt,sFr=gn;const aFr=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:s,tableBorderColor:a,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:h,tableExpandedRowBg:g,paddingXXS:p,expandIconMarginTop:m,expandIconSize:v,expandIconHalfInner:C,expandIconScale:y,calc:b}=e,S=`${(0,N5.unit)(i)} ${s} ${a}`,w=b(p).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,sFr.operationUnit)(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:(0,N5.unit)(v),background:l,border:S,borderRadius:u,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:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,N5.unit)(b(f).mul(-1).equal())} ${(0,N5.unit)(b(h).mul(-1).equal())}`,padding:`${(0,N5.unit)(f)} ${(0,N5.unit)(h)}`}}}};KY.default=aFr;var YY={};Object.defineProperty(YY,"__esModule",{value:!0});YY.default=void 0;var e2=Kt,lFr=gn;const cFr=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:s,paddingXS:a,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:h,fontSizeSM:g,tablePaddingHorizontal:p,borderRadius:m,motionDurationSlow:v,colorTextDescription:C,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:x,controlItemBgHover:E,controlItemBgActive:R,boxShadowSecondary:O,filterDropdownMenuBg:T,calc:M}=e,_=`${n}-dropdown`,F=`${t}-filter-dropdown`,D=`${n}-tree`,k=`${(0,e2.unit)(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(s).mul(-1).equal(),marginInline:`${(0,e2.unit)(s)} ${(0,e2.unit)(M(p).div(2).mul(-1).equal())}`,padding:`0 ${(0,e2.unit)(s)}`,color:h,fontSize:g,borderRadius:m,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:C,background:b},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[F]:Object.assign(Object.assign({},(0,lFr.resetComponent)(e)),{minWidth:i,backgroundColor:w,borderRadius:m,boxShadow:O,overflow:"hidden",[`${_}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${(0,e2.unit)(a)} 0`,color:S,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${F}-tree`]:{paddingBlock:`${(0,e2.unit)(a)} 0`,paddi
2025-03-02 17:53:04 +08:00
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:o,background:s},[`
${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(a).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-03-02 21:11:20 +08:00
`]:{boxShadow:"none"}}}}};XY.default=uFr;var QY={};Object.defineProperty(QY,"__esModule",{value:!0});QY.default=void 0;var dFr=Kt;const fFr=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,dFr.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"}}}}};QY.default=fFr;var ZY={};Object.defineProperty(ZY,"__esModule",{value:!0});ZY.default=void 0;var qL=Kt;const hFr=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,qL.unit)(n)} ${(0,qL.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,qL.unit)(n)} ${(0,qL.unit)(n)}`}}}}};ZY.default=hFr;var JY={};Object.defineProperty(JY,"__esModule",{value:!0});JY.default=void 0;const gFr=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"}}}}};JY.default=gFr;var eX={};Object.defineProperty(eX,"__esModule",{value:!0});eX.default=void 0;var pFr=Kt;const mFr=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:s,headerIconColor:a,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:h,tablePaddingHorizontal:g,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(c).add(p(s).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(i).add(p(o).div(4)).add(p(s).mul(2)).equal()}},[`
2025-03-02 17:53:04 +08:00
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
2025-03-02 21:11:20 +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:p(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,pFr.unit)(p(g).div(4).equal()),[r]:{color:a,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}};eX.default=mFr;var tX={};Object.defineProperty(tX,"__esModule",{value:!0});tX.default=void 0;var L1=Kt;const vFr=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,s,a,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`]:{padding:`${(0,L1.unit)(s)} ${(0,L1.unit)(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,L1.unit)(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,L1.unit)(r(s).mul(-1).equal())} ${(0,L1.unit)(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,L1.unit)(r(s).mul(-1).equal()),marginInline:`${(0,L1.unit)(r(n).sub(a).equal())} ${(0,L1.unit)(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,L1.unit)(r(a).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))}};tX.default=vFr;var nX={};Object.defineProperty(nX,"__esModule",{value:!0});nX.default=void 0;const CFr=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-03-02 17:53:04 +08:00
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
2025-03-02 21:11:20 +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}}}};nX.default=CFr;var rX={};Object.defineProperty(rX,"__esModule",{value:!0});rX.default=void 0;var p_e=Kt;const yFr=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:s,zIndexTableSticky:a,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,h=`${(0,p_e.unit)(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,p_e.unit)(o)} !important`,zIndex:a,display:"flex",alignItems:"center",background:s,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}}}}}}};rX.default=yFr;var iX={};Object.defineProperty(iX,"__esModule",{value:!0});iX.default=void 0;var m_e=Kt;const bFr=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${(0,m_e.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,m_e.unit)(i(n).mul(-1).equal())} 0 ${r}`}}}};iX.default=bFr;var oX={};Object.defineProperty(oX,"__esModule",{value:!0});oX.default=void 0;var v_e=Kt;const SFr=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:s}=e,a=`${(0,v_e.unit)(r)} ${i} ${o}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
2025-03-02 17:53:04 +08:00
& > ${t}-row,
& > div:not(${t}-row) > ${t}-row
2025-03-02 21:11:20 +08:00
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:a,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,v_e.unit)(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:a,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:a,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:s(r).mul(-1).equal(),borderInlineStart:a}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:a,borderBottom:a}}}}}};oX.default=SFr;var Tc=pe.default;Object.defineProperty(sx,"__esModule",{value:!0});sx.prepareComponentToken=sx.default=void 0;var kc=Kt,IR=Us,C_e=gn,y_e=Zt,wFr=Tc(WY),xFr=Tc(UY),EFr=Tc(qY),RFr=Tc(KY),$Fr=Tc(YY),OFr=Tc(XY),TFr=Tc(QY),IFr=Tc(ZY),MFr=Tc(JY),PFr=Tc(eX),_Fr=Tc(tX),AFr=Tc(nX),DFr=Tc(rX),b_e=Tc(iX),LFr=Tc(oX);const FFr=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:s,lineType:a,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:h,motionDurationMid:g,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableFooterTextColor:v,tableFooterBg:C,calc:y}=e,b=`${(0,kc.unit)(s)} ${a} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,C_e.clearFix)()),{[t]:Object.assign(Object.assign({},(0,C_e.resetComponent)(e)),{fontSize:c,background:u,borderRadius:`${(0,kc.unit)(f)} ${(0,kc.unit)(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,kc.unit)(f)} ${(0,kc.unit)(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
2025-03-02 17:53:04 +08:00
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,kc.unit)(r)} ${(0,kc.unit)(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,kc.unit)(r)} ${(0,kc.unit)(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:p,borderBottom:b,transition:`background ${g} 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 ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${g}, border-color ${g}`,borderBottom:b,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:(0,kc.unit)(y(r).mul(-1).equal()),marginInline:`${(0,kc.unit)(y(o).sub(i).equal())}
2025-03-02 21:11:20 +08:00
${(0,kc.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:p,borderBottom:b,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${(0,kc.unit)(r)} ${(0,kc.unit)(i)}`,color:v,background:C}})}},Blt=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:s,controlItemBgActiveHover:a,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:h,controlHeight:g,colorTextPlaceholder:p,fontSize:m,fontSizeSM:v,lineHeight:C,lineWidth:y,colorIcon:b,colorIconHover:S,opacityLoading:w,controlInteractiveSize:x}=e,E=new IR.FastColor(i).onBackground(n).toHexString(),R=new IR.FastColor(o).onBackground(n).toHexString(),O=new IR.FastColor(t).onBackground(n).toHexString(),T=new IR.FastColor(b),M=new IR.FastColor(S),_=x/2-y,F=_*2+y*3;return{headerBg:O,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:R,bodySortBg:O,rowHoverBg:O,rowSelectedBg:s,rowSelectedHoverBg:a,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:h,footerBg:O,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*C-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:T.clone().setA(T.a*w).toRgbString(),headerIconHoverColor:M.clone().setA(M.a*w).toRgbString(),expandIconHalfInner:_,expandIconSize:F,expandIconScale:x/F}};sx.prepareComponentToken=Blt;const S_e=2;sx.default=(0,y_e.genStyleHooks)("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:s,headerSortActiveBg:a,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:h,rowExpandedBg:g,cellPaddingBlock:p,cellPaddingInline:m,cellPaddingBlockMD:v,cellPaddingInlineMD:C,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:S,footerBg:w,footerColor:x,headerBorderRadius:E,cellFontSize:R,cellFontSizeMD:O,cellFontSizeSM:T,headerSplitColor:M,fixedHeaderSortActiveBg:_,headerFilterHoverBg:F,filterDropdownBg:D,expandIconBg:k,selectionColumnWidth:L,stickyScrollBarBg:I,calc:A}=e,N=(0,y_e.mergeToken)(e,{tableFontSize:R,tableBg:r,tableRadius:E,tablePaddingVertical:p,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:s,tableHeaderBg:o,tableFooterTextColor:x,tableFooterBg:w,tableHeaderCellSplitColor:M,tableHeaderSortBg:a,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:F,tableFilterDropdownBg:D,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:h,zIndexTableFixed:S_e,zIndexTableSticky:A(S_e).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:T,tableSelectionColumnWidth:L,tableExpandIconBg:k,tableExpandColumnWidth:A(i).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:I,tableScrollThumbBgHover:t,tableScrollBg:n});return[FFr(N),(0,TFr.default)(N),(0,b_e.default)(N),(0,AFr.default)(N),(0,$Fr.default)(N),(0,wFr.default)(N),(0,IFr.default)(N),(0,RFr.default)(N),(0,b_e.default)(N),(0,EFr.default)(N),(0,PFr.default)(N),(0,OFr.default)(N),(0,DFr.default)(N),(0,xFr.default)(N),(0,_Fr.default)(N),(0,MFr.default)(N),(0,LFr.default)(N)]},Blt,{unitless:{expandIconScale:!0}});var ga=pe.default,sX=_e.default;Object.defineProperty(EY,"__esModule",{value:!0});EY.default=void 0;var Ms=sX(d),W6=ga(St),NFr=a_,kFr=l_,zFr=ga(mi),BFr=ga(k2e),HFr=ga(u9),jFr=Lo,VFr=Fl,GFr=ga(ep),WFr=ga(Xr),UFr=ga(io),qFr=ga(Ym),KFr=ga(Ec),YFr=
2025-03-02 17:53:04 +08:00
&${t}-right,
&${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,ic.unit)(e.marginXXS)})`,width:`calc(50% - ${(0,ic.unit)(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${(0,ic.unit)(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
${t}-item-head,
${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,ic.unit)(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`},[`${t}-item-content`]:{width:`calc(100% - ${(0,ic.unit)(n(e.itemHeadSize).add(e.marginXS).equal())})`}}},[`&${t}-pending
${t}-item-last
${t}-item-tail`]:{display:"block",height:`calc(100% - ${(0,ic.unit)(e.margin)})`,borderInlineStart:`${(0,ic.unit)(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse
${t}-item-last
2025-03-02 21:11:20 +08:00
${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${(0,ic.unit)(e.margin)})`,borderInlineStart:`${(0,ic.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,ic.unit)(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${(0,ic.unit)(e.marginSM)})`,width:`calc(50% - ${(0,ic.unit)(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Jlt=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25});cx.prepareComponentToken=Jlt;cx.default=(0,O_e.genStyleHooks)("Timeline",e=>{const t=(0,O_e.mergeToken)(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[ykr(t)]},Jlt);var g_={},bkr=pe.default,Skr=_e.default;Object.defineProperty(g_,"__esModule",{value:!0});g_.default=void 0;var k5=Skr(d),T_e=bkr(St),wkr=Bt,xkr=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 Ekr=e=>{var{prefixCls:t,className:n,color:r="blue",dot:i,pending:o=!1,position:s,label:a,children:l}=e,c=xkr(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:u}=k5.useContext(wkr.ConfigContext),f=u("timeline",t),h=(0,T_e.default)(`${f}-item`,{[`${f}-item-pending`]:o},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,p=(0,T_e.default)(`${f}-item-head`,{[`${f}-item-head-custom`]:!!i,[`${f}-item-head-${r}`]:!g});return k5.createElement("li",Object.assign({},c,{className:h}),a&&k5.createElement("div",{className:`${f}-item-label`},a),k5.createElement("div",{className:`${f}-item-tail`}),k5.createElement("div",{className:p,style:{borderColor:g,color:g}},i),k5.createElement("div",{className:`${f}-item-content`},l))};g_.default=Ekr;var SX={},Rkr=_e.default,wX=pe.default;Object.defineProperty(SX,"__esModule",{value:!0});SX.default=void 0;var $kr=wX(zr),oie=Rkr(d),Okr=wX(Jg),I_e=wX(St),Tkr=wX(g_),M_e=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 Ikr=e=>{var{prefixCls:t,className:n,pending:r=!1,children:i,items:o,rootClassName:s,reverse:a=!1,direction:l,hashId:c,pendingDot:u,mode:f=""}=e,h=M_e(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(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`:"",p=(0,$kr.default)(o||[]),m=typeof r=="boolean"?null:r;r&&p.push({pending:!!r,dot:u||oie.createElement(Okr.default,null),children:m}),a&&p.reverse();const v=p.length,C=`${t}-item-last`,y=p.filter(w=>!!w).map((w,x)=>{var E;const R=x===v-2?C:"",O=x===v-1?C:"",{className:T}=w,M=M_e(w,["className"]);return oie.createElement(Tkr.default,Object.assign({},M,{className:(0,I_e.default)([T,!a&&r?R:O,g((E=w==null?void 0:w.position)!==null&&E!==void 0?E:"",x)]),key:(w==null?void 0:w.key)||x}))}),b=p.some(w=>!!(w!=null&&w.label)),S=(0,I_e.default)(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!a,[`${t}-${f}`]:!!f&&!b,[`${t}-label`]:b,[`${t}-rtl`]:
2025-03-02 17:53:04 +08:00
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
2025-03-02 21:11:20 +08:00
`]=ZBr(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n};ru.getTitleStyles=JBr;const eHr=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,QBr.operationUnit)(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}};ru.getLinkStyles=eHr;const tHr=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:YBr.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}});ru.getResetStyles=tHr;const nHr=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,XBr.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"}}}};ru.getEditableStyles=nHr;const rHr=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}});ru.getCopyableStyles=rHr;const iHr=()=>({"\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"}});ru.getEllipsisStyles=iHr;Object.defineProperty(dy,"__esModule",{value:!0});dy.prepareComponentToken=dy.default=void 0;var oHr=gn,sHr=Zt,B5=ru;const aHr=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,B5.getTitleStyles)(e)),{[`
2025-03-02 17:53:04 +08:00
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
`]:{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,B5.getResetStyles)(e)),(0,B5.getLinkStyles)(e)),{[`
${t}-expand,
${t}-collapse,
${t}-edit,
${t}-copy
2025-03-02 21:11:20 +08:00
`]:Object.assign(Object.assign({},(0,oHr.operationUnit)(e)),{marginInlineStart:e.marginXXS})}),(0,B5.getEditableStyles)(e)),(0,B5.getCopyableStyles)(e)),(0,B5.getEllipsisStyles)()),{"&-rtl":{direction:"rtl"}})}},fct=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});dy.prepareComponentToken=fct;dy.default=(0,sHr.genStyleHooks)("Typography",e=>[aHr(e)],fct);var C_=pe.default,lHr=_e.default;Object.defineProperty(zX,"__esModule",{value:!0});zX.default=void 0;var N1=lHr(d),cHr=C_(KBr),uHr=C_(St),X_e=C_(ab),dHr=Xi,fHr=C_(zP),hHr=C_(dy);const gHr=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:s,autoSize:a=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:h,enterIcon:g=N1.createElement(cHr.default,null)}=e,p=N1.useRef(null),m=N1.useRef(!1),v=N1.useRef(null),[C,y]=N1.useState(l);N1.useEffect(()=>{y(l)},[l]),N1.useEffect(()=>{var D;if(!((D=p.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:k}=p.current.resizableTextArea;k.focus();const{length:L}=k.value;k.setSelectionRange(L,L)}},[]);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)},E=()=>{c(C.trim())},R=D=>{let{keyCode:k,ctrlKey:L,altKey:I,metaKey:A,shiftKey:N}=D;v.current!==k||m.current||L||I||A||N||(k===X_e.default.ENTER?(E(),f==null||f()):k===X_e.default.ESC&&u())},O=()=>{E()},[T,M,_]=(0,hHr.default)(t),F=(0,uHr.default)(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},r,M,_);return T(N1.createElement("div",{className:F,style:i},N1.createElement(fHr.default,{ref:p,maxLength:s,value:C,onChange:b,onKeyDown:x,onKeyUp:R,onCompositionStart:S,onCompositionEnd:w,onBlur:O,"aria-label":n,rows:1,autoSize:a}),g!==null?(0,dHr.cloneElement)(g,{className:`${t}-edit-content-confirm`}):null))};zX.default=gHr;var HX={},x4e=pe.default,pHr=_e.default;Object.defineProperty(HX,"__esModule",{value:!0});HX.default=void 0;var ZL=pHr(d),mHr=x4e(NXe),vHr=x4e(hl),CHr=x4e(Y9),yHr=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const bHr=e=>{let{copyConfig:t,children:n}=e;const[r,i]=ZL.useState(!1),[o,s]=ZL.useState(!1),a=ZL.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},c={};t.format&&(c.format=t.format),ZL.useEffect(()=>l,[]);const u=(0,vHr.default)(f=>yHr(void 0,void 0,void 0,function*(){var h;f==null||f.preventDefault(),f==null||f.stopPropagation(),s(!0);try{const g=typeof t.text=="function"?yield t.text():t.text;(0,mHr.default)(g||(0,CHr.default)(n,!0).join("")||"",c),s(!1),i(!0),l(),a.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,f)}catch(g){throw s(!1),g}}));return{copied:r,copyLoading:o,onClick:u}};HX.default=bHr;var E4e={},SHr=_e.default;Object.defineProperty(E4e,"__esModule",{value:!0});E4e.default=xHr;var wHr=SHr(d);function xHr(e,t){return wHr.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}var jX={};Object.defineProperty(jX,"__esModule",{value:!0});jX.default=void 0;var Q_e=d;const EHr=e=>{const t=(0,Q_e.useRef)(void 0);return(0,Q_e.useEffect)(()=>{t.current=e}),t.current};jX.default=EHr;var VX={};Object.defineProperty(VX,"__esModule",{value:!0});VX.default=void 0;var Z_e=d;const RHr=(e,t,n)=>(0,Z_e.useMemo)(()=>e===!0?{title:t??n}:(0,Z_e.isValidElement)(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);VX.default=RHr;var y_={},hct=pe.default,$Hr=_e.default;Object.defineProperty(y_,"__esModule",{value:!0});y_.default=void 0;var die=$Hr(d),OHr=hct(St),THr=Vi,IHr=Bt,MHr=hct(dy),PHr=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-03-02 17:53:04 +08:00
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
2025-03-02 21:11:20 +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,yie.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-03-02 17:53:04 +08:00
p${t}-text,
p${t}-hint
2025-03-02 21:11:20 +08:00
`]:{color:e.colorTextDisabled}}}}}};ZX.default=nVr;var JX={};Object.defineProperty(JX,"__esModule",{value:!0});JX.default=void 0;var rVr=Kt,aAe=gn;const iVr=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,s=`${t}-list-item`,a=`${s}-actions`,l=`${s}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,aAe.clearFix)()),{lineHeight:e.lineHeight,[s]:{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},[`${s}-name`]:Object.assign(Object.assign({},aAe.textEllipsis),{padding:`0 ${(0,rVr.unit)(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
2025-03-02 17:53:04 +08:00
${l}:focus-visible,
&.picture ${l}
2025-03-02 21:11:20 +08:00
`]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${s}-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}}},[`${s}:hover ${l}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${n}`]:{color:e.colorError},[a]:{[`${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:'""'}}})}}};JX.default=iVr;var eQ={};Object.defineProperty(eQ,"__esModule",{value:!0});eQ.default=void 0;var lAe=Kt,oVr=Rc;const sVr=e=>{const{componentCls:t}=e,n=new lAe.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new lAe.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,oVr.initFadeMotion)(e)},n,r]};eQ.default=sVr;var hx={};Object.defineProperty(hx,"__esModule",{value:!0});hx.genPictureStyle=hx.genPictureCardStyle=void 0;var cAe=Xg,n0=Kt,vct=gn;const aVr=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,s=`${t}-list`,a=`${s}-item`;return{[`${t}-wrapper`]:{[`
2025-03-02 17:53:04 +08:00
${s}${s}-picture,
${s}${s}-picture-card,
${s}${s}-picture-circle
2025-03-02 21:11:20 +08:00
`]:{[a]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,n0.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${a}-thumbnail`]:Object.assign(Object.assign({},vct.textEllipsis),{width:r,height:r,lineHeight:(0,n0.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"}}),[`${a}-progress`]:{bottom:i,width:`calc(100% - ${(0,n0.unit)(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${a}-error`]:{borderColor:e.colorError,[`${a}-thumbnail ${n}`]:{[`svg path[fill='${cAe.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${cAe.blue.primary}']`]:{fill:e.colorError}}},[`${a}-uploading`]:{borderStyle:"dashed",[`${a}-name`]:{marginBottom:i}}},[`${s}${s}-picture-circle ${a}`]:{[`&, &::before, ${a}-thumbnail`]:{borderRadius:"50%"}}}}};hx.genPictureStyle=aVr;const lVr=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,s=`${t}-list`,a=`${s}-item`,l=e.uploadPicCardSize;return{[`
2025-03-02 17:53:04 +08:00
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
2025-03-02 21:11:20 +08:00
`]:Object.assign(Object.assign({},(0,vct.clearFix)()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,n0.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}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[a]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,n0.unit)(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,n0.unit)(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${a}:hover`]:{[`&::before, ${a}-actions`]:{opacity:1}},[`${a}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
2025-03-02 17:53:04 +08:00
${n}-eye,
${n}-download,
${n}-delete
2025-03-02 21:11:20 +08:00
`]:{zIndex:10,width:r,margin:`0 ${(0,n0.unit)(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${a}-thumbnail, ${a}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${a}-name`]:{display:"none",textAlign:"center"},[`${a}-file + ${a}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,n0.unit)(o(e.paddingXS).mul(2).equal())})`},[`${a}-uploading`]:{[`&${a}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${a}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,n0.unit)(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};hx.genPictureCardStyle=lVr;var tQ={};Object.defineProperty(tQ,"__esModule",{value:!0});tQ.default=void 0;const cVr=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};tQ.default=cVr;var nQ=pe.default;Object.defineProperty(fx,"__esModule",{value:!0});fx.prepareComponentToken=fx.default=void 0;var uVr=gn,dVr=Rc,uAe=Zt,fVr=nQ(ZX),hVr=nQ(JX),gVr=nQ(eQ),dAe=hx,pVr=nQ(tQ);const mVr=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,uVr.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"}})}},Cct=e=>({actionsColor:e.colorTextDescription});fx.prepareComponentToken=Cct;fx.default=(0,uAe.genStyleHooks)("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,s=(0,uAe.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[mVr(s),(0,fVr.default)(s),(0,dAe.genPictureStyle)(s),(0,dAe.genPictureCardStyle)(s),(0,hVr.default)(s),(0,gVr.default)(s),(0,pVr.default)(s),(0,dVr.genCollapseMotion)(s)]},Cct);var rQ={},hde={exports:{}},iQ={},I4e={};Object.defineProperty(I4e,"__esModule",{value:!0});var vVr={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"};I4e.default=vVr;var CVr=_e.default,M4e=pe.default;Object.defineProperty(iQ,"__esModule",{value:!0});iQ.default=void 0;var yVr=M4e(lr),yct=CVr(d),bVr=M4e(I4e),SVr=M4e(cr),wVr=function(t,n){return yct.createElement(SVr.default,(0,yVr.default)({},t,{ref:n,icon:bVr.default}))},xVr=yct.forwardRef(wVr);iQ.default=xVr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(iQ);function r(o){return o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(hde,hde.exports);var EVr=hde.exports,gde={exports:{}},oQ={},P4e={};Object.defineProperty(P4e,"__esModule",{value:!0});var RVr={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-03-02 17:53:04 +08:00
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
2025-03-02 21:11:20 +08:00
`},CUr={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function yUr(e){let{announcements:t=CUr,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=vUr}=e;const{announce:o,announcement:s}=gUr(),a=O_("DndLiveRegion"),[l,c]=d.useState(!1);if(d.useEffect(()=>{c(!0)},[]),pUr(d.useMemo(()=>({onDragStart(f){let{active:h}=f;o(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&o(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;o(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;o(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;o(t.onDragCancel({active:h,over:g}))}}),[o,t])),!l)return null;const u=ce.createElement(ce.Fragment,null,ce.createElement(fUr,{id:r,value:i.draggable}),ce.createElement(hUr,{id:a,announcement:s}));return n?fo.createPortal(u,n):u}var Js;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Js||(Js={}));function iH(){}function oH(e,t){return d.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Dct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Hg=Object.freeze({x:0,y:0});function Lct(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Fct(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function bUr(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function LAe(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Nct(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function FAe(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const kct=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=FAe(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=Lct(FAe(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(Fct)},SUr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=LAe(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=LAe(l),u=i.reduce((h,g,p)=>h+Lct(c[p],g),0),f=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(Fct)};function wUr(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,f=u/(l+c-u);return Number(f.toFixed(4))}return 0}const xUr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=wUr(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(bUr)};function EUr(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function zct(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Hg}function RUr(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const $Ur=RUr(1);function OUr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}functio
`){const p=new a.default(this.ops);let m=new u,v=0;for(;p.hasNext();){if(p.peekType()!=="insert")return;const C=p.peek(),y=s.default.length(C)-p.peekLength(),b=typeof C.insert=="string"?C.insert.indexOf(g,y)-y:-1;if(b<0)m.push(p.next());else if(b>0)m.push(p.next(b));else{if(h(m,p.next(1).attributes||{},v)===!1)return;v+=1,m=new u}}m.length()>0&&h(m,{},v)}invert(h){const g=new u;return this.reduce((p,m)=>{if(m.insert)g.delete(s.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return g.retain(m.retain),p+m.retain;if(m.delete||typeof m.retain=="number"){const v=m.delete||m.retain;return h.slice(p,p+v).forEach(y=>{m.delete?g.push(y):m.retain&&m.attributes&&g.retain(s.default.length(y),o.default.invert(m.attributes,y.attributes))}),p+v}else if(typeof m.retain=="object"&&m.retain!==null){const v=h.slice(p,p+1),C=new a.default(v.ops).next(),[y,b,S]=c(m.retain,C.insert),w=u.getHandler(y);return g.retain({[y]:w.invert(b,S)},o.default.invert(m.attributes,C.attributes)),p+1}}return p},0),g.chop()}transform(h,g=!1){if(g=!!g,typeof h=="number")return this.transformPosition(h,g);const p=h,m=new a.default(this.ops),v=new a.default(p.ops),C=new u;for(;m.hasNext()||v.hasNext();)if(m.peekType()==="insert"&&(g||v.peekType()!=="insert"))C.retain(s.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 E=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=u.getHandler(R);O&&(E={[R]:O.transform(w[R],x[R],g)})}}C.retain(E,o.default.transform(b.attributes,S.attributes,g))}}return C.chop()}transformPosition(h,g=!1){g=!!g;const p=new a.default(this.ops);let m=0;for(;p.hasNext()&&m<=h;){const v=p.peekLength(),C=p.peekType();if(p.next(),C==="delete"){h-=Math.min(v,h-m);continue}else C==="insert"&&(m<h||!g)&&(h+=v);m+=v}return h}}u.Op=s.default,u.OpIterator=a.default,u.AttributeMap=o.default,u.handlers={},t.default=u,e.exports=u,e.exports.default=u})(Dde,Dde.exports);var Ff=Dde.exports;const qn=Bm(Ff);class lp extends Ad{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}lp.blotName="break";lp.tagName="BR";let jg=class extends dH{};const kZr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function IQ(e){return e.replace(/[&<>"']/g,t=>kZr[t])}const Ap=class Ap extends o3e{static compare(t,n){const r=Ap.order.indexOf(t),i=Ap.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}formatAt(t,n,r,i){if(Ap.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Xn.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 Ap&&Ap.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};Wt(Ap,"allowedChildren",[Ap,lp,Ad,jg]),Wt(Ap,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Fm=Ap;const $De=1;class al extends cI{constructor(){super(...arguments);Wt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Uut(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,i,o){r<=0||(this.scroll.query(i,Xn.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(`
`),s=o.shift();s.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let a=this;o.reduce((l,c)=>(a=a.split(l,!0),a.insertAt(0,c),c.length),n+s.length)}insertBefore(n,r){const{head:i}=this.children;super.insertBefore(n,r),i instanceof lp&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+$De),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()-$De)){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}}al.blotName="block";al.tagName="P";al.defaultChild=lp;al.allowedChildren=[lp,Fm,Ad,jg];class Mf extends Ad{attach(){super.attach(),this.attributes=new EQ(this.domNode)}delta(){return new qn().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const r=this.scroll.query(t,Xn.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(),s=i.map(l=>{const c=this.scroll.create(al.blotName);return c.insertAt(0,l),c}),a=this.split(t);s.forEach(l=>{this.parent.insertBefore(l,a)}),o&&this.parent.insertBefore(this.scroll.create("text",o),a)}}Mf.scope=Xn.BLOCK_BLOT;function Uut(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.descendants(Nl).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),Rf(r,{},t)),new qn).insert(`
`,Rf(e))}function Rf(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:Rf(e.parent,t,n)}const lf=class lf extends Ad{static value(){}constructor(t,n,r){super(t,n),this.selection=r,this.textNode=document.createTextNode(lf.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!==Xn.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=lf.CONTENTS.length,r.optimize(),r.formatAt(i,lf.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 jg?this.prev:null,r=n?n.length():0,i=this.next instanceof jg?this.next:null,o=i?i.text:"",{textNode:s}=this,a=s.data.split(lf.CONTENTS).join("");s.data=lf.CONTENTS;let l;if(n)l=n,(a||i)&&(n.insertAt(n.length(),a+o),i&&i.remove());else if(i)l=i,i.insertAt(0,a);else{const c=document.createTextNode(a);l=this.scroll.create(c),this.parent.insertBefore(l,this)}if(this.remove(),t){const c=(h,g)=>n&&h===n.domNode?g:h===s?r+g-1:i&&h===i.domNode?r+a.length+g:null,u=c(t.start.node,t.start.offset),f=c(t.end.node,t.end.offset);if(u!==null&&f!==null)return{startNode:l.domNode,startOffset:u,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=lf.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}};Wt(lf,"blotName","cursor"),Wt(lf,"className","ql-cursor"),Wt(lf,"tagName","span"),Wt(lf,"CONTENTS","\uFEFF");let Cx=lf;var qut={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,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var g=new i(u,f||l,h),p=n?n+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],g]:l._events[p].push(g):(l._events[p]=g,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=n?n+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,g=f.length,p=new Array(g);h<g;h++)p[h]=f[h].fn;return p},a.prototype.listenerCount=function(c){var u=n?n+c:c,f=this._events[u];return f?f.fn?1:f.length:0},a.prototype.emit=function(c,u,f,h,g,p){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,u),!0;case 3:return v.fn.call(v.context,u,f),!0;case 4:return v.fn.call(v.context,u,f,h),!0;case 5:return v.fn.call(v.context,u,f,h,g),!0;case 6:return v.fn.call(v.context,u,f,h,g,p),!0}for(b=1,y=new Array(C-1);b<C;b++)y[b-1]=arguments[b];v.fn.apply(v.context
2025-03-02 17:53:04 +08:00
`)&&(n<=s||!!this.scroll.descendant(Mf,s)[0]),this.scroll.insertAt(s,p);const[m,v]=this.scroll.line(s);let C=I4({},Rf(m));if(m instanceof al){const[y]=m.descendant(Nl,v);y&&(C=I4(C,Rf(y)))}c=Ff.AttributeMap.diff(C,c)||{}}else if(typeof a.insert=="object"){const p=Object.keys(a.insert)[0];if(p==null)return s;const m=this.scroll.query(p,Xn.INLINE)!=null;if(m)(n<=s||this.scroll.descendant(Mf,s)[0])&&(f=!0);else if(s>0){const[v,C]=this.scroll.descendant(Nl,s-1);v instanceof jg?v.value()[C]!==`
2025-03-02 21:11:20 +08:00
`&&(u=!0):v instanceof Ad&&v.statics.scope===Xn.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(s,p,a.insert[p]),m){const[v]=this.scroll.descendant(Nl,s);if(v){const C=I4({},Rf(v));c=Ff.AttributeMap.diff(C,c)||{}}}}n+=l}else if(i.push(a),a.retain!==null&&typeof a.retain=="object"){const p=Object.keys(a.retain)[0];if(p==null)return s;this.scroll.updateEmbedAt(s,p,a.retain[p])}Object.keys(c).forEach(p=>{this.scroll.formatAt(s,l,p,c[p])});const h=u?1:0,g=f?1:0;return n+=h+g,i.retain(h),i.delete(g),s+l+h+g},0),i.reduce((s,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(s,a.delete),s):s+Ff.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new qn().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(s=>{s.format(o,r[o])})}),this.scroll.optimize();const i=new qn().retain(t).retain(n,aw(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 qn().retain(t).retain(n,aw(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 qn)}getFormat(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],i=[];n===0?this.scroll.path(t).forEach(a=>{const[l]=a;l instanceof al?r.push(l):l instanceof Nl&&i.push(l)}):(r=this.scroll.lines(t,n),i=this.scroll.descendants(Nl,t,n));const[o,s]=[r,i].map(a=>{const l=a.shift();if(l==null)return{};let c=Rf(l);for(;Object.keys(c).length>0;){const u=a.shift();if(u==null)return c;c=WZr(Rf(u),c)}return c});return{...o,...s}}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)?dI(r,i,n,!0):dI(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=ODe(n),i=new qn().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 qn().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-03-02 17:53:04 +08:00
`).replace(/\r/g,`
`),this.scroll.insertAt(t,n),Object.keys(r).forEach(i=>{this.scroll.formatAt(t,n.length,i,r[i])}),this.update(new qn().retain(t).insert(n,aw(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)!==al.blotName)return!1;const n=t;return n.children.length>1?!1:n.children.head instanceof lp}removeFormat(t,n){const r=this.getText(t,n),[i,o]=this.scroll.line(t+n);let s=0,a=new qn;i!=null&&(s=i.length()-o,a=i.delta().slice(o,o+s-1).insert(`
2025-03-02 21:11:20 +08:00
`));const c=this.getContents(t,n+s).diff(new qn().insert(r).concat(a)),u=new qn().retain(t).concat(c);return this.applyDelta(u)}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(VZr)&&this.scroll.find(n[0].target)){const o=this.scroll.find(n[0].target),s=Rf(o),a=o.offset(this.scroll),l=n[0].oldValue.replace(Cx.CONTENTS,""),c=new qn().insert(l),u=new qn().insert(o.value()),f=r&&{oldRange:TDe(r.oldRange,-a),newRange:TDe(r.newRange,-a)};t=new qn().retain(a).concat(c.diff(u,f)).reduce((g,p)=>p.insert?g.insert(p.insert,s):g.push(p),new qn),this.delta=i.compose(t)}else this.delta=this.getDelta(),(!t||!i3e(i.compose(t),this.delta))&&(t=i.diff(this.delta,r));return t}}function oS(e,t,n){if(e.length===0){const[g]=Nie(n.pop());return t<=0?`</li></${g}>`:`</li></${g}>${oS([],t-1,n)}`}const[{child:r,offset:i,length:o,indent:s,type:a},...l]=e,[c,u]=Nie(a);if(s>t)return n.push(a),s===t+1?`<${c}><li${u}>${dI(r,i,o)}${oS(l,s,n)}`:`<${c}><li>${oS(e,t+1,n)}`;const f=n[n.length-1];if(s===t&&a===f)return`</li><li${u}>${dI(r,i,o)}${oS(l,s,n)}`;const[h]=Nie(n.pop());return`</li></${h}>${oS(e,t-1,n)}`}function dI(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 jg)return IQ(e.value().slice(t,t+n)).replaceAll(" ","&nbsp;");if(e instanceof Tg){if(e.statics.blotName==="list-container"){const c=[];return e.children.forEachAt(t,n,(u,f,h)=>{const g="formats"in u&&typeof u.formats=="function"?u.formats():{};c.push({child:u,offset:f,length:h,indent:g.indent||0,type:g.list})}),oS(c,-1,[])}const i=[];if(e.children.forEachAt(t,n,(c,u,f)=>{i.push(dI(c,u,f))}),r||e.statics.blotName==="list")return i.join("");const{outerHTML:o,innerHTML:s}=e.domNode,[a,l]=o.split(`>${s}<`);return a==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${l}`:`${a}>${i.join("")}<${l}`}return e.domNode instanceof Element?e.domNode.outerHTML:""}function WZr(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 Nie(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 ODe(e){return e.reduce((t,n)=>{if(typeof n.insert=="string"){const r=n.insert.replace(/\r\n/g,`
2025-03-02 17:53:04 +08:00
`).replace(/\r/g,`
2025-03-02 21:11:20 +08:00
`);return t.insert(r,n.attributes)}return t.push(n)},new qn)}function TDe(e,t){let{index:n,length:r}=e;return new vy(n+t,r)}function UZr(e){const t=[];return e.forEach(n=>{typeof n.insert=="string"?n.insert.split(`
2025-03-02 17:53:04 +08:00
`).forEach((i,o)=>{o&&t.push({insert:`
2025-03-02 21:11:20 +08:00
`,attributes:n.attributes}),i&&t.push({insert:i,attributes:n.attributes})}):t.push(n)}),t}class cp{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=n}}Wt(cp,"DEFAULTS",{});const aF="\uFEFF";class d3e extends Ad{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(aF),this.rightGuard=document.createTextNode(aF),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(aF).join("");if(t===this.leftGuard)if(this.prev instanceof jg){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 jg?(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=aF,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 qZr{constructor(t,n){Wt(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 d3e)&&(this.emitter.emit(zn.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(zn.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(zn.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(zn.events.COMPOSITION_END,t),this.isComposing=!1}}const RO=class RO{constructor(t,n){Wt(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]}};Wt(RO,"DEFAULTS",{modules:{}}),Wt(RO,"themes",{default:RO});let yx=RO;const KZr=e=>e.parentElement||e.getRootNode().host||null,YZr=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}},lF=e=>{const t=parseInt(e,10);return Number.isNaN(t)?0:t},IDe=(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,XZr=(e,t)=>{var o,s,a;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:((s=window.visualViewport)==null?void 0:s.height)??n.documentElement.clientHeight,left:0}:YZr(i),u=getComputedStyle(i),f=IDe(r.left,r.right,c.left,c.right,lF(u.scrollPaddingLeft),lF(u.scrollPaddingRight)),h=IDe(r.top,r.bottom,c.top,c.bottom,lF(u.scrollPaddingTop),lF(u.scrollPaddingBottom));if(f||h)if(l)(a=n.defaultView)==null||a.scrollBy(f,h);else{const{scrollLeft:g,scrollTop:p}=i;h&&(i.scrollTop+=h),f&&(i.scrollLeft+=f);const m=i.scrollLeft-g,v=i.scrollTop-p;r={left:r.left-m,top:r.top-v,right:r.right-m,bottom:r.bottom-v}}i=l||u.position==="fixed"?null:KZr(i)}},QZr=100,ZZr=["block","break","cursor","inline","scroll","text"],JZr=(e,t,n)=>{const r=new vx;return ZZr.forEach(i=>{const o=t.query(i);o&&r.register(o)}
`});this.setContents(s)}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]=k1(t,n,r),Ih.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]:zn.sources.API;return Ih.call(this,()=>{const i=this.getSelection(!0);let o=new qn;if(i==null)return o;if(this.scroll.query(t,Xn.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,zn.sources.SILENT),o},r)}formatLine(t,n,r,i,o){let s;return[t,n,s,o]=k1(t,n,r,i,o),Ih.call(this,()=>this.editor.formatLine(t,n,s),o,t,0)}formatText(t,n,r,i,o){let s;return[t,n,s,o]=k1(t,n,r,i,o),Ih.call(this,()=>this.editor.formatText(t,n,s),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]=k1(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]=k1(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]=k1(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]:jh.sources.API;return Ih.call(this,()=>this.editor.insertEmbed(t,n,r),i,t)}insertText(t,n,r,i,o){let s;return[t,,s,o]=k1(t,0,r,i,o),Ih.call(this,()=>this.editor.insertText(t,n,s),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]=k1(t,n,r),Ih.call(this,()=>this.editor.removeFormat(t,n),r,t)}scrollRectIntoView(t){XZr(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecate
2025-03-02 17:53:04 +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===Xn.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 qn().insert(`
2025-03-02 21:11:20 +08:00
`))),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(Mf,t)[0]&&t<this.length()),c=o.type==="block"?o.delta:new qn().insert({[o.key]:o.value});zie(this,t,c);const u=o.type==="block"?1:0,f=t+c.length()+u;l&&this.insertAt(f-1,`
`);const h=Rf(this.line(t)[0]),g=Ff.AttributeMap.diff(h,o.attributes)||{};Object.keys(g).forEach(p=>{this.formatAt(f-1,1,p,g[p])}),t=f}let[s,a]=this.children.find(t);if(r.length&&(s&&(s=s.split(a),a=0),r.forEach(l=>{if(l.type==="block"){const c=this.createBlock(l.attributes,s||void 0);zie(c,0,l.delta)}else{const c=this.create(l.key,l.value);this.insertBefore(c,s||void 0),Object.keys(l.attributes).forEach(u=>{c.format(u,l.attributes[u])})}})),i.type==="block"&&i.delta.length()){const l=s?s.offset(s.scroll)+a:this.length();zie(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 Nl?[r,i]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(ADe,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,s)=>{let a=[],l=s;return i.children.forEachAt(o,s,(c,u,f)=>{ADe(c)?a.push(c):c instanceof RQ&&(a=a.concat(r(c,u,l))),l-=f}),a};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(zn.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=zn.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&&!DDe(o)}),t.length>0&&this.emitter.emit(zn.events.SCROLL_BEFORE_UPDATE,n,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(zn.events.SCROLL_UPDATE,n,t)}updateEmbedAt(t,n,r){const[i]=this.descendant(o=>o instanceof Mf,t);i&&i.statics.blotName===n&&DDe(i)&&i.updateContent(r)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const n=[];let r=new qn;return t.forEach(i=>{const o=i==null?void 0:i.insert;if(o)if(typeof o=="string"){const s=o.split(`
`);s.slice(0,-1).forEach(l=>{r.insert(l,i.attributes),n.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new qn});const a=s[s.length-1];a&&r.insert(a,i.attributes)}else{const s=Object.keys(o)[0];if(!s)return;this.query(s,Xn.INLINE)?r.push(i):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new qn,n.push({type:"blockEmbed",key:s,value:o[s],attributes:i.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(t,n){let r;const i={};Object.entries(t).forEach(a=>{let[l,c]=a;this.query(l,Xn.BLOCK&Xn.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 s=o.length();return Object.entries(i).forEach(a=>{let[l,c]=a;o.formatAt(0,s,l,c)}),o}}Wt(sS,"blotName","scroll"),Wt(sS,"className","ql-editor"),Wt(sS,"tagName","DIV"),Wt(sS,"defaultChild",al),Wt(sS,"allowedChildren",[al,Mf,Ib]);function zie(e,t,n){n.reduce((r,i)=>{const o=Ff.Op.length(i);let s=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const a=i.insert;e.insertAt(r,a);const[l]=e.descendant(Nl,r),c=Rf(l);s=Ff.AttributeMap.diff(c,s)||{}}else if(typeof i.insert=="object"){const a=Object.keys(i.insert)[0];if(a==null)return r;if(e.insertAt(r,a,i.insert[a]),e.scroll.query(a,Xn.INLINE)!=null){const[c]=e.descendant(Nl,r),u=Rf(c);s=Ff.AttributeMap.diff(u,s)||{}}}}return Object.keys(s).forEach(a=>{e.formatAt(r,o,a,s[a])}),r+o},t)}const f3e={scope:Xn.BLOCK,whitelist:["right","center","justify"]},tJr=new Lm("align","align",f3e),Yut=new ap("align","ql-align",f3e),Xut=new o6("align","text-align",f3e);class Qut extends o6{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 nJr=new ap("color","ql-color",{scope:Xn.INLINE}),h3e=new Qut("color","color",{scope:Xn.INLINE}),rJr=new ap("background","ql-bg",{scope:Xn.INLINE}),g3e=new Qut("background","background-color",{scope:Xn.INLINE});class Mb extends Ib{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-03-02 17:53:04 +08:00
`).slice(t,t+n)}html(t,n){return`<pre>
${IQ(this.code(t,n))}
2025-03-02 21:11:20 +08:00
</pre>`}}class Gl extends al{static register(){Gt.register(Mb)}}Wt(Gl,"TAB"," ");class p3e extends Fm{}p3e.blotName="code";p3e.tagName="CODE";Gl.blotName="code-block";Gl.className="ql-code-block";Gl.tagName="DIV";Mb.blotName="code-block-container";Mb.className="ql-code-block-container";Mb.tagName="DIV";Mb.allowedChildren=[Gl];Gl.allowedChildren=[jg,lp,Cx];Gl.requiredContainer=Mb;const m3e={scope:Xn.BLOCK,whitelist:["rtl"]},Zut=new Lm("direction","dir",m3e),Jut=new ap("direction","ql-direction",m3e),edt=new o6("direction","direction",m3e),tdt={scope:Xn.INLINE,whitelist:["serif","monospace"]},ndt=new ap("font","ql-font",tdt);class iJr extends o6{value(t){return super.value(t).replace(/["']/g,"")}}const rdt=new iJr("font","font-family",tdt),idt=new ap("size","ql-size",{scope:Xn.INLINE,whitelist:["small","large","huge"]}),odt=new o6("size","font-size",{scope:Xn.INLINE,whitelist:["10px","18px","32px"]}),oJr=xv("quill:keyboard"),sJr=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class MQ extends cp{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=lJr(t);if(i==null){oJr.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(s=>{const a={...i,key:s,...n,...r};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})}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=>MQ.match(t,C));if(i.length===0)return;const o=Gt.find(t.target,!0);if(o&&o.scroll!==this.quill.scroll)return;const s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;const[a,l]=this.quill.getLine(s.index),[c,u]=this.quill.getLeaf(s.index),[f,h]=s.length===0?[c,u]:this.quill.getLeaf(s.index+s.length),g=c instanceof dH?c.value().slice(0,u):"",p=f instanceof dH?f.value().slice(h):"",m={collapsed:s.length===0,empty:s.length===0&&a.length()<=1,format:this.quill.getFormat(s),line:a,offset:l,prefix:g,suffix:p,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:i3e(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,s,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 s=new qn().retain(t.index-r).delete(r);if(n.offset===0){con
`,r);this.quill.updateContents(i,Gt.sources.USER),this.quill.setSelection(t.index+1,Gt.sources.SILENT),this.quill.focus()}}const aJr={bindings:{bold:Bie("bold"),italic:Bie("italic"),underline:Bie("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(e,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",Gt.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",Gt.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",Gt.sources.USER):t.format.list!=null&&this.quill.format("list",!1,Gt.sources.USER)}},"indent code-block":LDe(!0),"outdent code-block":LDe(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(e){this.quill.deleteText(e.index-1,1,Gt.sources.USER)}},tab:{key:"Tab",handler(e,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=new qn().retain(e.index).delete(e.length).insert(" ");return this.quill.updateContents(n,Gt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,Gt.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Gt.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,Gt.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 qn().retain(e.index).insert(`
2025-03-02 17:53:04 +08:00
`,r).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Gt.sources.USER),this.quill.setSelection(e.index+1,Gt.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 qn().retain(e.index).insert(`
2025-03-02 21:11:20 +08:00
`,t.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,Gt.sources.USER),this.quill.setSelection(e.index+1,Gt.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),s=cJr(n,r,i,o);if(s==null)return;let a=n.offset();if(s<0){const l=new qn().retain(a).insert(`
2025-03-02 17:53:04 +08:00
`);this.quill.updateContents(l,Gt.sources.USER),this.quill.setSelection(e.index+1,e.length,Gt.sources.SILENT)}else if(s>0){a+=n.length();const l=new qn().retain(a).insert(`
2025-03-02 21:11:20 +08:00
`);this.quill.updateContents(l,Gt.sources.USER),this.quill.setSelection(a,Gt.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,Gt.sources.USER):this.quill.setSelection(i+r.length(),Gt.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," ",Gt.sources.USER),this.quill.history.cutoff();const s=new qn().retain(e.index-i).delete(n+1).retain(r.length()-2-i).retain(1,{list:o});return this.quill.updateContents(s,Gt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,Gt.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 qn().retain(e.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Gt.sources.USER),this.quill.setSelection(e.index-1,Gt.sources.SILENT),!1}return!0}},"embed left":uF("ArrowLeft",!1),"embed left shift":uF("ArrowLeft",!0),"embed right":uF("ArrowRight",!1),"embed right shift":uF("ArrowRight",!0),"table down":FDe(!1),"table up":FDe(!0)}};MQ.DEFAULTS=aJr;function LDe(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,Gt.sources.USER),this.quill.setSelection(t.index+o.length,Gt.sources.SILENT);return}const s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:a,length:l}=t;s.forEach((c,u)=>{e?(c.insertAt(0,o),u===0?a+=o.length:l+=o.length):c.domNode.textContent.startsWith(o)&&(c.deleteAt(0,o.length),u===0?a-=o.length:l-=o.length)}),this.quill.update(Gt.sources.USER),this.quill.setSelection(a,l,Gt.sources.SILENT)}}}function uF(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 Ad?(e==="ArrowLeft"?t?this.quill.setSelection(r.index-1,r.length+1,Gt.sources.USER):this.quill.setSelection(r.index-1,Gt.sources.USER):t?this.quill.setSelection(r.index,r.length+1,Gt.sources.USER):this.quill.setSelection(r.index+r.length+1,Gt.sources.USER),!1):!0}}}function Bie(e){return{key:e[0],shortKey:!0,handler(t,n){this.quill.format(e,!n.format[e],Gt.sources.USER)}}}function FDe(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 s=o.children.head,a=i;for(;a.prev!=null;)a=a.prev,s=s.next;const l=s.offset(this.quill.scroll)+Math.min(n.offset,s.length()-1);this.quill.setSelection(l,0,Gt.sources.USER)}}else{const s=i.table()[r];s!=null&&(e?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,Gt.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,Gt.sources.USER))}return!1}}}function lJr(e){if(typeof e=="string"||typeof e=="number")e={key:e};else if(typeof e=="object")e=aw(e);else return null;return e.shortKey&&(e[sJr]=e.shortKey,delete e.shortKey),e}function v3e(e){let{quill:t,range:n}=e;const r=t.getLines(n);let i={};if(r.length>1){const o=r[0].formats(),s=r[r.length-1].formats();i=Ff.AttributeMap.diff(s,o)||{}}t.deleteText(n,Gt.sources.USER),Object.keys(i).length>0&&t.formatLine(n.index,1,i,Gt.sources.USER),t.setSelection(n.index,Gt.sources.SILENT)}function cJr(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:
`)&&(o.ops[o.ops.length-1].attributes==null||i.table)?o.compose(new qn().retain(o.length()-1).delete(1)):o}normalizeHTML(t){wJr(t)}convertHTML(t){const n=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(n);const r=n.body,i=new WeakMap,[o,s]=this.prepareMatching(r,i);return C3e(this.quill.scroll,r,o,s,i)}dangerouslyPasteHTML(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gt.sources.API;if(typeof t=="string"){const i=this.convert({html:t,text:""});this.quill.setContents(i,n),this.quill.setSelection(0,Gt.sources.SILENT)}else{const i=this.convert({html:n,text:""});this.quill.updateContents(new qn().retain(t).concat(i),r),this.quill.setSelection(t+i.length(),Gt.sources.SILENT)}}onCaptureCopy(t){var s,a;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);(s=t.clipboardData)==null||s.setData("text/plain",o),(a=t.clipboardData)==null||a.setData("text/html",i),n&&v3e({range:r,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(n=>n[0]!=="#").join(`
`)}onCapturePaste(t){var s,a,l,c,u;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=(s=t.clipboardData)==null?void 0:s.getData("text/html");let i=(a=t.clipboardData)==null?void 0:a.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&&((u=f.body.firstElementChild)==null?void 0:u.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),s=this.convert({text:r,html:i},o);xJr.log("onPaste",s,{text:r,html:i});const a=new qn().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(a,Gt.sources.USER),this.quill.setSelection(a.length()-t.length,Gt.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,n){const r=[],i=[];return this.matchers.forEach(o=>{const[s,a]=o;switch(s){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:r.push(a);break;default:Array.from(t.querySelectorAll(s)).forEach(l=>{if(n.has(l)){const c=n.get(l);c==null||c.push(a)}else n.set(l,[a])});break}}),[r,i]}}Wt(sdt,"DEFAULTS",{matchers:[]});function Pb(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 s=n?{[t]:n}:{};return i.insert(o.insert,{...s,...o.attributes})},new qn):e}function P_(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 o4(e,t){if(!(e instanceof Element))return!1;const n=t.query(e);return n&&n.prototype instanceof Ad?!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 $Jr(e,t){return e.previousElementSibling&&e.nextElementSibling&&!o4(e.previousElementSibling,t)&&!o4(e.nextElementSibling,t)}const dF=new WeakMap;function adt(e){return e==null?!1:(dF.has(e)||(e.tagName==="PRE"?dF.set(e,!0):dF.set(e,adt(e.parentNode))),dF.get(e))}function C3e(e,t,n,r,i){return t.nodeType===t.TEXT_NODE?r.reduce((o,s)=>s(t,o,e),new qn):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((o,s)=>{let a=C3e(e,s,n,r,i);return s.nodeType===t.ELEMENT_NODE&&(a=n.reduce((l,c)=>c(s,l,e),a),a=(i.get(s)||[]).reduce((l,c)=>c(s,l,e),a)),o.concat(a)},new qn):new qn}function Hie(e){return(t,n,r)=>Pb(n,e,!0,r)}function OJr(e,t,n){const r=Lm.keys(e),i=ap.keys(e),o=o6.keys(e),s={};return r.concat(i).concat(o).forEach(a=>{let l=n.query(a,Xn.ATTRIBUTE);l!=null&&(s[l.attrName]=l.value(e),s[l.attrName])||(l=RJr[a],l!=null&&(l.attrName===a||l.keyName===a)&&(s[l.attrName]=l.value(e)||void 0),l=kDe[a],l!=null&&(l.attrName===a||l.keyName===a)&&(l=kDe[a],s[l.attrName]=l.value(e)||void 0))}),Object.entries(s).reduce((a,l)=>{let[c,u]=l;return Pb(a,c,u,n)},t)}function TJr(e,t,n){const r=n.query(e);if(r==null)return t;if(r.prototype instanceof Ad){const i={},o=r.value(e);if(o!=null)return i[r.blotName]=o,new qn().insert(i,r.formats(e,n))}else if(r.prototype instanceof cI&&!P_(t,`
2025-03-02 17:53:04 +08:00
`)&&t.insert(`
2025-03-02 21:11:20 +08:00
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Pb(t,r.blotName,r.formats(e,n),n);return t}function IJr(e,t){return P_(t,`
2025-03-02 17:53:04 +08:00
`)||t.insert(`
2025-03-02 21:11:20 +08:00
`),t}function MJr(e,t,n){const r=n.query("code-block"),i=r&&"formats"in r&&typeof r.formats=="function"?r.formats(e,n):!0;return Pb(t,"code-block",i,n)}function PJr(){return new qn}function _Jr(e,t,n){const r=n.query(e);if(r==null||r.blotName!=="list"||!P_(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((s,a)=>a.insert?a.attributes&&typeof a.attributes.indent=="number"?s.push(a):s.insert(a.insert,{indent:i,...a.attributes||{}}):s,new qn)}function AJr(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"),Pb(t,"list",i,n)}function zDe(e,t,n){if(!P_(t,`
2025-03-02 17:53:04 +08:00
`)){if(o4(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(o4(r,n))return t.insert(`
`);const i=n.query(r);if(i&&i.prototype instanceof Mf)return t.insert(`
2025-03-02 21:11:20 +08:00
`);r=r.firstChild}}}return t}function DJr(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((s,a)=>{let[l,c]=a;return Pb(s,l,c,n)},t),parseFloat(i.textIndent||0)>0?new qn().insert(" ").concat(t):t}function LJr(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 a=Array.from(r.querySelectorAll("tr")).indexOf(e)+1;return Pb(t,"table",a,n)}return t}function FJr(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(!adt(e)){if(r.trim().length===0&&r.includes(`
`)&&!$Jr(e,n))return t;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(e.previousSibling==null&&e.parentElement!=null&&o4(e.parentElement,n)||e.previousSibling instanceof Element&&o4(e.previousSibling,n))&&(r=r.replace(/^ /,"")),(e.nextSibling==null&&e.parentElement!=null&&o4(e.parentElement,n)||e.nextSibling instanceof Element&&o4(e.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return t.insert(r)}class ldt extends cp{constructor(n,r){super(n,r);Wt(this,"lastRecorded",0);Wt(this,"ignoreChange",!1);Wt(this,"stack",{undo:[],redo:[]});Wt(this,"currentRange",null);this.quill.on(Gt.events.EDITOR_CHANGE,(i,o,s,a)=>{i===Gt.events.SELECTION_CHANGE?o&&a!==Gt.sources.SILENT&&(this.currentRange=o):i===Gt.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||a===Gt.sources.USER?this.record(o,s):this.transform(o)),this.currentRange=Bde(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(),s=i.delta.invert(o);this.stack[r].push({delta:s,range:Bde(i.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Gt.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 s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(i=i.compose(a.delta),o=a.range)}else this.lastRecorded=s;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){BDe(this.stack.undo,n),BDe(this.stack.redo,n)}undo(){this.change("undo","redo")}restoreSelection(n){if(n.range)this.quill.setSelection(n.range,Gt.sources.USER);else{const r=kJr(this.quill.scroll,n.delta);this.quill.setSelection(r,Gt.sources.USER)}}}Wt(ldt,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function BDe(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&&Bde(i.range,n)},n=i.delta.transform(n),e[r].delta.length()===0&&e.splice(r,1)}}function NJr(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,Xn.BLOCK)!=null):!1}function kJr(e,t){const n=t.reduce((i,o)=>i+(o.delete||0),0);let r=t.length()-n;return NJr(e,t)&&(r-=1),r}function Bde(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 cdt extends cp{constructor(t,n){super(t,n),t.root.addEventListener("drop",r=>{var s;r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(a.offsetNode,a.offset),i.setEnd(a.offsetNode,a.offset)}const o=i&&t.selection.normalizeNative(i);if(o){const a=t.selection.normalizedToRange(o);(s=r.dataTransfer)!=null&&s.files&&this.upload(a,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)}}cdt.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,s)=>o.insert({image:s}),new qn().retain(e.index).delete(e.length));this.quill.updateContents(i,zn.sources.USER),this.quill.setSelection(e.index+r.length,zn.sources.SILENT)})}};const zJr=["insertText","insertReplacementText"];class BJr extends cp{constructor(t,n){super(t,n),t.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||t.on(Gt.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){v3e({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 qn().retain(t.index).insert(n,r),Gt.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+n.length,0,Gt.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!zJr.includes(t.inputType))return;const n=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=HJr(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 HJr(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 jJr=/Mac/i.test(navigator.platform),VJr=100,GJr=e=>!!(e.key==="ArrowLeft"||e.key==="ArrowRight"||e.key==="ArrowUp"||e.key==="ArrowDown"||e.key==="Home"||jJr&&e.key==="a"&&e.ctrlKey===!0);class WJr extends cp{constructor(n,r){super(n,r);Wt(this,"isListening",!1);Wt(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 Tg)||!i.uiNode)return!0;const s=getComputedStyle(i.domNode).direction==="rtl";return s&&o.key!=="ArrowRight"||!s&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(n.index-1,n.length+(o.shiftKey?1:0),Gt.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",n=>{!n.defaultPrevented&&GJr(n)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+VJr,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-03-02 17:53:04 +08:00
`)}
2025-03-02 21:11:20 +08:00
`,o=$f.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const s=this.children.reduce((l,c)=>l.concat(Uut(c,!1)),new qn),a=t(i,o);s.diff(a).reduce((l,c)=>{let{retain:u,attributes:f}=c;return u?(f&&Object.keys(f).forEach(h=>{[$f.blotName,V0.blotName].includes(h)&&this.formatAt(l,u,h,f[h])}),l+u):l},0)}this.cachedText=i,this.forceNext=!1}}html(t,n){const[r]=this.children.find(t);return`<pre data-language="${r?$f.formats(r.domNode):"plain"}">
2025-03-02 17:53:04 +08:00
${IQ(this.code(t,n))}
2025-03-02 21:11:20 +08:00
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=$f.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}mO.allowedChildren=[$f];$f.requiredContainer=mO;$f.allowedChildren=[V0,Cx,jg,lp];const YJr=(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 ddt extends cp{static register(){Gt.register(V0,!0),Gt.register($f,!0),Gt.register(mO,!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(Gt.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof mO))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:i,label:o}=r;const s=n.ownerDocument.createElement("option");s.textContent=o,s.setAttribute("value",i),n.appendChild(s)}),n.addEventListener("change",()=>{t.format($f.blotName,n.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(n),t.children.head&&(n.value=$f.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Gt.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(Gt.sources.USER);const r=this.quill.getSelection();(t==null?this.quill.scroll.descendants(mO):[t]).forEach(o=>{o.highlight(this.highlightBlot,n)}),this.quill.update(Gt.sources.SILENT),r!=null&&this.quill.setSelection(r,Gt.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 IQ(t).split(`
2025-03-02 17:53:04 +08:00
`).reduce((i,o,s)=>(s!==0&&i.insert(`
2025-03-02 21:11:20 +08:00
`,{[Gl.blotName]:n}),i.insert(o)),new qn);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(Gl.className),r.innerHTML=YJr(this.options.hljs,n,t),C3e(this.quill.scroll,r,[(i,o)=>{const s=w$.value(i);return s?o.compose(new qn().retain(o.length(),{[V0.blotName]:s})):o}],[(i,o)=>i.data.split(`
2025-03-02 17:53:04 +08:00
`).reduce((s,a,l)=>(l!==0&&s.insert(`
2025-03-02 21:11:20 +08:00
`,{[Gl.blotName]:n}),s.insert(a)),o)],new WeakMap)}}ddt.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 $O=class $O extends al{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",y3e()),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===$O.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()}};Wt($O,"blotName","table"),Wt($O,"tagName","TD");let cg=$O;class G0 extends Ib{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}}Wt(G0,"blotName","table-row"),Wt(G0,"tagName","TR");class mm extends Ib{}Wt(mm,"blotName","table-body"),Wt(mm,"tagName","TBODY");class bx extends Ib{balanceCells(){const t=this.descendants(G0),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=cg.formats(r.children.head.domNode));const o=this.scroll.create(cg.blotName,i);r.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(mm);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(mm);n==null||n.children.head==null||n.children.forEach(r=>{const i=r.children.at(t),o=cg.formats(r.children.head.domNode),s=this.scroll.create(cg.blotName,o);r.insertBefore(s,i)})}insertRow(t){const[n]=this.descendant(mm);if(n==null||n.children.head==null)return;const r=y3e(),i=this.scroll.create(G0.blotName);n.children.head.children.forEach(()=>{const s=this.scroll.create(cg.blotName,r);i.appendChild(s)});const o=n.children.at(t);n.insertBefore(i,o)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}Wt(bx,"blotName","table-container"),Wt(bx,"tagName","TABLE");bx.allowedChildren=[mm];mm.requiredContainer=bx;mm.allowedChildren=[G0];G0.requiredContainer=mm;G0.allowedChildren=[cg];cg.requiredContainer=G0;function y3e(){return`row-${Math.random().toString(36).slice(2,6)}`}class XJr extends cp{static register(){Gt.register(cg),Gt.register(G0),Gt.register(mm),Gt.register(bx)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(bx).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(Gt.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(Gt.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(Gt.sources.USER),this.quill.setSelection(n,Gt.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!==cg.blotName)return[null,null,null,-1];const i=n.parent;return[i.parent
`).join("");return o.insert(s,{table:y3e()})},new qn().retain(r.index));this.quill.updateContents(i,Gt.sources.USER),this.quill.setSelection(r.index,Gt.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Gt.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(Gt.events.TEXT_CHANGE,(r,i,o)=>{o===Gt.sources.USER&&this.balanceTables()}),!0):!1)})}}const VDe=xv("quill:toolbar");class b3e extends cp{constructor(t,n){var r,i;if(super(t,n),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),QJr(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)){VDe.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 a;const s=(a=this.options.handlers)==null?void 0:a[o];s&&this.addHandler(o,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Gt.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){VDe.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 a=t.options[t.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else t.classList.contains("ql-active")?o=!1:o=t.value||!t.hasAttribute("value"),i.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,o);else if(this.quill.scroll.query(n).prototype instanceof Ad){if(o=prompt(`Enter ${n}`),!o)return;this.quill.updateContents(new qn().retain(s.index).delete(s.length).insert({[n]:o}),Gt.sources.USER)}else this.quill.format(n,o,Gt.sources.USER);this.update(s)}),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 s=null;if(t==null)s=null;else if(n[i]==null)s=o.querySelector("option[selected]");else if(!Array.isArray(n[i])){let a=n[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),s=o.querySelector(`option[value="${a}"]`)}s==null?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(t==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const s=n[i],a=s===o.getAttribute("value")||s!=null&&s.toString()===o.getAttribute("value")||s==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const s=n[i]!=null;o.classList.toggle("ql-active",s),o.setAttribute("aria-pressed",s.toString())}})}}b3e.DEFAULTS={};function GDe(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 QJr(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")GDe(r,i);else{const o=Object.keys(i)[0],s=i[o];Array.isArray(s)?ZJr(r,o,s):GDe(r,o,s)}}),e.appendChild(r)})}function ZJr(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)}b3e.DEFAULT
2025-03-02 17:53:04 +08:00
flex items-center justify-end gap-1
px-3 py-1.5 text-sm
${r()}
transition-colors duration-200
2025-03-02 21:11:20 +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," 字符"]})]})},jei={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{list:"ordered"},{list:"bullet"}],[{color:[]},{background:[]}],[{align:[]}],["link"],["clean"]]},Vei=({value:e="",onChange:t,placeholder:n="请输入内容...",readOnly:r=!1,theme:i="snow",modules:o=jei,className:s="",style:a={},onFocus:l,onBlur:c,onKeyDown:u,onKeyUp:f,maxLength:h,minLength:g=0,minRows:p=1,maxRows:m})=>{const v=d.useRef(null),C=d.useRef(null),y=d.useRef(!1),[b,S]=d.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 T=x.getSelection(),M=x.getContents();let _=0;const F=(O=M.ops)==null?void 0:O.reduce((k,L)=>{if(typeof L.insert=="string"){const I=h-_;if(_<h){const A=L.insert.slice(0,I);_+=A.length,k.push({...L,insert:A})}}else k.push(L);return k},[]);x.setContents({ops:F}),T&&x.setSelection(Math.min(T.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 d.useEffect(()=>{v.current&&(y.current||(C.current=new Gt(v.current,{theme:i,modules:o,placeholder:n,readOnly:r}),C.current.root.innerHTML=e,l&&C.current.on(Gt.events.SELECTION_CHANGE,x=>{x&&l()}),c&&C.current.on(Gt.events.SELECTION_CHANGE,x=>{x||c()}),C.current.on(Gt.events.TEXT_CHANGE,w),u&&C.current.root.addEventListener("keydown",u),f&&C.current.root.addEventListener("keyup",f),y.current=!0))},[i,o,n,r,l,c,u,f,h,g]),d.useEffect(()=>{var x;if(C.current){const E=(x=v.current)==null?void 0:x.querySelector(".ql-editor");if(E){const R=parseInt(window.getComputedStyle(E).lineHeight,10),O=parseInt(window.getComputedStyle(E).paddingTop,10),T=parseInt(window.getComputedStyle(E).paddingBottom,10),M=R*p+O+T;if(E.style.minHeight=`${M}px`,m){const _=R*m+O+T;E.style.maxHeight=`${_}px`,E.style.overflowY="auto"}}}},[p,m,C.current]),d.useEffect(()=>{C.current&&e!==C.current.root.innerHTML&&(C.current.root.innerHTML=e)},[e]),H.jsxs("div",{className:`quill-editor-container ${s}`,style:a,children:[H.jsx("div",{ref:v}),(h||g>0)&&H.jsx(Hei,{currentCount:b,maxLength:h,minLength:g})]})},KDe=({value:e=[],onChange:t,multiple:n=!0,allowTypes:r=void 0})=>{const{handleFileUpload:i,uploadProgress:o}=k1e(),[s,a]=d.useState([]),[l,c]=d.useState(()=>(e==null?void 0:e.map(m=>({name:`文件 ${m}`,progress:100,status:"done",fileId:m})))||[]),[u,f]=d.useState(e||[]),h=d.useCallback(m=>{c(v=>v.filter(C=>C.fileId!==m)),f(v=>{const C=v.filter(y=>y!==m);return t==null||t(C),C})},[t]),g=d.useCallback(m=>{a(v=>v.filter(C=>C.fileKey!==m))},[]),p=d.useCallback(m=>{if(r&&!r.includes(m.type))return sl.error(`文件类型 ${m.type} 不在允许范围内`),kT.LIST_IGNORE;const v=`${m.name}-${Date.now()}`;return a(C=>[...C,{name:m.name,progress:0,status:"uploading",fileKey:v}]),i(m,C=>{c(y=>[...y,{name:m.name,progress:100,status:"done",fileId:C.fileId}]),a(y=>y.filter(b=>b.fileKey!==v)),f(y=>{const b=n?[...y,C.fileId]:[C.fileId];return t==null||t(b),b}),n||c([{name:m.name,progress:100,status:"done",fileId:C.fileId}])},C=>{console.error("上传错误:",C),sl.error(`上传失败: ${C instanceof Error?C.message:"未知错误"}`),a(y=>y.map(b=>b.fileKey===v?{...b,status:"error"}:b))},v),!1},[i,t]);return H.jsx("div",{className:"space-y-1",children:H.jsxs(kT.Dragger,{accept:r==null?void 0:r.join(","),name:"files",multiple:n,showUploadList:!1,beforeUpload:p,children:[H.jsx("p",{className:"ant-upload-drag-icon",children:H.jsx(tXe,{})}),H.jsx("p",{className:"ant-upload-text",children:"点击或拖拽文件到此区域进行上传"}),H.jsxs("p",{className:"ant-upload-hint",children:[n?"支持单个或批量上传文件":"仅支持上传单个文件",r&&H.jsxs("span",{className:"block text-xs text-gray-500",children:["允许类型:
2025-03-02 17:53:04 +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
focus:ring-offset-white `}),H.jsx("span",{className:`absolute bottom-0 right-0 h-3 w-3
rounded-full bg-emerald-500 ring-2 ring-white
shadow-sm transition-transform duration-200
2025-03-02 21:11:20 +08:00
ease-in-out hover:scale-110`,"aria-hidden":"true"})]})}),H.jsx(d1e,{children:r&&H.jsxs(mc.div,{initial:"hidden",animate:"visible",exit:"exit",variants:eti,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-03-02 17:53:04 +08:00
bg-white rounded-xl overflow-hidden shadow-lg
border border-[#E5EDF5]`,children:[H.jsx("div",{className:`px-4 py-4 bg-gradient-to-b from-[#F6F9FC] to-white
2025-03-02 21:11:20 +08:00
border-b border-[#E5EDF5] `,children:H.jsxs("div",{className:"flex items-center space-x-4",children:[H.jsx(XDe,{src:s==null?void 0:s.avatar,name:(s==null?void 0:s.showname)||(s==null?void 0:s.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:(s==null?void 0:s.showname)||(s==null?void 0:s.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((b,S)=>H.jsxs("button",{role:"menuitem",tabIndex:r?0:-1,onClick:w=>{w.stopPropagation(),y(b.action)},className:`flex items-center gap-3 w-full px-4 py-3
2025-03-02 17:53:04 +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]
${b.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
transition-all duration-200 ease-in-out
group-hover:scale-110 group-hover:rotate-6
2025-03-02 21:11:20 +08:00
group-hover:translate-x-0.5 ${b.label==="注销"?"group-hover:text-red-600":"group-hover:text-[#003F6A]"}`,children:b.icon}),H.jsx("span",{children:b.label})]},S))})]})})]}),H.jsx(Jei,{})]})}const nti=()=>{const e=Gs(),{isAuthenticated:t}=Wi(),{pathname:n}=jm(),r=d.useMemo(()=>{const o=[{key:"home",path:"/",label:"首页"},{key:"path",path:"/path",label:"全部思维导图"},{key:"courses",path:"/courses",label:"所有课程"}];return t?[...o,{key:"my-duty",path:"/my-duty",label:"我创建的课程"},{key:"my-learning",path:"/my-learning",label:"我学习的课程"},{key:"my-duty-path",path:"/my-duty-path",label:"我创建的思维导图"},{key:"my-path",path:"/my-path",label:"我学习的思维导图"}]:o},[t]),i=d.useMemo(()=>{var s;const o=a=>a.replace(/\/$/,"");return n==="/"?"home":((s=r.find(a=>o(n)===a.path))==null?void 0:s.key)||""},[n]);return H.jsx(J4,{mode:"horizontal",className:"border-none font-medium",disabledOverflow:!0,selectedKeys:[i],onClick:({key:o})=>{const s=r.find(a=>a.key===o);s&&e(s.path),window.scrollTo({top:0,behavior:"smooth"})},children:r.map(({key:o,label:s})=>H.jsx(J4.Item,{className:"text-gray-600 hover:text-blue-600",children:s},o))})};function rti(){const{isAuthenticated:e,user:t}=Wi();Z0();const n=Gs(),{searchValue:r,setSearchValue:i}=ca();return H.jsxs("div",{className:"select-none w-full flex items-center justify-between bg-white shadow-md border-b border-gray-100 fixed z-30 py-2 px-4 md:px-6",children:[H.jsxs("div",{className:"flex items-center justify-start space-x-4 flex-shrink-0",children:[H.jsx("img",{src:"/logo.svg",className:"h-12 w-12"}),H.jsx("div",{onClick:()=>n("/"),className:"text-2xl font-bold bg-gradient-to-r from-primary-600 via-primary-500 to-primary-400 bg-clip-text text-transparent hover:scale-105 transition-transform cursor-pointer whitespace-nowrap",children:Fs.APP_NAME}),H.jsx(nti,{})]}),H.jsx("div",{className:"flex justify-end gap-2 md:gap-4 flex-shrink",children:H.jsxs("div",{className:"flex items-center gap-2 md:gap-4",children:[H.jsx(Ai,{size:"large",prefix:H.jsx(iM,{className:"text-gray-400 group-hover:text-blue-500 transition-colors"}),placeholder:"搜索课程",className:"w-full md:w-96 rounded-full",value:r,onClick:o=>{window.location.pathname.startsWith("/search")||(n("/search"),window.scrollTo({top:0,behavior:"smooth"}))},onChange:o=>i(o.target.value),onPressEnter:o=>{window.location.pathname.startsWith("/search")||(n("/search"),window.scrollTo({top:0,behavior:"smooth"}))}}),e&&H.jsx(H.Fragment,{children:H.jsx(Cr,{size:"large",shape:"round",icon:H.jsx(Zf,{}),onClick:()=>{n("/course/editor")},type:"primary",children:"创建课程"})}),e&&H.jsx(Cr,{size:"large",shape:"round",onClick:()=>{window.location.href="/path/editor"},ghost:!0,type:"primary",icon:H.jsx(Zf,{}),children:"创建思维导图"}),e?H.jsx(tti,{}):H.jsx(Cr,{type:"primary",size:"large",shape:"round",onClick:()=>n("/login"),icon:H.jsx(fM,{}),children:"登录"})]})})]})}function iti(){return H.jsx("footer",{className:"bg-gradient-to-b from-slate-800 to-slate-900 relative z-10 text-secondary-200",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(gme,{className:"text-gray-400"}),H.jsx("span",{className:"text-gray-300 text-xs",children:"628118"})]}),H.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[H.jsx(GYe,{className:"text-gray-400"}),H.jsx("span",{className:"text-gray-300 text-xs",children:"gcsjs6@tx3l.nb.kj"})]})]}),H.jsx("div",{className:"text-center md:text-right space-y-2",children:H.jsxs("div
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/gH.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.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,h=2,g=4,p=1,m=2,v=1,C=2,y=4,b=8,S=16,w=32,x=64,E=128,R=256,O=512,T=30,M="...",_=800,F=16,D=1,k=2,L=3,I=1/0,A=9007199254740991,N=17976931348623157e292,B=NaN,z=4294967295,j=z-1,W=z>>>1,G=[["ary",E],["bind",v],["bindKey",C],["curry",b],["curryRight",S],["flip",O],["partial",w],["partialRight",x],["rearg",R]],K="[object Arguments]",q="[object Array]",X="[object AsyncFunction]",Q="[object Boolean]",te="[object Date]",ne="[object DOMException]",Z="[object Error]",ee="[object Function]",J="[object GeneratorFunction]",oe="[object Map]",le="[object Number]",ge="[object Null]",he="[object Object]",ye="[object Promise]",ue="[object Proxy]",ve="[object RegExp]",de="[object Set]",xe="[object String]",Ee="[object Symbol]",De="[object Undefined]",Be="[object WeakMap]",Ge="[object WeakSet]",Ue="[object ArrayBuffer]",We="[object DataView]",Ve="[object Float32Array]",Fe="[object Float64Array]",ke="[object Int8Array]",Ye="[object Int16Array]",ze="[object Int32Array]",Re="[object Uint8Array]",Le="[object Uint8ClampedArray]",Me="[object Uint16Array]",be="[object Uint32Array]",je=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,tt=/[&<>"']/g,pt=RegExp(Tt.source),$t=RegExp(tt.source),wt=/<%-([\s\S]+?)%>/g,It=/<%([\s\S]+?)%>/g,Ct=/<%=([\s\S]+?)%>/g,ot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Te=/[\\^$.*+?()[\]{}|]/g,$e=RegExp(Te.source),He=/^\s+/,it=/\s/,at=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gt=/\{\n\/\* \[wrapped with (.+)\] \*/,yt=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ze=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,At=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kt=/\w*$/,pn=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,Lt=/^\[object .+?Constructor\]$/,xt=/^0o[0-7]+$/i,Rt=/^(?:0|[1-9]\d*)$/,Ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hn=/($^)/,Mt=/['\n\r\u2028\u2029\\]/g,mt="\\ud800-\\udfff",jt="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",Cn="\\u20d0-\\u20ff",Ln=jt+tn+Cn,cn="\\u2700-\\u27bf",Dt="a-z\\xdf-\\xf6\\xf8-\\xff",sn="\\xac\\xb1\\xd7\\xf7",Sn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tn="\\u2000-\\u206f",Jn=" \\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",Ar="A-Z\\xc0-\\xd6\\xd8-\\xde",Vr="\\ufe0e\\ufe0f",Ui=sn+Sn+Tn+Jn,Bi="[']",Gr="["+mt+"]",Fi="["+Ui+"]",bn="["+Ln+"]",Qt="\\d+",Wn="["+cn+"]",$r="["+Dt+"]",Yt="[^"+mt+Ui+Qt+cn+Dt+Ar+"]",Jt="\\ud83c[\\udffb-\\udfff]",sr="(?:"+bn+"|"+Jt+")",br="[^"+mt+"]",Jr="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",Br="["+Ar+"]",Pi="\\u200d",Bn="(?:"+$r+"|"+Yt+")",rn="(?:"+Br+"|"+Yt+")",En="(?:"+Bi+"(?:d|ll|m|re|s|t|ve))?",In="(?:"+Bi+"(?:D|LL|M|RE|S|T|VE))?",jn=sr+"?",si="["+Vr+"]?",To="(?:"+Pi+"(?:"+[br,Jr,oi].join("|")+")"+si+jn+")*",Oi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vl=si+jn+To,Dd="(?:"+[Wn,Jr,oi].join("|")+")"+vl,ph="(?:"+[br+bn+"?",bn,Jr,oi,Gr].join("|")+")",Ld=RegExp(Bi,"g"),Pn=RegExp(bn,"g"),er=RegExp(Jt+"(?="+Jt+")|"+ph+vl,"g"),Ni=RegExp([Br+"?"+$r+"+"+En+"(?="+[Fi,Br,"$"].join("|")+")",rn+"+"+In+"(?="+[Fi,Br+Bn,"$"].join("|")+")",Br+"?"+Bn+"+"+En,Br+"+"+In,pa,Oi,Qt,Dd].join("|"),"g"),yo=RegExp("["+Pi+mt+Ln+Vr+"]"),vi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mh=["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"],vh=-1,ki={};ki[Ve]=k
2025-03-02 17:53:04 +08:00
/* [wrapped with `+P+`] */
2025-03-02 21:11:20 +08:00
`)}function n0t($){return Fr($)||x6($)||!!(r8e&&$&&$[r8e])}function m1($,P){var U=typeof $;return P=P??A,!!P&&(U=="number"||U!="symbol"&&Rt.test($))&&$>-1&&$%1==0&&$<P}function ec($,P,U){if(!Go(U))return!1;var re=typeof P;return(re=="number"?Mc(U)&&m1(P,U.length):re=="string"&&P in U)?Sh(U[P],$):!1}function nJ($,P){if(Fr($))return!1;var U=typeof $;return U=="number"||U=="symbol"||U=="boolean"||$==null||Iu($)?!0:nt.test($)||!ot.test($)||P!=null&&$ in po(P)}function r0t($){var P=typeof $;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?$!=="__proto__":$===null}function rJ($){var P=IA($),U=Ie[P];if(typeof U!="function"||!(P in fi.prototype))return!1;if($===U)return!0;var re=JZ(U);return!!re&&$===re[0]}function i0t($){return!!J6e&&J6e in $}var o0t=oA?v1:bJ;function ME($){var P=$&&$.constructor,U=typeof P=="function"&&P.prototype||Vb;return $===U}function J8e($){return $===$&&!Go($)}function eCe($,P){return function(U){return U==null?!1:U[$]===P&&(P!==n||$ in po(U))}}function s0t($){var P=LA($,function(re){return U.size===c&&U.clear(),re}),U=P.cache;return P}function a0t($,P){var U=$[1],re=P[1],me=U|re,Ae=me<(v|C|E),qe=re==E&&U==b||re==E&&U==R&&$[7].length<=P[8]||re==(E|R)&&P[7].length<=P[8]&&U==b;if(!(Ae||qe))return $;re&v&&($[2]=P[2],me|=U&v?0:y);var et=P[3];if(et){var vt=$[3];$[3]=vt?F8e(vt,et,P[4]):et,$[4]=vt?Tv($[3],u):P[4]}return et=P[5],et&&(vt=$[5],$[5]=vt?N8e(vt,et,P[6]):et,$[6]=vt?Tv($[5],u):P[6]),et=P[7],et&&($[7]=et),re&E&&($[8]=$[8]==null?P[8]:Cl($[8],P[8])),$[9]==null&&($[9]=P[9]),$[0]=P[0],$[1]=me,$}function l0t($){var P=[];if($!=null)for(var U in po($))P.push(U);return P}function c0t($){return aA.call($)}function tCe($,P,U){return P=Ys(P===n?$.length-1:P,0),function(){for(var re=arguments,me=-1,Ae=Ys(re.length-P,0),qe=Pt(Ae);++me<Ae;)qe[me]=re[P+me];me=-1;for(var et=Pt(P+1);++me<P;)et[me]=re[me];return et[P]=U(qe),ma($,this,et)}}function nCe($,P){return P.length<2?$:b6($,Hd(P,0,-1))}function u0t($,P){for(var U=$.length,re=Cl(P.length,U),me=Ic($);re--;){var Ae=P[re];$[re]=m1(Ae,U)?me[Ae]:n}return $}function iJ($,P){if(!(P==="constructor"&&typeof $[P]=="function")&&P!="__proto__")return $[P]}var rCe=oCe($8e),PE=Rmt||function($,P){return ai.setTimeout($,P)},oJ=oCe(A1t);function iCe($,P,U){var re=P+"";return oJ($,t0t(re,d0t(Z1t(re),U)))}function oCe($){var P=0,U=0;return function(){var re=Imt(),me=F-(re-U);if(U=re,me>0){if(++P>=_)return arguments[0]}else P=0;return $.apply(n,arguments)}}function PA($,P){var U=-1,re=$.length,me=re-1;for(P=P===n?re:P;++U<P;){var Ae=HZ(U,me),qe=$[Ae];$[Ae]=$[U],$[U]=qe}return $.length=P,$}var sCe=s0t(function($){var P=[];return $.charCodeAt(0)===46&&P.push(""),$.replace(fe,function(U,re,me,Ae){P.push(me?Ae.replace(dt,"$1"):re||U)}),P});function pp($){if(typeof $=="string"||Iu($))return $;var P=$+"";return P=="0"&&1/$==-1/0?"-0":P}function w6($){if($!=null){try{return sA.call($)}catch{}try{return $+""}catch{}}return""}function d0t($,P){return Nd(G,function(U){var re="_."+U[0];P&U[1]&&!tA($,re)&&$.push(re)}),$.sort()}function aCe($){if($ instanceof fi)return $.clone();var P=new zd($.__wrapped__,$.__chain__);return P.__actions__=Ic($.__actions__),P.__index__=$.__index__,P.__values__=$.__values__,P}function f0t($,P,U){(U?ec($,P,U):P===n)?P=1:P=Ys(Wr(P),0);var re=$==null?0:$.length;if(!re||P<1)return[];for(var me=0,Ae=0,qe=Pt(hA(re/P));me<re;)qe[Ae++]=Hd($,me,me+=P);return qe}function h0t($){for(var P=-1,U=$==null?0:$.length,re=0,me=[];++P<U;){var Ae=$[P];Ae&&(me[re++]=Ae)}return me}function g0t(){var $=arguments.length;if(!$)return[];for(var P=Pt($-1),U=arguments[0],re=$;re--;)P[re-1]=arguments[re];return Ov(Fr(U)?Ic(U):[U],ja(P,1))}var p0t=ei(function($,P){return ps($)?RE($,ja(P,1,ps,!0)):[]}),m0t=ei(function($,P){var U=jd(P);return ps(U)&&(U=n),ps($)?RE($,ja(P,1,ps,!0),hr(U,2)):[]}),v0t=ei(function($,P){var U=jd(P);return ps(U)&&(U=n),ps($)?RE($,ja(P,1,ps,!0),n,U):[]});function C0t($,P,U){var re=$==null?0:$.length;return re?(P=U||P===n?1:Wr(P),Hd($,P<0?0:P,re)):[]}function y0t($,P,U){var re=$==null?0:$.length;return re?(P=U||P===n?1:Wr(P),P=re-P,Hd($,0,P<0?0:P)):[]}function
`;$.replace($n,function(mr,ci,Si,Mu,tc,Pu){return Si||(Si=Mu),en+=$.slice(Ut,Pu).replace(Mt,omt),ci&&(et=!0,en+=`' +
2025-03-02 17:53:04 +08:00
__e(`+ci+`) +
'`),tc&&(vt=!0,en+=`';
`+tc+`;
__p += '`),Si&&(en+=`' +
((__t = (`+Si+`)) == null ? '' : __t) +
'`),Ut=Pu+mr.length,mr}),en+=`';
`;var pr=Zi.call(P,"variable")&&P.variable;if(!pr)en=`with (obj) {
`+en+`
}
`;else if(Ze.test(pr))throw new Dr(a);en=(vt?en.replace(je,""):en).replace(Xe,"$1").replace(ft,"$1;"),en="function("+(pr||"obj")+`) {
`+(pr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(et?", __e = _.escape":"")+(vt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+en+`return __p
2025-03-02 21:11:20 +08:00
}`;var Qr=zCe(function(){return Hi(Ae,Kn+"return "+en).apply(n,qe)});if(Qr.source=en,uJ(Qr))throw Qr;return Qr}function P4t($){return qi($).toLowerCase()}function _4t($){return qi($).toUpperCase()}function A4t($,P,U){if($=qi($),$&&(U||P===n))return K6e($);if(!$||!(P=Tu(P)))return $;var re=yh($),me=yh(P),Ae=Y6e(re,me),qe=X6e(re,me)+1;return Av(re,Ae,qe).join("")}function D4t($,P,U){if($=qi($),$&&(U||P===n))return $.slice(0,Z6e($)+1);if(!$||!(P=Tu(P)))return $;var re=yh($),me=X6e(re,yh(P))+1;return Av(re,0,me).join("")}function L4t($,P,U){if($=qi($),$&&(U||P===n))return $.replace(He,"");if(!$||!(P=Tu(P)))return $;var re=yh($),me=Y6e(re,yh(P));return Av(re,me).join("")}function F4t($,P){var U=T,re=M;if(Go(P)){var me="separator"in P?P.separator:me;U="length"in P?Wr(P.length):U,re="omission"in P?Tu(P.omission):re}$=qi($);var Ae=$.length;if(Bb($)){var qe=yh($);Ae=qe.length}if(U>=Ae)return $;var et=U-Hb(re);if(et<1)return re;var vt=qe?Av(qe,0,et).join(""):$.slice(0,et);if(me===n)return vt+re;if(qe&&(et+=vt.length-et),dJ(me)){if($.slice(et).search(me)){var Ut,qt=vt;for(me.global||(me=OZ(me.source,qi(kt.exec(me))+"g")),me.lastIndex=0;Ut=me.exec(qt);)var en=Ut.index;vt=vt.slice(0,en===n?et:en)}}else if($.indexOf(Tu(me),et)!=et){var $n=vt.lastIndexOf(me);$n>-1&&(vt=vt.slice(0,$n))}return vt+re}function N4t($){return $=qi($),$&&pt.test($)?$.replace(Tt,fmt):$}var k4t=Kb(function($,P,U){return $+(U?" ":"")+P.toUpperCase()}),gJ=B8e("toUpperCase");function kCe($,P,U){return $=qi($),P=U?n:P,P===n?amt($)?pmt($):Zpt($):$.match(P)||[]}var zCe=ei(function($,P){try{return ma($,n,P)}catch(U){return uJ(U)?U:new Dr(U)}}),z4t=p1(function($,P){return Nd(P,function(U){U=pp(U),h1($,U,lJ($[U],$))}),$});function B4t($){var P=$==null?0:$.length,U=hr();return $=P?No($,function(re){if(typeof re[1]!="function")throw new kd(s);return[U(re[0]),re[1]]}):[],ei(function(re){for(var me=-1;++me<P;){var Ae=$[me];if(ma(Ae[0],this,re))return ma(Ae[1],this,re)}})}function H4t($){return f1t(Bd($,f))}function pJ($){return function(){return $}}function j4t($,P){return $==null||$!==$?P:$}var V4t=j8e(),G4t=j8e(!0);function _c($){return $}function mJ($){return C8e(typeof $=="function"?$:Bd($,f))}function W4t($){return b8e(Bd($,f))}function U4t($,P){return S8e($,Bd(P,f))}var q4t=ei(function($,P){return function(U){return $E(U,$,P)}}),K4t=ei(function($,P){return function(U){return $E($,U,P)}});function vJ($,P,U){var re=va(P),me=bA(P,re);U==null&&!(Go(P)&&(me.length||!re.length))&&(U=P,P=$,$=this,me=bA(P,va(P)));var Ae=!(Go(U)&&"chain"in U)||!!U.chain,qe=v1($);return Nd(me,function(et){var vt=P[et];$[et]=vt,qe&&($.prototype[et]=function(){var Ut=this.__chain__;if(Ae||Ut){var qt=$(this.__wrapped__),en=qt.__actions__=Ic(this.__actions__);return en.push({func:vt,args:arguments,thisArg:$}),qt.__chain__=Ut,qt}return vt.apply($,Ov([this.value()],arguments))})}),$}function Y4t(){return ai._===this&&(ai._=Smt),this}function CJ(){}function X4t($){return $=Wr($),ei(function(P){return w8e(P,$)})}var Q4t=YZ(No),Z4t=YZ(V6e),J4t=YZ(bZ);function BCe($){return nJ($)?SZ(pp($)):I1t($)}function e3t($){return function(P){return $==null?n:b6($,P)}}var t3t=G8e(),n3t=G8e(!0);function yJ(){return[]}function bJ(){return!1}function r3t(){return{}}function i3t(){return""}function o3t(){return!0}function s3t($,P){if($=Wr($),$<1||$>A)return[];var U=z,re=Cl($,z);P=hr(P),$-=z;for(var me=EZ(re,P);++U<$;)P(U);return me}function a3t($){return Fr($)?No($,pp):Iu($)?[$]:Ic(sCe(qi($)))}function l3t($){var P=++ymt;return qi($)+P}var c3t=$A(function($,P){return $+P},0),u3t=XZ("ceil"),d3t=$A(function($,P){return $/P},1),f3t=XZ("floor");function h3t($){return $&&$.length?yA($,_c,LZ):n}function g3t($,P){return $&&$.length?yA($,hr(P,2),LZ):n}function p3t($){return U6e($,_c)}function m3t($,P){return U6e($,hr(P,2))}function v3t($){return $&&$.length?yA($,_c,zZ):n}function C3t($,P){return $&&$.length?yA($,hr(P,2),zZ):n}var y3t=$A(function($,P){return $*P},1),b3t=XZ("round"),S3t=$A(function($,P){return $-P},0);function w3t($){return $&&$.length?xZ($,_c):0}function x3t($,P){return $&&$.length?xZ($,hr(P,2)):0}return Ie.aft
2025-03-02 17:53:04 +08:00
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
2025-03-02 21:11:20 +08:00
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&Idt(e.body,"react-draggable-transparent-selection")}function Gti(e){if(e)try{if(e.body&&Mdt(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function Idt(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function Mdt(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var a1={};Object.defineProperty(a1,"__esModule",{value:!0});a1.canDragX=qti;a1.canDragY=Kti;a1.createCoreData=Xti;a1.createDraggableData=Qti;a1.getBoundPosition=Wti;a1.getControlPosition=Yti;a1.snapToGrid=Uti;var Gu=s1,LS=gs;function Wti(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:Zti(r);const i=E3e(e);if(typeof r=="string"){const{ownerDocument:o}=i,s=o.defaultView;let a;if(r==="parent"?a=i.parentNode:a=o.querySelector(r),!(a instanceof s.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=a,c=s.getComputedStyle(i),u=s.getComputedStyle(l);r={left:-i.offsetLeft+(0,Gu.int)(u.paddingLeft)+(0,Gu.int)(c.marginLeft),top:-i.offsetTop+(0,Gu.int)(u.paddingTop)+(0,Gu.int)(c.marginTop),right:(0,LS.innerWidth)(l)-(0,LS.outerWidth)(i)-i.offsetLeft+(0,Gu.int)(u.paddingRight)-(0,Gu.int)(c.marginRight),bottom:(0,LS.innerHeight)(l)-(0,LS.outerHeight)(i)-i.offsetTop+(0,Gu.int)(u.paddingBottom)-(0,Gu.int)(c.marginBottom)}}return(0,Gu.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Gu.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Gu.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Gu.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function Uti(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function qti(e){return e.props.axis==="both"||e.props.axis==="x"}function Kti(e){return e.props.axis==="both"||e.props.axis==="y"}function Yti(e,t,n){const r=typeof t=="number"?(0,LS.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=E3e(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,LS.offsetXYFromParent)(r||e,o,n.props.scale)}function Xti(e,t,n){const r=!(0,Gu.isNum)(e.lastX),i=E3e(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Qti(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Zti(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function E3e(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var DQ={},LQ={};Object.defineProperty(LQ,"__esModule",{value:!0});LQ.default=Jti;function Jti(){}Object.defineProperty(DQ,"__esModule",{value:!0});DQ.default=void 0;var Vie=tni(d),Bc=R3e(AQ),eni=R3e(fo),wl=gs,n2=a1,Gie=s1,NR=R3e(LQ);function R3e(e){return e&&e.__esModule?e:{default:e}}function Pdt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Pdt=function(r){return r?n:t})(e)}function tni(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Pdt(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function ac(e,t,n){return t=nni(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nni(e){var t=rni(e,"string");return typeof t=="symbol"?t:String(t)}function rni(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive m
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
*/var iLe;function Fni(){if(iLe)return zR;iLe=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 s(a,l,c){var u,f={},h=null,g=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(f[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)f[u]===void 0&&(f[u]=l[u]);return{$$typeof:t,type:a,key:h,ref:g,props:f,_owner:i.current}}return zR.Fragment=n,zR.jsx=s,zR.jsxs=s,zR}Ndt.exports=Fni();var BR=Ndt.exports;const Nni=(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.":""))))})},kni=e=>{const t=d.useRef(),[n,r]=d.useState(!1),[i,o]=d.useState();return d.useEffect(()=>{r(!0),(async()=>{try{t.current=(await Nni(Object.assign({"../icons/account-location.svg":()=>xn(()=>import("./account-location-BCNgMMMw-BzoBAix2.js"),[]),"../icons/add.svg":()=>xn(()=>import("./add-DBGs_LmH-DpLM9lGv.js"),[]),"../icons/admin-outlined.svg":()=>xn(()=>import("./admin-outlined-DXTGKZe5-CSnArnXa.js"),[]),"../icons/airport.svg":()=>xn(()=>import("./airport-DmUdZQah-68aQ4GjS.js"),[]),"../icons/align-center.svg":()=>xn(()=>import("./align-center-kIaj1t0E-DSHMqphX.js"),[]),"../icons/align-justify.svg":()=>xn(()=>import("./align-justify-DtkZpgWd-BQKEWNTl.js"),[]),"../icons/align-left.svg":()=>xn(()=>import("./align-left-nz355YSx-D-lOXVaJ.js"),[]),"../icons/align-right.svg":()=>xn(()=>import("./align-right-CuY2aKVp-B5IVFIpK.js"),[]),"../icons/approve.svg":()=>xn(()=>import("./approve-C2CuyqjZ-BJC-OpBy.js"),[]),"../icons/arrow-drop-down.svg":()=>xn(()=>import("./arrow-drop-down-C-Cm0O58-BQbfQyoC.js"),[]),"../icons/blocks-group.svg":()=>xn(()=>import("./blocks-group-BnKCc4Rj-DtG3Oj_8.js"),[]),"../icons/bold.svg":()=>xn(()=>import("./bold-C7Q6mc6R-W4qoDjlW.js"),[]),"../icons/caret-right.svg":()=>xn(()=>import("./caret-right-Buv6m22q-WQMBnvfk.js"),[]),"../icons/category-outline.svg":()=>xn(()=>import("./category-outline-DFeZz2a4-CqJmdfxm.js"),[]),"../icons/check-one.svg":()=>xn(()=>import("./check-one-DZsEj4Rc-D5ek0kT8.js"),[]),"../icons/check.svg":()=>xn(()=>import("./check-CwiFW30S-D5xY4LY6.js"),[]),"../icons/config.svg":()=>xn(()=>import("./config-HpgzD5LZ-CHZjFB5m.js"),[]),"../icons/content.svg":()=>xn(()=>import("./content-CVv2xHwr-Cko-e_iv.js"),[]),"../icons/copy.svg":()=>xn(()=>import("./copy-CVj4__by-DSjUrowX.js"),[]),"../icons/cube-duotone.svg":()=>xn(()=>import("./cube-duotone-C5nZlt1x-DvU0aR3O.js"),[]),"../icons/date-time.svg":()=>xn(()=>import("./date-time-C-XupEct-CJ91Fn1h.js"),[]),"../icons/delete.svg":()=>xn(()=>import("./delete-B_03_u2H-B4iPfa6w.js"),[]),"../icons/edit.svg":()=>xn(()=>import("./edit-Dt4jUBOK-lOkX0YCB.js"),[]),"../icons/error-duotone.svg":()=>xn(()=>import("./error-duotone-C1DxTjTu-DAfaeZ3p.js"),[]),"../icons/error-outline.svg":()=>xn(()=>import("./error-outline-BtU6WRxh-DZbxbVEK.js"),[]),"../icons/exit.svg":()=>xn(()=>import("./exit-BrT4707H-Kqn9ARZ4.js"),[]),"../icons/filter.svg":()=>xn(()=>import("./filter-DjN42YHn-Db70LXPs.js"),[]),"../icons/fluent-person.svg":()=>xn(()=>import("./fluent-person-CxE3zAkd-BXa47Cvo.js"),[]),"../icons/get-text.svg":()=>xn(()=>import("./get-text-BQOd1CsX-DUhw41GT.js"),[]),"../icons/group-work.svg":()=>xn(()=>import("./group-work-CMKVD9ib-CqRoZfas.js"),[]),"../icons/health-circle.svg":()=>xn(()=>import("./health-circle-SAB-DqvX-BjjqKyAX.js"),[]),"../icons/history.svg":()=>xn(()=>import("./history-DwvuvWV7-Bcpk_weY.js"),[]),"../icons/home.svg":()=>xn(()=>import("./home-InqRf4oC-D2m0I5nB.js"),[]),"../icons/horizontal-rule.svg":()=>xn(()=>import("./horizontal-rule-DqqTWGF1-BpTivvNz.js"),[]),"../icons/image.svg":()=>xn(()=>import("./image-CnEjCzXp-z7MLBKjQ.js"),[]),"../icons/inbox.svg":()=>xn(()=>i
2025-03-02 17:53:04 +08:00
<span style="display: inline-block; width: 1px"></span>
<span style="display: inline-block; width: 1px"></span>
2025-03-02 21:11:20 +08:00
</div>`,document.body.appendChild(e),e.scrollLeft=1,gF=Math.floor(e.scrollLeft)===0,document.body.removeChild(e),gF}function wH(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n),G3e()&&!SH()&&(n=e.scrollWidth-e.getBoundingClientRect().width-n)),n}function xH(e,t,n){n&&(SH()?t*=-1:(zm()||G3e())&&(t=e.scrollWidth-e.getBoundingClientRect().width-t)),e.scrollLeft=t}function go(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function au(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function vft(e){return!!e.offsetParent}function Su(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!vft(e)||window.getComputedStyle(e).visibility!=="visible")}function lu(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function Cft(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 yft(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 Gri(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function bft(e,t){if(t)for(const[n,r]of Object.entries(t)){if(!n||!n.length||r==null)continue;const i=yri(n),o=r.toString(),s=o.replace(/\s*!important/g,""),a=s.length!=o.length?"important":void 0;e.style.setProperty(i,s,a)}}function Wri(e){return e.clientWidth<e.scrollWidth}function Uri(e){return e.clientHeight<e.scrollHeight}function EH(e,t){t==="flex"?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Mg(e,t)}function Mg(e,t){t=q3e(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function yO(e,t){t=q3e(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function q3e(e){return typeof e=="number"?`${e}px`:e}function WQ(e){return e instanceof Node||e instanceof HTMLElement}function qri(e){if(e==null)return[];const t=[];return Sft(e,n=>t.push(n)),t}function Kri(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n];t(r.name,r.value)}}function jf(e,t,n){n==null||n===""?e.removeAttribute(t):e.setAttribute(t,n.toString())}function Sft(e,t){if(e!=null)for(let n=0;n<e.length;n++)t(e[n])}var ad=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}},Yri=1e3,Xri=1e3,CLe=100,wft=class l8 extends ct{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&&rt(`${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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t=!1){var r,i;go(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=Wl(e)}};function Rft(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 Cm=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new s6,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;!Rft(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 HR(e,t){return`<span data-ref="eSort${e}" class="ag-sort-indicator-icon ag-sort-${t} ag-hidden" aria-hidden="true"></span>`}var tii=`<span class="ag-sort-indicator-container">
2025-03-02 17:53:04 +08:00
${HR("Order","order")}
${HR("Asc","ascending-icon")}
${HR("Desc","descending-icon")}
${HR("Mixed","mixed-icon")}
${HR("None","none-icon")}
2025-03-02 21:11:20 +08:00
</span>`,K3e=class extends wn{constructor(e){super(),this.eSortOrder=Ot,this.eSortAsc=Ot,this.eSortDesc=Ot,this.eSortMixed=Ot,this.eSortNone=Ot,e||this.setTemplate(tii)}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=Gn(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";Mn(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){const t=e==="desc";Mn(this.eSortDesc,t,{skipAriaHidden:!0})}if(this.eSortNone){const t=!this.column.getColDef().unSortIcon&&!this.gos.get("unSortIcon"),n=e==null;Mn(this.eSortNone,!t&&n,{skipAriaHidden:!0})}}setupMultiSortIndicator(){this.addInIcon("sortUnSort",this.eSortMixed,this.column);const e=this.column.getColDef().showRowGroup;ug(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";Mn(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;Mn(this.eSortOrder,r,{skipAriaHidden:!0}),t>=0?this.eSortOrder.textContent=(t+1).toString():go(this.eSortOrder)}},$ft={selector:"AG-SORT-INDICATOR",component:K3e},nii=`<div class="ag-cell-label-container" role="presentation">
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,lfe=class extends wn{constructor(){super(...arguments),this.eFilter=Ot,this.eFilterButton=Ot,this.eSortIndicator=Ot,this.eMenu=Ot,this.eLabel=Ot,this.eText=Ot,this.eSortOrder=Ot,this.eSortAsc=Ot,this.eSortDesc=Ot,this.eSortMixed=Ot,this.eSortNone=Ot,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??nii;return e=e&&e.trim?e.trim():e,e}init(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate,[$ft]),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=Wl(this.currentDisplayName,!0);this.eText&&(this.eText.textContent=t)}}addInIcon(e,t,n){if(t==null)return;const r=Gn(e,this.gos,n);r&&t.appendChild(r)}setupTap(){const{gos:e}=this;if(e.get("suppressTouch"))return;const t=new Cm(this.getGui(),!0),n=this.shouldSuppressMenuHide(),r=n&&zt(this.eMenu),i=r?new Cm(this.eMenu,!0):t;if(this.params.enableMenu){const o=r?"tap":"longTap",s=a=>this.params.showColumnMenuAfterMouseClick(a.touchStart);this.addManagedListeners(i,{[o]:s})}if(this.params.enableSorting){const o=s=>{var l,c;const a=s.touchStart.target;n&&((l=this.eMenu)!=null&&l.contains(a)||(c=this.eFilterButton)!=null&&c.contains(a))||this.sortController.progressSort(this.params.column,!1,"uiColumnSorted")};this.addManagedListeners(t,{tap:o})}if(this.params.enableFilterButton){const o=new Cm(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){au(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 K3e(!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 a=this.gos.get("multiSortKey")==="ctrl"?t.ctrlKey||t.metaKey:t.shiftKey;this.params.progressSort(a)}}});const e=()=>{const t
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`),this.agOpened=Ot,this.agClosed=Ot,this.agLabel=Ot}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&&rt("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(Ig(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=>{Nm(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 Cm(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();Mn(this.agOpened,t),Mn(this.agClosed,!t)}else Mn(this.agOpened,!1),Mn(this.agClosed,!1)}addInIcon(e,t){const n=Gn(e,this.gos,null);n&&t.appendChild(n)}addGroupExpandIcon(){if(!this.params.columnGroup.isExpandable()){Mn(this.agOpened,!1),Mn(this.agClosed,!1);return}}setupLabel(){var n;const{displayName:e,columnGroup:t}=this.params;if(zt(e)){const r=Wl(e,!0);this.agLabel.textContent=r}this.addOrRemoveCssClass("ag-sticky-label",!((n=t.getColGroupDef())!=null&&n.suppressStickyLabel))}},iii="",oii="",sii=class extends wn{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=zt(r)?r:n,o=t>=0;o?this.eDelta.textContent=iii+i:this.eDelta.textContent=oii+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"),go(this.eDelta)}refresh(e,t=!1){var r;const n=e.value;if(n===this.lastValue||(zt(e.valueFormatted)?this.eValue.textContent=e.valueFormatted:zt(e.value)?this.eValue.textContent=n:go(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}},aii=class extends wn{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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[],t),this.inputType=n,this.displayFieldTag=r,this.eLabel=Ot,this.eWrapper=Ot,this.eInput=Ot}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 EH(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 jf(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return Xl(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return wI(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)jf(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";jf(this.eInput,"autocomplete",t)}return this}},UQ=class extends k8{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)}},a6={selector:"AG-CHECKBOX",component:UQ},cii=class extends wn{constructor(){super(`
2025-03-02 17:53:04 +08:00
<div class="ag-cell-wrapper ag-checkbox-cell" role="presentation">
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
2025-03-02 21:11:20 +08:00
</div>`,[a6]),this.eCheckbox=Ot}init(e){this.refresh(e);const t=this.eCheckbox.getInputElement();t.setAttribute("tabindex","-1"),tft(t,"polite"),this.addManagedListeners(t,{click:n=>{if(Nm(n),this.eCheckbox.isDisabled())return;const r=this.eCheckbox.getValue();this.onCheckboxChanged(r)},dblclick:n=>{Nm(n)}}),this.addManagedElementListeners(this.params.eGridCell,{keydown:n=>{if(n.key===Je.SPACE&&!this.eCheckbox.isDisabled()){this.params.eGridCell===gi(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 a;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(yy)?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:!((a=e.column)!=null&&a.isCellEditable(e.node));this.eCheckbox.setDisabled(r);const i=this.localeService.getLocaleTextFunc(),o=V3e(i,t),s=r?o:`${i("ariaToggleCellValue","Press SPACE to toggle cell value")} (${o})`;this.eCheckbox.setInputAriaLabel(s)}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)}},uii=class extends wn{constructor(){super(`<div class="ag-loading">
2025-03-02 17:53:04 +08:00
<span class="ag-loading-icon" data-ref="eLoadingIcon"></span>
<span class="ag-loading-text" data-ref="eLoadingText"></span>
2025-03-02 21:11:20 +08:00
</div>`),this.eLoadingIcon=Ot,this.eLoadingText=Ot}init(e){e.node.failedLoad?this.setupFailed():this.setupLoading()}setupFailed(){const e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")}setupLoading(){const e=Gn("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()}},dii=class extends wn{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(()=>Rx(e.eParentOfValue)),Rx(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");Xl(this.getGui(),t)}setupLoading(e){const n=uo(this.gos).createElement("div");n.classList.add("ag-skeleton-effect");const r=e.node.rowIndex;if(r!=null){const s=75+25*(r%2===0?Math.sin(r):Math.cos(r));n.style.width=`${s}%`}this.getGui().appendChild(n);const o=this.localeService.getLocaleTextFunc()("ariaSkeletonCellLoading","Row data is loading");Xl(this.getGui(),o)}refresh(e){return!1}destroy(){super.destroy()}},Tft=class extends wn{constructor(){super()}destroy(){super.destroy()}},fii=class extends Tft{init(){var t;const e=Da((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...")})}}},hii=class extends Tft{init(){var t;const e=Da((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")})}}},fE=class extends wn{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()}},gii=class extends fE{constructor(){super('<div class="ag-tooltip"></div>')}init(e){const{value:t}=e;this.getGui().textContent=Wl(t,!0)}};function Ift(e){const{inputValue:t,allSuggestions:n,hideIrrelevant:r,filterByPercentageOfBestMatch:i,addSequentialWeight:o}=e;let s=n.map((c,u)=>({value:c,relevance:mii(t.toLowerCase(),c.toLocaleLowerCase(),o),idx:u}));if(s.sort((c,u)=>u.relevance-c.relevance),r&&(s=s.filter(c=>c.relevance!==0)),s.length>0&&i&&i>0){const u=s[0].relevance*i;s=s.filter(f=>u-f.relevance<0)}const a=[],l=[];for(const c of s)a.push(c.value),l.push(c.idx);return{values:a,indices:l}}function pii(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 mii(e,t,n=!1){const r=e.replace(/\s/g,""),i=t.replace(/\s/g,""),o=r.length,s=i.length,a=new Array(o+1).fill(null).map(()=>new Array(s+1).fill(0));for(let f=0;f<=o;f+=1)a[f][0]=f;for(let f=0;f<=s;f+=1)a[0][f]=f;for(let f=1;f<=o;f++)for(let h=1;h<=s;h++)r[f-1]===i[h-1]?a[f][h]=a[f-1][h-1]:a[f][h]=1+Math.min(a[f][h-1],Math.min(a[f-1][h],a[f-1][h-1]));const l=a[o][s];let u=Math.max(o,s)-l;if(n){const f=pii(r);for(let h=0;h<f.length;h++){const g=f[h];i.indexOf(g)!==-1&&(u+=1,u*=g.length)}}return u}var vii=class extends ct{constructor(){super(...arguments),this.beanName="userComponentRegistry",this.agGridDefaults={agDragAndDropImage:eii,agColumnHeader:lfe,agColumnGroupHeader:rii,agSortIndicator:K3e,agAnimateShowChangeCellRenderer:sii,agAnimateSlideCellRenderer:aii,agLoadingCellRenderer:uii,agSkeletonCellRenderer:dii,agCheckboxCellRenderer:cii,agLoadingOverlay:fii,agNoRowsOverlay:hii,agTooltipComponent:gii},this.agGridDefaultParams={},this.enterpriseAgDefaultCompsModule={agSetColumnFilter:"@ag-
2025-03-02 17:53:04 +08:00
<script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script>
For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(zi.moduleBased||zi.moduleBased===void 0){const s=(o=Object.entries(rr).find(([a,l])=>l===t))==null?void 0:o[0];i=`AG Grid: unable to use ${n} as the ${s} is not registered${zi.areGridScopedModules?` for gridId: ${r}`:""}. Check if you have registered the module:
import { ModuleRegistry } from '@ag-grid-community/core';
import { ${s} } from '${t}';
ModuleRegistry.registerModules([ ${s} ]);
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-03-02 21:11:20 +08:00
import 'ag-grid-enterprise';`;return Mr(i),!1}static __isRegistered(t,n){var r;return!!zi.globalModulesMap[t]||!!((r=zi.gridModulesMap[n])!=null&&r[t])}static __getRegisteredModules(t){return[...lk(zi.globalModulesMap),...lk(zi.gridModulesMap[t]||{})]}static __getGridRegisteredModules(t){return lk(zi.gridModulesMap[t]??{})||[]}static __isPackageBased(){return!zi.moduleBased}};qQ.globalModulesMap={};qQ.gridModulesMap={};qQ.areGridScopedModules=!1;var Pf=qQ,Fii=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}},Nii=class extends Fii{init(e){this.gridId=e.gridId,this.beans.context=this,super.init(e)}destroy(){super.destroy(),Pf.__unRegisterGridModules(this.gridId)}getGridId(){return this.gridId}},_ft=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(_ft||{}),by=(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))(by||{}),kii=class extends ct{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),rl(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-03-02 17:53:04 +08:00
${i2("eTopLeft","topLeft")}
${i2("eTop","top")}
${i2("eTopRight","topRight")}
${i2("eRight","right")}
${i2("eBottomRight","bottomRight")}
${i2("eBottom","bottom")}
${i2("eBottomLeft","bottomLeft")}
${i2("eLeft","left")}
2025-03-02 21:11:20 +08:00
</div>`,YQ=class extends ct{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:s,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,c=0;const u=Su(this.element);if(u){const f=this.findBoundaryElement(),h=window.getComputedStyle(f);if(h.minWidth!=null){const g=f.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-g}if(h.minHeight!=null){const g=f.offsetHeight-this.element.offsetHeight;l=parseInt(h.minHeight,10)-g}}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(s||a)this.offsetElement(s,a);else if(u&&t){let f=this.boundaryEl,h=!0;if(f||(f=this.findBoundaryElement(),h=!1),f){const g=parseFloat(f.style.top),p=parseFloat(f.style.left);h?this.offsetElement(isNaN(p)?0:p,isNaN(g)?0:g):this.setPosition(p,g)}}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:s=>this.onResizeStart(s,t),onDragging:this.onResize.bind(this),onDragStop:s=>this.onResizeEnd(s,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)yO(n,e),e=pft(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?yO(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,s=e?0:i.top;let a=0;if(t){const c=this.element.parentElement;if(c){const{bottom:u}=c.getBoundingClientRect();a=u-r.bottom}}return n+s-o-a}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)Mg(t,e),e=bH(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{cl
2025-03-02 17:53:04 +08:00
<form class="ag-filter-wrapper">
<div class="ag-filter-body-wrapper ag-${this.getCssIdentifier()}-body-wrapper" data-ref="eFilterBody">
${this.createBodyTemplate()}
</div>
</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=$H(e),this.resetButtonsPanel(e)}updateParams(e){this.providedFilterParams=e,this.applyActive=$H(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&&gI(n,i))return;const s=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(go(this.eButtonsPanel),this.buttonListeners.forEach(c=>c()),this.buttonListeners=[]):s&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!s){this.eButtonsPanel&&au(this.eButtonsPanel);return}const a=document.createDocumentFragment(),l=c=>{let u,f;switch(c){case"apply":u=this.translate("applyFilter"),f=p=>this.onBtApply(!1,!1,p);break;case"clear":u=this.translate("clearFilter"),f=()=>this.onBtClear();break;case"reset":u=this.translate("resetFilter"),f=()=>this.onBtReset();break;case"cancel":u=this.translate("cancelFilter"),f=p=>{this.onBtCancel(p)};break;default:rt("Unknown button type specified");return}const g=lu(`<button
type="${c==="apply"?"submit":"button"}"
data-ref="${c}FilterButton"
class="ag-button ag-standard-button ag-filter-apply-panel-button"
>${u}
2025-03-02 21:11:20 +08:00
</button>`);this.buttonListeners.push(...this.addManagedElementListeners(g,{click:f})),a.append(g)};i.forEach(c=>l(c)),this.eButtonsPanel.append(a),this.getGui().appendChild(this.eButtonsPanel)}getDefaultDebounceMs(){return 0}setupOnBtApplyDebounce(){const e=Q3e(this.providedFilterParams,this.getDefaultDebounceMs()),t=_a(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&&wI(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,Nft[e])}getCellValue(e){return this.providedFilterParams.getValue(e)}getPositionableElement(){return this.eFilterBody}},Uii=class extends UQ{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)}},qii=class extends wn{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-03-02 17:53:04 +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-03-02 21:11:20 +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=Ot,this.eWrapper=Ot,this.eDisplayField=Ot,this.eIcon=Ot,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=Gn(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()),wd(e,!1),this.ariaRole&&jo(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 Je.UP:case Je.DOWN:case Je.ENTER:case Je.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Je.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=CI(this.gos);this.beforeHidePicker(),h&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(n,r),anchorToElement:this.eWrapper};e.style.position="absolute";const s=this.popupService.addPopup(o),{maxPickerHeight:a,minPickerWidth:l,maxPickerWidth:c,variableWidth:u}=this;u?(l&&(e.style.minWidth=l),e.style.width=q3e(bH(this.eWrapper)),c&&(e.style.maxWidth=c)):EH(e,c??bH(this.eWrapper));const f=a??`${GQ(this.popupService.getPopupParent())}px`;return e.style.setProperty("max-height",f),this.alignPickerToComponent(),s.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();wd(t,e),this.eWrapper.classList.toggle("ag-picker-expa
2025-03-02 17:53:04 +08:00
<div class="ag-floating-filter-input" role="presentation">
<ag-input-text-field data-ref="eFloatingFilterText"></ag-input-text-field>
2025-03-02 21:11:20 +08:00
</div>`,[c6]),this.eFloatingFilterText=Ot}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)}},iht=class extends wn{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 zft,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")}`}},Moi=class extends iht{constructor(){super(`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[c6]),this.eReadOnlyText=Ot,this.eDateWrapper=Ot}wireBeans(e){super.wireBeans(e),this.context=e.context,this.userComponentFactory=e.userComponentFactory}getDefaultFilterOptions(){return Xft}init(e){super.init(e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new Qft(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(cu(n.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Mn(this.eDateWrapper,e),Mn(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=Vf(e);this.params.parentFilterInstance(n=>{if(n){const r=cu(t);n.onFloatingFilterChanged(this.getLastType()||null,r)}})}getDateComponentParams(){const e=Q3e(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:_a(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}}createDateComponent(){this.dateComp=new Yft(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}},Poi=class extends wn{constructor(){super(`
2025-03-02 17:53:04 +08:00
<div class="ag-filter-filter">
<ag-input-text-field class="ag-date-filter" data-ref="eDateInput"></ag-input-text-field>
2025-03-02 21:11:20 +08:00
</div>`,[c6]),this.eDateInput=Ot}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===gi(this.gos)&&(this.eDateInput.isDisabled()||this.params.onDateChanged())}})}setParams(e){const t=this.eDateInput.getInputElement(),n=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=n&&zm(),t.type=n?"date":"text";const{minValidYear:r,maxValidYear:i,minValidDate:o,maxValidDate:s}=e.filterParams||{};if(o&&r&&rt("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),s&&i&&rt("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),o&&s){const[a,l]=[o,s].map(c=>c instanceof Date?c:cu(c));a&&l&&a.getTime()>l.getTime()&&rt("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}o?o instanceof Date?t.min=SO(o):t.min=o:r&&(t.min=`${r}-01-01`),s?s instanceof Date?t.max=SO(s):t.max=s:i&&(t.max=`${i}-12-31`)}onParamsUpdated(e){this.refresh(e)}refresh(e){this.params=e,this.setParams(e)}getDate(){return cu(this.eDateInput.getValue())}setDate(e){this.eDateInput.setValue(Vf(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:G3e()||W3e()||zm()&&uft()>=14.1}},oht=class extends ct{constructor(e){super(),this.params=e,this.eFloatingFilterTextInput=Ot,this.valueChangedListener=()=>{}}setupGui(e){var r;this.eFloatingFilterTextInput=this.createManagedBean(new l6((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)}},sht=class extends iht{constructor(){super(...arguments),this.eFloatingFilterInputContainer=Ot}postConstruct(){this.setTemplate(`
2025-03-02 17:53:04 +08:00
<div class="ag-floating-filter-input" role="presentation" data-ref="eFloatingFilterInputContainer"></div>
2025-03-02 21:11:20 +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=$H(this.params.filterParams),!this.isReadOnly()){const n=Q3e(this.params.filterParams,this.getDefaultDebounceMs()),r=_a(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();go(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)}syncUpWithParentFilter(e){const t=e.key===Je.ENTER;if(this.applyActive&&!t)return;let n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=qft(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance(r=>{r&&r.onFloatingFilterChanged(this.getLastType()||null,n||null)})}setEditable(e){this.floatingFilterInputService.setEditable(e)}},_oi=class extends ct{constructor(){super(...arguments),this.valueChangedListener=()=>{},this.numberInputActive=!0}setupGui(e){this.eFloatingFilterNumberInput=this.createManagedBean(new Z3e),this.eFloatingFilterTextInput=this.createManagedBean(new l6),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)}},Aoi=class extends sht{init(e){var t;super.init(e),this.filterModelFormatter=new Gft(this.localeService,this.optionsFactory,(t=e.filterParams)==null?void 0:t.numberFormatter)}onParamsUpdated(e){this.refresh(e)}refresh(e){ufe(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.refresh(e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})}getDefaultFilterOptions(){return Vft}getFilterModelFormatter(){return this.filterModelFormatter}createFloatingFilterInputService(e){return this.allowedCharPattern=ufe(e.filterParams),this.allowedCharPattern?this.createManagedBean(new oht({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new _oi)}},Doi=class extends sht{init(e){super.init(e),this.filterModelFormatter=new Uft(this.localeService,this.optionsFactory)}onParamsUpdated(e){this.refresh(e)}refresh(e){super.refresh(e),this.filterModelFormatter.u
`)}},n6e={version:ur,moduleName:"@ag-grid-community/filter-core",beans:[Gii]},zoi={version:ur,moduleName:"@ag-grid-community/filter-api",apiFunctions:{isAnyFilterPresent:Ooi,onFilterChanged:Toi},dependantModules:[n6e]},Fb={version:ur,moduleName:"@ag-grid-community/column-filter",beans:[$oi],dependantModules:[n6e]},Boi={version:ur,moduleName:"@ag-grid-community/column-filter-api",apiFunctions:{isColumnFilterPresent:moi,getFilterInstance:voi,getColumnFilterInstance:Coi,destroyFilter:yoi,setFilterModel:boi,getFilterModel:Soi,getColumnFilterModel:woi,setColumnFilterModel:xoi,showColumnFilter:Eoi},dependantModules:[Fb,zoi]},r6e={version:ur,moduleName:"@ag-grid-community/floating-filter-core",controllers:[{name:"headerFilterCell",classImp:poi}],dependantModules:[Fb]},aht={version:ur,moduleName:"@ag-grid-community/floating-filter",dependantModules:[r6e,Fb]},Hoi={version:ur,moduleName:"@ag-grid-community/read-only-floating-filter",userComponents:[{name:"agReadOnlyFloatingFilter",classImp:Ioi}],dependantModules:[r6e]},joi={version:ur,moduleName:"@ag-grid-community/simple-filter",dependantModules:[Fb],userComponents:[{name:"agTextColumnFilter",classImp:aoi},{name:"agNumberColumnFilter",classImp:soi},{name:"agDateColumnFilter",classImp:uoi},{name:"agDateInput",classImp:Poi}]},Voi={version:ur,moduleName:"@ag-grid-community/simple-floating-filter",dependantModules:[joi,r6e],userComponents:[{name:"agTextColumnFloatingFilter",classImp:Doi},{name:"agNumberColumnFloatingFilter",classImp:Aoi},{name:"agDateColumnFloatingFilter",classImp:Moi}]},lht={version:ur,moduleName:"@ag-grid-community/quick-filter-core",beans:[koi],dependantModules:[n6e]},Goi={version:ur,moduleName:"@ag-grid-community/quick-filter-api",apiFunctions:{isQuickFilterPresent:Loi,getQuickFilter:Foi,resetQuickFilter:Noi},dependantModules:[lht]},Woi={version:ur,moduleName:"@ag-grid-community/quick-filter",dependantModules:[lht,Goi]},Uoi={version:ur,moduleName:"@ag-grid-community/filter",dependantModules:[Voi,Hoi,Woi,Boi]},i6e=class extends wn{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},qoi=class extends i6e{constructor(t){super(`<div class="ag-header-cell ag-floating-filter" role="gridcell">
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,t),this.eFloatingFilterBody=Ot,this.eButtonWrapper=Ot,this.eButtonShowMainFilter=Ot}postConstruct(){const t=this.getGui(),n={addOrRemoveCssClass:(r,i)=>this.addOrRemoveCssClass(r,i),addOrRemoveBodyCssClass:(r,i)=>this.eFloatingFilterBody.classList.toggle(r,i),setButtonWrapperDisplayed:r=>Mn(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()}}},Koi=class extends i6e{constructor(t){super(`<div class="ag-header-cell" role="columnheader">
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,t),this.eResize=Ot,this.eHeaderCompWrapper=Ot,this.headerCompVersion=0,this.column=t.getColumnGroupChild(),this.pinned=t.getPinned()}postConstruct(){const t=this.getGui();((o,s)=>{s!=null&&s!=""?t.setAttribute(o,s):t.removeAttribute(o)})("col-id",this.column.getColId());const r={setWidth:o=>t.style.width=o,addOrRemoveCssClass:(o,s)=>this.addOrRemoveCssClass(o,s),setAriaSort:o=>o?aft(t,o):lft(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())}},Yoi=class extends i6e{constructor(t){super(`<div class="ag-header-group-cell" role="columnheader">
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,t),this.eResize=Ot,this.eHeaderCompWrapper=Ot}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=>Mn(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)}},dfe=(e=>(e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter",e))(dfe||{}),Xoi=class extends wn{constructor(t){super(),this.headerComps={},this.ctrl=t,this.setTemplate(`<div class="${this.ctrl.getHeaderRowClass()}" role="row"></div>`)}postConstruct(){ift(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 s=r[o];delete r[o],s==null&&(s=this.createHeaderComp(i),this.getGui().appendChild(s.getGui())),this.headerComps[o]=s}),tl(r,(i,o)=>{this.getGui().removeChild(o.getGui()),this.destroyBean(o)}),n){const i=c3(this.headerComps);i.sort((s,a)=>{const l=s.getCtrl().getColumnGroupChild().getLeft(),c=a.getCtrl().getColumnGroupChild().getLeft();return l-c});const o=i.map(s=>s.getGui());yft(this.getGui(),o)}}createHeaderComp(t){let n;switch(this.ctrl.getType()){case"group":n=new Yoi(t);break;case"filter":n=new qoi(t);break;default:n=new Koi(t);break}return this.createBean(n),n.setParentComponent(this),n}},Qoi=class extends ct{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=uo(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=Dn(i||[]).getType()==="filter",s=this.getHeaderRowCount()-1;let a=-1,l=n;for(;l;)a++,l=l.getParent();let c=a;return t&&o&&c===s-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(),s=e===0;let{headerRowIndex:a,column:l,headerRowIndexWithoutSpan:c}=s?this.headerPositionUtils.getColumnVisibleParent(i,r):this.headerPositionUtils.getColumnVisibleChild(i,r),u=!1;re
2025-03-02 17:53:04 +08:00
<div class="ag-header-container" data-ref="eCenterContainer" role="rowgroup"></div>
2025-03-02 21:11:20 +08:00
</div>`,aoe=class extends wn{constructor(t){super(),this.eCenterContainer=Ot,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 dht(this.pinned)).setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left",n=this.pinned=="right",r=t?gsi:n?psi:msi;this.setTemplate(r),this.eRowContainer=this.eCenterContainer!==Ot?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 s=o.getGui();s.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(s),r&&Cft(this.eRowContainer,s,r),r=s};t.forEach(o=>{const s=o.instanceId,a=n[s];delete n[s];const l=a||this.createBean(new Xoi(o));this.headerRowComps[s]=l,this.rowCompsList.push(l),i(l)}),c3(n).forEach(o=>this.destroyRowComp(o))}},vsi=class extends wn{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 cht).setComp(t,this.getGui(),this.getFocusableElement());const r=i=>{this.createManagedBean(i),this.appendChild(i)};r(new aoe("left")),r(new aoe(null)),r(new aoe("right"))}},Csi={selector:"AG-HEADER-ROOT",component:vsi},a6e=class extends ct{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?(rt(`${e} is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.`),"normal"):e}},fht=class extends wn{constructor(){super(`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`),this.eOverlayWrapper=Ot,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!==Je.TAB||e.defaultPrevented||Ig(e)||this.focusService.findNextFocusableElement(this.eOverlayWrapper,!1,e.shiftKey))return;let n=!1;e.shiftKey?n=this.focusService.focusGridView(Dn(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 a6e(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=gi(this.gos);i&&!CI(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 s=i;this.updateListenerDestroyFunc=this.addManagedPropertyListener(r,({currentValue:a})=>{var l;(l=s.refresh)==null||l.call(s,this.gos.addGridCommonParams({...a??{}}))})}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),go(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()}},ysi={selector:"AG-OVERLAY-WRAPPER",component:fht},hht=class extends wn{constructor(e,t){super(),this.direction=t,this.eViewport=Ot,this.eContainer=Ot,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",dft()||Ev())}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=hft(),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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,"horizontal"),this.eLeftSpacer=Ot,this.eRightSpacer=Ot}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 o6e(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),Mg(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let i=this.visibleColsService.getColsLeftWidth();this.enableRtl&&e&&(i+=r),Mg(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),yO(this.getGui(),o),yO(this.eViewport,o),yO(this.eContainer,o),this.setDisplayed(e,{skipAriaHidden:!0})}getScrollPosition(){return wH(this.getViewportElement(),this.enableRtl)}setScrollPosition(e){Su(this.getViewportElement())||this.attemptSettingScrollPosition(e),xH(this.getViewportElement(),e,this.enableRtl)}},bsi={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:ght},pht=class extends ct{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)}},mht=class extends hht{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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new pht(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),Mg(this.getGui(),r),Mg(this.eViewport,r),Mg(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&&!Su(this.getViewportElement())&&this.attemptSettingScrollPosition(e),this.getViewportElement().scrollTop=e}},Ssi={selector:"AG-FAKE-VERTICAL-SCROLL",component:mht},hfe=(e=>(e.FakeHScrollbar="fakeHScrollComp",e.Header="centerHeader",e.PinnedTop="topCenter",e.PinnedBottom="bottomCenter",e.StickyTop="stickyTopCenter",e.StickyBottom="stickyBottomCenter",e))(hfe||{}),wsi=class extends ct{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=_a(()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=_a(()=>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(hfe)){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?_a(this.onVScroll.bind(this,"Viewport"),100):this.onVScroll.bind(this,"Viewport"),r=t?_a(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(hfe),"Viewport"]){if(this.lastScrollSource[1]===t)continue;const n=this.getViewportForSource(t);xH(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=wH(this.getViewportForSource(e),this.enableRtl);this.doH
2025-03-02 17:53:04 +08:00
<div class="ag-selection-checkbox" role="presentation">
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
2025-03-02 21:11:20 +08:00
</div>`,[a6]),this.eCheckbox=Ot}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=V3e(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=>Nm(r),click:r=>{Nm(r);const i=A3e(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)}),_3e(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)&&Li(this.gos)}showOrHideSelect(){var i,o,s;let e=this.rowNode.selectable;const t=this.getIsVisible();if(e)if(typeof t=="function"){const a=(i=this.overrides)==null?void 0:i.callbackParams;if(!this.column)e=t({...a,node:this.rowNode,data:this.rowNode.data});else{const l=this.column.createColumnFunctionCallbackParams(this.rowNode);e=t({...a,...l})}}else e=t??!1;const n=this.gos.get("rowSelection");if(n&&typeof n!="string"?!Uni(n):(o=this.column)==null?void 0:o.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!e),this.setVisible(!0),this.setDisplayed(!0);return}if((s=this.overrides)!=null&&s.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"?wx(e):(n=(t=this.column)==null?void 0:t.getColDef())==null?void 0:n.checkboxSelection}},Rsi=class extends wn{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(Gn("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)}},$si=class extends ct{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-03-02 17:53:04 +08:00
<div class="${e.container}" data-ref="eContainer"></div>
2025-03-02 21:11:20 +08:00
</div>`:t=`<div class="${e.container}" data-ref="eContainer"></div>`,t}var gai=class extends wn{constructor(){super(),this.eViewport=Ot,this.eContainer=Ot,this.rowComps={},this.name=wn.elementGettingCreated.getAttribute("name"),this.options=z8(this.name),this.setTemplate(hai(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 wht(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,s=n[o];if(s)this.rowComps[o]=s,delete n[o],this.ensureDomOrder(s.getGui());else{if(!i.getRowNode().displayed)return;const a=new fai(i,this.beans,this.options.type);this.rowComps[o]=a,this.appendRow(a.getGui())}};t.forEach(r),c3(n).forEach(i=>{this.eContainer.removeChild(i.getGui()),i.destroy()}),jo(this.eContainer,"rowgroup")}appendRow(t){this.domOrder?Gri(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t}ensureDomOrder(t){this.domOrder&&(Cft(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)}},pai={selector:"AG-ROW-CONTAINER",component:gai};function VR(e){return e.map(t=>`<ag-row-container name="${t}"></ag-row-container>`).join("")}var mai=`<div class="ag-root ag-unselectable" role="treegrid">
2025-03-02 17:53:04 +08:00
<ag-header-root></ag-header-root>
<div class="ag-floating-top" data-ref="eTop" role="presentation">
${VR(["topLeft","topCenter","topRight","topFullWidth"])}
</div>
<div class="ag-body" data-ref="eBody" role="presentation">
<div class="ag-body-viewport" data-ref="eBodyViewport" role="presentation">
${VR(["left","center","right","fullWidth"])}
</div>
<ag-fake-vertical-scroll></ag-fake-vertical-scroll>
</div>
<div class="ag-sticky-top" data-ref="eStickyTop" role="presentation">
${VR(["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"])}
</div>
<div class="ag-sticky-bottom" data-ref="eStickyBottom" role="presentation">
${VR(["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"])}
</div>
<div class="ag-floating-bottom" data-ref="eBottom" role="presentation">
${VR(["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"])}
</div>
<ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>
<ag-overlay-wrapper></ag-overlay-wrapper>
2025-03-02 21:11:20 +08:00
</div>`,vai=class extends wn{constructor(){super(mai,[ysi,bsi,Ssi,Csi,pai]),this.eBodyViewport=Ot,this.eStickyTop=Ot,this.eStickyBottom=Ot,this.eTop=Ot,this.eBottom=Ot,this.eBody=Ot}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=>oft(this.getGui(),r),setRowCount:r=>rft(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(s=>{s.toggle("ag-layout-auto-height",i.autoHeight),s.toggle("ag-layout-normal",i.normal),s.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(xht,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 Eht),this.ctrl.setComp(n,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop,this.eStickyBottom),(this.rangeService&&su(this.gos)||xx(this.gos))&&Lri(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]}},Cai={selector:"AG-GRID-BODY",component:vai},yai=class extends ct{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-03-02 17:53:04 +08:00
<ag-input-text-area data-ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>
2025-03-02 21:11:20 +08:00
</div>`,[Tai]),this.eTextArea=Ot}init(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),zt(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===Je.LEFT||t===Je.UP||t===Je.RIGHT||t===Je.DOWN||e.shiftKey&&t===Je.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!zt(e)&&!zt(this.params.value)?this.params.value:this.params.parseValue(e)}},Mai=class extends fE{constructor(e){super('<div class="ag-popup-editor" tabindex="-1"/>'),this.params=e}postConstruct(){Cy(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,n=r=>{cfe(this.gos,r,t.node,t.column,!0)||t.onKeyDown(r)};this.addManagedElementListeners(e,{keydown:n})}},Pai=class extends fE{constructor(){super(`<div class="ag-cell-edit-wrapper">
2025-03-02 17:53:04 +08:00
<ag-select class="ag-cell-editor" data-ref="eSelect"></ag-select>
2025-03-02 21:11:20 +08:00
</div>`,[Yii]),this.eSelect=Ot,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:s}=e;if(ar(i)){rt("no values found for select cellEditor");return}this.startedByEnter=s!=null?s===Je.ENTER:!1;let a=!1;i.forEach(f=>{const h={value:f},g=n.formatValue(e.column,null,f),p=g!=null;h.text=p?g:f,t.addOption(h),a=a||o===f}),a?t.setValue(e.value,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:u}=e;l!=null&&t.setPickerGap(l),u!=null&&t.setPickerMaxHeight(u),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}},ZQ=class extends fE{constructor(e){super(`
2025-03-02 17:53:04 +08:00
<div class="ag-cell-edit-wrapper">
${e.getTemplate()}
2025-03-02 21:11:20 +08:00
</div>`,e.getAgComponents()),this.cellEditorInput=e,this.eInput=Ot}init(e){this.params=e;const{cellStartedEdit:t,eventKey:n,suppressPreventDefault:r}=e,i=this.eInput;this.cellEditorInput.init(i,e);let o,s=!0;t?(this.focusAfterAttached=!0,n===Je.BACKSPACE||n===Je.DELETE?o="":n&&n.length===1?r?s=!1:o=n:(o=this.cellEditorInput.getStartValue(),n!==Je.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.cellEditorInput.getStartValue()),s&&o!=null&&i.setStartValue(o),this.addManagedElementListeners(i.getGui(),{keydown:a=>{const{key:l}=a;(l===Je.PAGE_UP||l===Je.PAGE_DOWN)&&a.preventDefault()}})}afterGuiAttached(){var r,i;const e=this.localeService.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;zm()||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}},_ai=class{getTemplate(){return'<ag-input-text-field class="ag-cell-editor" data-ref="eInput"></ag-input-text-field>'}getAgComponents(){return[c6]}init(e,t){this.eInput=e,this.params=t,t.maxLength!=null&&e.setMaxLength(t.maxLength)}getValue(){const e=this.eInput.getValue();return!zt(e)&&!zt(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=zt(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)}},Tht=class extends ZQ{constructor(){super(new _ai)}},Aai=class{getTemplate(){return'<ag-input-number-field class="ag-cell-editor" data-ref="eInput"></ag-input-number-field>'}getAgComponents(){return[ooi]}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===Je.UP||e.key===Je.DOWN)&&e.preventDefault()}getValue(){const e=this.eInput.getValue();if(!zt(e)&&!zt(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(){zm()&&this.eInput.getInputElement().focus({preventScroll:!0})}},Dai=class extends ZQ{constructor(){super(new Aai)}},Lai=class extends l6{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=zm();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){gi(this.gos)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Vf(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,jf(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Vf(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,jf(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,jf(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return cu(this.getValue())??void 0}setDate(e,t){this.setValue(Vf(e??null,!1),t)}},Iht={selector:"AG-INPUT-DATE-FIELD",component:Lai},Fai=class{getTemplate(){return'<ag-input-date-field class="ag-cell-editor" data-ref="eInput"></ag-input-date-field>'}getAgComponents(){return[Iht]}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!zt(e)&&!zt(this.params.value)?this.params.value:e??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Vf(e,!1)}},Nai=class
2025-03-02 17:53:04 +08:00
<div class="ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit">
<ag-checkbox role="presentation" data-ref="eCheckbox"></ag-checkbox>
2025-03-02 21:11:20 +08:00
</div>`,[a6]),this.eCheckbox=Ot}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=V3e(t,e),r=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(`${r} (${n})`)}},$$=class{constructor(e){this.cellValueChanges=e}},loe=class extends $${constructor(e,t,n,r){super(e),this.initialRange=t,this.finalRange=n,this.ranges=r}},Hai=10,OLe=class{constructor(e){this.actionStack=[],this.maxStackSize=e||Hai,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}},jai=class extends ct{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:s,column:a,oldValue:l,value:c}=e,u={rowPinned:o,rowIndex:s,columnId:a.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(u)},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 OLe(e),this.redoStack=new OLe(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,s=>s[r],i),o instanceof loe?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:s}=r,a={rowIndex:i,rowPinned:o},l=this.rowPositionUtils.getRowNode(a);l.displayed&&l.setDataValue(s,t(r),n)})}processRange(e,t){let n;e.removeAllCellRanges(!0),t.forEach((r,i)=>{if(!r)return;const o=r.startRow,s=r.endRow;i===t.length-1&&(n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:r.startColumn.getColId()},this.setLast
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${r}`);else{const i=ILe[e];n.assertModuleRegistered(i,`api.${e}`)&&rt(`API function '${e}' not registered to module '${i}'`)}}destroy(){super.destroy(),this.fns=coe,this.beans=null}};function Tli(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionService").api}}var Ili=class extends ct{constructor(){super(...arguments),this.beanName="columnDefFactory"}buildColumnDefs(e,t,n){const r=[],i={};return e.forEach(o=>{const s=this.createDefFromColumn(o,t,n);let a=!0,l=s,c=o.getOriginalParent(),u=null;for(;c;){let f=null;if(c.isPadding()){c=c.getOriginalParent();continue}const h=i[c.getGroupId()];if(h){h.children.push(l),a=!1;break}if(f=this.createDefFromGroup(c),f&&(f.children=[l],i[f.groupId]=f,l=f,c=c.getOriginalParent()),c!=null&&u===c){a=!1;break}u=c}a&&r.push(l)}),r}createDefFromGroup(e){const t=nfe(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t}createDefFromColumn(e,t,n){const r=nfe(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}},Mli=class extends ct{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})}},Pli=class extends ct{constructor(){super(...arguments),this.beanName="columnGetStateService"}wireBeans(e){this.columnModel=e.columnModel,this.funcColsService=e.funcColsService}getColumnState(){const e=this.columnModel.getColDefCols();if(ar(e)||!this.columnModel.isAlive())return[];const n=this.columnModel.getAllCols().m
2025-03-02 17:53:04 +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}
${s}
${o}
2025-03-02 21:11:20 +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=>Su(n.getGui()))}},Xli=class extends ct{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 s;if(!i){Mr("alignedGrids contains an undefined option."),t||Mr(`You may want to configure via a callback to avoid setup race conditions:
"alignedGrids: () => [linkedGrid]"`),Mr(n());return}if(this.isGridApi(i))return i;const o=i;return"current"in o?(s=o.current)==null?void 0:s.api:(o.api||Mr(`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":rt("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:s}=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 u=e,f={};r.forEach(h=>{f[h.getId()]={key:h.getColId(),newWidth:h.getActualWidth()}}),(c=u.flexColumns)==null||c.forEach(h=>{f[h.getId()]&&delete f[h.getId()]}),o.setColumnWidths(Object.values(f),!1,u.finished,"alignedGridChanged");break}}const l=s.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach(u=>{u.setGridOption("alwaysShowVerticalScroll",l)})}},Qli={version:ur,moduleName:"@ag-grid-community/aligned-grid",beans:[Xli]};function Zli(e,t){const n=e.columnModel.getColDefCol(t);return n?n.getColDef():null}function Jli(e){return e.columnModel.getColumnDefs()}function eci(e,t){typeof t=="number"?e.columnSizeService.sizeColumnsToFit(t,"api"):e.ctrlsService.getGridBodyCtrl().sizeColumnsToFit(t)}function tci(e,t,n){e.columnModel.setColumnGroupOpened(t,n,"api")}function nci(e,t,n){return e.visibleColsService.getColumnGroup(t,n)}function rci(e,t){return e.columnModel.getProvidedColGroup(t)}function ici(e,t,n){return e.columnNameService.getDisplayNameForColumn(t,n)||""}function oci(e,t,n){return e.columnNameService.getDisplayNameForColumnGroup(t,n)||""}function sci(e,t){return e.columnModel.getColDefCol(t)}function aci(e){return e.columnModel.getColDefCols()}function lci(e,t){return e.columnApplyStateService.applyColumnState(t,"api")}function cci(e){return e.columnGetStateService.getColumnState()}function uci(e){e.columnApplyStateService
2025-03-02 17:53:04 +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="${s}"></div>
<div data-ref="btLast" class="ag-button ag-paging-button" role="button" aria-label="${a}"></div>
</span>
2025-03-02 21:11:20 +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){nft(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 s,a;this.isZeroPagesToDisplay()?s=a=0:(s=o*i+1,a=s+o-1,e&&a>r&&(a=r));const l=s+o-1,c=!e&&n<l,u=this.formatNumber(s);this.lbFirstRowOnPage.textContent=u;let f;const h=this.localeService.getLocaleTextFunc();c?f=h("pageLastRowUnknown","?"):f=this.formatNumber(a),this.lbLastRowOnPage.textContent=f;const p=t>0?i+1:0,m=this.formatNumber(p);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(u,f,C,m,v)}announceAriaStatus(e,t,n,r,i){const o=this.localeService.getLocaleTextFunc(),s=o("page","Page"),a=o("to","to"),l=o("of","of"),c=`${e} ${a} ${t} ${l} ${n}`,u=`${s} ${r} ${l} ${i}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnouncementService.announceValue(c,"paginationRow")),u!==this.ariaPageStatus&&(this.ariaPageStatus=u,this.ariaAnnouncementService.announceValue(u,"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)}},Mdi={selector:"AG-PAGINATION",component:Idi},Pdi=class extends ct{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 Mdi}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
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:()=>aS,defaultColDef:()=>aS,defaultColGroupDef:()=>aS,autoGroupColumnDef:()=>aS,selectionColumnDef:()=>aS}),Gdi=()=>({objectName:"gridOptions",allProperties:[...bI.ALL_PROPERTIES,...SI.EVENT_CALLBACKS],propertyExceptions:["api"],docsUrl:"grid-options/",deprecations:Hdi(),validations:Vdi()}),Wdi=class extends ct{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,Gdi())}validateApiFunction(e,t){return Fdi(e,t,this.beans)}processOptions(e,t){const{validations:n,deprecations:r,allProperties:i,propertyExceptions:o,objectName:s,docsUrl:a}=t;i&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...o??[],...Object.keys(r)],i,s,a);const l=new Set;Object.keys(e).forEach(u=>{const f=r[u];if(f)if("renamed"in f){const{renamed:b,version:S}=f;l.add(`As of v${S}, ${String(u)} is deprecated. Please use ${String(b)} instead.`),e[b]=e[u]}else{const{message:b,version:S}=f;l.add(`As of v${S}, ${String(u)} is deprecated. ${b??""}`)}const h=e[u];if(h==null||h===!1)return;const g=n[u];let p;if(g)if(typeof g=="function"){const b=g(e,this.gridOptions);if(!b)return;if("objectName"in b){const S=e[u];if(Array.isArray(S)){S.forEach(w=>{this.processOptions(w,b)});return}this.processOptions(e[u],b);return}p=b}else p=g;else return;const{module:m,dependencies:v,validate:C,supportedRowModels:y}=p;if(y){const b=this.gridOptions.rowModelType??"clientSide";if(!y.includes(b)){l.add(`${String(u)} 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(u))||(S=!1,l.add(`${String(u)} is only available when ${w} is loaded.`))}),!S)return}if(v){const b=this.checkForRequiredDependencies(u,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(u=>{rt(u)})}checkForRequiredDependencies(e,t,n){const i=Object.entries(t).find(([a,l])=>{const c=n[a];return!l.includes(c)});if(!i)return null;const[o,s]=i;return s.length>1?`'${String(e)}' requires '${o}' to be one of [${s.join(", ")}].`:`'${String(e)}' requires '${o}' to be ${s[0]}.`}checkProperties(e,t,n,r,i){const o=["__ob__","__v_skip","__metadata__"],s=Udi(Object.getOwnPropertyNames(e),[...o,...t,...n],n);if(tl(s,(a,l)=>{let c=`invalid ${r} property '${a}' did you mean any of these: ${l.slice(0,8).join(", ")}.`;n.includes("context")&&(c+=`
If you are trying to annotate ${r} with application data, use the '${r}.context' property instead.`),rt(c)}),Object.keys(s).length>0&&i){const a=this.getFrameworkOverrides().getDocLink(i);rt(`to see all the valid ${r} properties please check: ${a}`)}}};function Udi(e,t,n){const r={},i=e.filter(o=>!t.some(s=>s===o));return i.length>0&&i.forEach(o=>r[o]=Ift({inputValue:o,allSuggestions:n}).values),r}var qdi={version:ur,moduleName:"@ag-grid-community/core"},Kdi={version:ur,moduleName:"@ag-grid-community/core-validations",beans:[Wdi]},Ydi={version:ur,moduleName:"@ag-grid-community/core-community-features",dependantModules:[qdi,Kdi,cli,Uoi,pdi,jci,Qli,Adi,ldi]},Xdi=class extends ct{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}},fk=new Set(["gridPreDestroyed","fillStart","pasteStart"]),c6e=e=>e==="checkboxSelected"||e==="rowClicked"||e==="spaceKey"||e==="uiSelectAll"||e==="uiSelectAllCurrentPage"||e==="uiSelectAllFiltered",Qdi=new Map([...bI.BOOLEAN_PROPERTIES.map(e=>[e,Zde]),...bI.NUMBER_PROPERTIES.map(e=>[e,Kft]),["groupAggFiltering",e=>typeof e=="function"?e:Zde(e)],["pageSize",Ip(1)],["autoSizePadding",Ip(0)],["keepDetailRowsCount",Ip(1)],["rowBuffer",Ip(0)],["infiniteInitialRowCount",Ip(1)],["cacheOverflowSize",Ip(1)],["cacheBlockSize",Ip(1)],["serverSideInitialRowCount",Ip(1)],["viewportRowModelPageSize",Ip(1)],["viewportRowModelBufferSize",Ip(0)]]);function qht(e,t){const n=Qdi.get(e);return n?n(t):t}function Zdi(e){const t={};return Object.entries(e).forEach(([n,r])=>{const i=qht(n,r);t[n]=i}),t}var Kht=class Yht extends ct{constructor(){super(...arguments),this.beanName="gos",this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new s6,this.globalEventHandlerFactory=t=>(n,r)=>{if(!this.isAlive())return;const i=fk.has(n);if(i&&!t||!i&&t)return;const o=SI.getCallbackForEvent(n),s=this.gridOptions[o];typeof s=="function"&&this.frameworkOverrides.wrapOutgoing(()=>{s(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]??jdi[t]}getCallback(t){return this.mergeGridCommonParams(this.gridOptions[t])}exists(t){return zt(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 s;const i={id:Yht.changeSetId++,properties:[]},o=[];Object.entries(t).forEach(([a,l])=>{r==="api"&&$ri[a]&&rt(`${a} is an initial property and cannot be updated.`);const c=qht(a,l),u=n||typeof c=="object"&&r==="api",f=this.gridOptions[a];if(u||f!==c){this.gridOptions[a]=c;const h={type:a,currentValue:c,previousValue:f,changeSet:i,source:r};o.push(h)}}),(s=this.validationService)==null||s.processGridOptions(this.gridOptions),i.properties=o.map(a=>a.type),o.forEach(a=>{this.gridOptions.debug&&mg(`Updated property ${a.type} from`,a.previousValue," to ",a.currentValue),this.propertyEventService.dispatchEvent(a)})}addPropertyEventListener(t,n){this.propertyEventService.addEventListener(t,n)}removePropertyEventListener(t,n){this.pr
2025-03-02 17:53:04 +08:00
<div data-ref="eLicenseTextRef" class="ag-watermark-text"></div>
2025-03-02 21:11:20 +08:00
</div>`),this.eLicenseTextRef=Ot}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()}},Nhi={selector:"AG-WATERMARK",component:Fhi},agt=class extends ct{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new wF(uo(this.gos)),this.licenseManager.validateLicense()}static getLicenseDetails(e){return new wF(null).getLicenseDetails(e)}getWatermarkSelector(){return Nhi}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){wF.setLicenseKey(e)}static setChartsLicenseManager(e){wF.setChartsLicenseManager(e)}},khi="32.3.3",m6e=class extends wn{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=lu(`<span data-ref="eIcon" class="${this.getClassName("part")} ${this.getClassName("icon")}" role="presentation"></span>`),{checked:t,icon:n}=this.params;t?e.appendChild(Gn("check",this.gos)):n&&(WQ(n)?e.appendChild(n):typeof n=="string"?e.innerHTML=n:rt("menu item icon must be DOM node or string")),this.getGui().appendChild(e)}addName(){const e=lu(`<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=lu(`<span data-ref="eShortcut" class="${this.getClassName("part")} ${this.getClassName("shortcut")}">${this.params.shortcut||""}</span>`);this.getGui().appendChild(e)}addSubMenu(){const e=lu(`<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";wd(t,!1),e.appendChild(Gn(n,this.gos))}t.appendChild(e)}getClassName(e){return`${this.cssClassPrefix}-${e}`}destroy(){super.destroy()}},dp={version:khi,moduleName:rr.EnterpriseCoreModule,beans:[agt],userComponents:[{name:"agMenuItem",classImp:m6e}]};function zhi(e){const t=e.cssIdentifier||"default",n=e.direction||"vertical";return`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`}var Bhi=class extends wn{constructor(e={}){super(zhi(e),[a6]),this.params=e,this.suppressEnabledCheckbox=!0,this.suppressToggleExpandOnEnableChange=!1,this.eToolbar=Ot,this.cbGroupEnabled=Ot,this.eContainer=Ot;const{enabled:t,items:n,suppressEnabledCheckbox:r,expanded:i,suppressToggleExpandOnEnableChange:o,useToggle:s}=e;this.cssIdentifier=e.cssIdentifier||"default",this.enabled=t??!0,this.items=n||[],this.useToggle=s??!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(),Mn(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;Mn(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(),Mn(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 wn?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];Mn(n,!e)}getItemIndex(e){const t=e instanceof wn?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 jhi(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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`}var jhi=class extends wn{constructor(e={}){super(Hhi(e)),this.suppressOpenCloseIcons=!1,this.suppressKeyboardNavigation=!1,this.eGroupOpenedIcon=Ot,this.eGroupClosedIcon=Ot,this.eTitle=Ot;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(M4("columnSelectClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(M4("columnSelectOpen",this.gos,null)),this.addManagedElementListeners(this.getGui(),{click:()=>this.dispatchExpandChanged(),keydown:e=>{switch(e.key){case Je.ENTER:case Je.SPACE:e.preventDefault(),this.dispatchExpandChanged();break;case Je.RIGHT:case Je.LEFT:e.preventDefault(),this.dispatchExpandChanged(e.key===Je.RIGHT);break}}})}refreshOnExpand(e){this.refreshAriaStatus(e),this.refreshOpenCloseIcons(e)}refreshAriaStatus(e){this.suppressOpenCloseIcons||wd(this.getGui(),e)}refreshOpenCloseIcons(e){const t=!this.suppressOpenCloseIcons;Mn(this.eGroupOpenedIcon,t&&e),Mn(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??"",Mn(t,n),e!==this.title&&(this.title=e);const r=t.classList.contains(doe);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(doe),t.removeAttribute("tabindex")):(t.classList.remove(doe),typeof this.title=="string"&&!this.suppressKeyboardNavigation?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}},Vhi={selector:"AG-GROUP-COMPONENT",component:Bhi};function Ghi(e){return`<div class="ag-virtual-list-viewport ag-${e}-virtual-list-viewport" role="presentation">
2025-03-02 17:53:04 +08:00
<div class="ag-virtual-list-container ag-${e}-virtual-list-container" data-ref="eContainer"></div>
2025-03-02 21:11:20 +08:00
</div>`}var v6e=class extends kb{constructor(e){super(Ghi((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=Ot,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;jo(n,this.ariaRole),Xl(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=Mri(t)-1)}onFocusOut(e){this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null)}handleKeyDown(e){switch(e.key){case Je.UP:case Je.DOWN:this.navigate(e.key===Je.UP)&&e.preventDefault();break;case Je.PAGE_HOME:case Je.PAGE_END:case Je.PAGE_UP:case Je.PAGE_DOWN:this.navigateToPage(e.key)!==null&&e.preventDefault();break}}onTabKeyDown(e){Nm(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===Je.PAGE_HOME?i=0:e===Je.PAGE_END?i=r:e===Je.PAGE_DOWN?i=Math.min(t+this.pageSize,r):e===Je.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 rt("invalid row index for ensureIndexVisible: ",e),!1;const r=e*this.rowHeight,i=r+this.rowHeight,o=this.getGui(),s=o.scrollTop,a=o.offsetHeight,l=s+a,c=t?0:this.rowHeight,u=s>r+c,f=l<i-c;if(u)return o.scrollTop=r,!0;if(f){const h=i-a;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();zdt(()=>this.eContainer.client
2025-03-02 17:53:04 +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-03-02 21:11:20 +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(Gn("columnDrag",this.gos)),this.eButton.appendChild(Gn("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),Xl(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(){Mn(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 Cm(this.eButton);this.addManagedListeners(t,{tap:()=>this.dispatchLocalEvent(e)}),this.addDestroyFunc(t.destroy.bind(t))}onKeyDown(e){e.key===Je.DELETE&&this.isRemovable()&&(e.preventDefault(),this.dispatchLocalEvent({type:"columnRemove"}))}getDisplayValue(){return this.getDisplayName()}setTextValue(){const e=this.getDisplayValue(),t=Wl(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}},Uhi=class extends wn{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"),jo(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,go(this.getGui()),go(this.ePillDropList)}init(e){this.params=e??{},this.createManagedBean(new Rv(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.onKeyDown.bind(this)})),this.setupDropTarget(),this.positionableFeature=new YQ(this.getGui()),this.createManagedBean(this.positionableFeature),this.refreshGui(),Xl(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=gi(this.gos),o=i===t[0],s=i===Dn(t);n===1||o&&r||s&&!r||t[r?0:n-1].focus()}onKeyDown(e){const{key:t}=e,n=!this.horizontal;let r=t===Je.DOWN,i=t===Je.UP;if(!n){const s=this.gos.get("ena
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`}var lgt=class cgt extends wn{constructor(t){super(qhi(t)),this.config=t,this.closable=!0,this.eContentWrapper=Ot,this.eTitleBar=Ot,this.eTitleBarButtons=Ot,this.eTitle=Ot}postConstruct(){const{component:t,closable:n,hideTitleBar:r,title:i,minWidth:o=250,width:s,minHeight:a=250,height:l,centered:c,popup:u,x:f,y:h}=this.config;this.positionableFeature=new YQ(this.getGui(),{minWidth:o,width:s,minHeight:a,height:l,centered:c,x:f,y:h,popup:u,calculateTopBuffer:()=>this.positionableFeature.getHeight()-this.getBodyHeight()}),this.createManagedBean(this.positionableFeature);const g=this.getGui();t&&this.setBodyComponent(t),r?Mn(this.eTitleBar,!1):(i&&this.setTitle(i),this.setClosable(n??this.closable)),this.addManagedElementListeners(this.eTitleBar,{mousedown:p=>{if(g.contains(p.relatedTarget)||g.contains(gi(this.gos))||this.eTitleBarButtons.contains(p.target)){p.preventDefault();return}const m=this.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");m&&m.focus()}}),!(u&&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 wn(cgt.CLOSE_BTN_TEMPLATE);this.createBean(n);const r=n.getGui(),i=Gn("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 s=t.getGui();n===0?r.insertAdjacentElement("afterbegin",s):n===o?r.insertAdjacentElement("beforeend",s):i[n-1].insertAdjacentElement("afterend",s),t.setParentComponent(this)}getBodyHeight(){return GQ(this.eContentWrapper)}getBodyWidth(){return dE(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&&Su(t)&&this.close(),super.destroy()}};lgt.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>';var Khi=lgt,Yhi=class extends Khi{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:s,eventSource:a,column:l,mouseEvent:c,rowNode:u}=o;this.popupService.callPostProcessPopup(s,e,a,c,l,u)}if(this.tabGuardFeature=this.createManagedBean(new Lht(this)),this.tabGuardFeature.initialiseTabGuard({isFocusableContainer:!0,onFocusIn:()=>{this.popupService.bringPopupToFront(e)},onTabKeyDown:s=>{if(i)return;const a=s.shiftKey,l=this.focusService.findNextFocusableElement(e,!1,a);(!l||this.tabGuardFeature.getTabGuardCtrl().isTabGuard(l))&&this.focusService.focusNextGridCoreContainer(a)&&s.preventDefault()}}),t&&this.setMovable(t),r&&this.setMaximizable(r),n&&this.setResizable(n),!this.config.modal){const{focusService:s}=this;s.addFocusableContainer(this),this.addDestroyFunc(()=>s.removeFocusableContainer(this))}}setAllowFocus(e){this.tabGuardFeature.getTabGuardCtrl().setAllow
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`)}handleNavKey(e){switch(e){case Je.UP:case Je.DOWN:{const n=this.findNextItem(e===Je.UP);n&&n!==this.activeMenuItem&&n.activate();return}}const t=this.gos.get("enableRtl")?Je.RIGHT:Je.LEFT;e===t?this.closeIfIsChild():this.openChild()}closeIfIsChild(e){const t=this.getParentComponent();return t&&t instanceof jLe?(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?Dn(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()}},Xhi=class extends kb{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===Je.ESCAPE&&this.closePanel()}onTabKeyDown(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())}closePanel(){const e=this.parentComponent;e.closeSubMenu(),setTimeout(()=>e.getGui().focus(),0)}},jLe=class extends ct{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 a;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=((a=this.params.menuItemParams)==null?void 0:a.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 u;this.menuItemComp=l;const c=(u=l.configureDefaults)==null?void 0:u.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===Je.ENTER||n.key===Je.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,u;if(this.closeSubMenu(),!this.params.subMenu)return;this.subMenuIsOpening=!0;const n=lu('<div class="ag-menu" role="presentation"></div>');this.eSubMenuGui=n;let r,i=()=>{this.subMenuIsOpening=!1};if(this.childComponent){const f=this.createBean(new Xhi(this.childComponent));f.setParentComponent(this);const h=f.getGui(),g="mouseenter",p=()=>this.cancelDeactivate();h.addEventListener(g,p),r=()=>h.removeEventListener(g,p),n.appendChild(h),this.childComponent.afterGuiAttached&&(i=()=>{this.childComponent.afterGuiAttached(),this.subMenuIsOpening=!1})}else if(this.params.subMenu){const f=this.createBean(new JQ(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,s=()=>{const f=this.eGui;o.positionPopupForMenu({eventSource:f,ePopup:n});const{column:h,node:g}=this.contextParams;o.callPostProcessPopup("subMenu",n,f,t instanceof Mo
2025-03-02 17:53:04 +08:00
<div data-ref="eHeader"></div>
<div data-ref="eBody" role="presentation" class="ag-tabs-body ${e?`${e}-body`:""}"></div>
2025-03-02 21:11:20 +08:00
</div>`}var Jhi=class extends kb{constructor(e){super(Zhi(e.cssClass)),this.eHeader=Ot,this.eBody=Ot,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=uo(this.gos).createElement("div"),n(this.eHeader,"header-wrapper"),jo(this.eHeader,"presentation"),this.eHeader.appendChild(this.eTabHeader)):this.eTabHeader=this.eHeader,jo(this.eTabHeader,"tablist"),n(this.eTabHeader,"header")}setupCloseButton(e){const t=uo(this.gos),n=t.createElement("button");e(n,"close-button");const r=Gn("close",this.gos,void 0,!0);Xl(n,this.params.closeButtonAriaLabel),n.appendChild(r),this.addManagedElementListeners(n,{click:()=>{var o,s;return(s=(o=this.params).onCloseClicked)==null?void 0:s.call(o)}});const i=t.createElement("div");e(i,"close-button-wrapper"),jo(i,"presentation"),i.appendChild(n),this.eHeader.appendChild(i),this.eCloseButton=n}handleKeyDown(e){switch(e.key){case Je.RIGHT:case Je.LEFT:{if(!this.eTabHeader.contains(gi(this.gos)))return;const t=e.key===Je.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 Je.UP:case Je.DOWN:e.stopPropagation();break}}onTabKeyDown(e){var h,g,p,m;if(e.defaultPrevented)return;const{focusService:t,eHeader:n,eBody:r,activeItem:i,params:o}=this,{suppressTrapFocus:s,enableCloseButton:a}=o,l=gi(this.gos),c=e.target,u=e.shiftKey;if(n.contains(l)){e.preventDefault(),a&&u&&!((h=this.eCloseButton)!=null&&h.contains(l))?(g=this.eCloseButton)==null||g.focus():s&&u?(p=this.focusService.findFocusableElementBeforeTabGuard(uo(this.gos).body,c))==null||p.focus():this.focusBody(e.shiftKey);return}let f=null;if(t.isTargetUnderManagedComponent(r,c)&&(u&&(f=this.focusService.findFocusableElementBeforeTabGuard(r,c)),!f&&!s&&(f=i.eHeaderButton)),!f&&r.contains(l)&&(f=t.findNextFocusableElement(r,!1,u),!f)){s&&!u?this.forceFocusOutOfContainer(u):a&&!u?(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");jo(t,"tab"),t.setAttribute("tabindex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eTabHeader.appendChild(t),Xl(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,s,a,l;const{tabbedItem:t,eHeaderButton:n}=e;if((i=(r=this.params).onItemClicked)==null||i.call(r,{item:t}),this.activeItem===e){(s=(o=this.params).onActiveItemClicked)==null||s.call(o);return}this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),go(this.eBody),t.bodyPromise.then(c=>{this.eBody.appendChild(c);const u=!this.focusService.isKeyboardMode();if(this.params.suppressFocusBodyOnOpen||this.focusService.focusInto(this.eBody,!1,u),t.afterAttachedCallback&&t.afterAttachedCallback(this.afterAttachedParams),this.params.keepScrol
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</span>`,TH=class extends wn{constructor(){super(egi),this.eExpanded=Ot,this.eContracted=Ot,this.eCheckbox=Ot,this.eValue=Ot,this.eChildCount=Ot}init(e){const t={setInnerRenderer:(o,s)=>this.setRenderDetails(o,s),setChildCount:o=>this.eChildCount.textContent=o,addOrRemoveCssClass:(o,s)=>this.addOrRemoveCssClass(o,s),setContractedDisplayed:o=>Mn(this.eContracted,o),setExpandedDisplayed:o=>Mn(this.eExpanded,o),setCheckboxVisible:o=>this.eCheckbox.classList.toggle("ag-invisible",!o)},n=this.createManagedBean(new C6e),r=!e.colDef,i=this.getGui();n.init(t,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&jo(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}},tgi={sum:"Sum",first:"First",last:"Last",min:"Min",max:"Max",count:"Count",avg:"Average"},ngi=class extends ct{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=rgi,e.first=igi,e.last=ogi,e.min=sgi,e.max=agi,e.count=lgi,e.avg=cgi,this.initialised=!0}isAggFuncPossible(e,t){const n=this.getFuncNames(e),r=ll(n,t),i=zt(this.aggFuncsMap[t]);return r&&i}getDefaultFuncLabel(e){return tgi[e]??e}getDefaultAggFunc(e){const t=e.getColDef().defaultAggFunc;if(zt(t)&&this.isAggFuncPossible(e,t))return t;if(this.isAggFuncPossible(e,"sum"))return"sum";const n=this.getFuncNames(e);return dw(n)?n[0]:null}addAggFuncs(e){this.init(),tl(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 rgi(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 igi(e){return e.values.length>0?e.values[0]:null}function ogi(e){return e.values.length>0?Dn(e.values):null}function sgi(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 agi(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 lgi(e){var i,o;const{values:t}=e;let n=0;for(let s=0;s<t.length;s++){const a=t[s];n+=a!=null&&typeof a.value=="number"?a.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 cgi(e){var s,a,l;const{values:t}=e;let n=0,r=0;for(let c=0;c<t.length;c++){const u=t[c];let f=null;typeof u=="number"||typeof u=="bigint"?(f=u,r++):u!=null&&(typeof u.value=="number"||typeof u.value=="bigint")&&typeof u.count=="number"&&(f=u.value*(typeof u.value=="number"?u.count:BigInt(u.count)),r+=u.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=(s=e.rowNode)==null?void 0:s.aggData)==null?void 0:l[(a=e.column)==null?void 0:a.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 ugi=class extends ct{constructor(){super(...arguments),this.beanName="aggregationStage"}wireBeans(e){this.columnModel=e.columnModel,this.aggFuncService=e.aggFuncService,this.funcColsServ
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`,[$ft]),this.column=e,this.dropZonePurpose=r,this.eSortIndicator=Ot,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(),s=this.gos.get("rowGroupPanelSuppressSort");return[n&&`${n}${r}`,t,this.isGroupingZone()&&!s&&o&&`, ${i[o]}`].filter(a=>!!a).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===Je.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===Je.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 v6e({cssIdentifier:"select-agg-func"}),t=this.aggFuncService.getFuncNames(this.column),n=this.getGui(),r=e.getGui();e.setModel({getRow:function(u){return t[u]},getRowCount:function(){return t.length}}),this.createBean(e);const i=lu('<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:u=>{!i.contains(u.relatedTarget)&&l&&l.hideFunc()}}),s=u=>{this.destroyBean(e),this.popupShowing=!1,(u==null?void 0:u.key)==="Escape"&&n.focus(),o&&o()},a=this.localeService.getLocaleTextFunc(),l=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:s,ariaLabel:a("ariaLabelAggregationFunction","Aggregation Function")});l&&e.se
2025-03-02 17:53:04 +08:00
<div class="ag-group-filter">
<div data-ref="eGroupField"></div>
<div data-ref="eUnderlyingFilter"></div>
</div>
2025-03-02 21:11:20 +08:00
`),this.eGroupField=Ot,this.eUnderlyingFilter=Ot}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&&rt('Group Column Filter does not work with the colDef property "field". This property will be ignored.'),e.filterValueGetter&&rt('Group Column Filter does not work with the colDef property "filterValueGetter". This property will be ignored.'),e.filterParams&&rt('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 rt("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||(rt("Group Column Filter only works on group columns. Please use a different filter."),[])}updateGroupField(){go(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],Mn(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(lu('<div class="ag-filter-separator"></div>')),Mn(this.eGroupField,!0)),t):(this.selectedColumn=void 0,Mn(this.eGroupField,!1),null)}createGroupFieldSelectElement(e){this.eGroupFieldSelect=this.createManagedBean(new XQ);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"),xr.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)))}),xr.all(t).then(()=>{this.filterColumnPairs=n,this.groupColumn.setFilterActive(this.isFilterActive(),"columnRowGroupChanged")})}addUnderlyingFilterElement(){var t;if(go(this.eUnderlyingFilter),!this.selectedColumn)return xr.resolve();const e=this.createManagedBean(new KQ(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()}))??xr.resolve()):xr.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-03-02 17:53:04 +08:00
<div data-ref="eFloatingFilter" class="ag-group-floating-filter ag-floating-filter-input" role="presentation"></div>
2025-03-02 21:11:20 +08:00
`),this.eFloatingFilter=Ot,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 xr(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 l6),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,go(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(),xr.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()}},hoe=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-03-02 17:53:04 +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-03-02 21:11:20 +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",Gn(this.toolPanelDef.iconKey,this.gos))}onButtonPressed(){this.dispatchLocalEvent({type:"toggleButtonClicked"})}setSelected(e){this.addOrRemoveCssClass("ag-selected",e),wd(this.eToggleButton,e)}getButtonElement(){return this.eToggleButton}},wpi=class extends wn{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!==Je.TAB||!e.shiftKey)){if(this.focusService.focusNextGridCoreContainer(!0)){e.preventDefault();return}Nm(e)}}setActiveButton(e){this.buttonComps.forEach(t=>{t.setSelected(e===t.getToolPanelId())})}addButtonComp(e){const t=this.createBean(new Spi(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),go(this.getGui()),super.destroy()}destroy(){this.clearButtons(),super.destroy()}},xpi={selector:"AG-SIDE-BAR-BUTTONS",component:wpi},hgt={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},ggt={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},S6e={columns:hgt,filters:ggt};function bfe(e){if(!e)return;if(e===!0)return{toolPanels:[hgt,ggt],defaultToolPanel:"columns"};if(typeof e=="string")return bfe([e]);if(Array.isArray(e)){const n=[];return e.forEach(r=>{const i=S6e[r];if(!i){pgt(r);return}n.push(i)}),n.length===0?void 0:{toolPanels:n,defaultToolPanel:n[0].id}}return{toolPanels:Epi(e.toolPanels),defaultToolPanel:e.defaultToolPanel,hiddenByDefault:e.hiddenByDefault,position:e.position}}function pgt(e){rt(`the key ${e} is not a valid key for specifying a tool panel, valid keys are: ${Object.keys(S6e).join(",")}`)}function Epi(e){const t=[];return e&&e.forEach(n=>{let r=null;if(typeof n=="string"){const i=S6e[n];if(!i){pgt(n);return}r=i}else r=n;t.push(r)}),t}var Rpi=class extends wn{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}},$pi=class extends wn{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 Rpi);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 s=this.userComponentFactory.getToolPanelCompDet
2025-03-02 17:53:04 +08:00
<ag-side-bar-buttons data-ref="sideBarButtons"></ag-side-bar-buttons>
2025-03-02 21:11:20 +08:00
</div>`,[xpi]),this.sideBarButtons=Ot,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:bfe(this.gos.get("sideBar")),sideBarState:e}),this.addManagedPropertyListener("sideBar",this.onSideBarUpdated.bind(this)),this.sideBarService.registerSideBarComp(this);const t=this.getFocusableElement();this.createManagedBean(new Rv(t,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),Wht(this,t,this.focusService)}onTabKeyDown(e){if(e.defaultPrevented)return;const{focusService:t,sideBarButtons:n}=this,r=this.getGui(),i=n.getGui(),o=gi(this.gos),s=r.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),a=e.target;if(!s)return t.focusNextGridCoreContainer(e.shiftKey,!0);if(i.contains(o)){t.focusInto(s,e.shiftKey)&&e.preventDefault();return}if(!e.shiftKey)return;let l=null;s.contains(o)?l=this.focusService.findNextFocusableElement(s,void 0,!0):t.isTargetUnderManagedComponent(s,a)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(s,a)),l||(l=i.querySelector(".ag-selected button")),l&&l!==e.target&&(e.preventDefault(),l.focus())}handleKeyDown(e){const t=gi(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(a=>a.contains(t));let o=null;switch(e.key){case Je.LEFT:case Je.UP:o=Math.max(0,i-1);break;case Je.RIGHT:case Je.DOWN:o=Math.min(i+1,r.length-1);break}if(o===null)return;const s=r[o].querySelector("button");s&&(s.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 rt("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(rr.ColumnsToolPanelModule,"Column Tool Panel"))return!1;if(e.toolPanel==="agFiltersToolPanel"){if(!this.gos.assertModuleRegistered(rr.FiltersToolPanelModule,"Filters Tool Panel"))return!1;if((t=this.filterManager)!=null&&t.isAdvancedFilterEnabled())return rt("Advanced Filter does not work with Filters Tool Panel. Filters Tool Panel has been disabled."),!1}return!0}createToolPanelAndSide
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[a6,c6]),this.eExpand=Ot,this.eSelect=Ot,this.eFilterTextField=Ot}wireBeans(e){this.columnModel=e.columnModel}postConstruct(){this.createExpandIcons(),this.addManagedListeners(this.eExpand,{click:this.onExpandClicked.bind(this),keydown:t=>{t.key===Je.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=Gn("columnSelectOpen",this.gos)),this.eExpand.appendChild(this.eExpandUnchecked=Gn("columnSelectClosed",this.gos)),this.eExpand.appendChild(this.eExpandIndeterminate=Gn("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...")),Mn(this.eFilterTextField.getGui(),e),Mn(this.eSelect.getGui(),t),Mn(this.eExpand,n&&r)}onFilterTextChanged(){this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=_a(()=>{const e=this.eFilterTextField.getValue();this.dispatchLocalEvent({type:"filterChanged",filterText:e})},JLe)),this.onFilterTextChangedDebounced()}onMiniFilterKeyDown(e){e.key===Je.ENTER&&setTimeout(()=>this.onSelectClicked(),JLe)}onSelectClicked(){this.dispatchLocalEvent({type:this.selectState?"unselectAll":"selectAll"})}onExpandClicked(){this.dispatchLocalEvent({type:this.expandState===0?"collapseAll":"expandAll"})}setExpandState(e){this.expandState=e,Mn(this.eExpandChecked,this.expandState===0),Mn(this.eExpandUnchecked,this.expandState===1),Mn(this.eExpandIndeterminate,this.expandState===2)}setSelectionState(e){this.selectState=e,this.eSelect.setValue(this.selectState)}},_pi={selector:"AG-PRIMARY-COLS-HEADER",component:Ppi},eFe=class{constructor(e,t,n,r=!1,i){this.localEventService=new s6,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)}},Cgt=class extends wn{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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[a6]),this.eDragHandle=Gn("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(),Jft(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 Je.LEFT:e.preventDefault(),this.modelItem.setExpanded(!1);break;case Je.RIGHT:e.preventDefault(),this.modelItem.setExpanded(!0);break;case Je.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 Cgt(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){Mn(this.eDragHandle,!1);return}let e=!this.gos.get("suppressDragLeaveHidesColumns");const t={type:by.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(M4("columnSelectClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(M4("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 Cm(this.eColumnGroupIcons,!0);t
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[a6]),this.eDragHandle=Gn("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=Wl(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(),Jft(this.column.getColDef(),this.gos,this.column,null).forEach(s=>this.addOrRemoveCssClass(s,!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 Cgt(t,e,this.focusWrapper));this.addDestroyFunc(()=>{r.isAlive()&&this.destroyBean(r)})}handleKeyDown(e){e.key===Je.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");Xl(this.focusWrapper,`${this.displayName} ${t}`),this.cbSelect.setInputAriaLabel(`${r} (${n})`),k3e(this.focusWrapper,this.cbSelect.getInputElement().id)}setupDragging(){if(!this.allowDragging){Mn(this.eDragHandle,!1);return}let e=!this.gos.get("suppressDragLeaveHidesColumns");const t={type:by.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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[_pi,kpi]),this.primaryColsHeaderPanel=Ot,this.primaryColsListPanel=Ot}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 YQ(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()}},tFe=class extends wn{constructor(){super(...arguments),this.cbPivotMode=Ot}wireBeans(e){this.columnModel=e.columnModel,this.ctrlsService=e.ctrlsService}createTemplate(){return`<div class="ag-pivot-mode-panel">
2025-03-02 17:53:04 +08:00
<ag-toggle-button data-ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>
2025-03-02 21:11:20 +08:00
</div>`}postConstruct(){this.setTemplate(this.createTemplate(),[bli]),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)}},zpi=class extends wn{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 tFe),this.childDestroyFuncs.push(()=>this.destroyBean(this.pivotModePanel)),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new bgt),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 yfe(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.rowGroupDropZonePanel)),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new ZLe(!1)),this.childDestroyFuncs.push(()=>this.destroyBean(this.valuesDropZonePanel)),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new Cfe(!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 tFe),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 yfe(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())}setValuesSectionVisible(e){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(e):e&&(this.valuesDropZonePanel=this.createManagedBean(new ZLe(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())}setPivotSectionVisible(e){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(e):e&&(this.pivotDropZonePanel=this.createManagedBean(new Cfe(!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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[c6]);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=Gn("columnSelectOpen",this.gos)),this.eExpand.appendChild(this.eExpandUnchecked=Gn("columnSelectClosed",this.gos)),this.eExpand.appendChild(this.eExpandIndeterminate=Gn("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);Mn(this.eFilterTextField.getGui(),e),Mn(this.eExpand,t&&i)}onSearchTextChanged(){this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=_a(()=>{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,Mn(this.eExpandChecked,this.currentExpandState===0),Mn(this.eExpandUnchecked,this.currentExpandState===1),Mn(this.eExpandIndeterminate,this.currentExpandState===2)}},Gpi={selector:"AG-FILTERS-TOOL-PANEL-HEADER",component:Vpi},Sgt=class extends wn{constructor(e,t){super(`
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`),this.expandedCallback=t,this.eFilterToolPanelHeader=Ot,this.eFilterName=Ot,this.agFilterToolPanelBody=Ot,this.eFilterIcon=Ot,this.eExpand=Ot,this.expanded=!1,this.hideHeader=e}wireBeans(e){this.filterManager=e.filterManager,this.columnNameService=e.columnNameService}postConstruct(){this.eExpandChecked=Gn("columnSelectOpen",this.gos),this.eExpandUnchecked=Gn("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),Mn(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),Mn(this.eExpandChecked,!1),this.hideHeader?(Mn(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}=Je;t!==n&&t!==r&&t!==i&&t!==o||(e.preventDefault(),t===n||t===r?this.toggleExpanded():t===Je.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=Gn(e,this.gos,n);t.appendChild(r)}isFilterActive(){var e;return!!((e=this.filterManager)!=null&&e.isFilterActive(this.column))}onFilterChanged(){Mn(this.eFilterIcon,this.isFilterActive(),{skipAriaHidden:!0}),this.dispatchLocalEvent({type:"filterChanged"})}toggleExpanded(){this.expanded?this.collapse():this.expand()}expand(){this.expanded||(this.expanded=!0,wd(this.eFilterToolPanelHeader,!0),Mn(this.eExpandChecked,!0),Mn(this.eExpandUnchecked,!1),this.addFilterElement(),this.expandedCallback())}addFilterElement(e){var r;const t=lu('<div class="ag-filter-toolpanel-instance-filter"></div>'),n=this.createManagedBean(new KQ(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,wd(this.eFilterToolPanelHeader,!1),this.removeFilterElement(),Mn(this.eExpandChecked,!1),Mn(this.eExpandUnchecked,!0),(e=this.filterWrapperComp)==null||e.afterGuiDetached(),this.destroyBean(this.filterWrapperComp),this.expandedCallback())}removeFilterElement(){go(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()}},a2=class wgt extends wn{constructor(t,n,r,i,o){super(),this.filterGroupComp=Ot,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-03-02 17:53:04 +08:00
<ag-group-component data-ref="filterGroupComp"></ag-group-component>
2025-03-02 21:11:20 +08:00
</div>`,[Vhi],{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 wgt?n.refreshFilters(t):n.refreshFilter(t)})}isColumnGroup(){return _o(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=Gn(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 Sgt&&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 _o(this.columnGroup)?this.columnGroup.getLeafColumns():[this.columnGroup]}addFilterChangedListeners(){this.getColumns().forEach(t=>{this.addManagedListeners(t,{filterChanged:()=>this.refreshFilterClass()})}),_o(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=_o(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),go(this.getGui())}destroy(){this.destroyFilters(),super.destroy()}},Wpi=class extends wn{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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[Gpi,Upi]),this.filtersToolPanelHeaderPanel=Ot,this.filtersToolPanelListPanel=Ot,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()}},Kpi="32.3.3",Ypi={version:Kpi,moduleName:rr.FiltersToolPanelModule,beans:[],userComponents:[{name:"agFiltersToolPanel",classImp:qpi}],dependantModules:[vgt,dp,Fb]};function Xpi(e){var t;return((t=e.rangeService)==null?void 0:t.getCellRanges())??null}function Qpi(e,t){var n;(n=e.rangeService)==null||n.addCellRange(t)}function nFe(e){var t;(t=e.rangeService)==null||t.removeAllCellRanges()}var Zpi=class extends ct{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 X3e({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:()=>!La(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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[a6]),this.eCheckbox=Ot,this.eGroupOpenedIcon=Ot,this.eGroupClosedIcon=Ot,this.eGroupIndeterminateIcon=Ot,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"),z3e(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(M4("setFilterGroupClosed",this.gos,null)),this.eGroupOpenedIcon.appendChild(M4("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(M4("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(){Mn(this.eGroupClosedIcon,this.hasIndeterminateExpandState?this.isExpanded===!1:!this.isExpanded),Mn(this.eGroupOpenedIcon,this.isExpanded===!0),this.hasIndeterminateExpandState&&Mn(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");Rx(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();Xl(r,`${e} ${n}`),k3e(r,this.eCheckbox.getInputElement().id)}refreshAriaChecked(){const e=this.getAriaElement();Nri(e,this.eCheckbox.getValue())}refreshAriaExpanded(){wd(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 s=this.cellRendererComponent;this.renderCell(),this.destroyBean(s)}}render(){const{params:{column:e}
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`}getAgComponents(){return[c6]}handleKeyDown(e){if(super.handleKeyDown(e),!e.defaultPrevented)switch(e.key){case Je.SPACE:this.handleKeySpace(e);break;case Je.ENTER:this.handleKeyEnter(e);break;case Je.LEFT:this.handleKeyLeft(e);break;case Je.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(gi(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),xr.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,s=i??(r==null?void 0:r.keyCreator),a=t.filterValueGetter!==(r==null?void 0:r.filterValueGetter),l=o!==s,c=!!this.dataTypeService&&!!o&&this.dataTypeService.getFormatValue(t.cellDataType)===o&&t.valueFormatter!==(r==null?void 0:r.valueFormatter);return a||l||c}setModelAndRefresh(e){return this.valueModel?this.valueModel.setModel(e).then(()=>{this.isAlive()&&this.checkAndRefreshVirtualList()}):xr.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&&vc(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 dmi({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=>vm(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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[c6]),this.eFloatingFilterText=Ot,this.availableValuesListenerAdded=!1,this.filterModelFormatter=new Rgt}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 $gt))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))})}},E6e="32.3.3",Ogt={version:E6e,moduleName:`${rr.SetFilterModule}-core`,userComponents:[{name:"agSetColumnFilter",classImp:$gt}],dependantModules:[dp,Fb]},mmi={version:E6e,moduleName:"@ag-grid-enterprise/set-floating-filter",userComponents:[{name:"agSetColumnFloatingFilter",classImp:pmi}],dependantModules:[Ogt,aht]},vmi={version:E6e,moduleName:rr.SetFilterModule,dependantModules:[Ogt,mmi]},Tgt=class extends ct{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&&rt("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(ar(this.params.detailGridOptions)){rt("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,s;this.loadRowDataVersion++;const e=this.loadRowDataVersion;if(((i=this.params.detailGridOptions)==null?void 0:i.rowModelType)==="serverSide"){(s=(o=this.params.node.detailGridInfo)==null?void 0:o.api)==null||s.refreshServerSide({purge:!0});return}const t=this.params.getDetailRowData;if(!t){rt("could not find getDetailRow
2025-03-02 17:53:04 +08:00
<div data-ref="eDetailGrid" class="ag-details-grid" role="presentation"></div>
2025-03-02 21:11:20 +08:00
</div>`)};if(ar(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 rt("detailCellRendererParams.template should be function or string"),e();this.eDetailGrid==null&&rt('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 Cmi(t),r=this.getFrameworkOverrides(),i=Sfi(this.eDetailGrid,e,{frameworkOverrides:r,providedBeanInstances:{frameworkComponentWrapper:n},modules:Pf.__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)}},bmi=class extends ct{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;tl(this.detailGridInfoMap,(n,r)=>{zt(r)&&(e(r,t),t++)})}destroy(){this.detailGridInfoMap={},super.destroy()}};function Smi(e,t,n){var r;(r=e.detailGridApiService)==null||r.addDetailGridInfo(t,n)}function wmi(e,t){var n;(n=e.detailGridApiService)==null||n.removeDetailGridInfo(t)}function xmi(e,t){var n;return(n=e.detailGridApiService)==null?void 0:n.getDetailGridInfo(t)}function Emi(e,t){var n;(n=e.detailGridApiService)==null||n.forEachDetailGridInfo(t)}var R6e="32.3.3",Igt={version:R6e,moduleName:`${rr.MasterDetailModule}-core`,userComponents:[{name:"agGroupRowRenderer",classImp:TH},{name:"agGroupCellRenderer",classImp:TH},{name:"agDetailCellRenderer",classImp:ymi}],controllers:[{name:"detailCellRenderer",classImp:Tgt},{name:"groupCellRendererCtrl",classImp:C6e}],dependantModules:[dp]},Rmi={version:R6e,moduleName:`${rr.MasterDetailModule}-api`,beans:[bmi],apiFunctions:{addDetailGridInfo:Smi,removeDetailGridInfo:wmi,getDetailGridInfo:xmi,forEachDetailGridInfo:Emi},dependantModules:[Igt]},$mi={version:R6e,moduleName:rr.MasterDetailModule,dependantModules:[Igt,Rmi]},U_=class extends wn{constructor(){super(`<div class="ag-status-name-value">
2025-03-02 17:53:04 +08:00
<span data-ref="eLabel"></span>:&nbsp;
<span data-ref="eValue" class="ag-status-name-value-value"></span>
2025-03-02 21:11:20 +08:00
</div>`),this.eLabel=Ot,this.eValue=Ot}setLabel(e,t){this.setDisplayed(!1);const n=this.localeService.getLocaleTextFunc();this.eLabel.innerHTML=n(e,t)}setValue(e){this.eValue.innerHTML=e}},Omi={selector:"AG-NAME-VALUE",component:U_},Tmi=class extends wn{constructor(){super(`<div class="ag-status-panel ag-status-panel-aggregations">
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`,[Omi]),this.sumAggregationComp=Ot,this.countAggregationComp=Ot,this.minAggregationComp=Ot,this.maxAggregationComp=Ot,this.avgAggregationComp=Ot}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(!Li(this.gos)&&!ml(this.gos)){rt("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(zt(r)&&r){const o=this.localeService.getLocaleTextFunc(),s=o("thousandSeparator",","),a=o("decimalSeparator",".");r.setValue(coi(t,s,a)),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 s={};if(e&&!Es(e)&&this.rangeService)for(let u=0;u<e.length;u++){const f=e[u];let h=this.rangeService.getRangeStartRow(f);const g=this.rangeService.getRangeEndRow(f);for(;!(ar(h)||!h||this.rowPositionUtils.before(g,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(s[v])return;s[v]=!0;const C=this.rowPositionUtils.getRowNode(h);if(ar(C))return;let y=this.valueService.getValue(m,C);ar(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 a=n>1,l=r>1;this.setAggregationComponentValue("count",n,a),this.setAggregationComponentValue("sum",t,l),this.setAggregationComponentValue("min",i,l),this.setAggregationComponentValue("max",o,l),this.setAggregationComponentValue("avg",t/r,l)}},Imi=class extends U_{wireBeans(e){this.rowModel=e.rowModel}postConstruct(){if(this.setLabel("filteredRows","Filtered"),!Li(this.gos)){rt("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(Sy(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()}},Mmi=class extends U_{wireBeans(e){this.selectionService=e.selectionService}postConstruct(){if(!Li(this.gos)&&!ml(this.gos)){rt("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-03-02 17:53:04 +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-03-02 21:11:20 +08:00
</div>`),this.updateQueued=!1,this.panelsPromise=xr.resolve(),this.eStatusBarLeft=Ot,this.eStatusBarCenter=Ot,this.eStatusBarRight=Ot,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(s=>s.align==="left"),i=t.filter(s=>s.align==="center"),o=t.filter(s=>!s.align||s.align==="right");this.panelsPromise=xr.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,s=this.statusBarService.getStatusPanel(o);if(s!=null&&s.refresh){const a=this.gos.addGridCommonParams(i.statusPanelParams??{});s.refresh(a)&&(n.set(o,s),delete this.compDestroyFunctions[o],au(s.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,s=n.get(o);let a;if(s)a=xr.resolve(s);else{const l={};if(a=this.userComponentFactory.getStatusPanelCompDetails(i,l).newAgStackInstance(),a==null)return}r.push({key:o,promise:a})}),xr.all(r.map(i=>i.promise)).then(()=>{r.forEach(i=>{i.promise.then(o=>{const s=()=>{this.destroyBean(o)};this.isAlive()?(this.statusBarService.registerStatusPanel(i.key,o),t.appendChild(o.getGui()),this.compDestroyFunctions[i.key]=s):s()})})})}},Lmi={selector:"AG-STATUS-BAR",component:Dmi},Fmi=class extends ct{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 Lmi}destroy(){this.unregisterAllComponents(),super.destroy()}},$6e="32.3.3",Mgt={version:$6e,moduleName:`${rr.StatusBarModule}-core`,beans:[Fmi],userComponents:[{name:"agAggregationComponent",classImp:Tmi},{name:"agSelectedRowCountComponent",classImp:Mmi},{name:"agTotalRowCountComponent",classImp:_mi},{name:"agFilteredRowCountComponent",classImp:Imi},{name:"agTotalAndFilteredRowCountComponent",classImp:Pmi}],dependantModules:[dp]},Nmi={version:$6e,moduleName:`${rr.StatusBarModule}-api`,apiFunctions:{getStatusPanel:Ami},dependantModules:[Mgt]},kmi={version:$6e,moduleName:rr.StatusBarModule,dependantModules:[Mgt,Nmi]},zmi=class extends ct{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()}`}},Bmi=class{constructor(e){this.groupColumns=[];const{columnModel:t,funcColsService:n,columnNameService:r,valueService:i,gos:o,processCellCallback:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c}=e;this.columnModel=t,this.funcColsService=n,this.columnNameService=r,this.valueService=i,this.gos=o,this.processCellCallback=s,this.processHeaderCallback=a,thi
`,jmi=class extends Bmi{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,iFe),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():(rt("unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=iFe),this.isFirstLine=!1}},Vmi=class extends zmi{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()){rt("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;Hmi.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:s,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:u,columnSeparator:f}=e;return new jmi({columnModel:t,columnNameService:n,funcColsService:r,valueService:i,gos:o,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:u||!1,columnSeparator:f||","})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function Gmi(e,t){var n;return(n=e.csvCreator)==null?void 0:n.getDataAsCsv(t)}function Wmi(e,t){var n;(n=e.csvCreator)==null||n.exportDataAsCsv(t)}var Umi=class extends ct{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 Vni(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){
${sFe("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 zt(t)?t:" "}processClipboardData(t){if(t==null)return;let n=_gt.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,s,a,l)=>{var f;((f=this.rangeService)==null?void 0:f.isMoreThanOneCell())&&!this.hasOnlyOneValueToPaste(n)?this.pasteIntoActiveRange(this.rangeService,n,o,s,l):this.pasteStartingFromFocusedCell(n,o,s,a,l)};this.doPasteOperation(i)}static stringToArray(t,n=","){const r=[],i=s=>s==="\r"||s===`
2025-03-02 17:53:04 +08:00
`;let o=!1;if(t==="")return[[""]];for(let s=0,a=0,l=0;l<t.length;l++){const c=t[l-1],u=t[l],f=t[l+1],h=()=>{r[s]||(r[s]=[]),r[s][a]||(r[s][a]="")};if(h(),u==='"'&&(o?f==='"'?(r[s][a]+='"',l++):o=!1:(c===void 0||c===n||i(c))&&(o=!0)),!o&&u!=='"'){if(u===n){a++,h();continue}else if(i(u)){a=0,s++,h(),u==="\r"&&f===`
2025-03-02 21:11:20 +08:00
`&&l++;continue}}r[s][a]+=u}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 V_(l,this.clientSideRowModel.getRootNode())}const i={},o=[],s=this.focusService.getFocusedCell();t(i,o,s,r);const a=[...o];r&&(this.clientSideRowModel.doAggregate(r),r.forEachChangedNodeDepthFirst(l=>{a.push(l)})),this.rowRenderer.refreshCells({rowNodes:a}),this.dispatchFlashCells(i),this.fireRowChanged(o),this.refocusLastFocusedCell(),this.eventService.dispatchEvent({type:"pasteEnd",source:n})}pasteIntoActiveRange(t,n,r,i,o){const s=this.getRangeSize(t)%n.length!=0;let a=0,l=0;const c=(u,f,h,g)=>{if(g-a>=n.length){if(s)return;a+=l,l=0}const m=n[g-a];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],poe,v,!0);f.setDataValue(C,b,goe),o&&o.addParentNode(f.parent,[C]);const{rowIndex:S,rowPinned:w}=u,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 s={rowIndex:i.rowIndex,rowPinned:i.rowPinned},a=this.getDisplayedColumnsStartingAt(i.column);this.isPasteSingleValueIntoRange(t)?this.pasteSingleValueIntoRange(t,r,n,o):this.pasteMultipleValues(t,s,r,a,n,oFe,o)}isPasteSingleValueIntoRange(t){return this.hasOnlyOneValueToPaste(t)&&this.rangeService!=null&&!this.rangeService.isEmpty()}pasteSingleValueIntoRange(t,n,r,i){const o=t[0][0],s=(a,l,c)=>{n.push(l),c.forEach(u=>this.updateCellValue(l,u,o,r,oFe,i))};this.iterateActiveRanges(!1,s)}hasOnlyOneValueToPaste(t){return t.length===1&&t[0].length===1}copyRangeDown(){if(!this.rangeService||this.rangeService.isEmpty())return;const t=[],n=(r,i,o,s)=>{const a=this.gos.getCallback("processCellForClipboard"),l=this.gos.getCallback("processCellFromClipboard"),c=(u,f,h)=>{t.length?(i.push(f),h.forEach((g,p)=>{if(!g.isCellEditable(f)||g.isSuppressPaste(f))return;const m=this.processCell(f,g,t[p],poe,l,!0);f.setDataValue(g,m,goe),s&&s.addParentNode(f.parent,[g]);const{rowIndex:v,rowPinned:C}=u,y=this.cellPositionUtils.createIdFromValues({rowIndex:v,column:g,rowPinned:C});r[y]=!0})):h.forEach(g=>{const p=this.processCell(f,g,this.valueService.getValue(g,f),poe,a,!1,!0);t.push(p)})};this.iterateActiveRanges(!0,c)};this.doPasteOperation(n)}removeLastLineIfBlank(t){const n=Dn(t);if(n&&n.length===1&&n[0]===""){if(t.length===1)return;rl(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,s,a){let l=n;const c=this.clientSideRowModel!=null&&!this.gos.get("enableGroupEdit")&&!this.gos.get("treeData"),u=()=>{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=u();h&&(f.forEach((g,p)=>this.updateCellValue(h,i[p],g,o,s,a)),r.push(h))})}updateCellValue(t,n,r,i,o,s){if(!t||!n||!n.isCellEditable(t)||n.isSuppressPaste(t))return;const a=this.processCell(t,n,r,o,this.gos.getCallback("processCellFromClipboard"),!0);t.setDataValue(n,a,goe);const{rowIndex:l,rowPinned:c}=t,u=this.cellPositionUtils.createIdFromValues({rowIndex:l,column:n,rowPinned:c});i[u]=!0,s&&s.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-03-02 17:53:04 +08:00
`),cellsToFlash:o}}getRangeRowPositionsAndCellsToFlash(t,n){const r=[],i={},o=t.getRangeStartRow(n),s=t.getRangeEndRow(n);let a=o;for(;a&&(r.push(a),n.columns.forEach(l=>{const{rowIndex:c,rowPinned:u}=a,f=this.cellPositionUtils.createIdFromValues({rowIndex:c,column:l,rowPinned:u});i[f]=!0}),!this.rowPositionUtils.sameRow(a,s));)a=this.cellNavigationService.getRowBelow(a);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:s}=t[i];if(o!=null)for(let a=0;a<n.length;a++){const l=n[a],c=this.cellPositionUtils.createIdFromValues({rowIndex:o,column:l,rowPinned:s});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,s=this.buildExportParams({columns:[o],rowPositions:[i],includeHeaders:t.includeHeaders,includeGroupHeaders:t.includeGroupHeaders});this.copyDataToClipboard(s),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 s=this.selectionService.getSelectedNodes()||[];this.dispatchFlashCells(this.getCellsToFlashFromRowNodes(s))}buildExportParams(t){const{columns:n,rowPositions:r,includeHeaders:i=!1,includeGroupHeaders:o=!1}=t,s={columnKeys:n,rowPositions:r,skipColumnHeaders:!i,skipColumnGroupHeaders:!o,suppressQuotes:!0,columnSeparator:this.getClipboardDelimiter(),onlySelected:!r,processCellCallback:this.gos.getCallback("processCellForClipboard"),processRowGroupCallback:a=>this.processRowGroupCallback(a),processHeaderCallback:this.gos.getCallback("processHeaderForClipboard"),processGroupHeaderCallback:this.gos.getCallback("processGroupHeaderForClipboard")};return this.csvCreator.getDataAsCsv(s,!0)}processRowGroupCallback(t){const{node:n,column:r}=t,i=this.gos.get("treeData"),o=this.gos.get("suppressGroupMaintainValueType");let a=(()=>{var u;if(i||o||!r)return n.key;const c=(u=n.groupData)==null?void 0:u[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="";a&&a.length&&(c=` ${a}`),a=`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:a,node:n,column:c,type:"clipboard",formatValue:u=>this.valueService.formatValue(c,n,u)??u,parseValue:u=>this.valueService.parseValue(c,n,u,this.valueService.getValue(c,n))})}return a}dispatchFlashCells(t){window.setTimeout(()=>{this.eventService.dispatchEvent({type:"flashCells",cells:t})},0)}processCell(t,n,r,i,o,s,a){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))}):s&&n.getColDef().useValueParserForImport!==!1?this.valueService.parseValue(n,t??null,r,this.valueService.getValue(n,t)):a&&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=>{rt(`${i}
2025-03-02 21:11:20 +08:00
${sFe("writeText")}`),this.copyDataToClipboardLegacy(t)});return}this.copyDataToClipboardLegacy(t)}copyDataToClipboardLegacy(t){this.executeOnTempElement(n=>{const r=uo(this.gos),i=gi(this.gos);n.value=t||" ",n.select(),n.focus({preventScroll:!0}),r.execCommand("copy")||rt("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=uo(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{rt("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}},T6e="32.3.3",Agt={version:T6e,moduleName:`${rr.ClipboardModule}-core`,beans:[t1i],dependantModules:[dp,Kmi]},n1i={version:T6e,moduleName:`${rr.ClipboardModule}-api`,apiFunctions:{copyToClipboard:Ymi,cutToClipboard:Xmi,copySelectedRowsToClipboard:Qmi,copySelectedRangeToClipboard:Zmi,copySelectedRangeDown:Jmi,pasteFromClipboard:e1i},dependantModules:[Agt]},r1i={version:T6e,moduleName:rr.ClipboardModule,dependantModules:[Agt,n1i]},i1i=class Dgt extends ct{constructor(){super(...arguments),this.beanName="chartMenuItemMapper"}wireBeans(t){this.chartService=t.chartService}getChartItems(t){var s,a;if(!this.chartService){this.gos.assertModuleRegistered(rr.GridChartsModule,`the Context Menu key "${t}"`);return}const n=t==="pivotChart"?new o1i(this.gos,this.chartService,this.localeService):new s1i(this.gos,this.chartService,this.localeService),r=this.chartService.isEnterprise();let i=n.getMenuItem();if(i&&i.subMenu&&!r){const l=c=>{var u;return{...c,subMenu:(u=c.subMenu)==null?void 0:u.filter(f=>!f._enterprise).map(f=>l(f))}};i=l(i)}const o=(a=(s=this.gos.get("chartToolPanelsDef"))==null?void 0:s.settingsPanel)==null?void 0:a.chartGroupsDef;return o&&(i=Dgt.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 s;const i=this.buildLookup(t),o={...t,subMenu:[]};if(Object.entries(n).forEach(([a,l])=>{var f,h;const c=r[a];if(c===null)return;if(c==null){rt(`invalid chartGroupsDef config '${a}'`);return}const u=i[c._key];if(u)if(u.subMenu){const g=l.map(p=>{const m=c[p];if(m==null){rt(`invalid chartGroupsDef config '${a}.${p}'`);return}return i[m]}).filter(p=>p!==void 0);g.length>0&&(u.subMenu=g,(f=o.subMenu)==null||f.push(u))}else(h=o.subMenu)==null||h.push(u)}),((s=o.subMenu)==null?void 0:s.length)!=0)return o}},o1i=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,s=!1)=>({name:e(n,r),action:()=>this.chartService.createPivotChart({chartType:i}),_key:o,_enterprise:s});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-03-02 17:53:04 +08:00
<div data-ref="eColumnMenu" role="presentation" class="ag-menu ag-column-menu"></div>
2025-03-02 21:11:20 +08:00
`),this.menuItems=e,this.column=t,this.restoreFocusParams=n,this.sourceElement=r,this.eColumnMenu=Ot}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 p1i(e,t){const{rowNode:n,column:r,value:i,x:o,y:s}=t||{};let{x:a,y:l}=e.menuService.getContextMenuPosition(n,r);o!=null&&(a=o),s!=null&&(l=s),e.menuService.showContextMenu({mouseEvent:new MouseEvent("mousedown",{clientX:a,clientY:l}),rowNode:n,column:r,value:i})}function m1i(e,t){e.menuService.showColumnChooser({chooserParams:t})}function v1i(e){e.menuService.hideColumnChooser()}var C1i=class extends ct{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 s;if(typeof o=="string"?s=this.getStockMenuItem(o,t,n,r):s={...o},!s)return;const a=s,{subMenu:l}=a;l&&l instanceof Array&&(a.subMenu=this.mapWithStockItems(l,t,n,r)),s!=null&&i.push(s)}),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:Gn("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(rr.RowGroupingModule,"Aggregation from Menu")?!(t!=null&&t.isPrimary())&&!(t!=null&&t.getColDef().pivotValueColumn)?null:{name:i("valueAggregation","Value Aggregation"),icon:Gn("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")+" "+Wl(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:Gn("menuAddRowGroup",this.gos,null)};case"rowUnGroup":{const s=Gn("menuRemoveRowGroup",this.gos,null),a=t==null?void 0:t.getColDef().showRowGroup,l=this.gos.get("groupLockGroupColumns");if(a===!0)return{name:i("ungroupAll","Un-Group All"),disabled:this.gos.get("functionsReadOnly")||l===-1||l>=this.funcColsService.getRowGroupColumns().length,action:()=>this.funcColsSer
2025-03-02 17:53:04 +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-03-02 21:11:20 +08:00
`);return{selectAllChildren:i,toggledNodes:new Map(o)}};try{this.selectedState=t(e,!!e.selectAllChildren)}catch(n){Mr(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(!c6e(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 s=e[0],a=this.overrideSelectionValue(t,i);if(this.selectionCtx.isInRange(s.id)){const l=this.selectionCtx.truncate(s.id);return a&&this.selectRange(l.discard,!1),this.selectRange(l.keep,a),1}else if(this.selectionCtx.getRoot()!==s.id){const u=this.selectionCtx.extend(s.id,!0);return a&&this.selectRange(u.discard,!1),this.selectRange(u.keep,a),1}return 1}const o=r&&t&&!n;if(!xx(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(s=>{const a=this.getRouteToNode(s);this.recursivelySelectNode(a,this.selectedState,t)}),this.removeRedundantState(),this.selectionCtx.setRoot(Dn(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(Dn(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((a,l)=>{e(a,l,n)}),r){const a=this.rowModel.getRowNode(r),l=a==null?void 0:a.childStore;if((l==null?void 0:l.isLastRowIndexKnown())&&n.toggledNodes.size>=l.getRowCount()){for(const f of n.toggledNodes.entries()){const[h,g]=f;if(g.toggledNodes.size>0||!this.rowModel.getRowNode(h))return}n.selectAllChildren=!n.selectAllChildren,n.toggledNodes.clear()}}const o=n.toggledNodes.size===0,s=(i==null?void 0:i.selectAllChildren)===n.selectAllChildren;o&&s&&(i==null||i.toggledNodes.delete(r))};e()}recursivelySelectNode([e,...t],n,r){if(!e)return;if(!t.length){const a=e.selectable;if(n.selectAllChildren===r||!a){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),s=n.toggledNodes.get(e.id)??{selectAllChildren:n.selectAllChildren,toggledNodes:new Map};o||n.toggledNodes.set(e.id,s),this.recursivelySelectNode(t,s,r),n.selectAllChildren===s.selectAllChildren&&s.toggledNodes.size===0&&n.toggledNodes.delete(e.id)}getSelectedNodes(){rt("`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-03-02 17:53:04 +08:00
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2025-03-02 21:11:20 +08:00
*/var c0i=["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])"],AH=c0i.join(","),Ygt=typeof Element>"u",Ox=Ygt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,DH=!Ygt&&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},LH=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",s=o||n&&t&&e(t.parentNode);return s},u0i=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},d0i=function(t,n,r){if(LH(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(AH));return n&&Ox.call(t,AH)&&i.unshift(t),i=i.filter(r),i},f0i=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!LH(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=e(l,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:s,candidates:c})}else{var u=Ox.call(s,AH);u&&r.filter(s)&&(n||!t.includes(s))&&i.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),h=!LH(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&h){var g=e(f===!0?s.children:f.children,!0,r);r.flatten?i.push.apply(i,g):i.push({scopeParent:s,candidates:g})}else o.unshift.apply(o,s.children)}}return i},Xgt=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qgt=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||u0i(t))&&!Xgt(t)?0:t.tabIndex},h0i=function(t,n){var r=Qgt(t);return r<0&&n&&!Xgt(t)?0:r},g0i=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Zgt=function(t){return t.tagName==="INPUT"},p0i=function(t){return Zgt(t)&&t.type==="hidden"},m0i=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},v0i=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},C0i=function(t){if(!t.name)return!0;var n=t.form||DH(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},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(s){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",s.message),!1}var o=v0i(i,t.form);return!o||o===t},y0i=function(t){return Zgt(t)&&t.type==="radio"},b0i=function(t){return y0i(t)&&!C0i(t)},S0i=function(t){var n,r=t&&DH(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var s,a,l;for(o=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var c,u,f;r=DH(i),i=(c=r)===null||c===void 0?void 0:c.host,o=!!((u=i)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return o},uFe=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},w0i=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Ox.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Ox.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var a=t;t;){var l=t.parentElement,c=DH(t);if(l&&!l.shadowRoot&&i(l)===!0)return uFe(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=a}if(S0i(t))return!t.getClientRects().length;if(r!=="legacy-full")r
2025-03-02 17:53:04 +08:00
color:${r.color};
padding:${r.padding};
margin:${r.margin};
font:${r.font};
background-color:${r.backgroundColor!=="rgba(0, 0, 0, 0)"&&r.backgroundColor};
2025-03-02 21:11:20 +08:00
border-radius:${r.borderRadius};`,this.direction===zf&&(t.style.right="0"),t.focus(),$pt(t),this.bus.fire("operation",{name:"beginEdit",obj:e.nodeObj}),t.addEventListener("keydown",i=>{i.stopPropagation();const o=i.key;if(o==="Enter"||o==="Tab"){if(i.shiftKey)return;i.preventDefault(),t.blur(),this.map.focus()}}),t.addEventListener("blur",()=>{var i;if(!t)return;const o=e.nodeObj,s=((i=t.textContent)==null?void 0:i.trim())||"";s===""?o.topic=n:o.topic=s,t.remove(),s!==n&&(e.text.textContent=o.topic,this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:o,origin:n}))})},z6e=function(e){const t=td.createElement("me-epd");return t.expanded=e!==!1,t.className=e!==!1?"minus":"",t},mw=document,vw="http://www.w3.org/2000/svg",Opt=function(e,t,n){const r=mw.createElementNS(vw,"path");return Zo(r,{d:e,stroke:t||"#666",fill:"none","stroke-width":n}),r},O$=function(e){const t=mw.createElementNS(vw,"svg");return t.setAttribute("class",e),t.setAttribute("overflow","visible"),t},LFe=function(){const e=mw.createElementNS(vw,"line");return e.setAttribute("stroke","#bbb"),e.setAttribute("fill","none"),e.setAttribute("stroke-width","2"),e},q2i=function(e,t){const n={stroke:"rgb(235, 95, 82)",fill:"none","stroke-linecap":"cap","stroke-width":"2"},r=mw.createElementNS(vw,"g"),i=mw.createElementNS(vw,"path"),o=mw.createElementNS(vw,"path");return Zo(o,{d:t,...n}),Zo(i,{d:e,...n,"stroke-dasharray":"8,2"}),r.appendChild(i),r.appendChild(o),r},Tpt=function(e,t,n){if(!t)return;const r=document.createElement("div");e.nodes.appendChild(r);const i=t.innerHTML;r.id="input-box",r.textContent=i,r.contentEditable="true",r.spellcheck=!1;const o=t.getBBox();r.style.cssText=`
2025-03-02 17:53:04 +08:00
min-width:${Math.max(88,o.width)}px; // 最小宽度不低于88px
position:absolute; // 绝对定位
left:${o.x}px; // 水平位置
top:${o.y}px; // 垂直位置
padding: 2px 4px; // 内边距
margin: -2px -4px; // 外边距修正
2025-03-02 21:11:20 +08:00
`,r.focus(),$pt(r),r.addEventListener("keydown",s=>{s.stopPropagation();const a=s.key;if(a==="Enter"||a==="Tab"){if(s.shiftKey)return;s.preventDefault(),r.blur(),e.map.focus()}}),r.addEventListener("blur",()=>{r&&n(r)})},K2i=function(e){const t=this.map.querySelector("me-root"),n=t.offsetTop,r=t.offsetLeft,i=t.offsetWidth,o=t.offsetHeight;this.nodes.style.top=`${1e4-this.nodes.offsetHeight/2}px`,this.nodes.style.left=`${1e4-r-i/2}px`;const s=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let a=0;a<s.length;a++){const l=s[a],c=l.querySelector("me-tpc"),{offsetLeft:u,offsetTop:f}=g6(this.nodes,c),h=c.offsetWidth,g=c.offsetHeight,p=l.parentNode.className,m=this.generateMainBranch({pT:n,pL:r,pW:i,pH:o,cT:f,cL:u,cW:h,cH:g,direction:p,containerHeight:this.nodes.offsetHeight}),v=this.theme.palette,C=c.nodeObj.branchColor||v[a%v.length];c.style.borderColor=C,this.lines.appendChild(Opt(m,C,"3"));const y=l.children[0].children[1];if(y&&(y.style.top=(y.parentNode.offsetHeight-y.offsetHeight)/2+"px",p===wu.LHS?y.style.left="-10px":y.style.right="-10px"),e&&e!==l)continue;const b=O$("subLines"),S=l.lastChild;S.tagName==="svg"&&S.remove(),l.appendChild(b),Ipt(this,b,C,l,p,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},Ipt=function(e,t,n,r,i,o){const s=r.firstChild,a=r.children[1].children;if(a.length===0)return;const l=s.offsetTop,c=s.offsetLeft,u=s.offsetWidth,f=s.offsetHeight;for(let h=0;h<a.length;h++){const g=a[h],p=g.firstChild,m=p.offsetTop,v=p.offsetLeft,C=p.offsetWidth,y=p.offsetHeight,b=p.firstChild.nodeObj.branchColor||n,S=e.generateSubBranch({pT:l,pL:c,pW:u,pH:f,cT:m,cL:v,cW:C,cH:y,direction:i,isFirst:o});t.appendChild(Opt(S,b,"2"));const w=p.children[1];if(w){if(w.style.bottom=-(w.offsetHeight/2)+"px",i===wu.LHS?w.style.left="10px":i===wu.RHS&&(w.style.right="10px"),!w.expanded)continue}else continue;Ipt(e,t,b,g,i)}},FFe={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",summary:"摘要"},NFe={cn:FFe,zh_CN:FFe,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",summary:"摘要"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node",summary:"Summary"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",summary:"Описание"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",summary:"概要"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo",summary:"Resumo"},it:{addChild:"Aggiungi figlio",addParent:"Aggiungi genitore",addSibling:"Aggiungi fratello",removeNode:"Rimuovi nodo",focus:"Modalità Focus",cancelFocus:"Annulla Modalità Focus",moveUp:"Sposta su",mov
2025-03-02 17:53:04 +08:00
<use xlink:href="#icon-${t}"></use>
2025-03-02 21:11:20 +08:00
</svg>`,n};function a4i(e){const t=document.createElement("div"),n=B8("fullscreen","full"),r=B8("toCenter","living"),i=B8("zoomout","move"),o=B8("zoomin","add"),s=document.createElement("span");return s.innerText="100%",t.appendChild(n),t.appendChild(r),t.appendChild(i),t.appendChild(o),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.mindElixirBox.requestFullscreen()},r.onclick=()=>{e.toCenter()},i.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-.2)},o.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+.2)},t}function l4i(e){const t=document.createElement("div"),n=B8("tbltl","left"),r=B8("tbltr","right"),i=B8("tblts","side");return t.appendChild(n),t.appendChild(r),t.appendChild(i),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},r.onclick=()=>{e.initRight()},i.onclick=()=>{e.initSide()},t}function c4i(e){e.container.append(a4i(e)),e.container.append(l4i(e))}/*! @viselect/vanilla v3.9.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */class u4i{constructor(){this._listeners=new Map,this.on=this.addEventListener,this.off=this.removeEventListener,this.emit=this.dispatchEvent}addEventListener(t,n){const r=this._listeners.get(t)??new Set;return this._listeners.set(t,r),r.add(n),this}removeEventListener(t,n){var r;return(r=this._listeners.get(t))==null||r.delete(n),this}dispatchEvent(t,...n){let r=!0;for(const i of this._listeners.get(t)??[])r=i(...n)!==!1&&r;return r}unbindAllListeners(){this._listeners.clear()}}const HFe=(e,t="px")=>typeof e=="number"?e+t:e,l2=({style:e},t,n)=>{if(typeof t=="object")for(const[r,i]of Object.entries(t))i!==void 0&&(e[r]=HFe(i));else n!==void 0&&(e[t]=HFe(n))},jFe=(e=0,t=0,n=0,r=0)=>{const i={x:e,y:t,width:n,height:r,top:t,left:e,right:e+n,bottom:t+r};return{...i,toJSON:()=>JSON.stringify(i)}},d4i=e=>{let t,n=-1,r=!1;return{next:(...i)=>{t=i,r||(r=!0,n=requestAnimationFrame(()=>{e(...t),r=!1}))},cancel:()=>{cancelAnimationFrame(n),r=!1}}},VFe=(e,t,n="touch")=>{switch(n){case"center":{const r=t.left+t.width/2,i=t.top+t.height/2;return r>=e.left&&r<=e.right&&i>=e.top&&i<=e.bottom}case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}},f4i=()=>matchMedia("(hover: none), (pointer: coarse)").matches,h4i=()=>"safari"in window,Dfe=e=>Array.isArray(e)?e:[e],Mpt=e=>(t,n,r,i={})=>{(t instanceof HTMLCollection||t instanceof NodeList)&&(t=Array.from(t)),n=Dfe(n),t=Dfe(t);for(const o of t)if(o)for(const s of n)o[e](s,r,{capture:!1,...i})},c2=Mpt("addEventListener"),Mh=Mpt("removeEventListener"),TF=e=>{var t;const{clientX:n,clientY:r,target:i}=((t=e.touches)==null?void 0:t[0])??e;return{x:n,y:r,target:i}},W5=(e,t=document)=>Dfe(e).map(n=>typeof n=="string"?Array.from(t.querySelectorAll(n)):n instanceof Element?n:null).flat().filter(Boolean),g4i=(e,t)=>t.some(n=>typeof n=="number"?e.button===n:typeof n=="object"?n.button!==e.button?!1:n.modifiers.every(r=>{switch(r){case"alt":return e.altKey;case"ctrl":return e.ctrlKey||e.metaKey;case"shift":return e.shiftKey}}):!1),{abs:Y6,max:GFe,min:WFe,ceil:UFe}=Math,qFe=(e=[])=>({stored:e,selected:[],touched:[],changed:{added:[],removed:[]}}),Ppt=class extends u4i{constructor(e){var t,n,r,i,o;super(),this._selection=qFe(),this._targetBoundaryScrolled=!0,this._selectables=[],this._areaLocation={y1:0,x2:0,y2:0,x1:0},this._areaRect=jFe(),this._singleClick=!0,this._scrollAvailable=!0,this._scrollingActive=!1,this._scrollSpeed={x:0,y:0},this._scrollDelta={x:0,y:0},this._lastMousePosition={x:0,y:0},this.enable=this._toggleStartEvents,this.disable=this._toggleStartEvents.bind(this,!1),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...e.behaviour,startThreshold:(t=e.behaviour)!=null&&t.startThreshold?typeof e.behaviour.startThreshold=="number"?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10}
2025-03-02 17:53:04 +08:00
`;function n(r,i){for(let o=0;o<r.length;o++)i<=6?t+="".padStart(i,"#")+" "+r[o].topic+`
`:t+="".padStart(i-7," ")+"- "+r[o].topic+`
2025-03-02 21:11:20 +08:00
`,r[o].children&&n(r[o].children||[],i+1)}return n(e.children||[],2),t},U4i=function(){this.editable=!0},q4i=function(){this.editable=!1},K4i=function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")",this.bus.fire("scale",e)},Y4i=function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},X4i=function(e){e(this)},Q4i=function(e){e.nodeObj.parent&&(this.tempDirection===null&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.initRight(),this.toCenter())},Z4i=function(){this.isFocusMode=!1,this.tempDirection!==null&&(this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},J4i=function(){this.direction=0,this.refresh()},e3i=function(){this.direction=1,this.refresh()},t3i=function(){this.direction=2,this.refresh()},n3i=function(e){this.locale=e,this.refresh()},r3i=function(e,t){const n=e.nodeObj;typeof t=="boolean"?n.expanded=t:n.expanded!==!1?n.expanded=!1:n.expanded=!0;const r=e.parentNode,i=r.children[1];if(i.expanded=n.expanded,i.className=n.expanded?"minus":"",Z_(e),n.expanded){const a=this.createChildren(n.children.map(l=>this.createWrapper(l).grp));r.parentNode.appendChild(a)}else r.parentNode.children[1].remove();this.linkDiv(e.closest("me-main > me-wrapper"));const o=e.getBoundingClientRect(),s=this.container.getBoundingClientRect();(o.bottom>s.bottom||o.top<s.top||o.right>s.right||o.left<s.left)&&e.scrollIntoView({block:"center",inline:"center"}),this.bus.fire("expandNode",n)},i3i=function(e){e&&(e=JSON.parse(JSON.stringify(e)),this.nodeData=e.nodeData,this.arrows=e.arrows||[],this.summaries=e.summaries||[]),h6(this.nodeData),this.layout(),this.linkDiv()},o3i=Object.freeze(Object.defineProperty({__proto__:null,cancelFocus:Z4i,clearSelection:j4i,disableEdit:q4i,enableEdit:U4i,expandNode:r3i,focusNode:Q4i,getData:G4i,getDataMd:W4i,getDataString:V4i,initLeft:J4i,initRight:e3i,initSide:t3i,install:X4i,refresh:i3i,scale:K4i,selectNode:k4i,selectNodes:B4i,setLocale:n3i,toCenter:Y4i,unselectNode:z4i,unselectNodes:H4i},Symbol.toStringTag,{value:"Module"})),s3i=function(e){return{dom:e,moved:!1,mousedown:!1,handleMouseMove(t){this.mousedown&&(this.moved=!0,this.cb&&this.cb(t.movementX,t.movementY))},handleMouseDown(t){t.button===0&&(this.mousedown=!0)},handleClear(t){this.mousedown=!1},cb:null,init(t,n){this.cb=n,this.handleClear=this.handleClear.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),t.addEventListener("mousemove",this.handleMouseMove),t.addEventListener("mouseleave",this.handleClear),t.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},destory(t){t.removeEventListener("mousemove",this.handleMouseMove),t.removeEventListener("mouseleave",this.handleClear),t.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},clear(){this.moved=!1,this.mousedown=!1}}},KFe={create:s3i};function jH(e,t,n){const{offsetLeft:r,offsetTop:i}=g6(e.nodes,t),o=t.offsetWidth,s=t.offsetHeight,a=r+o/2,l=i+s/2,c=a+n.x,u=l+n.y;return{w:o,h:s,cx:a,cy:l,ctrlX:c,ctrlY:u}}function NS(e){let t,n;const r=(e.cy-e.ctrlY)/(e.ctrlX-e.cx);return r>e.h/e.w||r<-e.h/e.w?e.cy-e.ctrlY<0?(t=e.cx-e.h/2/r,n=e.cy+e.h/2):(t=e.cx+e.h/2/r,n=e.cy-e.h/2):e.cx-e.ctrlX<0?(t=e.cx+e.w/2,n=e.cy-e.w*r/2):(t=e.cx-e.w/2,n=e.cy+e.w*r/2),{x:t,y:n}}const a3i=function(e,t,n,r){const i=document.createElementNS("http://www.w3.org/2000/svg","text");return Zo(i,{"text-anchor":"middle",x:t+"",y:n+"",fill:r||"#666"}),i.dataset.type="custom-link",i.innerHTML=e,i},zpt=function(e,t,n,r,i){if(!t||!n)return;performance.now();const o=jH(e,t,r.delta1),s=jH(e,n,r.delta2),{x:a,y:l}=NS(o),{ctrlX:c,ctrlY:u}=o,{ctrlX:f,ctrlY:h}=s,{x:g,y:p}=NS(s),m=Rpt(f,h,g,p),v=q2i(`M ${a} ${l} C ${c} ${u} ${f} ${h} ${g} ${p}`,`M ${m.x1} ${m.y1} L ${g} ${p} L ${m.x2} ${m.y2}`),C=a/8+c*3/8+f*3/8+g/8,y=l/8+u*3/8+h*3/8+p/8,b=a3i(r.
`).forEach((s,a)=>{const l=document.createElementNS(xd,"text");Zo(l,{x:n+parseInt(t.paddingLeft)+"",y:r+parseInt(t.paddingTop)+T3i(t.lineHeight,t.fontSize)*(a+1)+parseFloat(t.fontSize)*(a+1)+"","text-anchor":"start","font-family":t.fontFamily,"font-size":`${t.fontSize}`,"font-weight":`${t.fontWeight}`,fill:`${t.color}`}),l.innerHTML=s,i.appendChild(l)}),i}function M3i(e,t,n,r){var i;let o="";(i=e.nodeObj)!=null&&i.dangerouslySetInnerHTML?o=e.nodeObj.dangerouslySetInnerHTML:e.text?o=e.text.textContent:o=e.childNodes[0].textContent;const s=document.createElementNS(xd,"foreignObject");Zo(s,{x:n+parseInt(t.paddingLeft)+"",y:r+parseInt(t.paddingTop)+"",width:t.width,height:t.height});const a=document.createElement("div");return Zo(a,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`}),a.innerHTML=o,s.appendChild(a),s}function P3i(e,t){const n=getComputedStyle(t),{offsetLeft:r,offsetTop:i}=g6(e.nodes,t),o=document.createElementNS(xd,"rect");return Zo(o,{x:r+"",y:i+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),o}function IF(e,t,n=!1){const r=getComputedStyle(t),{offsetLeft:i,offsetTop:o}=g6(e.nodes,t),s=document.createElementNS(xd,"rect");Zo(s,{x:i+"",y:o+"",rx:r.borderRadius,ry:r.borderRadius,width:r.width,height:r.height,fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth});const a=document.createElementNS(xd,"g");a.appendChild(s);let l;return n?l=M3i(t,r,i,o):l=I3i(t,r,i,o),a.appendChild(l),a}function _3i(e,t){const n=getComputedStyle(t),{offsetLeft:r,offsetTop:i}=g6(e.nodes,t),o=document.createElementNS(xd,"a"),s=document.createElementNS(xd,"text");return Zo(s,{x:r+"",y:i+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),s.innerHTML=t.textContent,o.appendChild(s),o.setAttribute("href",t.href),o}function A3i(e,t){const n=getComputedStyle(t),{offsetLeft:r,offsetTop:i}=g6(e.nodes,t),o=document.createElementNS(xd,"image");return Zo(o,{x:r+"",y:i+"",width:n.width+"",height:n.height+"",href:t.src}),o}const MF=100,D3i='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',L3i=(e,t=!1)=>{var n,r,i;const o=e.nodes,s=o.offsetHeight+MF*2,a=o.offsetWidth+MF*2,l=O3i(s+"px",a+"px"),c=document.createElementNS(xd,"svg"),u=document.createElementNS(xd,"rect");Zo(u,{x:"0",y:"0",width:`${a}`,height:`${s}`,fill:e.theme.cssVar["--bgcolor"]}),l.appendChild(u),o.querySelectorAll(".subLines").forEach(p=>{const m=p.cloneNode(!0),{offsetLeft:v,offsetTop:C}=g6(o,p.parentElement);m.setAttribute("x",`${v}`),m.setAttribute("y",`${C}`),c.appendChild(m)});const f=(n=o.querySelector(".lines"))==null?void 0:n.cloneNode(!0);f&&c.appendChild(f);const h=(r=o.querySelector(".topiclinks"))==null?void 0:r.cloneNode(!0);h&&c.appendChild(h);const g=(i=o.querySelector(".summary"))==null?void 0:i.cloneNode(!0);return g&&c.appendChild(g),o.querySelectorAll("me-tpc").forEach(p=>{p.nodeObj.dangerouslySetInnerHTML?c.appendChild(IF(e,p,!t)):(c.appendChild(P3i(e,p)),c.appendChild(IF(e,p.text,!t)))}),o.querySelectorAll(".tags > span").forEach(p=>{c.appendChild(IF(e,p))}),o.querySelectorAll(".icons > span").forEach(p=>{c.appendChild(IF(e,p))}),o.querySelectorAll(".hyper-link").forEach(p=>{c.appendChild(_3i(e,p))}),o.querySelectorAll("img").forEach(p=>{c.appendChild(A3i(e,p))}),Zo(c,{x:MF+"",y:MF+"",overflow:"visible"}),l.appendChild(c),l},F3i=(e,t)=>(t&&e.insertAdjacentHTML("afterbegin","<style>"+t+"</style>"),D3i+e.outerHTML);function N3i(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=i=>{t(i.target.result)},r.onerror=i=>{n(i)},r.readAsDataURL(e)})}const k3i=function(e=!1,t){const n=L3i(this,e),r=F3i(n,t);return new Blob([r],{type:"image/svg+xml"})},z3i=async function(e=!1,t){const n=this.exportSvg(e,t),r=await N3i(n);return new Promise((i